1 /* 2 * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved. 3 * Copyright (c) 2021-2023 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_POLICY: Vendor command to 490 * configure the concurrent session policies when multiple interfaces 491 * are (getting) active. The attributes used by this command are defined 492 * in enum qca_wlan_vendor_attr_concurrent_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 * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse 628 * (SR) feature. This command is used by userspace to configure SR 629 * parameters to the driver and to get the SR related parameters and 630 * statistics with synchronous responses from the driver. 631 * The driver also uses this command to send asynchronous events to 632 * userspace to indicate suspend/resume of SR feature and changes 633 * in SR parameters. 634 * 635 * The attributes used with this command are defined in 636 * enum qca_wlan_vendor_attr_sr. 637 * 638 * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to 639 * notify application layer about the primary netdev of an MLO connection. 640 * In some implementations, MLO has multiple netdevs out of which one 641 * netdev is designated as primary to provide a unified interface to the 642 * bridge. In those implementations this event is sent on every MLO peer 643 * connection. 644 * 645 * The attributes used with this event are defined in 646 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event. 647 * 648 * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the 649 * driver to notify different AFC events to userspace. The attributes used 650 * with this command are defined in enum qca_wlan_vendor_attr_afc_event. 651 * 652 * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by 653 * userspace to deliver AFC response data to driver. The attributes used 654 * with this command are defined in enum qca_wlan_vendor_attr_afc_response. 655 * 656 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to 657 * operate in doze mode. 658 * 659 * Userspace uses this command to configure the AP interface to enter or 660 * exit from doze mode. The driver sends this event after it enters or 661 * exits the doze mode with the updated AP doze mode settings. 662 * 663 * The attributes used with this subcommand are defined in 664 * enum qca_wlan_vendor_attr_dozed_ap. 665 * 666 * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used 667 * to get the status of local packet capture of monitor mode. The monitor 668 * mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE 669 * subcommand. 670 * 671 * The attributes used with this command are defined in enum 672 * qca_wlan_vendor_attr_get_monitor_mode. 673 * 674 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to 675 * get roam information from the driver to user space. It provides the 676 * latest several instances of roam information cached in the driver. 677 * The command is only used for STA mode. The attributes used with this 678 * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats. 679 * 680 * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to 681 * configure and fetch the state information of the MLO links affiliated 682 * with the STA interface. The attributes used with this command are 683 * defined in enum qca_wlan_vendor_attr_mlo_link_state. 684 * 685 * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this 686 * vendor subcommand to trigger channel utilization measurement on entire 687 * channel width of the connected channel(s). For MLO connection, connected 688 * channel utilization measurement shall be done on all the MLO links. 689 * The driver may use regular scan or wideband energy detection feature 690 * based on the hardware capability for connected channel(s) utilization 691 * measurement. The driver indicates the connected channel(s) utilization 692 * measurement completion as an asynchronous event with this command ID to 693 * userspace. Upon receiving this event, userspace can use 694 * %NL80211_CMD_GET_INTERFACE to determine the channel width of the current 695 * connected channel(s) and can derive the channel utilization percentage 696 * (CU) of each 20 MHz sub-channel of the entire connected channel using 697 * %NL80211_CMD_GET_SURVEY response. 698 * CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME. 699 * This command is only used for STA mode. 700 */ 701 702 enum qca_nl80211_vendor_subcmds { 703 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, 704 QCA_NL80211_VENDOR_SUBCMD_TEST = 1, 705 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9, 706 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10, 707 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11, 708 QCA_NL80211_VENDOR_SUBCMD_NAN = 12, 709 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13, 710 711 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14, 712 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15, 713 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16, 714 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17, 715 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18, 716 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19, 717 718 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20, 719 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21, 720 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22, 721 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23, 722 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24, 723 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25, 724 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26, 725 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27, 726 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28, 727 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29, 728 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30, 729 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31, 730 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32, 731 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33, 732 733 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34, 734 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35, 735 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36, 736 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37, 737 738 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38, 739 740 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39, 741 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40, 742 743 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41, 744 745 /* Get Concurrency Matrix */ 746 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42, 747 748 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50, 749 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51, 750 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52, 751 752 /* Deprecated */ 753 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53, 754 755 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54, 756 757 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55, 758 759 /* Off loaded DFS events */ 760 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56, 761 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57, 762 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58, 763 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59, 764 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60, 765 766 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61, 767 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62, 768 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63, 769 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64, 770 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65, 771 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66, 772 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67, 773 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68, 774 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69, 775 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70, 776 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71, 777 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72, 778 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73, 779 780 /* Wi-Fi Configuration subcommands */ 781 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74, 782 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75, 783 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76, 784 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77, 785 786 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78, 787 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79, 788 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80, 789 QCA_NL80211_VENDOR_SUBCMD_NDP = 81, 790 791 /* NS Offload enable/disable cmd */ 792 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82, 793 794 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83, 795 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84, 796 797 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85, 798 799 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91, 800 /* OCB commands */ 801 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92, 802 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93, 803 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94, 804 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95, 805 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96, 806 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97, 807 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98, 808 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99, 809 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100, 810 811 /* subcommand to get link properties */ 812 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101, 813 /* LFR Subnet Detection */ 814 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102, 815 816 /* DBS subcommands */ 817 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103, 818 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104, 819 820 /* Vendor setband command */ 821 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105, 822 823 /* Vendor scan commands */ 824 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106, 825 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107, 826 827 /* OTA test subcommand */ 828 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108, 829 /* Tx power scaling subcommands */ 830 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109, 831 /* Tx power scaling in db subcommands */ 832 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115, 833 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116, 834 QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117, 835 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118, 836 QCA_NL80211_VENDOR_SUBCMD_TSF = 119, 837 QCA_NL80211_VENDOR_SUBCMD_WISA = 120, 838 QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121, 839 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122, 840 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123, 841 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124, 842 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125, 843 844 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126, 845 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127, 846 /* FTM/indoor location subcommands */ 847 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128, 848 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129, 849 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130, 850 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131, 851 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132, 852 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133, 853 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134, 854 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135, 855 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136, 856 857 /* Encrypt/Decrypt command */ 858 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137, 859 860 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138, 861 /* DMG low level RF sector operations */ 862 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139, 863 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140, 864 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141, 865 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142, 866 867 /* Configure the TDLS mode from user space */ 868 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143, 869 870 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144, 871 872 /* Vendor abort scan command */ 873 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145, 874 875 /* Set Specific Absorption Rate(SAR) Power Limits */ 876 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146, 877 878 /* External Auto channel configuration setting */ 879 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147, 880 881 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148, 882 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149, 883 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150, 884 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151, 885 886 /* Set the trace level for QDF */ 887 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152, 888 889 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153, 890 891 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154, 892 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155, 893 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156, 894 QCA_NL80211_VENDOR_SUBCMD_HANG = 157, 895 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158, 896 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159, 897 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160, 898 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161, 899 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162, 900 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163, 901 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164, 902 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165, 903 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166, 904 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167, 905 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168, 906 /* Wi-Fi test configuration subcommand */ 907 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169, 908 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171, 909 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173, 910 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174, 911 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175, 912 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177, 913 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178, 914 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179, 915 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180, 916 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181, 917 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182, 918 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183, 919 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184, 920 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185, 921 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186, 922 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187, 923 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188, 924 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189, 925 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190, 926 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191, 927 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192, 928 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193, 929 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194, 930 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195, 931 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196, 932 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197, 933 QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198, 934 QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199, 935 QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200, 936 QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201, 937 QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202, 938 QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203, 939 QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204, 940 QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205, 941 /* 206..212 - reserved for QCA */ 942 QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213, 943 QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214, 944 QCA_NL80211_VENDOR_SUBCMD_PASN = 215, 945 QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216, 946 QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217, 947 QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218, 948 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219, 949 QCA_NL80211_VENDOR_SUBCMD_SR = 220, 950 QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221, 951 QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222, 952 QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223, 953 QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224, 954 QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225, 955 QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226, 956 QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227, 957 QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228, 958 }; 959 960 enum qca_wlan_vendor_tos { 961 QCA_WLAN_VENDOR_TOS_BK = 0, 962 QCA_WLAN_VENDOR_TOS_BE = 1, 963 QCA_WLAN_VENDOR_TOS_VI = 2, 964 QCA_WLAN_VENDOR_TOS_VO = 3, 965 }; 966 967 /** 968 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command 969 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS. 970 */ 971 enum qca_wlan_vendor_attr_active_tos { 972 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0, 973 /* Type Of Service - Represented by qca_wlan_vendor_tos */ 974 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1, 975 /* Flag attribute representing the start (attribute included) or stop 976 * (attribute not included) of the respective TOS. 977 */ 978 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2, 979 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3, 980 }; 981 982 enum qca_wlan_vendor_hang_reason { 983 /* Unspecified reason */ 984 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0, 985 /* No Map for the MAC entry for the received frame */ 986 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1, 987 /* peer deletion timeout happened */ 988 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2, 989 /* peer unmap timeout */ 990 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3, 991 /* Scan request timed out */ 992 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4, 993 /* Consecutive Scan attempt failures */ 994 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5, 995 /* Unable to get the message buffer */ 996 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6, 997 /* Current command processing is timedout */ 998 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7, 999 /* Timeout for an ACK from FW for suspend request */ 1000 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8, 1001 /* Timeout for an ACK from FW for resume request */ 1002 QCA_WLAN_HANG_RESUME_TIMEOUT = 9, 1003 /* Transmission timeout for consecutive data frames */ 1004 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10, 1005 /* Timeout for the TX completion status of data frame */ 1006 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11, 1007 /* DXE failure for tx/Rx, DXE resource unavailability */ 1008 QCA_WLAN_HANG_DXE_FAILURE = 12, 1009 /* WMI pending commands exceed the maximum count */ 1010 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13, 1011 /* Timeout for peer STA connection accept command's response from the 1012 * FW in AP mode. This command is triggered when a STA (peer) connects 1013 * to AP (DUT). 1014 */ 1015 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14, 1016 /* Timeout for the AP connection accept command's response from the FW 1017 * in STA mode. This command is triggered when the STA (DUT) connects 1018 * to an AP (peer). 1019 */ 1020 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15, 1021 /* Timeout waiting for the response to the MAC HW mode change command 1022 * sent to FW as a part of MAC mode switch among DBS (Dual Band 1023 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi 1024 * Channel Concurrency) mode. 1025 */ 1026 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16, 1027 /* Timeout waiting for the response from FW to configure the MAC HW's 1028 * mode. This operation is to configure the single/two MACs in either 1029 * SCC/MCC/DBS mode. 1030 */ 1031 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17, 1032 /* Timeout waiting for response of VDEV start command from the FW */ 1033 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18, 1034 /* Timeout waiting for response of VDEV restart command from the FW */ 1035 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19, 1036 /* Timeout waiting for response of VDEV stop command from the FW */ 1037 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20, 1038 /* Timeout waiting for response of VDEV delete command from the FW */ 1039 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21, 1040 /* Timeout waiting for response of peer all delete request command to 1041 * the FW on a specific VDEV. 1042 */ 1043 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22, 1044 /* WMI sequence mismatch between WMI command and Tx completion */ 1045 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23, 1046 /* Write to Device HAL register failed */ 1047 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24, 1048 /* No credit left to send the wow_wakeup_from_sleep to firmware */ 1049 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25, 1050 /* Bus failure */ 1051 QCA_WLAN_HANG_BUS_FAILURE = 26, 1052 /* tasklet/credit latency found */ 1053 QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27, 1054 /* MSDU buffers received in REO error ring, exceeding certain 1055 * threshold 1056 */ 1057 QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28, 1058 /* Vdev SM is out of sync and connect req received 1059 * when already connected 1060 */ 1061 QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29, 1062 /* Stats request timeout */ 1063 QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30, 1064 /* Leak in TX descriptor for a packet */ 1065 QCA_WLAN_HANG_TX_DESC_LEAK = 31, 1066 /* Scheduler watchdog timeout */ 1067 QCA_WLAN_HANG_SCHED_TIMEOUT = 32, 1068 /* Failed to send self peer deletion cmd to firmware */ 1069 QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33, 1070 /* Received del self sta without del bss */ 1071 QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34, 1072 /* Recovery needed when sending flush completion to userspace */ 1073 QCA_WLAN_HANG_FLUSH_LOGS = 35, 1074 /* Host wakeup because of page fault */ 1075 QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36, 1076 }; 1077 1078 /** 1079 * enum qca_wlan_vendor_attr_hang - Used by the vendor command 1080 * QCA_NL80211_VENDOR_SUBCMD_HANG. 1081 */ 1082 enum qca_wlan_vendor_attr_hang { 1083 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0, 1084 /* 1085 * Reason for the Hang - Represented by enum 1086 * qca_wlan_vendor_hang_reason. 1087 */ 1088 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1, 1089 /* The binary blob data associated with the hang reason specified by 1090 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to 1091 * contain the required dump to analyze the reason for the hang. 1092 * NLA_BINARY attribute, the max size is 1024 bytes. 1093 */ 1094 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2, 1095 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST, 1096 QCA_WLAN_VENDOR_ATTR_HANG_MAX = 1097 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1, 1098 }; 1099 1100 /** 1101 * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level 1102 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level 1103 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters 1104 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace 1105 level needs to be updated. 1106 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need 1107 * to be set. 1108 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last. 1109 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute. 1110 */ 1111 enum qca_vendor_attr_set_trace_level { 1112 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0, 1113 /* 1114 * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM 1115 * attributes. 1116 */ 1117 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1, 1118 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2, 1119 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3, 1120 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST, 1121 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX = 1122 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1, 1123 }; 1124 1125 /** 1126 * enum qca_wlan_vendor_attr_get_station - Sub commands used by 1127 * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding 1128 * station information. The information obtained through these 1129 * commands signify the current info in connected state and 1130 * latest cached information during the connected state , if queried 1131 * when in disconnected state. 1132 * 1133 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute 1134 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info 1135 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason 1136 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info 1137 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last 1138 */ 1139 enum qca_wlan_vendor_attr_get_station { 1140 QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0, 1141 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO, 1142 QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON, 1143 QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE, 1144 1145 /* keep last */ 1146 QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST, 1147 QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX = 1148 QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1, 1149 }; 1150 1151 /** 1152 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes 1153 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command. 1154 * 1155 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC. 1156 * Used in STA mode. This attribute represents the list of channel center 1157 * frequencies in MHz (u32) the station has learnt during the last connection 1158 * or roaming attempt. This information shall not signify the channels for 1159 * an explicit scan request from the user space. Host drivers can update this 1160 * information to the user space in both connected and disconnected state. 1161 * In the disconnected state this information shall signify the channels 1162 * scanned in the last connection/roam attempt that lead to the disconnection. 1163 */ 1164 enum qca_wlan_vendor_attr_update_sta_info { 1165 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0, 1166 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1, 1167 1168 /* keep last */ 1169 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST, 1170 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX = 1171 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1, 1172 }; 1173 1174 /** 1175 * enum qca_wlan_802_11_mode - dot11 mode 1176 * @QCA_WLAN_802_11_MODE_11B: mode B 1177 * @QCA_WLAN_802_11_MODE_11G: mode G 1178 * @QCA_WLAN_802_11_MODE_11N: mode N 1179 * @QCA_WLAN_802_11_MODE_11A: mode A 1180 * @QCA_WLAN_802_11_MODE_11AC: mode AC 1181 * @QCA_WLAN_802_11_MODE_11AX: mode AX 1182 * @QCA_WLAN_802_11_MODE_11BE: mode BE 1183 * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode 1184 */ 1185 enum qca_wlan_802_11_mode { 1186 QCA_WLAN_802_11_MODE_11B, 1187 QCA_WLAN_802_11_MODE_11G, 1188 QCA_WLAN_802_11_MODE_11N, 1189 QCA_WLAN_802_11_MODE_11A, 1190 QCA_WLAN_802_11_MODE_11AC, 1191 QCA_WLAN_802_11_MODE_11AX, 1192 QCA_WLAN_802_11_MODE_11BE, 1193 QCA_WLAN_802_11_MODE_INVALID, 1194 }; 1195 1196 /** 1197 * enum qca_wlan_auth_type - Authentication key management type 1198 * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type 1199 * @QCA_WLAN_AUTH_TYPE_OPEN: Open key 1200 * @QCA_WLAN_AUTH_TYPE_SHARED: shared key 1201 * @QCA_WLAN_AUTH_TYPE_WPA: wpa key 1202 * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key 1203 * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key 1204 * @QCA_WLAN_AUTH_TYPE_RSN: rsn key 1205 * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key 1206 * @QCA_WLAN_AUTH_TYPE_FT: ft key 1207 * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key 1208 * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key 1209 * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk 1210 * @QCA_WLAN_AUTH_TYPE_WAI: wai key 1211 * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key 1212 * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key 1213 * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key 1214 * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key 1215 * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm 1216 * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384 1217 * @QCA_WLAN_AUTH_TYPE_SAE: SAE key 1218 * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key 1219 * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key 1220 * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key 1221 * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key 1222 * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key 1223 * @QCA_WLAN_AUTH_TYPE_OWE: owe key 1224 * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key 1225 * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key 1226 */ 1227 enum qca_wlan_auth_type { 1228 QCA_WLAN_AUTH_TYPE_INVALID, 1229 QCA_WLAN_AUTH_TYPE_OPEN, 1230 QCA_WLAN_AUTH_TYPE_SHARED, 1231 QCA_WLAN_AUTH_TYPE_WPA, 1232 QCA_WLAN_AUTH_TYPE_WPA_PSK, 1233 QCA_WLAN_AUTH_TYPE_WPA_NONE, 1234 QCA_WLAN_AUTH_TYPE_RSN, 1235 QCA_WLAN_AUTH_TYPE_RSN_PSK, 1236 QCA_WLAN_AUTH_TYPE_FT, 1237 QCA_WLAN_AUTH_TYPE_FT_PSK, 1238 QCA_WLAN_AUTH_TYPE_SHA256, 1239 QCA_WLAN_AUTH_TYPE_SHA256_PSK, 1240 QCA_WLAN_AUTH_TYPE_WAI, 1241 QCA_WLAN_AUTH_TYPE_WAI_PSK, 1242 QCA_WLAN_AUTH_TYPE_CCKM_WPA, 1243 QCA_WLAN_AUTH_TYPE_CCKM_RSN, 1244 QCA_WLAN_AUTH_TYPE_AUTOSWITCH, 1245 QCA_WLAN_AUTH_TYPE_FT_SAE, 1246 QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384, 1247 QCA_WLAN_AUTH_TYPE_SAE, 1248 QCA_WLAN_AUTH_TYPE_FILS_SHA256, 1249 QCA_WLAN_AUTH_TYPE_FILS_SHA384, 1250 QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256, 1251 QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384, 1252 QCA_WLAN_AUTH_TYPE_DPP_RSN, 1253 QCA_WLAN_AUTH_TYPE_OWE, 1254 QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256, 1255 QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384, 1256 }; 1257 1258 /** 1259 * enum qca_wlan_vendor_attr_get_station_info - Station Info queried 1260 * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION. 1261 * 1262 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute 1263 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR: 1264 * Get the standard NL attributes Nested with this attribute. 1265 * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link - 1266 * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) / 1267 * NL80211_ATTR_STA_INFO 1268 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR: 1269 * Get the standard NL attributes Nested with this attribute. 1270 * Ex : Query HT/VHT Capability advertized by the AP. 1271 * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY 1272 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT: 1273 * Number of successful Roam attempts before a 1274 * disconnect, Unsigned 32 bit value 1275 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM: 1276 * Authentication Key Management Type used for the connected session. 1277 * Signified by enum qca_wlan_auth_type 1278 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the 1279 * connected Session, signified by enum qca_wlan_802_11_mode 1280 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION: 1281 * HS20 Indication Element 1282 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON: 1283 * Status Code Corresponding to the Association Failure. 1284 * Unsigned 32 bit value. 1285 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE: 1286 * Max phy rate of remote station 1287 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS: 1288 * TX packets to remote station 1289 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES: 1290 * TX bytes to remote station 1291 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS: 1292 * RX packets from remote station 1293 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES: 1294 * RX bytes from remote station 1295 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE: 1296 * Last TX rate with remote station 1297 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE: 1298 * Last RX rate with remote station 1299 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM: 1300 * Remote station enable/disable WMM 1301 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE: 1302 * Remote station connection mode 1303 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU: 1304 * Remote station AMPDU enable/disable 1305 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC: 1306 * Remote station TX Space-time block coding enable/disable 1307 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC: 1308 * Remote station RX Space-time block coding enable/disable 1309 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH: 1310 * Remote station channel width 1311 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE: 1312 * Remote station short GI enable/disable 1313 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding 1314 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute 1315 * containing the raw information elements from Beacon frames. Represents 1316 * the Beacon frames of the current BSS in the connected state. When queried 1317 * in the disconnected state, these IEs correspond to the last connected BSSID. 1318 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver 1319 * disconnect reason for the last disconnection if the disconnection is 1320 * triggered from the host driver. The values are referred from 1321 * enum qca_disconnect_reason_codes. If the disconnect is from 1322 * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED. 1323 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute 1324 * Applicable in AP mode only. It contains the raw information elements 1325 * from assoc request frame of the given peer station. User queries with the 1326 * mac address of peer station when it disconnects. Host driver sends 1327 * assoc request frame of the given station. Host driver doesn't provide 1328 * the IEs when the peer station is still in connected state. 1329 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for 1330 * sending HE operation info. 1331 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last 1332 * 1333 */ 1334 enum qca_wlan_vendor_attr_get_station_info { 1335 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0, 1336 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR, 1337 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR, 1338 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT, 1339 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM, 1340 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE, 1341 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION, 1342 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION, 1343 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION, 1344 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON, 1345 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE, 1346 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS, 1347 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES, 1348 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS, 1349 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES, 1350 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE, 1351 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE, 1352 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM, 1353 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE, 1354 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU, 1355 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC, 1356 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC, 1357 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH, 1358 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE, 1359 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD, 1360 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT, 1361 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT, 1362 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE, 1363 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN, 1364 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED, 1365 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI, 1366 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY, 1367 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST, 1368 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW, 1369 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW, 1370 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW, 1371 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES, 1372 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON, 1373 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES, 1374 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION, 1375 1376 /* keep last */ 1377 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST, 1378 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX = 1379 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1, 1380 }; 1381 1382 /** 1383 * enum qca_wlan_vendor_attr_tdls_enable - TDLS enable attribute 1384 * 1385 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID: Invalid initial value 1386 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: An array of 6 x Unsigned 8-bit 1387 * value 1388 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: Signed 32-bit value, but lets 1389 * keep as unsigned for now 1390 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: operating class 1391 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: Enable max latency in ms 1392 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: Enable min bandwidth 1393 * in KBPS 1394 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST: After last 1395 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX: Max value 1396 */ 1397 enum qca_wlan_vendor_attr_tdls_enable { 1398 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0, 1399 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR, 1400 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL, 1401 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS, 1402 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS, 1403 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS, 1404 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST, 1405 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX = 1406 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1, 1407 }; 1408 1409 /** 1410 * enum qca_wlan_vendor_attr_tdls_disable: tdls disable attribute 1411 * 1412 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID: Invalid initial value 1413 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: An array of 6 x Unsigned 1414 * 8-bit value 1415 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST: After last 1416 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX: Max value 1417 */ 1418 enum qca_wlan_vendor_attr_tdls_disable { 1419 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0, 1420 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR, 1421 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST, 1422 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX = 1423 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1, 1424 }; 1425 1426 /** 1427 * qca_chip_power_save_failure_reason: Power save failure reason 1428 * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure 1429 * due to protocol/module. 1430 * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure 1431 * due to hardware 1432 */ 1433 enum qca_chip_power_save_failure_reason { 1434 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0, 1435 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1, 1436 }; 1437 1438 /** 1439 * qca_attr_chip_power_save_failure: attributes to vendor subcmd 1440 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite 1441 * information leading to the power save failure. 1442 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid 1443 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason 1444 * represented by enum qca_chip_power_save_failure_reason 1445 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last 1446 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value 1447 */ 1448 enum qca_attr_chip_power_save_failure { 1449 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0, 1450 1451 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1, 1452 1453 /* keep last */ 1454 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST, 1455 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX = 1456 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1, 1457 }; 1458 1459 1460 /** 1461 * enum qca_wlan_vendor_attr_tdls_get_status - tdls get status attribute 1462 * 1463 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID: Invalid initial value 1464 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: An array of 6 x Unsigned 1465 * 8-bit value 1466 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: get status state, 1467 * unsigned 32-bit value 1468 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: get status reason 1469 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: get status channel, 1470 * unsigned 32-bit value 1471 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: get operating 1472 * class, unsigned 32-bit value 1473 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST: After last 1474 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX: Max value 1475 */ 1476 enum qca_wlan_vendor_attr_tdls_get_status { 1477 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0, 1478 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR, 1479 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE, 1480 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON, 1481 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL, 1482 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS, 1483 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST, 1484 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX = 1485 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1, 1486 }; 1487 1488 /** 1489 * enum qca_wlan_vendor_attr_tdls_state - tdls state attribute 1490 * 1491 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID: Initial invalid value 1492 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: An array of 6 x Unsigned 1493 * 8-bit value 1494 * @QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE: TDLS new state, 1495 * unsigned 32-bit value 1496 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: TDLS state reason 1497 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: TDLS state channel, 1498 * unsigned 32-bit value 1499 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: TDLS state 1500 * operating class, unsigned 32-bit value 1501 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST: After last 1502 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX: Max value 1503 */ 1504 enum qca_wlan_vendor_attr_tdls_state { 1505 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0, 1506 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR, 1507 QCA_WLAN_VENDOR_ATTR_TDLS_NEW_STATE, 1508 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON, 1509 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL, 1510 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS, 1511 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST, 1512 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX = 1513 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1, 1514 }; 1515 1516 /* enum's to provide TDLS capabilities */ 1517 enum qca_wlan_vendor_attr_get_tdls_capabilities { 1518 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0, 1519 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1, 1520 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2, 1521 1522 /* keep last */ 1523 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST, 1524 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX = 1525 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1, 1526 }; 1527 1528 /* Compatibility defines for previously used subcmd names. 1529 * These values should not be used in any new implementation. 1530 */ 1531 #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \ 1532 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY 1533 1534 enum qca_wlan_vendor_attr { 1535 QCA_WLAN_VENDOR_ATTR_INVALID = 0, 1536 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */ 1537 QCA_WLAN_VENDOR_ATTR_DFS = 1, 1538 /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */ 1539 QCA_WLAN_VENDOR_ATTR_NAN = 2, 1540 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 1541 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3, 1542 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 1543 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4, 1544 /* 1545 * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined 1546 * by enum qca_roaming_policy. 1547 */ 1548 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5, 1549 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6, 1550 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ 1551 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7, 1552 QCA_WLAN_VENDOR_ATTR_TEST = 8, 1553 /* 1554 * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES 1555 * Unsigned 32-bit value. 1556 */ 1557 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9, 1558 /* Unsigned 32-bit value */ 1559 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10, 1560 /* Unsigned 32-bit value */ 1561 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11, 1562 /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable 1563 * value for this attribute are only till QCA_SETBAND_2G. This attribute 1564 * is deprecated. Recommendation is to use 1565 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured 1566 * using both the attributes, the ones configured through 1567 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence. 1568 */ 1569 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12, 1570 /* Dummy (NOP) attribute for 64 bit padding */ 1571 QCA_WLAN_VENDOR_ATTR_PAD = 13, 1572 /* 1573 * Unique FTM session cookie (Unsigned 64 bit). Specified in 1574 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in 1575 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and 1576 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE. 1577 */ 1578 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14, 1579 /* 1580 * Indoor location capabilities, returned by 1581 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA. 1582 * see enum qca_wlan_vendor_attr_loc_capa. 1583 */ 1584 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15, 1585 /* 1586 * Array of nested attributes containing information about each peer 1587 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info 1588 * for supported attributes for each peer. 1589 */ 1590 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16, 1591 /* 1592 * Array of nested attributes containing measurement results for 1593 * one or more peers, reported by the 1594 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event. 1595 * See enum qca_wlan_vendor_attr_peer_result for list of supported 1596 * attributes. 1597 */ 1598 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17, 1599 /* Flag attribute for enabling or disabling responder functionality. */ 1600 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18, 1601 /* 1602 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 1603 * command to specify the LCI report that will be sent by 1604 * the responder during a measurement exchange. The format is 1605 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10. 1606 */ 1607 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19, 1608 /* 1609 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 1610 * command to specify the location civic report that will 1611 * be sent by the responder during a measurement exchange. 1612 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13. 1613 */ 1614 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20, 1615 /* 1616 * Session/measurement completion status code, 1617 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and 1618 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT 1619 * see enum qca_vendor_attr_loc_session_status. 1620 */ 1621 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21, 1622 /* 1623 * Initial dialog token used by responder (0 if not specified), 1624 * unsigned 8 bit value. 1625 */ 1626 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22, 1627 /* 1628 * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS 1629 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if 1630 * AOA measurements are needed as part of an FTM session. 1631 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See 1632 * enum qca_wlan_vendor_attr_aoa_type. 1633 */ 1634 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23, 1635 /* 1636 * A bit mask (unsigned 32 bit value) of antenna arrays used 1637 * by indoor location measurements. Refers to the antenna 1638 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS. 1639 */ 1640 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24, 1641 /* 1642 * AOA measurement data. Its contents depends on the AOA measurement 1643 * type and antenna array mask: 1644 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values, 1645 * phase of the strongest CIR path for each antenna in the measured 1646 * array(s). 1647 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16 1648 * values, phase and amplitude of the strongest CIR path for each 1649 * antenna in the measured array(s). 1650 */ 1651 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25, 1652 /* 1653 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1654 * to specify the chain number (unsigned 32 bit value) to inquire 1655 * the corresponding antenna RSSI value */ 1656 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26, 1657 /* 1658 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1659 * to report the specific antenna RSSI value (unsigned 32 bit value) */ 1660 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27, 1661 /* Frequency in MHz, various uses. Unsigned 32 bit value */ 1662 QCA_WLAN_VENDOR_ATTR_FREQ = 28, 1663 /* 1664 * TSF timer value, unsigned 64 bit value. 1665 * May be returned by various commands. 1666 */ 1667 QCA_WLAN_VENDOR_ATTR_TSF = 29, 1668 /* 1669 * DMG RF sector index, unsigned 16 bit number. Valid values are 1670 * 0..127 for sector indices or 65535 as special value used to 1671 * unlock sector selection in 1672 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR. 1673 */ 1674 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30, 1675 /* 1676 * DMG RF sector type, unsigned 8 bit value. One of the values 1677 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type. 1678 */ 1679 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31, 1680 /* 1681 * Bitmask of DMG RF modules for which information is requested. Each 1682 * bit corresponds to an RF module with the same index as the bit 1683 * number. Unsigned 32 bit number but only low 8 bits can be set since 1684 * all DMG chips currently have up to 8 RF modules. 1685 */ 1686 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32, 1687 /* 1688 * Array of nested attributes where each entry is DMG RF sector 1689 * configuration for a single RF module. 1690 * Attributes for each entry are taken from enum 1691 * qca_wlan_vendor_attr_dmg_rf_sector_cfg. 1692 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG 1693 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG. 1694 */ 1695 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33, 1696 /* 1697 * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command 1698 * to report frame aggregation statistics to userspace. 1699 */ 1700 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34, 1701 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35, 1702 /* 1703 * Unsigned 8-bit value representing MBO transition reason code as 1704 * provided by the AP used by subcommand 1705 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is 1706 * specified by the userspace in the request to the driver. 1707 */ 1708 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36, 1709 /* 1710 * Array of nested attributes, BSSID and status code, used by subcommand 1711 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each 1712 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info. 1713 * The userspace space specifies the list/array of candidate BSSIDs in 1714 * the order of preference in the request. The driver specifies the 1715 * status code, for each BSSID in the list, in the response. The 1716 * acceptable candidates are listed in the order preferred by the 1717 * driver. 1718 */ 1719 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37, 1720 /* 1721 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 1722 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode. 1723 */ 1724 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38, 1725 /* 1726 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 1727 * to define the number of antennas to use for BRP. 1728 * different purpose in each ANT_LIMIT_MODE: 1729 * DISABLE - ignored 1730 * EFFECTIVE - upper limit to number of antennas to be used 1731 * FORCE - exact number of antennas to be used 1732 * unsigned 8 bit value 1733 */ 1734 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39, 1735 /* 1736 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1737 * to report the corresponding antenna index to the chain RSSI value 1738 */ 1739 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40, 1740 /* 1741 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1742 * to report the specific antenna EVM value (unsigned 32 bit value). 1743 * With a determinate group of antennas, the driver specifies the 1744 * EVM value for each antenna ID, and application extract them 1745 * in user space. 1746 */ 1747 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41, 1748 /* 1749 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report 1750 * wlan firmware current state. FW state is an unsigned 8 bit value, 1751 * one of the values in enum qca_wlan_vendor_attr_fw_state. 1752 */ 1753 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42, 1754 1755 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the 1756 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the 1757 * integer values of enum qca_set_band till QCA_SETBAND_2G are valid. 1758 * This attribute shall consider the bitmask combinations to define 1759 * the respective Band combinations and always takes precedence over 1760 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE. 1761 */ 1762 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43, 1763 1764 /* keep last */ 1765 QCA_WLAN_VENDOR_ATTR_AFTER_LAST, 1766 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1 1767 }; 1768 1769 enum qca_wlan_vendor_attr_extscan_config_params { 1770 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0, 1771 1772 /* Unsigned 32-bit value */ 1773 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1, 1774 1775 /* 1776 * Attributes for data used by 1777 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command. 1778 */ 1779 1780 /* Unsigned 32-bit value */ 1781 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND 1782 = 2, 1783 /* Unsigned 32-bit value */ 1784 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS 1785 = 3, 1786 1787 /* 1788 * Attributes for input params used by 1789 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command. 1790 */ 1791 1792 /* Unsigned 32-bit value; channel frequency */ 1793 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4, 1794 /* Unsigned 32-bit value; dwell time in ms. */ 1795 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5, 1796 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */ 1797 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6, 1798 /* Unsigned 8-bit value; channel class */ 1799 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7, 1800 1801 /* Unsigned 8-bit value; bucket index, 0 based */ 1802 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8, 1803 /* Unsigned 8-bit value; band. */ 1804 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9, 1805 /* Unsigned 32-bit value; desired period, in ms. */ 1806 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10, 1807 /* Unsigned 8-bit value; report events semantics. */ 1808 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11, 1809 /* 1810 * Unsigned 32-bit value. Followed by a nested array of 1811 * EXTSCAN_CHANNEL_SPEC_* attributes. 1812 */ 1813 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12, 1814 1815 /* 1816 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes. 1817 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 1818 */ 1819 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13, 1820 1821 /* Unsigned 32-bit value; base timer period in ms. */ 1822 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14, 1823 /* 1824 * Unsigned 32-bit value; number of APs to store in each scan in the 1825 * BSSID/RSSI history buffer (keep the highest RSSI APs). 1826 */ 1827 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15, 1828 /* 1829 * Unsigned 8-bit value; in %, when scan buffer is this much full, wake 1830 * up AP. 1831 */ 1832 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT 1833 = 16, 1834 1835 /* 1836 * Unsigned 8-bit value; number of scan bucket specs; followed by a 1837 * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size 1838 * of the array is determined by NUM_BUCKETS. 1839 */ 1840 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17, 1841 1842 /* 1843 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes. 1844 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS 1845 */ 1846 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18, 1847 1848 /* Unsigned 8-bit value */ 1849 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH 1850 = 19, 1851 /* Unsigned 32-bit value; maximum number of results to be returned. */ 1852 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX 1853 = 20, 1854 1855 /* An array of 6 x unsigned 8-bit value */ 1856 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21, 1857 /* Signed 32-bit value */ 1858 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22, 1859 /* Signed 32-bit value */ 1860 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23, 1861 /* Unsigned 32-bit value */ 1862 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24, 1863 1864 /* 1865 * Number of hotlist APs as unsigned 32-bit value, followed by a nested 1866 * array of AP_THRESHOLD_PARAM attributes and values. The size of the 1867 * array is determined by NUM_AP. 1868 */ 1869 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25, 1870 1871 /* 1872 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes. 1873 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 1874 */ 1875 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26, 1876 1877 /* Unsigned 32-bit value; number of samples for averaging RSSI. */ 1878 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE 1879 = 27, 1880 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 1881 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE 1882 = 28, 1883 /* Unsigned 32-bit value; number of APs breaching threshold. */ 1884 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29, 1885 /* 1886 * Unsigned 32-bit value; number of APs. Followed by an array of 1887 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP. 1888 */ 1889 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30, 1890 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 1891 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE 1892 = 31, 1893 /* 1894 * Unsigned 32-bit value. If max_period is non zero or different than 1895 * period, then this bucket is an exponential backoff bucket. 1896 */ 1897 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32, 1898 /* Unsigned 32-bit value. */ 1899 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33, 1900 /* 1901 * Unsigned 32-bit value. For exponential back off bucket, number of 1902 * scans to perform for a given period. 1903 */ 1904 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34, 1905 /* 1906 * Unsigned 8-bit value; in number of scans, wake up AP after these 1907 * many scans. 1908 */ 1909 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS 1910 = 35, 1911 1912 /* 1913 * Attributes for data used by 1914 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command. 1915 */ 1916 1917 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */ 1918 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE 1919 = 36, 1920 /* 1921 * Number of hotlist SSIDs as unsigned 32-bit value, followed by a 1922 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The 1923 * size of the array is determined by NUM_SSID. 1924 */ 1925 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37, 1926 /* 1927 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_* 1928 * attributes. 1929 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID 1930 */ 1931 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38, 1932 1933 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */ 1934 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39, 1935 /* Unsigned 8-bit value */ 1936 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40, 1937 /* Signed 32-bit value */ 1938 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41, 1939 /* Signed 32-bit value */ 1940 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42, 1941 /* Unsigned 32-bit value; a bitmask with additional extscan config flag. 1942 */ 1943 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43, 1944 1945 /* keep last */ 1946 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST, 1947 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX = 1948 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1, 1949 }; 1950 1951 enum qca_wlan_vendor_attr_extscan_results { 1952 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0, 1953 1954 /* 1955 * Unsigned 32-bit value; must match the request Id supplied by 1956 * Wi-Fi HAL in the corresponding subcmd NL msg. 1957 */ 1958 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1, 1959 1960 /* 1961 * Unsigned 32-bit value; used to indicate the status response from 1962 * firmware/driver for the vendor sub-command. 1963 */ 1964 QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2, 1965 1966 /* 1967 * EXTSCAN Valid Channels attributes */ 1968 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */ 1969 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3, 1970 /* 1971 * An array of NUM_CHANNELS x unsigned 32-bit value integers 1972 * representing channel numbers. 1973 */ 1974 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4, 1975 1976 /* EXTSCAN Capabilities attributes */ 1977 1978 /* Unsigned 32-bit value */ 1979 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5, 1980 /* Unsigned 32-bit value */ 1981 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6, 1982 /* Unsigned 32-bit value */ 1983 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN 1984 = 7, 1985 /* Unsigned 32-bit value */ 1986 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE 1987 = 8, 1988 /* Signed 32-bit value */ 1989 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD 1990 = 9, 1991 /* Unsigned 32-bit value */ 1992 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10, 1993 /* Unsigned 32-bit value */ 1994 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS 1995 = 11, 1996 /* Unsigned 32-bit value */ 1997 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES 1998 = 12, 1999 2000 /* 2001 * EXTSCAN Attributes used with 2002 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command. 2003 */ 2004 2005 /* Unsigned 32-bit value */ 2006 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13, 2007 2008 /* 2009 * EXTSCAN attributes used with 2010 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command. 2011 */ 2012 2013 /* 2014 * An array of NUM_RESULTS_AVAILABLE x 2015 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_* 2016 */ 2017 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14, 2018 2019 /* Unsigned 64-bit value; age of sample at the time of retrieval */ 2020 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15, 2021 /* 33 x unsigned 8-bit value; NULL terminated SSID */ 2022 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16, 2023 /* An array of 6 x unsigned 8-bit value */ 2024 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17, 2025 /* Unsigned 32-bit value; channel frequency in MHz */ 2026 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18, 2027 /* Signed 32-bit value */ 2028 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19, 2029 /* Unsigned 32-bit value */ 2030 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20, 2031 /* Unsigned 32-bit value */ 2032 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21, 2033 /* Unsigned 16-bit value */ 2034 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22, 2035 /* Unsigned 16-bit value */ 2036 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23, 2037 /* Unsigned 32-bit value; size of the IE DATA blob */ 2038 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24, 2039 /* 2040 * An array of IE_LENGTH x unsigned 8-bit value; blob of all the 2041 * information elements found in the beacon; this data should be a 2042 * packed list of wifi_information_element objects, one after the 2043 * other. 2044 */ 2045 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25, 2046 2047 /* 2048 * Unsigned 8-bit value; set by driver to indicate more scan results are 2049 * available. 2050 */ 2051 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26, 2052 2053 /* 2054 * EXTSCAN attributes for 2055 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command. 2056 */ 2057 /* Unsigned 8-bit value */ 2058 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27, 2059 /* Unsigned 32-bit value */ 2060 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28, 2061 2062 /* 2063 * EXTSCAN attributes for 2064 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command. 2065 */ 2066 /* 2067 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE 2068 * to indicate number of results. 2069 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the 2070 * list of results. 2071 */ 2072 2073 /* 2074 * EXTSCAN attributes for 2075 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command. 2076 */ 2077 /* An array of 6 x unsigned 8-bit value */ 2078 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29, 2079 /* Unsigned 32-bit value */ 2080 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL 2081 = 30, 2082 /* Unsigned 32-bit value. */ 2083 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI 2084 = 31, 2085 /* 2086 * A nested array of signed 32-bit RSSI values. Size of the array is 2087 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI. 2088 */ 2089 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST 2090 = 32, 2091 2092 /* 2093 * EXTSCAN attributes used with 2094 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command. 2095 */ 2096 /* 2097 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE 2098 * to indicate number of extscan cached results returned. 2099 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate 2100 * the list of extscan cached results. 2101 */ 2102 2103 /* 2104 * An array of NUM_RESULTS_AVAILABLE x 2105 * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_* 2106 */ 2107 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33, 2108 /* Unsigned 32-bit value; a unique identifier for the scan unit. */ 2109 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34, 2110 /* 2111 * Unsigned 32-bit value; a bitmask w/additional information about scan. 2112 */ 2113 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35, 2114 /* 2115 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE 2116 * to indicate number of wifi scan results/bssids retrieved by the scan. 2117 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the 2118 * list of wifi scan results returned for each cached result block. 2119 */ 2120 2121 /* 2122 * EXTSCAN attributes for 2123 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command. 2124 */ 2125 /* 2126 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for 2127 * number of results. 2128 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested 2129 * list of wifi scan results returned for each 2130 * wifi_passpoint_match_result block. 2131 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE. 2132 */ 2133 2134 /* 2135 * EXTSCAN attributes for 2136 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command. 2137 */ 2138 /* Unsigned 32-bit value */ 2139 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES 2140 = 36, 2141 /* 2142 * A nested array of 2143 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_* 2144 * attributes. Array size = 2145 * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES. 2146 */ 2147 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37, 2148 2149 /* Unsigned 32-bit value; network block id for the matched network */ 2150 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38, 2151 /* 2152 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested 2153 * list of wifi scan results returned for each 2154 * wifi_passpoint_match_result block. 2155 */ 2156 /* Unsigned 32-bit value */ 2157 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39, 2158 /* 2159 * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values; 2160 * ANQP data in the information_element format. 2161 */ 2162 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40, 2163 2164 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2165 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41, 2166 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2167 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42, 2168 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2169 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID 2170 = 43, 2171 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2172 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID 2173 = 44, 2174 2175 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45, 2176 QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46, 2177 2178 /* keep last */ 2179 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST, 2180 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX = 2181 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1, 2182 }; 2183 2184 /** 2185 * enum qca_vendor_interop_issues_ap_type - interop issues type 2186 * This enum defines the valid set of values of interop issues type. These 2187 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE. 2188 * 2189 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue 2190 * when the STA's Qpower feature is enabled. 2191 */ 2192 enum qca_vendor_interop_issues_ap_type { 2193 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0, 2194 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1, 2195 }; 2196 2197 /** 2198 * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues 2199 * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP. 2200 * 2201 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value 2202 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type 2203 * 32-bit unsigned value, The type defined in enum 2204 * qca_vendor_interop_issues_ap_type are used. 2205 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container 2206 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes, 2207 * it is present and mandatory for the command but is not used for 2208 * the event since only a single BSSID is reported in an event. 2209 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid 2210 * 6-byte MAC address. It is used within the nested 2211 * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case 2212 * and without such encapsulation in the event case. 2213 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value 2214 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value 2215 */ 2216 enum qca_vendor_attr_interop_issues_ap { 2217 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID, 2218 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE, 2219 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST, 2220 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID, 2221 /* keep last */ 2222 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST, 2223 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX = 2224 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1 2225 }; 2226 2227 #ifdef WLAN_FEATURE_LINK_LAYER_STATS 2228 2229 /** 2230 * enum qca_wlan_vendor_attr_ll_stats_set - vendor attribute set stats 2231 * 2232 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID: Invalid initial value 2233 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD: Size threshold 2234 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING: 2235 * Aggressive stats gathering 2236 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST: After last 2237 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX: Max value 2238 */ 2239 enum qca_wlan_vendor_attr_ll_stats_set { 2240 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0, 2241 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1, 2242 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING, 2243 /* keep last */ 2244 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST, 2245 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX = 2246 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1 2247 }; 2248 2249 /** 2250 * enum qca_wlan_vendor_attr_ll_stats_get - vendor attribute get stats 2251 * 2252 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID: Invalid initial value 2253 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID: Unsigned 32bit value 2254 * provided by the caller issuing the GET stats command. When reporting 2255 * the stats results, the driver uses the same value to indicate which 2256 * GET request the results correspond to. 2257 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK: Get config request mask 2258 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask 2259 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response 2260 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST: After last 2261 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX: Max value 2262 */ 2263 enum qca_wlan_vendor_attr_ll_stats_get { 2264 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0, 2265 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID, 2266 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK, 2267 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST, 2268 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX = 2269 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1 2270 }; 2271 2272 /** 2273 * enum qca_wlan_vendor_attr_ll_stats_clr - vendor attribute clear stats 2274 * 2275 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID: Invalid initial value 2276 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK: Config request mask 2277 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ: Config stop mask 2278 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK: Config response mask 2279 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP: Config stop response 2280 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST: After last 2281 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX: Max value 2282 */ 2283 enum qca_wlan_vendor_attr_ll_stats_clr { 2284 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0, 2285 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK, 2286 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ, 2287 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK, 2288 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP, 2289 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST, 2290 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX = 2291 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1 2292 }; 2293 2294 /** 2295 * enum qca_wlan_vendor_attr_ll_stats_results_type - ll stats result type 2296 * 2297 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID: Initial invalid value 2298 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO: Link layer stats type radio 2299 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE: Link layer stats type interface 2300 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER: Link layer stats type peer 2301 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST: Last value 2302 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX: Max value 2303 */ 2304 enum qca_wlan_vendor_attr_ll_stats_results_type { 2305 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_INVALID = 0, 2306 2307 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO = 1, 2308 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_IFACE, 2309 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_PEER, 2310 2311 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST, 2312 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_MAX = 2313 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_AFTER_LAST - 1 2314 }; 2315 2316 enum qca_wlan_vendor_attr_ll_stats_results { 2317 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0, 2318 /* Unsigned 32bit value. Used by the driver; must match the request id 2319 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command. 2320 */ 2321 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1, 2322 2323 /* Unsigned 32 bit value */ 2324 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2, 2325 /* Unsigned 32 bit value */ 2326 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3, 2327 /* Unsigned 32 bit value */ 2328 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4, 2329 /* Unsigned 32 bit value */ 2330 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5, 2331 /* Signed 32 bit value */ 2332 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6, 2333 /* Signed 32 bit value */ 2334 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7, 2335 /* Signed 32 bit value */ 2336 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8, 2337 2338 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are 2339 * nested within the interface stats. 2340 */ 2341 2342 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc. 2343 * Type = enum wifi_interface_mode. 2344 */ 2345 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9, 2346 /* Interface MAC address. An array of 6 Unsigned int8 */ 2347 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10, 2348 /* Type = enum wifi_connection_state, e.g., DISCONNECTED, 2349 * AUTHENTICATING, etc. valid for STA, CLI only. 2350 */ 2351 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11, 2352 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE 2353 */ 2354 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12, 2355 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */ 2356 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13, 2357 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */ 2358 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14, 2359 /* BSSID. An array of 6 unsigned 8 bit values */ 2360 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15, 2361 /* Country string advertised by AP. An array of 3 unsigned 8 bit 2362 * values. 2363 */ 2364 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16, 2365 /* Country string for this association. An array of 3 unsigned 8 bit 2366 * values. 2367 */ 2368 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17, 2369 2370 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could 2371 * be nested within the interface stats. 2372 */ 2373 2374 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */ 2375 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18, 2376 /* Unsigned int 32 value corresponding to respective AC */ 2377 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19, 2378 /* Unsigned int 32 value corresponding to respective AC */ 2379 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20, 2380 /* Unsigned int 32 value corresponding to respective AC */ 2381 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21, 2382 /* Unsigned int 32 value corresponding to respective AC */ 2383 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22, 2384 /* Unsigned int 32 value corresponding to respective AC */ 2385 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23, 2386 /* Unsigned int 32 value corresponding to respective AC */ 2387 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24, 2388 /* Unsigned int 32 value corresponding to respective AC */ 2389 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25, 2390 /* Unsigned int 32 value corresponding to respective AC */ 2391 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26, 2392 /* Unsigned int 32 value corresponding to respective AC */ 2393 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27, 2394 /* Unsigned int 32 values corresponding to respective AC */ 2395 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28, 2396 /* Unsigned int 32 values corresponding to respective AC */ 2397 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29, 2398 /* Unsigned int 32 values corresponding to respective AC */ 2399 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30, 2400 /* Unsigned int 32 values corresponding to respective AC */ 2401 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31, 2402 /* Unsigned int 32 values corresponding to respective AC */ 2403 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32, 2404 /* Unsigned 32 bit value. Number of peers */ 2405 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33, 2406 2407 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are 2408 * nested within the interface stats. 2409 */ 2410 2411 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */ 2412 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34, 2413 /* MAC addr corresponding to respective peer. An array of 6 unsigned 2414 * 8 bit values. 2415 */ 2416 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35, 2417 /* Unsigned int 32 bit value representing capabilities corresponding 2418 * to respective peer. 2419 */ 2420 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36, 2421 /* Unsigned 32 bit value. Number of rates */ 2422 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37, 2423 2424 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 2425 * are nested within the rate stat. 2426 */ 2427 2428 /* Wi-Fi Rate - separate attributes defined for individual fields */ 2429 2430 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */ 2431 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38, 2432 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */ 2433 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39, 2434 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */ 2435 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40, 2436 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std 2437 * in the units of 0.5 Mbps HT/VHT it would be MCS index 2438 */ 2439 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41, 2440 2441 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */ 2442 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42, 2443 2444 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be 2445 * nested within the peer info stats. 2446 */ 2447 2448 /* Unsigned int 32 bit value. Number of successfully transmitted data 2449 * packets, i.e., with ACK received corresponding to the respective 2450 * rate. 2451 */ 2452 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43, 2453 /* Unsigned int 32 bit value. Number of received data packets 2454 * corresponding to the respective rate. 2455 */ 2456 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44, 2457 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK 2458 * received corresponding to the respective rate. 2459 */ 2460 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45, 2461 /* Unsigned int 32 bit value. Total number of data packet retries for 2462 * the respective rate. 2463 */ 2464 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46, 2465 /* Unsigned int 32 bit value. Total number of short data packet retries 2466 * for the respective rate. 2467 */ 2468 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47, 2469 /* Unsigned int 32 bit value. Total number of long data packet retries 2470 * for the respective rate. 2471 */ 2472 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48, 2473 2474 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49, 2475 /* Unsigned 32 bit value. Total number of msecs the radio is awake 2476 * accruing over time. 2477 */ 2478 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50, 2479 /* Unsigned 32 bit value. Total number of msecs the radio is 2480 * transmitting accruing over time. 2481 */ 2482 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51, 2483 /* Unsigned 32 bit value. Total number of msecs the radio is in active 2484 * receive accruing over time. 2485 */ 2486 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52, 2487 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2488 * to all scan accruing over time. 2489 */ 2490 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53, 2491 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2492 * to NAN accruing over time. 2493 */ 2494 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54, 2495 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2496 * to GSCAN accruing over time. 2497 */ 2498 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55, 2499 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2500 * to roam scan accruing over time. 2501 */ 2502 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56, 2503 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2504 * to PNO scan accruing over time. 2505 */ 2506 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57, 2507 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2508 * to Hotspot 2.0 scans and GAS exchange accruing over time. 2509 */ 2510 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58, 2511 /* Unsigned 32 bit value. Number of channels. */ 2512 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59, 2513 2514 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could 2515 * be nested within the channel stats. 2516 */ 2517 2518 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */ 2519 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60, 2520 /* Unsigned 32 bit value. Primary 20 MHz channel. */ 2521 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61, 2522 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */ 2523 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62, 2524 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */ 2525 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63, 2526 2527 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be 2528 * nested within the radio stats. 2529 */ 2530 2531 /* Unsigned int 32 bit value representing total number of msecs the 2532 * radio is awake on that channel accruing over time, corresponding to 2533 * the respective channel. 2534 */ 2535 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64, 2536 /* Unsigned int 32 bit value representing total number of msecs the CCA 2537 * register is busy accruing over time corresponding to the respective 2538 * channel. 2539 */ 2540 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65, 2541 2542 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66, 2543 2544 /* Signifies the nested list of channel attributes 2545 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* 2546 */ 2547 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67, 2548 2549 /* Signifies the nested list of peer info attributes 2550 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* 2551 */ 2552 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68, 2553 2554 /* Signifies the nested list of rate info attributes 2555 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 2556 */ 2557 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69, 2558 2559 /* Signifies the nested list of wmm info attributes 2560 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* 2561 */ 2562 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70, 2563 2564 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates 2565 * that more stats, e.g., peers or radio, are to follow in the next 2566 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event. 2567 * Otherwise, it is set to 0. 2568 */ 2569 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71, 2570 2571 /* Unsigned 64 bit value */ 2572 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72, 2573 2574 /* Unsigned 32 bit value */ 2575 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73, 2576 2577 /* Unsigned 32 bit value */ 2578 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74, 2579 2580 /* Unsigned 32 bit value */ 2581 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75, 2582 2583 /* Unsigned 32 bit value */ 2584 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76, 2585 2586 /* Unsigned 32 bit value */ 2587 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77, 2588 2589 /* Number of msecs the radio spent in transmitting for each power level 2590 */ 2591 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78, 2592 2593 /* Unsigned 32 bit value */ 2594 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79, 2595 /* Unsigned 32 bit value */ 2596 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80, 2597 /* Unsigned 32 bit value */ 2598 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81, 2599 /* Unsigned 32 bit value */ 2600 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82, 2601 2602 /* Unsigned int 32 value. 2603 * Pending MSDUs corresponding to respective AC. 2604 */ 2605 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83, 2606 2607 /* u32 value representing total time in milliseconds for which the radio 2608 * is transmitting on this channel. This attribute will be nested 2609 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO. 2610 */ 2611 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84, 2612 /* u32 value representing total time in milliseconds for which the radio 2613 * is receiving all 802.11 frames intended for this device on this 2614 * channel. This attribute will be nested within 2615 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO. 2616 */ 2617 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85, 2618 /* u8 value representing the channel load percentage. Possible values 2619 * are 0-100. 2620 */ 2621 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86, 2622 /* u8 value representing the time slicing duty cycle percentage. 2623 * Possible values are 0-100. 2624 */ 2625 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87, 2626 /* Unsigned 32 bit value. The number of Beacon frames which are received 2627 * from the associated AP and indicate buffered unicast frame(s) for us 2628 * in the TIM element. 2629 */ 2630 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88, 2631 /* Unsigned 32 bit value. The total number of Beacon frames received 2632 * from the associated AP that have wrongly indicated buffered unicast 2633 * traffic in the TIM element for us. 2634 * Below scenarios will be considered as wrong TIM element beacon: 2635 * 1) The related TIM element is set in the beacon for STA but STA 2636 * doesn’t receive any unicast data after this beacon. 2637 * 2) The related TIM element is still set in the beacon for STA 2638 * after STA has indicated power save exit by QoS Null Data frame. 2639 */ 2640 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89, 2641 2642 /* Signed 32 bit value. It represents the noise floor calibration value. 2643 * Possible values are -120~-50 dBm. 2644 */ 2645 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90, 2646 2647 /* keep last */ 2648 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST, 2649 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX = 2650 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1, 2651 }; 2652 2653 enum qca_wlan_vendor_attr_ll_stats_type { 2654 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0, 2655 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1, 2656 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2, 2657 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3, 2658 2659 /* keep last */ 2660 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST, 2661 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX = 2662 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1, 2663 }; 2664 2665 #endif /* WLAN_FEATURE_LINK_LAYER_STATS */ 2666 2667 /** 2668 * enum qca_wlan_vendor_attr_get_supported_features - get supported feature 2669 * 2670 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value 2671 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value 2672 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last 2673 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value 2674 */ 2675 enum qca_wlan_vendor_attr_get_supported_features { 2676 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0, 2677 QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1, 2678 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST, 2679 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX = 2680 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1, 2681 }; 2682 2683 /** 2684 * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui 2685 * 2686 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value 2687 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit 2688 * value 2689 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last 2690 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value 2691 */ 2692 enum qca_wlan_vendor_attr_set_scanning_mac_oui { 2693 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0, 2694 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1, 2695 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST, 2696 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX = 2697 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1, 2698 }; 2699 2700 /** 2701 * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the 2702 * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take. 2703 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority 2704 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority 2705 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority 2706 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority 2707 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority 2708 */ 2709 enum qca_wlan_vendor_scan_priority { 2710 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0, 2711 QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1, 2712 QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2, 2713 QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3, 2714 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4, 2715 }; 2716 2717 /** 2718 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes 2719 * 2720 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan 2721 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes 2722 * with frequencies to be scanned (in MHz) 2723 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned 2724 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported 2725 * rates to be included 2726 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests 2727 * at non CCK rate in 2GHz band 2728 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags 2729 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the 2730 * driver for the specific scan request 2731 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan 2732 * request decoded as in enum scan_status 2733 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation 2734 * scan flag is set 2735 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with 2736 * randomisation 2737 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the 2738 * specific BSSID to scan for. 2739 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in 2740 * microseconds. This is a common value which applies across all 2741 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES. 2742 * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to 2743 * other scan requests. It is a u32 attribute and takes values from enum 2744 * qca_wlan_vendor_scan_priority. This is an optional attribute. 2745 * If this attribute is not configured, the driver shall use 2746 * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan. 2747 */ 2748 enum qca_wlan_vendor_attr_scan { 2749 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0, 2750 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1, 2751 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2, 2752 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3, 2753 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4, 2754 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5, 2755 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6, 2756 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7, 2757 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8, 2758 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9, 2759 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10, 2760 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11, 2761 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12, 2762 QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13, 2763 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST, 2764 QCA_WLAN_VENDOR_ATTR_SCAN_MAX = 2765 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1 2766 }; 2767 2768 /** 2769 * enum scan_status - Specifies the valid values the vendor scan attribute 2770 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take 2771 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with 2772 * new scan results 2773 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between 2774 */ 2775 enum scan_status { 2776 VENDOR_SCAN_STATUS_NEW_RESULTS, 2777 VENDOR_SCAN_STATUS_ABORTED, 2778 VENDOR_SCAN_STATUS_MAX, 2779 }; 2780 2781 /** 2782 * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix 2783 * 2784 * NL attributes for data used by 2785 * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command. 2786 * 2787 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value 2788 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX: 2789 * Unsigned 32-bit value 2790 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE: 2791 * Unsigned 32-bit value 2792 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An 2793 * array of SET_SIZE x Unsigned 32bit values representing concurrency 2794 * combinations 2795 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last 2796 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value 2797 */ 2798 enum qca_wlan_vendor_attr_get_concurrency_matrix { 2799 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0, 2800 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX 2801 = 1, 2802 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2, 2803 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3, 2804 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST, 2805 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX = 2806 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1, 2807 }; 2808 2809 /** 2810 * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag 2811 * 2812 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value 2813 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value 2814 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last 2815 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value 2816 */ 2817 enum qca_wlan_vendor_attr_set_no_dfs_flag { 2818 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0, 2819 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1, 2820 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST, 2821 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX = 2822 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1, 2823 }; 2824 2825 /** 2826 * enum qca_vendor_attr_wisa_cmd 2827 * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr 2828 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32) 2829 * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last 2830 * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value 2831 * WISA setup vendor commands 2832 */ 2833 enum qca_vendor_attr_wisa_cmd { 2834 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0, 2835 QCA_WLAN_VENDOR_ATTR_WISA_MODE, 2836 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST, 2837 QCA_WLAN_VENDOR_ATTR_WISA_MAX = 2838 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1 2839 }; 2840 2841 enum qca_roaming_policy { 2842 QCA_ROAMING_NOT_ALLOWED, 2843 QCA_ROAMING_ALLOWED_WITHIN_ESS, 2844 }; 2845 2846 /** 2847 * enum qca_roam_reason - Represents the reason codes for roaming. Used by 2848 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON. 2849 * 2850 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below 2851 * reasons. 2852 * 2853 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached 2854 * the configured threshold. 2855 * 2856 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured 2857 * beacon misses from the then connected AP. 2858 * 2859 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported 2860 * by the connected AP. 2861 * 2862 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a 2863 * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is 2864 * not poor. 2865 * 2866 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel 2867 * or environment being very noisy / congested. 2868 * 2869 * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request 2870 * from the user (user space). 2871 * 2872 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from 2873 * connected AP. 2874 * 2875 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization 2876 * breaching out the configured threshold. 2877 * 2878 * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS 2879 * transition request. 2880 * 2881 * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, 2882 * there is no data activity with the AP and the current rssi falls below a 2883 * certain threshold. 2884 * 2885 * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to 2886 * deauthentication or disassociation frames received from the connected AP. 2887 * 2888 * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic 2889 * scan that happens when there is no candidate AP found during the poor 2890 * RSSI scan trigger. 2891 * 2892 * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan 2893 * results obtained from an external scan (not aimed at roaming). 2894 * 2895 * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth 2896 * connection is established when the station is connected in 2.4 Ghz band. 2897 * 2898 * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame 2899 * failures to the connected AP. 2900 */ 2901 enum qca_roam_reason { 2902 QCA_ROAM_REASON_UNKNOWN, 2903 QCA_ROAM_REASON_PER, 2904 QCA_ROAM_REASON_BEACON_MISS, 2905 QCA_ROAM_REASON_POOR_RSSI, 2906 QCA_ROAM_REASON_BETTER_RSSI, 2907 QCA_ROAM_REASON_CONGESTION, 2908 QCA_ROAM_REASON_USER_TRIGGER, 2909 QCA_ROAM_REASON_BTM, 2910 QCA_ROAM_REASON_BSS_LOAD, 2911 QCA_ROAM_REASON_WTC, 2912 QCA_ROAM_REASON_IDLE, 2913 QCA_ROAM_REASON_DISCONNECTION, 2914 QCA_ROAM_REASON_PERIODIC_TIMER, 2915 QCA_ROAM_REASON_BACKGROUND_SCAN, 2916 QCA_ROAM_REASON_BT_ACTIVITY, 2917 QCA_ROAM_REASON_STA_KICKOUT, 2918 }; 2919 2920 /** 2921 * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming 2922 * 2923 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE 2924 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE 2925 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status 2926 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter 2927 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK 2928 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK 2929 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status 2930 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS: 2931 * Indicates the status of re-association requested by user space for 2932 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID. 2933 * Type u16. 2934 * Represents the status code from AP. Use 2935 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the 2936 * real status code for failures. 2937 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION: 2938 * This attribute indicates that the old association was maintained when 2939 * a re-association is requested by user space and that re-association 2940 * attempt fails (i.e., cannot connect to the requested BSS, but can 2941 * remain associated with the BSS with which the association was in 2942 * place when being requested to roam). Used along with 2943 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current 2944 * re-association status. Type flag. 2945 * This attribute is applicable only for re-association failure cases. 2946 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK 2947 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID 2948 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next 2949 * seq number 2950 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value 2951 * representing the reasons for the roaming. Defined by enum 2952 * qca_roam_reason. 2953 */ 2954 enum qca_wlan_vendor_attr_roam_auth { 2955 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0, 2956 /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address 2957 * of the roamed AP for MLO roaming. 2958 */ 2959 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID, 2960 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE, 2961 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE, 2962 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED, 2963 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR, 2964 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK, 2965 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK, 2966 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS, 2967 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS, 2968 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION, 2969 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK, 2970 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID, 2971 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM, 2972 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON, 2973 /* A nested attribute containing per-link information of all the links 2974 * of MLO connection done while roaming. The attributes used inside this 2975 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links. 2976 */ 2977 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15, 2978 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST, 2979 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX = 2980 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1 2981 }; 2982 2983 /** 2984 * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside 2985 * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS. 2986 * 2987 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link. 2988 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link. 2989 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link. 2990 */ 2991 enum qca_wlan_vendor_attr_mlo_links { 2992 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0, 2993 QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1, 2994 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2, 2995 QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3, 2996 2997 /* Keep last */ 2998 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST, 2999 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX = 3000 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1, 3001 }; 3002 3003 /** 3004 * enum qca_wlan_vendor_attr_wifi_config - wifi config 3005 * 3006 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value 3007 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM 3008 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor 3009 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time 3010 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last 3011 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value 3012 */ 3013 enum qca_wlan_vendor_attr_wifi_config { 3014 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0, 3015 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1, 3016 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2, 3017 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3, 3018 3019 /* keep last */ 3020 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST, 3021 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX = 3022 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1, 3023 }; 3024 3025 /** 3026 * enum qca_wlan_epno_type - the type of request to the EPNO command 3027 * @QCA_WLAN_EPNO: epno type request 3028 * @QCA_WLAN_PNO: pno type request 3029 */ 3030 enum qca_wlan_epno_type { 3031 QCA_WLAN_EPNO, 3032 QCA_WLAN_PNO 3033 }; 3034 3035 /** 3036 * enum qca_wlan_vendor_attr_pno_config_params - pno config params 3037 * 3038 * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value 3039 * 3040 * NL attributes for data used by 3041 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command. 3042 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM: 3043 * Unsigned 32-bit value; pno passpoint number of networks 3044 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY: 3045 * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_* 3046 * attributes. Array size = 3047 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM. 3048 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID: 3049 * Unsigned 32-bit value; network id 3050 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM: 3051 * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded 3052 * realm, 0 if unspecified. 3053 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID: 3054 * An array of 16 x Unsigned 32-bit value; roaming consortium ids 3055 * to match, 0 if unspecified. 3056 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN: 3057 * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if 3058 * unspecified. 3059 * 3060 * NL attributes for data used by 3061 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command. 3062 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS: 3063 * Unsigned 32-bit value; set pno number of networks 3064 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST: 3065 * Array of nested 3066 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_* 3067 * attributes. Array size = 3068 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS 3069 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID: 3070 * An array of 33 x Unsigned 8-bit value; NULL terminated SSID 3071 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD: 3072 * Signed 8-bit value; threshold for considering this SSID as found, 3073 * required granularity for this threshold is 4dBm to 8dBm 3074 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS: 3075 * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX 3076 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT: 3077 * Unsigned 8-bit value; auth bit field for matching WPA IE 3078 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE 3079 * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type 3080 *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST 3081 * Nested attribute to send the channel list 3082 *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL 3083 * Unsigned 32-bit value; indicates the Interval between PNO scan 3084 * cycles in msec 3085 *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI 3086 * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered 3087 *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI 3088 * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered 3089 * This attribute is obsolete now. 3090 *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX 3091 * Signed 32-bit value; the maximum score that a network 3092 * can have before bonuses 3093 *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS 3094 * Signed 32-bit value; only report when there is a network's 3095 * score this much higher han the current connection 3096 *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS 3097 * Signed 32-bit value; score bonus for all networks with 3098 * the same network flag 3099 *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS 3100 * Signed 32-bit value; score bonus for networks that are not open 3101 *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS 3102 * Signed 32-bit value; 5GHz RSSI score bonus applied to all 3103 * 5GHz networks 3104 *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID 3105 * Unsigned 32-bit value, representing the PNO Request ID 3106 * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last 3107 * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max 3108 */ 3109 enum qca_wlan_vendor_attr_pno_config_params { 3110 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0, 3111 3112 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1, 3113 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2, 3114 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3, 3115 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4, 3116 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5, 3117 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6, 3118 3119 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7, 3120 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8, 3121 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9, 3122 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10, 3123 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11, 3124 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12, 3125 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13, 3126 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14, 3127 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15, 3128 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16, 3129 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17, 3130 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18, 3131 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19, 3132 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20, 3133 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21, 3134 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22, 3135 3136 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23, 3137 /* keep last */ 3138 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST, 3139 QCA_WLAN_VENDOR_ATTR_PNO_MAX = 3140 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1, 3141 }; 3142 3143 /** 3144 * enum qca_scan_freq_list_type: Frequency list types 3145 * 3146 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list 3147 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as 3148 * a preferred frequency list for roaming. 3149 * 3150 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list 3151 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as 3152 * a specific frequency list for roaming. 3153 */ 3154 enum qca_scan_freq_list_type { 3155 QCA_PREFERRED_SCAN_FREQ_LIST = 1, 3156 QCA_SPECIFIC_SCAN_FREQ_LIST = 2, 3157 }; 3158 3159 /** 3160 * enum qca_roam_scan_scheme: scan scheme 3161 * 3162 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan. 3163 * Indicates the driver to not scan on a Roam Trigger scenario, but 3164 * Disconnect.e.g., On a BTM request from the AP driver/firmware shall 3165 * disconnect from the current connected AP by notifying a failure 3166 * code in the BTM response. 3167 * 3168 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to 3169 * trigger partial frequency scans. These frequencies are the ones learnt 3170 * or maintained by the driver based on the probability of finding the 3171 * BSSID's in the ESS for which the roaming is triggered. 3172 * 3173 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to 3174 * trigger the scan on all the valid frequencies to find the better 3175 * candidates to roam. 3176 */ 3177 enum qca_roam_scan_scheme { 3178 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0, 3179 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1, 3180 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2, 3181 }; 3182 3183 /** 3184 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme 3185 * 3186 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values. 3187 * List of frequencies in MHz to be considered for a roam scan. 3188 * 3189 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value. 3190 * Type of frequency list scheme being configured/gotten as defined by the 3191 * enum qca_scan_freq_list_type. 3192 */ 3193 enum qca_vendor_attr_scan_freq_list_scheme { 3194 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1, 3195 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2, 3196 3197 /* keep last */ 3198 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST, 3199 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX = 3200 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1, 3201 }; 3202 3203 /* 3204 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers 3205 * 3206 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on 3207 * a bad packet error rates (PER). 3208 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered 3209 * based on beacon misses from the connected AP. 3210 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered 3211 * due to poor RSSI of the connected AP. 3212 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered 3213 * upon finding a BSSID with a better RSSI than the connected BSSID. 3214 * Here the RSSI of the current BSSID need not be poor. 3215 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered 3216 * by triggering a periodic scan to find a better AP to roam. 3217 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered 3218 * when the connected channel environment is too noisy/congested. 3219 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered 3220 * when BTM Request frame is received from the connected AP. 3221 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered 3222 * when the channel utilization is goes above the configured threshold. 3223 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered 3224 * based on the request from the user (space). 3225 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when 3226 * device receives Deauthentication/Disassociation frame from connected 3227 * AP. 3228 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the 3229 * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI 3230 * is determined to be a poor one. 3231 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered 3232 * based on continuous TX Data Frame failures to the connected AP. 3233 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered 3234 * based on the scan results obtained from an external scan (not 3235 * triggered to aim roaming) 3236 * 3237 * Set the corresponding roam trigger reason bit to consider it for roam 3238 * trigger. 3239 * Userspace can set multiple bits and send to the driver. The driver shall 3240 * consider all of them to trigger/initiate a roam scan. 3241 */ 3242 enum qca_vendor_roam_triggers { 3243 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0, 3244 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1, 3245 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2, 3246 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3, 3247 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4, 3248 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5, 3249 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6, 3250 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7, 3251 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8, 3252 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9, 3253 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10, 3254 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11, 3255 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12, 3256 }; 3257 3258 /* 3259 * enum qca_vendor_roam_fail_reasons: Defines the various roam 3260 * fail reasons. This enum value is used in 3261 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute. 3262 * 3263 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not 3264 * able to trigger the scan. 3265 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan. 3266 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam 3267 * scan. 3268 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host. 3269 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame. 3270 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error 3271 * status code. 3272 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received. 3273 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request 3274 * frame. 3275 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame 3276 * with error status code. 3277 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not 3278 * received. 3279 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan. 3280 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication 3281 * frame. 3282 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped 3283 * internally before transmission. 3284 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation 3285 * Request frame. 3286 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is 3287 * dropped internally. 3288 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and 3289 * times out. 3290 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame. 3291 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped 3292 * internally. 3293 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key 3294 * M2 frame. 3295 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received. 3296 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame. 3297 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped 3298 * internally. 3299 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4 3300 * frame. 3301 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not 3302 * started for final beacon miss case. 3303 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame 3304 * received from the AP during roaming handoff. 3305 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps 3306 * or host is suspended and gives the indication of the last roamed AP only 3307 * when the Apps is resumed. If the Apps is resumed while the roaming is in 3308 * progress, this ongoing roaming is aborted and the last roamed AP is 3309 * indicated to host. 3310 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID. 3311 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times 3312 * out. 3313 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails. 3314 * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the 3315 * current network conditions are fine. 3316 */ 3317 enum qca_vendor_roam_fail_reasons { 3318 QCA_ROAM_FAIL_REASON_NONE = 0, 3319 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1, 3320 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2, 3321 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3, 3322 QCA_ROAM_FAIL_REASON_HOST = 4, 3323 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5, 3324 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6, 3325 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7, 3326 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8, 3327 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9, 3328 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10, 3329 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11, 3330 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12, 3331 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13, 3332 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14, 3333 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15, 3334 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16, 3335 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17, 3336 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18, 3337 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19, 3338 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20, 3339 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21, 3340 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22, 3341 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23, 3342 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24, 3343 QCA_ROAM_FAIL_REASON_DISCONNECT = 25, 3344 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26, 3345 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27, 3346 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28, 3347 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29, 3348 QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30, 3349 }; 3350 3351 /* 3352 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam 3353 * invoke fail reasons. This enum value is used in 3354 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute. 3355 * 3356 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed 3357 * in roam invoke command. 3358 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not 3359 * enabled. 3360 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID 3361 * length is invalid. 3362 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already 3363 * in progress. 3364 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response 3365 * of the AP in the roam invoke command to firmware. This reason is sent by the 3366 * firmware when the given AP is configured to be ignored or SSID/security 3367 * does not match. 3368 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of 3369 * firmware internal reasons. 3370 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled. 3371 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke. 3372 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail. 3373 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid. 3374 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to. 3375 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed. 3376 */ 3377 enum qca_vendor_roam_invoke_fail_reasons { 3378 QCA_ROAM_INVOKE_STATUS_NONE = 0, 3379 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1, 3380 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2, 3381 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3, 3382 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4, 3383 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5, 3384 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6, 3385 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7, 3386 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8, 3387 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9, 3388 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10, 3389 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11, 3390 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12, 3391 3392 }; 3393 3394 /** 3395 * enum qca_vendor_attr_roam_candidate_selection_criteria: 3396 * 3397 * Each attribute carries a weightage in percentage (%). 3398 * 3399 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value. 3400 * Represents the weightage to be given for the RSSI selection 3401 * criteria among other parameters. 3402 * 3403 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value. 3404 * Represents the weightage to be given for the rate selection 3405 * criteria among other parameters. 3406 * 3407 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value. 3408 * Represents the weightage to be given for the band width selection 3409 * criteria among other parameters. 3410 * 3411 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value. 3412 * Represents the weightage to be given for the band selection 3413 * criteria among other parameters. 3414 * 3415 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value. 3416 * Represents the weightage to be given for the NSS selection 3417 * criteria among other parameters. 3418 * 3419 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value. 3420 * Represents the weightage to be given for the channel congestion 3421 * selection criteria among other parameters. 3422 * 3423 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value. 3424 * Represents the weightage to be given for the beamforming selection 3425 * criteria among other parameters. 3426 * 3427 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value. 3428 * Represents the weightage to be given for the OCE selection 3429 * criteria among other parameters. 3430 */ 3431 enum qca_vendor_attr_roam_candidate_selection_criteria { 3432 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1, 3433 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2, 3434 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3, 3435 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4, 3436 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5, 3437 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6, 3438 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7, 3439 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8, 3440 3441 /* keep last */ 3442 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST, 3443 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX = 3444 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1, 3445 }; 3446 3447 /** 3448 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration 3449 * The following attributes are used to set/get/clear the respective 3450 * configurations to/from the driver. 3451 * For the get, the attribute for the configuration to be queried shall 3452 * carry any of its acceptable values to the driver. In return, the driver 3453 * shall send the configured values within the same attribute to the user 3454 * space. 3455 * 3456 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value. 3457 * Signifies to enable/disable roam control in driver. 3458 * 1-enable, 0-disable 3459 * Enable: Mandates the driver to do the further roams using the 3460 * configuration parameters set through 3461 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. 3462 * Disable: Disables the driver/firmware roaming triggered through 3463 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is 3464 * expected to continue with the default configurations. 3465 * 3466 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value. 3467 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET. 3468 * Roam control status is obtained through this attribute. 3469 * 3470 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the 3471 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET 3472 * is to be cleared in the driver. 3473 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR 3474 * and shall be ignored if used with other sub commands. 3475 * If this attribute is specified along with subcmd 3476 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore 3477 * all other attributes, if there are any. 3478 * If this attribute is not specified when the subcmd 3479 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall 3480 * clear the data corresponding to the attributes specified. 3481 * 3482 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the 3483 * list of frequencies and its type, represented by 3484 * enum qca_vendor_attr_scan_freq_list_scheme. 3485 * Frequency list and its type are mandatory for this attribute to set 3486 * the frequencies. 3487 * Frequency type is mandatory for this attribute to get the frequencies 3488 * and the frequency list is obtained through 3489 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST. 3490 * Frequency list type is mandatory for this attribute to clear the 3491 * frequencies. 3492 * 3493 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value. 3494 * Carries the value of scan period in seconds to set. 3495 * The value of scan period is obtained with the same attribute for get. 3496 * Clears the scan period in the driver when specified with clear command. 3497 * Scan period is the idle time in seconds between each subsequent 3498 * channel scans. 3499 * 3500 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value. 3501 * Carries the value of full scan period in seconds to set. 3502 * The value of full scan period is obtained with the same attribute for 3503 * get. 3504 * Clears the full scan period in the driver when specified with clear 3505 * command. Full scan period is the idle period in seconds between two 3506 * successive full channel roam scans. 3507 * 3508 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value. 3509 * Carries a bitmap of the roam triggers specified in 3510 * enum qca_vendor_roam_triggers. 3511 * The driver shall enable roaming by enabling corresponding roam triggers 3512 * based on the trigger bits sent with this attribute. 3513 * If this attribute is not configured, the driver shall proceed with 3514 * default behavior. 3515 * The bitmap configured is obtained with the same attribute for get. 3516 * Clears the bitmap configured in driver when specified with clear 3517 * command. 3518 * 3519 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the 3520 * weightage in percentage (%) to be given for each selection criteria. 3521 * Different roam candidate selection criteria are represented by 3522 * enum qca_vendor_attr_roam_candidate_selection_criteria. 3523 * The driver shall select the roam candidate based on corresponding 3524 * candidate selection scores sent. 3525 * 3526 * An empty nested attribute is used to indicate that no specific 3527 * preference score/criteria is configured (i.e., to disable this mechanism 3528 * in the set case and to show that the mechanism is disabled in the get 3529 * case). 3530 * 3531 * Userspace can send multiple attributes out of this enum to the driver. 3532 * Since this attribute represents the weight/percentage of preference for 3533 * the respective selection criteria, it is preferred to configure 100% 3534 * total weightage. The value in each attribute or cumulative weight of the 3535 * values in all the nested attributes should not exceed 100%. The driver 3536 * shall reject such configuration. 3537 * 3538 * If the weights configured through this attribute are less than 100%, 3539 * the driver shall honor the weights (x%) passed for the corresponding 3540 * selection criteria and choose/distribute rest of the weight (100-x)% 3541 * for the other selection criteria, based on its internal logic. 3542 * 3543 * The selection criteria configured is obtained with the same 3544 * attribute for get. 3545 * 3546 * Clears the selection criteria configured in the driver when specified 3547 * with clear command. 3548 * 3549 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value. 3550 * Represents value of scan frequency scheme from 3551 * enum qca_roam_scan_scheme. 3552 * 3553 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm, 3554 * signifying the RSSI threshold of the current connected AP, indicating 3555 * the driver to trigger roam only when the current connected AP's RSSI 3556 * is lesser than this threshold. 3557 * 3558 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm, 3559 * signifying the RSSI threshold of the candidate AP, indicating 3560 * the driver to trigger roam only to the candidate AP with RSSI 3561 * better than this threshold. If RSSI thresholds for candidate APs found 3562 * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using 3563 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ, 3564 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or 3565 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values 3566 * will take precedence over the value configured using 3567 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute. 3568 * 3569 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the 3570 * user triggered reason code to be sent to the AP in response to AP's 3571 * request to trigger the roam if the roaming cannot be triggered. 3572 * Applies to all the scenarios of AP assisted roaming (e.g., BTM). 3573 * 3574 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value. 3575 * Carries a bitmap of the roam triggers specified in 3576 * enum qca_vendor_roam_triggers. 3577 * Represents the roam triggers for which the specific scan scheme from 3578 * enum qca_roam_scan_scheme has to be applied. 3579 * It's an optional attribute. If this attribute is not configured, but 3580 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme 3581 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for 3582 * all the roams. 3583 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and 3584 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the 3585 * driver shall proceed with the default behavior. 3586 * 3587 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value 3588 * in dBm, signifying the RSSI threshold of the candidate AP found in 3589 * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate 3590 * AP found in 2.4GHz band only if it's RSSI value is better than this 3591 * threshold. Optional attribute. If this attribute is not included, then 3592 * threshold value specified by the 3593 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 3594 * 3595 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in 3596 * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz 3597 * band. The driver/firmware shall trigger roaming to the candidate AP 3598 * found in 5GHz band only if it's RSSI value is better than this 3599 * threshold. Optional attribute. If this attribute is not included, then 3600 * threshold value specified by the 3601 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 3602 * 3603 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in 3604 * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz 3605 * band. The driver/firmware shall trigger roaming to the candidate AP 3606 * found in 6GHz band only if it's RSSI value is better than this 3607 * threshold. Optional attribute. If this attribute is not included, then 3608 * threshold value specified by the 3609 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 3610 * 3611 * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value. 3612 * Carries bitmask value of bits from &enum qca_set_band and represents 3613 * all the bands in which roaming is allowed. The configuration is valid 3614 * until next disconnection. If this attribute is not present, the 3615 * existing configuration shall be used. By default, roaming is allowed 3616 * on all bands supported by local device. When the value is set to 3617 * %QCA_SETBAND_AUTO, all supported bands shall be enabled. 3618 * 3619 * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps. 3620 * Optional parameter. RX link speed threshold to disable roaming. 3621 * If the current RX link speed is above the threshold, roaming is not 3622 * needed. If this attribute is not configured, or if it is set to 0, the 3623 * driver will not consider the RX link speed in the roaming decision. 3624 * 3625 * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds. 3626 * Optional parameter. This configuration delays hand-off (in msec) by the 3627 * specified duration to receive pending rx frames from current BSS. 3628 * 3629 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit 3630 * value. 3631 * During the roam scan, if there are no desired APs found in the partial 3632 * frequency list, an immediate full scan on all the supported frequencies 3633 * is initiated as a fallback. This flag controls the frequency list 3634 * creation for the full scan on the following lines. 3635 * 1 - Full scan to exclude the frequencies that were already scanned by 3636 * the previous partial scan. 3637 * 0 - Full scan to include all the supported frequencies irrespective of 3638 * the ones part of the earlier partial scan. 3639 * If this flag is not specified, a full scan shall include all the 3640 * supported frequencies irrespective of the ones part of an earlier 3641 * partial scan. 3642 * 3643 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit 3644 * value. 3645 * During the roam scan, if there are no desired APs found in the partial 3646 * frequency list, an immediate full scan on all the supported frequencies 3647 * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz 3648 * frequencies, including all PSC frequencies by default. This attribute 3649 * controls the inclusion of the 6 GHz PSC frequencies for the full scan 3650 * as following. 3651 * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the 3652 * prior discovery of any 6 GHz frequency support in the environment. 3653 * This discovery can happen through a prior RNR, 11k neighbor 3654 * request, 11v BTM request, host scan, etc. 3655 * 0 - Default behavior. Full scan to include all the supported 6 GHz 3656 * PSC frequencies regardless of whether 6 GHz BSSs have been 3657 * discovered. 3658 * The default behavior if this flag is not specified is to include all 3659 * the supported 6 GHz PSC frequencies in the roam full scan. 3660 */ 3661 enum qca_vendor_attr_roam_control { 3662 QCA_ATTR_ROAM_CONTROL_ENABLE = 1, 3663 QCA_ATTR_ROAM_CONTROL_STATUS = 2, 3664 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3, 3665 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4, 3666 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5, 3667 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6, 3668 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7, 3669 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8, 3670 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9, 3671 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10, 3672 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11, 3673 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12, 3674 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13, 3675 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14, 3676 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15, 3677 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16, 3678 QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17, 3679 QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24, 3680 QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25, 3681 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26, 3682 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27, 3683 3684 /* keep last */ 3685 QCA_ATTR_ROAM_CONTROL_AFTER_LAST, 3686 QCA_ATTR_ROAM_CONTROL_MAX = 3687 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1, 3688 }; 3689 3690 /** 3691 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by 3692 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command. 3693 * 3694 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value. 3695 * Represents the different roam sub commands referred by 3696 * enum qca_wlan_vendor_roaming_subcmd. 3697 * 3698 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value. 3699 * Represents the Request ID for the specific set of commands. 3700 * This also helps to map specific set of commands to the respective 3701 * ID / client. e.g., helps to identify the user entity configuring the 3702 * Blacklist BSSID and accordingly clear the respective ones with the 3703 * matching ID. 3704 * 3705 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned 3706 * 32-bit value.Represents the number of whitelist SSIDs configured. 3707 * 3708 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute 3709 * to carry the list of Whitelist SSIDs. 3710 * 3711 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute, 3712 * 0..32 octets). Represents the white list SSID. Whitelist SSIDs 3713 * represent the list of SSIDs to which the firmware/driver can consider 3714 * to roam to. 3715 * 3716 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when 3717 * comparing with a 2.4GHz BSSID. They are not applied when comparing two 3718 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD - 3719 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS. 3720 * 3721 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit 3722 * value, RSSI threshold above which 5GHz RSSI is favored. 3723 * 3724 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit 3725 * value, RSSI threshold below which 5GHz RSSI is penalized. 3726 * 3727 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit 3728 * value, factor by which 5GHz RSSI is boosted. 3729 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor 3730 * 3731 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit 3732 * value, factor by which 5GHz RSSI is penalized. 3733 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor 3734 * 3735 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit 3736 * value, maximum boost that can be applied to a 5GHz RSSI. 3737 * 3738 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit 3739 * value, boost applied to current BSSID to ensure the currently 3740 * associated BSSID is favored so as to prevent ping-pong situations. 3741 * 3742 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit 3743 * value, RSSI below which "Alert" roam is enabled. 3744 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID 3745 * because the RSSI is low, or because many successive beacons have been 3746 * lost or other bad link conditions. 3747 * 3748 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit 3749 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where 3750 * firmware is hunting for a better BSSID or white listed SSID even though 3751 * the RSSI of the link is good. The parameters enabling the roaming are 3752 * configured through the PARAM_A_BAND_XX attrbutes. 3753 * 3754 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute, 3755 * represents the BSSIDs preferred over others while evaluating them 3756 * for the roaming. 3757 * 3758 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned 3759 * 32-bit value. Represents the number of preferred BSSIDs set. 3760 * 3761 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC 3762 * address representing the BSSID to be preferred. 3763 * 3764 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed 3765 * 32-bit value, representing the modifier to be applied to the RSSI of 3766 * the BSSID for the purpose of comparing it with other roam candidate. 3767 * 3768 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute, 3769 * represents the BSSIDs to get blacklisted for roaming. 3770 * 3771 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned 3772 * 32-bit value, represents the number of blacklisted BSSIDs. 3773 * 3774 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC 3775 * address representing the Blacklisted BSSID. 3776 * 3777 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute, 3778 * indicates this BSSID blacklist as a hint to the driver. The driver can 3779 * select this BSSID in the worst case (when no other BSSIDs are better). 3780 * 3781 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to 3782 * set/get/clear the roam control config as 3783 * defined @enum qca_vendor_attr_roam_control. 3784 * 3785 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last 3786 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max 3787 */ 3788 enum qca_wlan_vendor_attr_roaming_config_params { 3789 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0, 3790 3791 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1, 3792 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2, 3793 3794 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3, 3795 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4, 3796 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5, 3797 3798 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6, 3799 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7, 3800 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8, 3801 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9, 3802 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10, 3803 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11, 3804 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12, 3805 3806 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13, 3807 3808 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14, 3809 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15, 3810 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16, 3811 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17, 3812 3813 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18, 3814 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19, 3815 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20, 3816 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21, 3817 3818 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22, 3819 3820 /* keep last */ 3821 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST, 3822 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX = 3823 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1, 3824 }; 3825 3826 /** 3827 * enum qca_wlan_vendor_roaming_subcmd: Referred by 3828 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD. 3829 * 3830 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to 3831 * configure the white list SSIDs. These are configured through 3832 * the following attributes. 3833 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS, 3834 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST, 3835 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID 3836 * 3837 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to 3838 * configure the Roam params. These parameters are evaluated on the extscan 3839 * results. Refers the attributes PARAM_A_BAND_XX above to configure the 3840 * params. 3841 * 3842 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses 3843 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE 3844 * to enable/disable Lazy roam. 3845 * 3846 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID 3847 * preference. Contains the attribute 3848 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID 3849 * preference. 3850 * 3851 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params 3852 * 3853 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist 3854 * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to 3855 * set the same. 3856 * 3857 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the 3858 * roam control config to the driver with the attribute 3859 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 3860 * 3861 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the 3862 * roam control config from driver with the attribute 3863 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 3864 * For the get, the attribute for the configuration to be queried shall 3865 * carry any of its acceptable value to the driver. In return, the driver 3866 * shall send the configured values within the same attribute to the user 3867 * space. 3868 * 3869 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the 3870 * roam control config in the driver with the attribute 3871 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 3872 * The driver shall continue with its default roaming behavior when data 3873 * corresponding to an attribute is cleared. 3874 */ 3875 enum qca_wlan_vendor_roaming_subcmd { 3876 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1, 3877 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2, 3878 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3, 3879 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4, 3880 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5, 3881 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6, 3882 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7, 3883 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8, 3884 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9, 3885 }; 3886 3887 /** 3888 * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information 3889 * 3890 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value 3891 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version 3892 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version 3893 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index 3894 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last 3895 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max 3896 */ 3897 enum qca_wlan_vendor_attr_get_wifi_info { 3898 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0, 3899 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1, 3900 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2, 3901 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3, 3902 3903 /* KEEP LAST */ 3904 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST, 3905 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX = 3906 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1, 3907 }; 3908 3909 enum qca_wlan_vendor_attr_logger_results { 3910 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0, 3911 3912 /* 3913 * Unsigned 32-bit value; must match the request Id supplied by 3914 * Wi-Fi HAL in the corresponding subcmd NL msg. 3915 */ 3916 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1, 3917 3918 /* 3919 * Unsigned 32-bit value; used to indicate the size of memory 3920 * dump to be allocated. 3921 */ 3922 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2, 3923 3924 /* keep last */ 3925 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST, 3926 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX = 3927 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1, 3928 }; 3929 3930 /** 3931 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel. 3932 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS. 3933 */ 3934 enum qca_wlan_vendor_channel_prop_flags { 3935 /* Bits 0, 1, 2, and 3 are reserved */ 3936 3937 /* Turbo channel */ 3938 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4, 3939 /* CCK channel */ 3940 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5, 3941 /* OFDM channel */ 3942 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6, 3943 /* 2.4 GHz spectrum channel. */ 3944 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7, 3945 /* 5 GHz spectrum channel */ 3946 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8, 3947 /* Only passive scan allowed */ 3948 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9, 3949 /* Dynamic CCK-OFDM channel */ 3950 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10, 3951 /* GFSK channel (FHSS PHY) */ 3952 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11, 3953 /* Radar found on channel */ 3954 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12, 3955 /* 11a static turbo channel only */ 3956 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13, 3957 /* Half rate channel */ 3958 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14, 3959 /* Quarter rate channel */ 3960 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15, 3961 /* HT 20 channel */ 3962 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16, 3963 /* HT 40 with extension channel above */ 3964 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17, 3965 /* HT 40 with extension channel below */ 3966 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18, 3967 /* HT 40 intolerant */ 3968 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19, 3969 /* VHT 20 channel */ 3970 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20, 3971 /* VHT 40 with extension channel above */ 3972 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21, 3973 /* VHT 40 with extension channel below */ 3974 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22, 3975 /* VHT 80 channel */ 3976 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23, 3977 /* HT 40 intolerant mark bit for ACS use */ 3978 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24, 3979 /* Channel temporarily blocked due to noise */ 3980 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25, 3981 /* VHT 160 channel */ 3982 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26, 3983 /* VHT 80+80 channel */ 3984 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27, 3985 /* HE 20 channel */ 3986 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28, 3987 /* HE 40 with extension channel above */ 3988 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29, 3989 /* HE 40 with extension channel below */ 3990 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30, 3991 /* HE 40 intolerant */ 3992 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31, 3993 }; 3994 3995 /** 3996 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a 3997 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is 3998 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2. 3999 */ 4000 enum qca_wlan_vendor_channel_prop_flags_2 { 4001 /* HE 40 intolerant mark bit for ACS use */ 4002 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0, 4003 /* HE 80 channel */ 4004 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1, 4005 /* HE 160 channel */ 4006 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2, 4007 /* HE 80+80 channel */ 4008 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3, 4009 }; 4010 4011 /** 4012 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for 4013 * each channel. This is used by 4014 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT. 4015 */ 4016 enum qca_wlan_vendor_channel_prop_flags_ext { 4017 /* Radar found on channel */ 4018 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0, 4019 /* DFS required on channel */ 4020 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1, 4021 /* DFS required on channel for 2nd band of 80+80 */ 4022 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2, 4023 /* If channel has been checked for DFS */ 4024 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3, 4025 /* Excluded in 802.11d */ 4026 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4, 4027 /* Channel Switch Announcement received on this channel */ 4028 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5, 4029 /* Ad-hoc is not allowed */ 4030 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6, 4031 /* Station only channel */ 4032 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7, 4033 /* DFS radar history for slave device (STA mode) */ 4034 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8, 4035 /* DFS CAC valid for slave device (STA mode) */ 4036 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9, 4037 }; 4038 4039 /** 4040 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd 4041 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite 4042 * information to start/stop the NUD statistics collection. 4043 */ 4044 enum qca_attr_nud_stats_set { 4045 QCA_ATTR_NUD_STATS_SET_INVALID = 0, 4046 4047 /* 4048 * Flag to start/stop the NUD statistics collection. 4049 * Start - If included, Stop - If not included 4050 */ 4051 QCA_ATTR_NUD_STATS_SET_START = 1, 4052 /* IPv4 address of the default gateway (in network byte order) */ 4053 QCA_ATTR_NUD_STATS_GW_IPV4 = 2, 4054 /* 4055 * Represents the data packet type to be monitored. 4056 * Host driver tracks the stats corresponding to each data frame 4057 * represented by these flags. 4058 * These data packets are represented by 4059 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info. 4060 */ 4061 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3, 4062 /* keep last */ 4063 QCA_ATTR_NUD_STATS_SET_LAST, 4064 QCA_ATTR_NUD_STATS_SET_MAX = 4065 QCA_ATTR_NUD_STATS_SET_LAST - 1, 4066 }; 4067 4068 /** 4069 * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd 4070 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite 4071 * information to start / stop the NUD stats collection. 4072 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats 4073 * Bitmap to Flag to Start / Stop the NUD stats collection 4074 * Start - If included , Stop - If not included 4075 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address 4076 * IPv4 address of Default Gateway (in network byte order) 4077 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite 4078 * information to start / stop the NUD stats collection. 4079 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats 4080 * Flag to Start / Stop the NUD stats collection 4081 * Start - If included , Stop - If not included 4082 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address 4083 * IPv4 address of Default Gateway (in network byte order) 4084 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite 4085 * information to start / stop the NUD stats collection. 4086 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats 4087 * Flag to Start / Stop the NUD stats collection 4088 * Start - If included , Stop - If not included 4089 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address 4090 * IPv4 address of Default Gateway (in network byte order) 4091 */ 4092 enum qca_attr_connectivity_check_stats_set { 4093 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0, 4094 QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1, 4095 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2, 4096 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3, 4097 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4, 4098 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5, 4099 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6, 4100 /* keep last */ 4101 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST, 4102 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX = 4103 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1, 4104 }; 4105 4106 /** 4107 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various 4108 * data types for which the stats have to get collected. 4109 */ 4110 enum qca_wlan_vendor_connectivity_check_pkt_flags { 4111 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0, 4112 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1, 4113 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2, 4114 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3, 4115 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4, 4116 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get 4117 * to represent the stats of respective data type. 4118 */ 4119 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5, 4120 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6, 4121 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7, 4122 }; 4123 4124 enum qca_attr_connectivity_check_stats { 4125 QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0, 4126 /* Data packet type for which the stats are collected. 4127 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags 4128 */ 4129 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1, 4130 /* ID corresponding to the DNS frame for which the respective DNS stats 4131 * are monitored (u32). 4132 */ 4133 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2, 4134 /* source / destination port on which the respective proto stats are 4135 * collected (u32). 4136 */ 4137 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3, 4138 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4, 4139 /* IPv4/IPv6 address for which the destined data packets are 4140 * monitored. (in network byte order) 4141 */ 4142 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5, 4143 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6, 4144 /* Data packet Request count received from netdev */ 4145 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7, 4146 /* Data packet Request count sent to lower MAC from upper MAC */ 4147 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8, 4148 /* Data packet Request count received by lower MAC from upper MAC */ 4149 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9, 4150 /* Data packet Request count successfully transmitted by the device */ 4151 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10, 4152 /* Data packet Response count received by lower MAC */ 4153 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11, 4154 /* Data packet Response count received by upper MAC */ 4155 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12, 4156 /* Data packet Response count delivered to netdev */ 4157 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13, 4158 /* Data Packet Response count that are dropped out of order */ 4159 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14, 4160 4161 /* keep last */ 4162 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST, 4163 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX = 4164 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1, 4165 }; 4166 4167 /** 4168 * qca_attr_nud_stats_get: Attributes to vendor subcmd 4169 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite 4170 * NUD statistics collected when queried. 4171 */ 4172 enum qca_attr_nud_stats_get { 4173 QCA_ATTR_NUD_STATS_GET_INVALID = 0, 4174 /* ARP Request count from netdev */ 4175 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1, 4176 /* ARP Request count sent to lower MAC from upper MAC */ 4177 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2, 4178 /* ARP Request count received by lower MAC from upper MAC */ 4179 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3, 4180 /* ARP Request count successfully transmitted by the device */ 4181 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4, 4182 /* ARP Response count received by lower MAC */ 4183 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5, 4184 /* ARP Response count received by upper MAC */ 4185 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6, 4186 /* ARP Response count delivered to netdev */ 4187 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7, 4188 /* ARP Response count delivered to netdev */ 4189 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8, 4190 /* 4191 * Flag indicating if the station's link to the AP is active. 4192 * Active Link - If included, Inactive link - If not included 4193 */ 4194 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9, 4195 /* 4196 * Flag indicating if there is any duplicate address detected (DAD). 4197 * Yes - If detected, No - If not detected. 4198 */ 4199 QCA_ATTR_NUD_STATS_IS_DAD = 10, 4200 /* 4201 * List of Data types for which the stats are requested. 4202 * This list does not carry ARP stats as they are done by the 4203 * above attributes. Represented by enum qca_attr_nud_data_stats. 4204 */ 4205 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11, 4206 /* keep last */ 4207 QCA_ATTR_NUD_STATS_GET_LAST, 4208 QCA_ATTR_NUD_STATS_GET_MAX = 4209 QCA_ATTR_NUD_STATS_GET_LAST - 1, 4210 }; 4211 4212 enum qca_wlan_btm_candidate_status { 4213 QCA_STATUS_ACCEPT = 0, 4214 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1, 4215 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2, 4216 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3, 4217 QCA_STATUS_REJECT_LOW_RSSI = 4, 4218 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5, 4219 QCA_STATUS_REJECT_UNKNOWN = 6, 4220 }; 4221 4222 enum qca_wlan_vendor_attr_btm_candidate_info { 4223 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0, 4224 4225 /* 6-byte MAC address representing the BSSID of transition candidate */ 4226 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1, 4227 /* 4228 * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status 4229 * returned by the driver. It says whether the BSSID provided in 4230 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by 4231 * the driver, if not it specifies the reason for rejection. 4232 * Note that the user-space can overwrite the transition reject reason 4233 * codes provided by driver based on more information. 4234 */ 4235 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2, 4236 4237 /* keep last */ 4238 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST, 4239 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX = 4240 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1, 4241 }; 4242 4243 enum qca_attr_trace_level { 4244 QCA_ATTR_TRACE_LEVEL_INVALID = 0, 4245 /* 4246 * Nested array of the following attributes: 4247 * QCA_ATTR_TRACE_LEVEL_MODULE, 4248 * QCA_ATTR_TRACE_LEVEL_MASK. 4249 */ 4250 QCA_ATTR_TRACE_LEVEL_PARAM = 1, 4251 /* 4252 * Specific QCA host driver module. Please refer to the QCA host 4253 * driver implementation to get the specific module ID. 4254 */ 4255 QCA_ATTR_TRACE_LEVEL_MODULE = 2, 4256 /* Different trace level masks represented in the QCA host driver. */ 4257 QCA_ATTR_TRACE_LEVEL_MASK = 3, 4258 4259 /* keep last */ 4260 QCA_ATTR_TRACE_LEVEL_AFTER_LAST, 4261 QCA_ATTR_TRACE_LEVEL_MAX = 4262 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1, 4263 }; 4264 4265 /** 4266 * enum qca_wlan_vendor_attr_get_logger_features - value for logger 4267 * supported features 4268 * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid 4269 * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features 4270 * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum 4271 * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type 4272 * 4273 * enum values are used for NL attributes for data used by 4274 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command. 4275 */ 4276 enum qca_wlan_vendor_attr_get_logger_features { 4277 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0, 4278 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1, 4279 4280 /* keep last */ 4281 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST, 4282 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX = 4283 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1, 4284 }; 4285 4286 /** 4287 * enum qca_wlan_vendor_attr_link_properties - link properties 4288 * 4289 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value 4290 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to 4291 * specify the number of spatial streams negotiated 4292 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value 4293 * to specify negotiated rate flags i.e. ht, vht and channel width 4294 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to 4295 * specify the operating frequency 4296 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer 4297 * (STA / AP ) for the connected link. 4298 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a 4299 * &struct nl80211_sta_flag_update for the respective connected link. MAC 4300 * address of the peer represented by 4301 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR. 4302 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last 4303 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value 4304 */ 4305 enum qca_wlan_vendor_attr_link_properties { 4306 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0, 4307 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1, 4308 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2, 4309 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3, 4310 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4, 4311 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5, 4312 4313 /* KEEP LAST */ 4314 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST, 4315 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX = 4316 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1, 4317 }; 4318 4319 /** 4320 * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support 4321 * 4322 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid 4323 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload 4324 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum 4325 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type 4326 * 4327 * enum values are used for NL attributes for data used by 4328 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command. 4329 */ 4330 enum qca_wlan_vendor_attr_nd_offload { 4331 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0, 4332 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG, 4333 4334 /* Keep last */ 4335 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST, 4336 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX = 4337 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1, 4338 }; 4339 4340 /** 4341 * enum qca_wlan_vendor_features - Vendor device/driver feature flags 4342 * 4343 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key 4344 * management offload, a mechanism where the station's firmware 4345 * does the exchange with the AP to establish the temporal keys 4346 * after roaming, rather than having the user space wpa_supplicant do it. 4347 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic 4348 * band selection based on channel selection results. 4349 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports 4350 * simultaneous off-channel operations. 4351 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P 4352 * Listen offload; a mechanism where the station's firmware takes care of 4353 * responding to incoming Probe Request frames received from other P2P 4354 * Devices whilst in Listen state, rather than having the user space 4355 * wpa_supplicant do it. Information from received P2P requests are 4356 * forwarded from firmware to host whenever the host processor wakes up. 4357 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA 4358 * specific features. 4359 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific 4360 * features. 4361 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON 4362 * specific features only. If a Device sets this bit but not the 4363 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that 4364 * this Device may not support all OCE AP functionalities but can support 4365 * only OCE STA-CFON functionalities. 4366 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self 4367 * managed regulatory. 4368 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time). 4369 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE) 4370 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation 4371 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving 4372 * and applying thermal configuration through 4373 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and 4374 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from 4375 * userspace. 4376 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r. 4377 * With Adaptive 11r feature, access points advertise the vendor 4378 * specific IEs and MDE but do not include FT AKM in the RSNE. 4379 * The Adaptive 11r supported stations are expected to identify 4380 * such vendor specific IEs and connect to the AP in FT mode though 4381 * the profile is configured in non-FT mode. 4382 * The driver-based SME cases also need to have this support for 4383 * Adaptive 11r to handle the connection and roaming scenarios. 4384 * This flag indicates the support for the same to the user space. 4385 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports 4386 * concurrent network sessions on different Wi-Fi Bands. This feature 4387 * capability is attributed to the hardware's capability to support 4388 * the same (e.g., DBS). 4389 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the 4390 * responses for the respective TWT operations are asynchronous (separate) 4391 * event message) from the driver. If not specified, the responses are 4392 * synchronous (in vendor command reply) to the request. Each TWT 4393 * operation is specifically mentioned (against its respective) 4394 * documentation) to support either of these or both modes. 4395 * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates 4396 * that the driver requires add/del virtual interface path using the 4397 * generic nl80211 commands for NDP interface create/delete and to 4398 * register/unregister the netdev instead of creating/deleting the NDP 4399 * interface using the vendor commands 4400 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and 4401 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel 4402 * (5.12 version onward), interface creation/deletion is not allowed using 4403 * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK 4404 * during the register/unregister of netdev. Create and delete NDP 4405 * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE 4406 * commands respectively if the driver advertises this capability set. 4407 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in 4408 * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is 4409 * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored. 4410 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP 4411 * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then 4412 * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored. 4413 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in 4414 * station mode supports secure RTT measurement exchange. If 4415 * NL80211_EXT_FEATURE_SECURE_RTT is set, 4416 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored. 4417 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP 4418 * mode supports secure RTT measurement exchange. If 4419 * NL80211_EXT_FEATURE_SECURE_RTT is set, 4420 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored. 4421 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that 4422 * the device in station mode supports protection of range negotiation and 4423 * measurement management frames. If 4424 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then 4425 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored. 4426 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that 4427 * the device in AP mode supports protection of range negotiation and 4428 * measurement management frames. If 4429 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then 4430 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored. 4431 * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device 4432 * in AP mode supports configuring allowed frequency list for AP operation 4433 * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST. 4434 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits 4435 */ 4436 enum qca_wlan_vendor_features { 4437 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0, 4438 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1, 4439 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2, 4440 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3, 4441 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4, 4442 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5, 4443 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6, 4444 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7, 4445 QCA_WLAN_VENDOR_FEATURE_TWT = 8, 4446 QCA_WLAN_VENDOR_FEATURE_11AX = 9, 4447 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10, 4448 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11, 4449 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12, 4450 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13, 4451 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14, 4452 QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15, 4453 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16, 4454 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17, 4455 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18, 4456 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19, 4457 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20, 4458 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21, 4459 QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22, 4460 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */ 4461 }; 4462 4463 /** 4464 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP 4465 * conditional channel switch 4466 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial 4467 * value 4468 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based 4469 * frequency list (an array of u32 values in host byte order) 4470 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the 4471 * conditional switch (u32)- 0: Success, Non-zero: Failure 4472 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last 4473 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max 4474 */ 4475 enum qca_wlan_vendor_attr_sap_conditional_chan_switch { 4476 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0, 4477 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1, 4478 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2, 4479 4480 /* Keep Last */ 4481 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST, 4482 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX = 4483 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1, 4484 }; 4485 4486 /** 4487 * enum wifi_logger_supported_features - values for supported logger features 4488 * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW 4489 * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics 4490 * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events 4491 * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver 4492 * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver 4493 * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health 4494 * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump 4495 * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate 4496 */ 4497 enum wifi_logger_supported_features { 4498 WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)), 4499 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)), 4500 WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)), 4501 WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)), 4502 WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)), 4503 WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)), 4504 WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)), 4505 WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)), 4506 WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8)) 4507 }; 4508 4509 /** 4510 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with 4511 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. 4512 * 4513 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8). 4514 * Used with event to notify the primary channel number selected in ACS 4515 * operation. 4516 * Note: If both the driver and user-space application supports the 6 GHz band, 4517 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use 4518 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead. 4519 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL 4520 * is still used if either of the driver or user space application doesn't 4521 * support the 6 GHz band. 4522 * 4523 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8). 4524 * Used with event to notify the secondary channel number selected in ACS 4525 * operation. 4526 * Note: If both the driver and user-space application supports the 6 GHz band, 4527 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use 4528 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead. 4529 * To maintain backward compatibility, 4530 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of 4531 * the driver or user space application doesn't support 6 GHz band. 4532 * 4533 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8). 4534 * (a) Used with command to configure hw_mode from 4535 * enum qca_wlan_vendor_acs_hw_mode for ACS operation. 4536 * (b) Also used with event to notify the hw_mode of selected primary channel 4537 * in ACS operation. 4538 * 4539 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute. 4540 * Used with command to configure ACS operation for HT mode. 4541 * Disable (flag attribute not present) - HT disabled and 4542 * Enable (flag attribute present) - HT enabled. 4543 * 4544 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute. 4545 * Used with command to configure ACS operation for HT40 mode. 4546 * Disable (flag attribute not present) - HT40 disabled and 4547 * Enable (flag attribute present) - HT40 enabled. 4548 * 4549 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute. 4550 * Used with command to configure ACS operation for VHT mode. 4551 * Disable (flag attribute not present) - VHT disabled and 4552 * Enable (flag attribute present) - VHT enabled. 4553 * 4554 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and 4555 * mandatory with event. 4556 * If specified in command path, ACS operation is configured with the given 4557 * channel width (in MHz). 4558 * In event path, specifies the channel width of the primary channel selected. 4559 * 4560 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC. 4561 * Used with command to configure channel list using an array of 4562 * channel numbers (u8). 4563 * Note: If both the driver and user-space application supports the 6 GHz band, 4564 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas 4565 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional. 4566 * 4567 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8). 4568 * Used with event to notify the VHT segment 0 center channel number selected in 4569 * ACS operation. 4570 * Note: If both the driver and user-space application supports the 6 GHz band, 4571 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use 4572 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead. 4573 * To maintain backward compatibility, 4574 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of 4575 * the driver or user space application doesn't support the 6 GHz band. 4576 * 4577 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8). 4578 * Used with event to notify the VHT segment 1 center channel number selected in 4579 * ACS operation. 4580 * Note: If both the driver and user-space application supports the 6 GHz band, 4581 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use 4582 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead. 4583 * To maintain backward compatibility, 4584 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of 4585 * the driver or user space application doesn't support the 6 GHz band. 4586 * 4587 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC. 4588 * Used with command to configure the channel list using an array of channel 4589 * center frequencies in MHz (u32). 4590 * Note: If both the driver and user-space application supports the 6 GHz band, 4591 * the driver first parses the frequency list and if it fails to get a frequency 4592 * list, parses the channel list specified using 4593 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in 4594 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST). 4595 * 4596 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32). 4597 * Used with event to notify the primary channel center frequency (MHz) selected 4598 * in ACS operation. 4599 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4600 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL. 4601 * 4602 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32). 4603 * Used with event to notify the secondary channel center frequency (MHz) 4604 * selected in ACS operation. 4605 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4606 * includes this attribute along with 4607 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL. 4608 * 4609 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32). 4610 * Used with event to notify the VHT segment 0 center channel frequency (MHz) 4611 * selected in ACS operation. 4612 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4613 * includes this attribute along with 4614 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL. 4615 * 4616 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32). 4617 * Used with event to notify the VHT segment 1 center channel frequency (MHz) 4618 * selected in ACS operation. 4619 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4620 * includes this attribute along with 4621 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL. 4622 * 4623 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute. 4624 * Used with command to notify the driver of EDMG request for ACS 4625 * operation. 4626 * 4627 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8). 4628 * Used with event to notify the EDMG channel number selected in ACS 4629 * operation. 4630 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL 4631 * 4632 * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16). 4633 * Used with event to notify the puncture pattern selected in ACS operation. 4634 * Encoding for this attribute will follow the convention used in the Disabled 4635 * Subchannel Bitmap field of the EHT Operation IE. 4636 * 4637 * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute. 4638 * Used with command to configure ACS operation for EHT mode. 4639 * Disable (flag attribute not present) - EHT disabled and 4640 * Enable (flag attribute present) - EHT enabled. 4641 * 4642 * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32). 4643 * Used with command to configure how older scan can be considered for ACS 4644 * scoring. In case scan was performed on partial set of channels configured 4645 * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME 4646 * (in ms), then scan only remaining channels. 4647 */ 4648 enum qca_wlan_vendor_attr_acs_offload { 4649 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0, 4650 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1, 4651 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2, 4652 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3, 4653 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4, 4654 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5, 4655 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6, 4656 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7, 4657 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8, 4658 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9, 4659 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10, 4660 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11, 4661 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12, 4662 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13, 4663 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14, 4664 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15, 4665 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16, 4666 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17, 4667 QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18, 4668 QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19, 4669 QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20, 4670 4671 /* keep last */ 4672 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST, 4673 QCA_WLAN_VENDOR_ATTR_ACS_MAX = 4674 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1 4675 }; 4676 4677 /** 4678 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the 4679 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. 4680 * 4681 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode 4682 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode 4683 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode 4684 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode 4685 * @QCA_ACS_MODE_IEEE80211ANY: all modes 4686 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode 4687 */ 4688 enum qca_wlan_vendor_acs_hw_mode { 4689 QCA_ACS_MODE_IEEE80211B, 4690 QCA_ACS_MODE_IEEE80211G, 4691 QCA_ACS_MODE_IEEE80211A, 4692 QCA_ACS_MODE_IEEE80211AD, 4693 QCA_ACS_MODE_IEEE80211ANY, 4694 QCA_ACS_MODE_IEEE80211AX, 4695 }; 4696 4697 /** 4698 * enum qca_access_policy - access control policy 4699 * 4700 * Access control policy is applied on the configured IE 4701 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE). 4702 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY. 4703 * 4704 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match 4705 *» with the specific configuration (IE) set, i.e. allow all the 4706 *» connections which do not match the configuration. 4707 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match 4708 *» with the specific configuration (IE) set, i.e. deny all the 4709 *» connections which do not match the configuration. 4710 */ 4711 enum qca_access_policy { 4712 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED, 4713 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED, 4714 }; 4715 4716 /** 4717 * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values 4718 * 4719 * The valid values for the ignore assoc disallowed 4720 * 4721 * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed 4722 * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed 4723 * 4724 */ 4725 enum qca_ignore_assoc_disallowed { 4726 QCA_IGNORE_ASSOC_DISALLOWED_DISABLE, 4727 QCA_IGNORE_ASSOC_DISALLOWED_ENABLE 4728 }; 4729 4730 /* Attributes for data used by 4731 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and 4732 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands. 4733 */ 4734 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\ 4735 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES 4736 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\ 4737 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL 4738 #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\ 4739 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON 4740 enum qca_wlan_vendor_attr_config { 4741 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0, 4742 /* 4743 * Unsigned 32-bit value to set the DTIM period. 4744 * Whether the wifi chipset wakes at every dtim beacon or a multiple of 4745 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3 4746 * DTIM beacons. 4747 */ 4748 QCA_WLAN_VENDOR_ATTR_CONFIG_MODULATED_DTIM = 1, 4749 /* 4750 * Unsigned 32-bit value to set the wifi_iface stats averaging factor 4751 * used to calculate statistics like average the TSF offset or average 4752 * number of frame leaked. 4753 * For instance, upon Beacon frame reception: 4754 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000 4755 * For instance, when evaluating leaky APs: 4756 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000 4757 */ 4758 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2, 4759 /* 4760 * Unsigned 32-bit value to configure guard time, i.e., when 4761 * implementing IEEE power management based on frame control PM bit, how 4762 * long the driver waits before shutting down the radio and after 4763 * receiving an ACK frame for a Data frame with PM bit set. 4764 */ 4765 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3, 4766 /* Unsigned 32-bit value to change the FTM capability dynamically */ 4767 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4, 4768 /* Unsigned 16-bit value to configure maximum TX rate dynamically */ 4769 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5, 4770 /* 4771 * Unsigned 32-bit value to configure the number of continuous 4772 * Beacon Miss which shall be used by the firmware to penalize 4773 * the RSSI. 4774 */ 4775 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6, 4776 /* 4777 * Unsigned 8-bit value to configure the channel avoidance indication 4778 * behavior. Firmware to send only one indication and ignore duplicate 4779 * indications when set to avoid multiple Apps wakeups. 4780 */ 4781 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7, 4782 /* 4783 * 8-bit unsigned value to configure the maximum TX MPDU for 4784 * aggregation. 4785 */ 4786 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8, 4787 /* 4788 * 8-bit unsigned value to configure the maximum RX MPDU for 4789 * aggregation. 4790 */ 4791 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9, 4792 /* 4793 * 8-bit unsigned value to configure the Non aggregrate/11g sw 4794 * retry threshold (0 disable, 31 max). 4795 */ 4796 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10, 4797 /* 4798 * 8-bit unsigned value to configure the aggregrate sw 4799 * retry threshold (0 disable, 31 max). 4800 */ 4801 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11, 4802 /* 4803 * 8-bit unsigned value to configure the MGMT frame 4804 * retry threshold (0 disable, 31 max). 4805 */ 4806 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12, 4807 /* 4808 * 8-bit unsigned value to configure the CTRL frame 4809 * retry threshold (0 disable, 31 max). 4810 */ 4811 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13, 4812 /* 4813 * 8-bit unsigned value to configure the propagation delay for 4814 * 2G/5G band (0~63, units in us) 4815 */ 4816 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14, 4817 /* 4818 * Unsigned 32-bit value to configure the number of unicast TX fail 4819 * packet count. The peer is disconnected once this threshold is 4820 * reached. 4821 */ 4822 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15, 4823 /* 4824 * Attribute used to set scan default IEs to the driver. 4825 * 4826 * These IEs can be used by scan operations that will be initiated by 4827 * the driver/firmware. 4828 * 4829 * For further scan requests coming to the driver, these IEs should be 4830 * merged with the IEs received along with scan request coming to the 4831 * driver. If a particular IE is present in the scan default IEs but not 4832 * present in the scan request, then that IE should be added to the IEs 4833 * sent in the Probe Request frames for that scan request. 4834 */ 4835 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16, 4836 /* Unsigned 32-bit attribute for generic commands */ 4837 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17, 4838 /* Unsigned 32-bit value attribute for generic commands */ 4839 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18, 4840 /* Unsigned 32-bit data attribute for generic command response */ 4841 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19, 4842 /* 4843 * Unsigned 32-bit length attribute for 4844 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 4845 */ 4846 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20, 4847 /* 4848 * Unsigned 32-bit flags attribute for 4849 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 4850 */ 4851 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21, 4852 /* 4853 * Unsigned 32-bit, defining the access policy. 4854 * See enum qca_access_policy. Used with 4855 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. 4856 */ 4857 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22, 4858 /* 4859 * Sets the list of full set of IEs for which a specific access policy 4860 * has to be applied. Used along with 4861 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access. 4862 * Zero length payload can be used to clear this access constraint. 4863 */ 4864 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23, 4865 /* 4866 * Unsigned 32-bit, specifies the interface index (netdev) for which the 4867 * corresponding configurations are applied. If the interface index is 4868 * not specified, the configurations are attributed to the respective 4869 * wiphy. 4870 */ 4871 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24, 4872 /* 4873 * 8-bit unsigned value to trigger QPower: 4874 * 1-Enable, 0-Disable 4875 */ 4876 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25, 4877 /* 4878 * 8-bit unsigned value to configure the driver and below layers to 4879 * ignore the assoc disallowed set by APs while connecting 4880 * 1-Ignore, 0-Don't ignore 4881 */ 4882 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26, 4883 /* 4884 * 32-bit unsigned value to trigger antenna diversity features: 4885 * 1-Enable, 0-Disable 4886 */ 4887 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27, 4888 /* 32-bit unsigned value to configure specific chain antenna */ 4889 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28, 4890 /* 4891 * 32-bit unsigned value to trigger cycle selftest 4892 * 1-Enable, 0-Disable 4893 */ 4894 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29, 4895 /* 4896 * 32-bit unsigned to configure the cycle time of selftest 4897 * the unit is micro-second 4898 */ 4899 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30, 4900 /* 32-bit unsigned value to set reorder timeout for AC_VO */ 4901 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31, 4902 /* 32-bit unsigned value to set reorder timeout for AC_VI */ 4903 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32, 4904 /* 32-bit unsigned value to set reorder timeout for AC_BE */ 4905 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33, 4906 /* 32-bit unsigned value to set reorder timeout for AC_BK */ 4907 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34, 4908 /* 6-byte MAC address to point out the specific peer */ 4909 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 35, 4910 /* 32-bit unsigned value to set window size for specific peer */ 4911 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36, 4912 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */ 4913 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37, 4914 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */ 4915 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38, 4916 /* 4917 * 32-bit unsigned value to configure 5 or 10 MHz channel width for 4918 * station device while in disconnect state. The attribute use the 4919 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz, 4920 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or 4921 * 10 MHz channel width, the station will not connect to a BSS using 20 4922 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to 4923 * clear this constraint. 4924 */ 4925 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39, 4926 /* 4927 * 32-bit unsigned value to configure the propagation absolute delay 4928 * for 2G/5G band (units in us) 4929 */ 4930 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40, 4931 /* 32-bit unsigned value to set probe period */ 4932 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41, 4933 /* 32-bit unsigned value to set stay period */ 4934 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42, 4935 /* 32-bit unsigned value to set snr diff */ 4936 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43, 4937 /* 32-bit unsigned value to set probe dwell time */ 4938 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44, 4939 /* 32-bit unsigned value to set mgmt snr weight */ 4940 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45, 4941 /* 32-bit unsigned value to set data snr weight */ 4942 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46, 4943 /* 32-bit unsigned value to set ack snr weight */ 4944 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47, 4945 /* 4946 * 32-bit unsigned value to configure the listen interval. 4947 * This is in units of beacon intervals. This configuration alters 4948 * the negotiated listen interval with the AP during the connection. 4949 * It is highly recommended to configure a value less than or equal to 4950 * the one negotiated during the association. Configuring any greater 4951 * value can have adverse effects (frame loss, AP disassociating STA, 4952 * etc.). 4953 */ 4954 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48, 4955 /* 4956 * 8 bit unsigned value that is set on an AP/GO virtual interface to 4957 * disable operations that would cause the AP/GO to leave its operating 4958 * channel. 4959 * 4960 * This will restrict the scans to the AP/GO operating channel and the 4961 * channels of the other band, if DBS is supported.A STA/CLI interface 4962 * brought up after this setting is enabled, will be restricted to 4963 * connecting to devices only on the AP/GO interface's operating channel 4964 * or on the other band in DBS case. P2P supported channel list is 4965 * modified, to only include AP interface's operating-channel and the 4966 * channels of the other band if DBS is supported. 4967 * 4968 * These restrictions are only applicable as long as the AP/GO interface 4969 * is alive. If the AP/GO interface is brought down then this 4970 * setting/restriction is forgotten. 4971 * 4972 * If this variable is set on an AP/GO interface while a multi-channel 4973 * concurrent session is active, it has no effect on the operation of 4974 * the current interfaces, other than restricting the scan to the AP/GO 4975 * operating channel and the other band channels if DBS is supported. 4976 * However, if the STA is brought down and restarted then the new STA 4977 * connection will either be formed on the AP/GO channel or on the 4978 * other band in a DBS case. This is because of the scan being 4979 * restricted on these channels as mentioned above. 4980 * 4981 * 1-Disable offchannel operations, 0-Enable offchannel operations. 4982 */ 4983 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49, 4984 4985 /* 4986 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload) 4987 * on an interface. 4988 * 1 - Enable , 0 - Disable. 4989 */ 4990 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50, 4991 4992 /* 4993 * 8 bit unsigned value to globally enable/disable scan 4994 * 1 - Enable, 0 - Disable. 4995 */ 4996 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51, 4997 4998 /* 8-bit unsigned value to set the total beacon miss count */ 4999 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52, 5000 5001 /* 5002 * Unsigned 32-bit value to configure the number of continuous 5003 * Beacon Miss which shall be used by the firmware to penalize 5004 * the RSSI for BTC. 5005 */ 5006 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53, 5007 5008 /* 5009 * 8-bit unsigned value to configure the driver and below layers to 5010 * enable/disable all fils features. 5011 * 0-enable, 1-disable 5012 */ 5013 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54, 5014 5015 /* 16-bit unsigned value to configure the level of WLAN latency 5016 * module. See enum qca_wlan_vendor_attr_config_latency_level. 5017 */ 5018 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55, 5019 5020 /* 5021 * 8-bit unsigned value indicating the driver to use the RSNE as-is from 5022 * the connect interface. Exclusively used for the scenarios where the 5023 * device is used as a test bed device with special functionality and 5024 * not recommended for production. This helps driver to not validate the 5025 * RSNE passed from user space and thus allow arbitrary IE data to be 5026 * used for testing purposes. 5027 * 1-enable, 0-disable. 5028 * Applications set/reset this configuration. If not reset, this 5029 * parameter remains in use until the driver is unloaded. 5030 */ 5031 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56, 5032 5033 /* 5034 * 8-bit unsigned value to trigger green Tx power saving. 5035 * 1-Enable, 0-Disable 5036 */ 5037 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57, 5038 5039 /* 5040 * Attribute to configure disconnect IEs to the driver. 5041 * This carries an array of unsigned 8-bit characters. 5042 * 5043 * If this is configured, driver shall fill the IEs in disassoc/deauth 5044 * frame. 5045 * These IEs are expected to be considered only for the next 5046 * immediate disconnection (disassoc/deauth frame) originated by 5047 * the DUT, irrespective of the entity (user space/driver/firmware) 5048 * triggering the disconnection. 5049 * The host drivers are not expected to use the IEs set through 5050 * this interface for further disconnections after the first immediate 5051 * disconnection initiated post the configuration. 5052 * If the IEs are also updated through cfg80211 interface (after the 5053 * enhancement to cfg80211_disconnect), host driver is expected to 5054 * take the union of IEs from both of these interfaces and send in 5055 * further disassoc/deauth frames. 5056 */ 5057 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58, 5058 5059 /* 8-bit unsigned value for ELNA bypass. 5060 * 0 - Disable eLNA bypass. 5061 * 1 - Enable eLNA bypass. 5062 * 2 - Reset eLNA bypass configuration, the driver should 5063 * revert to the default configuration of eLNA bypass. 5064 */ 5065 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59, 5066 5067 /* 8-bit unsigned value. This attribute enables/disables the host driver 5068 * to send the Beacon Report response with failure reason for the 5069 * scenarios where STA cannot honor the Beacon report request from AP. 5070 * 1-Enable, 0-Disable. 5071 */ 5072 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60, 5073 5074 /* 8-bit unsigned value. This attribute enables/disables the host driver 5075 * to send roam reason information in the reassociation request to the 5076 * AP. 1-Enable, 0-Disable. 5077 */ 5078 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61, 5079 5080 /* 32-bit unsigned value to configure different PHY modes to the 5081 * driver/firmware. The possible values are defined in 5082 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to 5083 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting 5084 * the driver. 5085 */ 5086 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62, 5087 5088 /* 8-bit unsigned value to configure the maximum supported channel width 5089 * for STA mode. If this value is configured when STA is in connected 5090 * state, it should not exceed the negotiated channel width. If it is 5091 * configured when STA is in disconnected state, the configured value 5092 * will take effect for the next immediate connection. 5093 * Possible values are: 5094 * NL80211_CHAN_WIDTH_20 5095 * NL80211_CHAN_WIDTH_40 5096 * NL80211_CHAN_WIDTH_80 5097 * NL80211_CHAN_WIDTH_80P80 5098 * NL80211_CHAN_WIDTH_160 5099 */ 5100 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63, 5101 5102 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment. 5103 * This attribute is only applicable for STA mode. When dynamic 5104 * bandwidth adjustment is disabled, STA will use static channel width 5105 * the value of which is negotiated during connection. 5106 * 1-enable (default), 0-disable 5107 */ 5108 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64, 5109 5110 /* 8-bit unsigned value to configure the maximum number of subframes of 5111 * TX MSDU for aggregation. Possible values are 0-31. When set to 0, 5112 * it is decided by hardware. 5113 */ 5114 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65, 5115 5116 /* 8-bit unsigned value to configure the maximum number of subframes of 5117 * RX MSDU for aggregation. Possible values are 0-31. When set to 0, 5118 * it is decided by hardware. 5119 */ 5120 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66, 5121 5122 /* 8-bit unsigned value. This attribute is used to dynamically 5123 * enable/disable the LDPC capability of the device. When configured in 5124 * the disconnected state, the updated configuration will be considered 5125 * for the immediately following connection attempt. If this 5126 * configuration is modified while the device is in the connected state, 5127 * the LDPC TX will be updated with this configuration immediately, 5128 * while the LDPC RX configuration update will take place starting from 5129 * the subsequent association attempt. 5130 * 1-Enable, 0-Disable. 5131 */ 5132 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67, 5133 5134 /* 8-bit unsigned value. This attribute is used to dynamically 5135 * enable/disable the TX STBC capability of the device. When configured 5136 * in the disconnected state, the updated configuration will be 5137 * considered for the immediately following connection attempt. If the 5138 * connection is formed with TX STBC enabled and if this configuration 5139 * is disabled during that association, the TX will be impacted 5140 * immediately. Further connection attempts will disable TX STBC. 5141 * However, enabling the TX STBC for a connected session with disabled 5142 * capability is not allowed and will fail. 5143 * 1-Enable, 0-Disable. 5144 */ 5145 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68, 5146 5147 /* 8-bit unsigned value. This attribute is used to dynamically 5148 * enable/disable the RX STBC capability of the device. When configured 5149 * in the disconnected state, the updated configuration will be 5150 * considered for the immediately following connection attempt. If the 5151 * configuration is modified in the connected state, there will be no 5152 * impact for the current association, but further connection attempts 5153 * will use the updated configuration. 5154 * 1-Enable, 0-Disable. 5155 */ 5156 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69, 5157 5158 /* 8-bit unsigned value. This attribute is used to dynamically configure 5159 * the number of spatial streams. When configured in the disconnected 5160 * state, the updated configuration will be considered for the 5161 * immediately following connection attempt. If the NSS is updated after 5162 * the connection, the updated NSS value is notified to the peer using 5163 * the Operating Mode Notification/Spatial Multiplexing Power Save 5164 * frame. The updated NSS value after the connection shall not be 5165 * greater than the one negotiated during the connection. Any such 5166 * higher value configuration shall be returned with a failure. 5167 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done 5168 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and 5169 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to 5170 * configure the asymmetric NSS configuration (such as 1X2). 5171 */ 5172 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70, 5173 5174 /* 5175 * 8-bit unsigned value to trigger Optimized Power Management: 5176 * 1-Enable, 0-Disable 5177 */ 5178 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71, 5179 5180 /* 8-bit unsigned value. This attribute takes the QOS/access category 5181 * value represented by the enum qca_wlan_ac_type and expects the driver 5182 * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL 5183 * is invalid for this attribute. This will override the DSCP value 5184 * configured in the frame with the intention to only upgrade the QOS. 5185 * That said, it is not intended to downgrade the QOS for the frames. 5186 * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs 5187 * to disable. 5188 * 5189 * If only UDP frames of BE or BK access category needs to be upgraded 5190 * without changing the access category of VO or VI UDP frames, refer to 5191 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK. 5192 * 5193 * This attribute is not recommended to be used as it blindly forces all 5194 * UDP packets to a higher access category which could impact the 5195 * traffic pattern of all apps using UDP and can cause unknown behavior. 5196 */ 5197 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72, 5198 5199 /* 8-bit unsigned value. This attribute is used to dynamically configure 5200 * the number of chains to be used for transmitting data. This 5201 * configuration is allowed only when in connected state and will be 5202 * effective until disconnected. The driver rejects this configuration 5203 * if the number of spatial streams being used in the current connection 5204 * cannot be supported by this configuration. 5205 */ 5206 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73, 5207 5208 /* 8-bit unsigned value. This attribute is used to dynamically configure 5209 * the number of chains to be used for receiving data. This 5210 * configuration is allowed only when in connected state and will be 5211 * effective until disconnected. The driver rejects this configuration 5212 * if the number of spatial streams being used in the current connection 5213 * cannot be supported by this configuration. 5214 */ 5215 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74, 5216 5217 /* 8-bit unsigned value to configure ANI setting type. 5218 * See &enum qca_wlan_ani_setting for possible values. 5219 */ 5220 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75, 5221 /* 32-bit signed value to configure ANI level. This is used when 5222 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED. 5223 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO 5224 * is invalid, the driver will return a failure. 5225 */ 5226 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76, 5227 5228 /* 8-bit unsigned value. This attribute is used to dynamically configure 5229 * the number of spatial streams used for transmitting the data. When 5230 * configured in the disconnected state, the configured value will 5231 * be considered for the following connection attempt. 5232 * If the NSS is updated after the connection, the updated NSS value 5233 * is notified to the peer using the Operating Mode Notification/Spatial 5234 * Multiplexing Power Save frame. 5235 * The TX NSS value configured after the connection shall not be greater 5236 * than the value negotiated during the connection. Any such higher 5237 * value configuration shall be treated as invalid configuration by 5238 * the driver. This attribute shall be configured along with 5239 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric 5240 * configuration (such as 2X2 or 1X1) or the asymmetric 5241 * configuration (such as 1X2). 5242 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along 5243 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver 5244 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS. 5245 */ 5246 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77, 5247 5248 /* 8-bit unsigned value. This attribute is used to dynamically configure 5249 * the number of spatial streams used for receiving the data. When 5250 * configured in the disconnected state, the configured value will 5251 * be considered for the following connection attempt. 5252 * If the NSS is updated after the connection, the updated NSS value 5253 * is notified to the peer using the Operating Mode Notification/Spatial 5254 * Multiplexing Power Save frame. 5255 * The RX NSS value configured after the connection shall not be greater 5256 * than the value negotiated during the connection. Any such higher 5257 * value configuration shall be treated as invalid configuration by 5258 * the driver. This attribute shall be configured along with 5259 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric 5260 * configuration (such as 2X2 or 1X1) or the asymmetric 5261 * configuration (such as 1X2). 5262 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along 5263 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver 5264 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS. 5265 */ 5266 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78, 5267 5268 /* 5269 * 8-bit unsigned value. This attribute, when set, indicates whether the 5270 * specified interface is the primary STA interface when there are more 5271 * than one STA interfaces concurrently active. 5272 * 5273 * This configuration helps the firmware/hardware to support certain 5274 * features (e.g., roaming) on this primary interface, if the same 5275 * cannot be supported on the concurrent STA interfaces simultaneously. 5276 * 5277 * This configuration is only applicable for a single STA interface on 5278 * a device and gives the priority for it only over other concurrent STA 5279 * interfaces. 5280 * 5281 * If the device is a multi wiphy/soc, this configuration applies to a 5282 * single STA interface across the wiphys. 5283 * 5284 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA) 5285 */ 5286 QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79, 5287 5288 /* 5289 * 8-bit unsigned value. This attribute can be used to configure the 5290 * driver to enable/disable FT-over-DS feature. Possible values for 5291 * this attribute are 1-Enable and 0-Disable. 5292 */ 5293 QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80, 5294 5295 /* 5296 * 8-bit unsigned value. This attribute can be used to configure the 5297 * firmware to enable/disable ARP/NS offload feature. Possible values 5298 * for this attribute are 0-Disable and 1-Enable. 5299 * 5300 * This attribute is only applicable for STA/P2P-Client interface, 5301 * and is optional, default behavior is APR/NS offload Enable. 5302 * 5303 * This attribute can be set in disconncted and connected state, and 5304 * will restore to default behavior if interface is closed. 5305 */ 5306 QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81, 5307 5308 /* 5309 * 8-bit unsigned value. This attribute can be used to configure the 5310 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values 5311 * for this attribute are defined in the enum qca_dbam_config. 5312 */ 5313 QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83, 5314 5315 /* 8-bit unsigned value. This attribute takes the QoS/access category 5316 * value represented by the enum qca_wlan_ac_type and expects the driver 5317 * to upgrade the UDP frames of BE or BK access category to this access 5318 * category. This attribute will not modify UDP frames of VO or VI 5319 * access category. The value of QCA_WLAN_AC_ALL is invalid for this 5320 * attribute. 5321 * 5322 * This will override the DSCP value configured in the frame with the 5323 * intention to only upgrade the access category. That said, it is not 5324 * intended to downgrade the access category for the frames. 5325 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be 5326 * disabled, as BK is of the lowest priority and an upgrade to it does 5327 * not result in any changes for the frames. 5328 * 5329 * This attribute behavior is similar to 5330 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that 5331 * only UDP frames of BE or BK access category are upgraded and not 5332 * UDP frames of VI or VO access category. 5333 * 5334 * This attribute is not recommended to be used as it blindly forces all 5335 * UDP packets of BE or BK access category to a higher access category 5336 * which could impact the traffic pattern of all apps using UDP and can 5337 * cause unknown behavior. 5338 */ 5339 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84, 5340 5341 /* 8-bit unsigned value to configure the driver to enable/disable the 5342 * periodic sounding for Tx beamformer functionality. The default 5343 * behavior uses algorithm to do sounding based on packet stats. 5344 * 5345 * 0 - Default behavior. 5346 * 1 - Enable the periodic sounding for Tx beamformer. 5347 * This attribute is used for testing purposes. 5348 */ 5349 QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85, 5350 5351 /* 8-bit unsigned value, whenever wifi calling (wfc) begin or end, 5352 * Userspace sends this information to driver/firmware to configure 5353 * wfc state. Driver/Firmware uses this information to 5354 * optimize power savings, rate adaption, roaming, etc. 5355 * 5356 * 1 - wfc is on. 5357 * 0 - wfc is off. 5358 */ 5359 QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86, 5360 5361 /* 8-bit unsigned value to configure the driver to enable/disable the 5362 * EHT EML capability in management frame EHT capabilities. 5363 * 1 - Enable, 0 - Disable. 5364 */ 5365 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87, 5366 5367 /* 8-bit unsigned value to configure the driver with EHT MLO max 5368 * simultaneous links to be used for MLO connection. 5369 * The range of the value is 0 to 14. 5370 */ 5371 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88, 5372 5373 /* 8-bit unsigned value to configure the driver with EHT MLO maximum 5374 * number of links to be used for MLO connection. 5375 * The range of the value is 1 to 16. 5376 */ 5377 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89, 5378 5379 /* 8-bit unsigned value to configure the driver with EHT MLO mode. 5380 * Uses enum qca_wlan_eht_mlo_mode values. 5381 */ 5382 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90, 5383 5384 /* Nested attribute with frequencies in u32 attributes to configure a 5385 * list of allowed 20 MHz channel center frequencies in MHz for AP 5386 * operation. Whenever performing a channel selection operation, the 5387 * driver shall generate a new list based on this provided list by 5388 * filtering out channels that cannot be used at that time due to 5389 * regulatory or other constraints. The resulting list is used as the 5390 * list of all allowed channels, i.e., operation on any channel that is 5391 * not included is not allowed, whenever performing operations like ACS 5392 * and DFS. 5393 * 5394 * Userspace shall configure this before starting the AP and the 5395 * configuration is valid only from the next BSS start and until the 5396 * BSS is stopped. The driver shall clear this configuration when the 5397 * AP is stopped and fall back to the default behavior for subsequent 5398 * AP operation. 5399 * 5400 * The default behavior when this configuration is not applicable is the 5401 * driver can choose any of the channels supported by the hardware 5402 * except the channels that cannot be used due to regulatory or other 5403 * constraints. 5404 * 5405 * The driver shall reject this configuration if done after the AP is 5406 * started. This attribute can be used to specify user's choice of 5407 * frequencies and static puncture channel list, etc. 5408 */ 5409 QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91, 5410 5411 /* keep last */ 5412 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST, 5413 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX = 5414 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1, 5415 }; 5416 5417 /** 5418 * enum qca_dbam_config - Specifies DBAM config mode 5419 * @QCA_DBAM_DISABLE: Firmware disables DBAM 5420 * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when 5421 * internal criteria are met. 5422 * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully. 5423 */ 5424 enum qca_dbam_config { 5425 QCA_DBAM_DISABLE = 0, 5426 QCA_DBAM_ENABLE = 1, 5427 QCA_DBAM_FORCE_ENABLE = 2, 5428 }; 5429 5430 /** 5431 * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting 5432 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute 5433 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID 5434 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level 5435 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag 5436 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value 5437 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value 5438 */ 5439 enum qca_wlan_vendor_attr_wifi_logger_start { 5440 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0, 5441 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1, 5442 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2, 5443 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3, 5444 /* keep last */ 5445 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST, 5446 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX = 5447 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1, 5448 }; 5449 5450 /* 5451 * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data 5452 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute 5453 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID 5454 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value 5455 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value 5456 */ 5457 enum qca_wlan_vendor_attr_wifi_logger_get_ring_data { 5458 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0, 5459 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1, 5460 /* keep last */ 5461 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST, 5462 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX = 5463 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1, 5464 }; 5465 5466 #ifdef WLAN_FEATURE_OFFLOAD_PACKETS 5467 /** 5468 * enum wlan_offloaded_packets_control - control commands 5469 * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets 5470 * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets 5471 * 5472 */ 5473 enum wlan_offloaded_packets_control { 5474 WLAN_START_OFFLOADED_PACKETS = 1, 5475 WLAN_STOP_OFFLOADED_PACKETS = 2 5476 }; 5477 5478 /** 5479 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication 5480 * 5481 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to 5482 * the offloaded data. 5483 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded 5484 * data. 5485 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload 5486 * indication. 5487 */ 5488 enum qca_wlan_vendor_attr_data_offload_ind { 5489 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0, 5490 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION, 5491 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL, 5492 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT, 5493 5494 /* keep last */ 5495 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST, 5496 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX = 5497 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1 5498 }; 5499 5500 /** 5501 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command 5502 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS. 5503 */ 5504 enum qca_wlan_vendor_attr_offloaded_packets { 5505 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0, 5506 /* Takes valid value from the enum 5507 * qca_wlan_offloaded_packets_sending_control 5508 * Unsigned 32-bit value 5509 */ 5510 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL, 5511 /* Unsigned 32-bit value */ 5512 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID, 5513 /* array of u8 len: Max packet size */ 5514 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA, 5515 /* 6-byte MAC address used to represent source MAC address */ 5516 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR, 5517 /* 6-byte MAC address used to represent destination MAC address */ 5518 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR, 5519 /* Unsigned 32-bit value, in milli seconds */ 5520 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD, 5521 /* This optional unsigned 16-bit attribute is used for specifying 5522 * ethernet protocol type. If not specified ethertype defaults to IPv4. 5523 */ 5524 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE, 5525 5526 /* keep last */ 5527 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST, 5528 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX = 5529 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1, 5530 }; 5531 5532 #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */ 5533 5534 /** 5535 * enum qca_wlan_rssi_monitoring_control - rssi control commands 5536 * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid 5537 * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start 5538 * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop 5539 */ 5540 enum qca_wlan_rssi_monitoring_control { 5541 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0, 5542 QCA_WLAN_RSSI_MONITORING_START, 5543 QCA_WLAN_RSSI_MONITORING_STOP, 5544 }; 5545 5546 /** 5547 * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring 5548 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid 5549 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control 5550 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi 5551 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi 5552 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid 5553 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi 5554 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last 5555 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max 5556 */ 5557 enum qca_wlan_vendor_attr_rssi_monitoring { 5558 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0, 5559 5560 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL, 5561 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID, 5562 5563 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI, 5564 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI, 5565 5566 /* attributes to be used/received in callback */ 5567 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID, 5568 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI, 5569 5570 /* keep last */ 5571 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST, 5572 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX = 5573 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1, 5574 }; 5575 5576 /** 5577 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command 5578 * QCA_NL80211_VENDOR_SUBCMD_NDP. 5579 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID 5580 * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd 5581 * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID: 5582 * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info 5583 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz 5584 * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC 5585 * address 5586 * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being 5587 * created 5588 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use 5589 * NCS_SK_TYPE/PMK/SCID instead 5590 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS 5591 * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info 5592 * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id 5593 * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids 5594 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response 5595 * code: accept/reject 5596 * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address 5597 * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by 5598 * driver 5599 * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by 5600 * driver 5601 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration 5602 * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type 5603 * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO 5604 * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the 5605 * PMKID 5606 * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase 5607 * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name 5608 * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule 5609 * update: 5610 * BIT_0: NSS Update 5611 * BIT_1: Channel list update 5612 * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss 5613 * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL 5614 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH: 5615 * 0:20 MHz, 5616 * 1:40 MHz, 5617 * 2:80 MHz, 5618 * 3:160 MHz 5619 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width 5620 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute 5621 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type 5622 * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array 5623 * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating 5624 * transport port used by NDP. 5625 * QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating 5626 * protocol used by NDP and assigned by the Internet Assigned Numbers Authority 5627 * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml 5628 * QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if 5629 * NDP remote peer supports NAN NDPE. 1:support 0:not support 5630 * QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2 5631 * Service Id is the first 48 bits of the SHA-256 hash of the Service Name. 5632 * A lower-case representation of the Service Name shall be used to 5633 * calculate the Service ID. 5634 * Array of u8: length is 6 bytes 5635 * This attribute is used and optional for ndp indication. 5636 */ 5637 enum qca_wlan_vendor_attr_ndp_params { 5638 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0, 5639 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1, 5640 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2, 5641 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3, 5642 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4, 5643 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5, 5644 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6, 5645 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7, 5646 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8, 5647 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9, 5648 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10, 5649 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11, 5650 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12, 5651 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13, 5652 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14, 5653 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15, 5654 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16, 5655 QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17, 5656 QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18, 5657 QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19, 5658 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20, 5659 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21, 5660 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22, 5661 QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23, 5662 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24, 5663 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25, 5664 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26, 5665 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27, 5666 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28, 5667 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29, 5668 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30, 5669 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31, 5670 5671 /* keep last */ 5672 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST, 5673 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX = 5674 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1, 5675 }; 5676 5677 /** 5678 * enum qca_wlan_ndp_sub_cmd - NDP sub comands types for 5679 * QCA_NL80211_VENDOR_SUBCMD_NDP. 5680 * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value 5681 * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN 5682 * data path interface. 5683 * This command was initially designed to both create and start a NAN 5684 * data path interface. However, changes to Linux 5.12 no longer allow 5685 * interface creation via vendor commands. When the driver advertises 5686 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI 5687 * userspace must explicitly first create the interface using 5688 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command 5689 * to start the interface. 5690 * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN 5691 * data path interface. 5692 * This command was initially designed to both stop and delete a NAN 5693 * data path interface. However, changes to Linux 5.12 no longer allow 5694 * interface deletion via vendor commands. When the driver advertises 5695 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI 5696 * userspace must explicitly delete the interface using 5697 * NL80211_CMD_DEL_INTERFACE after calling this command. 5698 * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above 5699 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session 5700 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above 5701 * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end 5702 * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above 5703 * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request 5704 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete 5705 * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request 5706 * being received 5707 * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule 5708 * update 5709 */ 5710 enum qca_wlan_ndp_sub_cmd { 5711 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0, 5712 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1, 5713 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2, 5714 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3, 5715 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4, 5716 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5, 5717 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6, 5718 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7, 5719 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8, 5720 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9, 5721 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10, 5722 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11, 5723 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12 5724 }; 5725 5726 /** 5727 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel 5728 * information. These attributes are sent as part of 5729 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following 5730 * attributes correspond to a single channel. 5731 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16) 5732 * with flags specified in qca_wlan_vendor_channel_prop_flags_ext. 5733 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16) 5734 * with flags specified in qca_wlan_vendor_channel_prop_flags_ext. 5735 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency 5736 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum 5737 * regulatory transmission power 5738 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum 5739 * transmission power 5740 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum 5741 * transmission power 5742 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory 5743 * class id 5744 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum 5745 * antenna gain in dbm 5746 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0 5747 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1 5748 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0 5749 * center frequency in MHz. 5750 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht 5751 * segment 0 in center freq in MHz. (this is the legacy alias) 5752 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1 5753 * center frequency in MHz. 5754 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht 5755 * segment 1 in center freq in MHz. (this is the legacy alias) 5756 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits 5757 * flag indicating the AP power modes supported by the channel, as given by 5758 * enum qca_wlan_vendor_external_acs_chan_power_level. 5759 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested 5760 * attributes for each power mode. It takes attr as defined in enum 5761 * qca_wlan_vendor_external_acs_event_chan_power_info_attr. 5762 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1: 5763 * This indicates the overlapping 320 MHz center frequency in MHz, if the 5764 * given primary channel supports more than one 320 MHz channel bonding. 5765 * 5766 */ 5767 enum qca_wlan_vendor_external_acs_event_chan_info_attr { 5768 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0, 5769 5770 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1, 5771 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2, 5772 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3, 5773 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4, 5774 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5, 5775 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6, 5776 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7, 5777 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8, 5778 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9, 5779 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10, 5780 /* 5781 * A bitmask (u32) with flags specified in 5782 * enum qca_wlan_vendor_channel_prop_flags_2. 5783 */ 5784 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11, 5785 5786 /* 5787 * Segment 0 in MHz (u32). 5788 * 5789 * For 20/40/80 MHz bandwidth, this indicates the channel center 5790 * frequency index for the 20/40/80 MHz operating channel. 5791 * For 160 MHz bandwidth, this indicates the channel center 5792 * frequency of the primary 80 MHz channel. 5793 * For 320 MHz bandwidth, indicates the channel center frequency 5794 * of the primary 160 MHz channel. 5795 * 5796 * To maintain backward compatibility, 5797 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 5798 * is also maintained. 5799 */ 5800 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12, 5801 /* Legacy alias for the Segment 0 attribute. 5802 * 5803 * VHT segment 0 in MHz (u32) and the attribute is mandatory. 5804 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes 5805 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 5806 * along with 5807 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0. 5808 * 5809 * If both the driver and user-space application supports the 6 GHz 5810 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 5811 * is deprecated and 5812 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 5813 * should be used. 5814 * 5815 * To maintain backward compatibility, 5816 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 5817 * is still used if either of the driver or user space application 5818 * doesn't support the 6 GHz band. 5819 */ 5820 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 5821 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0, 5822 5823 /* 5824 * Segment 1 in MHz (u32). 5825 * 5826 * For 20/40/80 MHz bandwidth, this is set to 0. 5827 * For 160 MHz bandwidth, indicates the channel center frequency of the 5828 * 160 MHz channel. 5829 * For 320 MHz bandwidth, indicates the channel center frequency of the 5830 * 320 MHz channel. 5831 * 5832 * To maintain backward compatibility, 5833 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 5834 * is also maintained. 5835 */ 5836 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13, 5837 /* Legacy alias for the Segment 1 attribute. 5838 * 5839 * VHT segment 1 in MHz (u32) and the attribute is mandatory. 5840 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes 5841 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 5842 * along with 5843 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1. 5844 * 5845 * If both the driver and user-space application supports the 6 GHz 5846 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 5847 * is deprecated and 5848 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 5849 * should be considered. 5850 * 5851 * To maintain backward compatibility, 5852 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 5853 * is still used if either of the driver or user space application 5854 * doesn't support the 6 GHz band. 5855 */ 5856 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 5857 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1, 5858 /* 5859 * 16-bit attribute of bits indicating the AP power modes supported by 5860 * the channel (u16). 5861 * Note: Currently, only 3 bits are used in the attribute and each bit 5862 * corresponds to the power mode mentioned in enum 5863 * qca_wlan_vendor_external_acs_chan_power_level and a given bit is 5864 * set if the associated mode is supported. 5865 */ 5866 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES 5867 = 14, 5868 /* Array of nested attributes for each power mode. It takes attr as 5869 * defined in enum 5870 * qca_wlan_vendor_external_acs_event_chan_power_info_attr. 5871 */ 5872 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15, 5873 /* 5874 * This indicates the overlapping 320 MHz center frequency in MHz 5875 * (u32), if the given primary channel supports more than one 5876 * 320 MHz channel bonding. 5877 * 5878 * Example: 5879 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0 5880 * center frequency (primary 160 MHz) is 6185 MHz and there can be two 5881 * possible segment 2 frequencies for this (320 MHz center 5882 * frequencies): 5883 * 5884 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding 5885 * from frequency 5945 MHz - 6265 MHz 5886 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding 5887 * from frequency 6105 MHz - 6425 MHz 5888 * 5889 * In this case, 5890 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will 5891 * return 6185 MHz. 5892 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will 5893 * return 6105 MHz. 5894 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1 5895 * will return 6265 MHz. 5896 */ 5897 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1 5898 = 16, 5899 5900 /* keep last */ 5901 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST, 5902 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX = 5903 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1, 5904 }; 5905 5906 /** 5907 * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid 5908 * values that the vendor external ACS channel power attribute 5909 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can 5910 * take. 5911 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode 5912 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode 5913 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode 5914 */ 5915 enum qca_wlan_vendor_external_acs_chan_power_level { 5916 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0, 5917 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1, 5918 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2, 5919 }; 5920 5921 /** 5922 * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested 5923 * attributes for power mode type and power values corresponding to that. 5924 * These attributes are sent as part of 5925 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR. 5926 */ 5927 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr { 5928 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0, 5929 /* 5930 * Power mode (u8) takes the values defined in enum 5931 * qca_wlan_vendor_external_acs_chan_power_mode 5932 */ 5933 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE 5934 = 1, 5935 /* 5936 * Indicates if power value is a PSD/EIRP value (flag). If flag is 5937 * present, it indicates a PSD value. 5938 */ 5939 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2, 5940 /* 5941 * Power value (u32) PSD/EIRP as indicated by 5942 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG, 5943 * for power mode corresponding to the 5944 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE. 5945 * Units for PSD - dBm/MHz 5946 * Units for EIRP - dBm 5947 */ 5948 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE 5949 = 3, 5950 /* keep last */ 5951 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST, 5952 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX = 5953 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1, 5954 }; 5955 5956 /** 5957 * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command 5958 * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host 5959 * driver. 5960 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to 5961 * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why 5962 * ACS need to be started 5963 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does 5964 * driver supports spectral scanning or not 5965 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is 5966 * offloaded to firmware. 5967 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver 5968 * provides additional channel capability as part of scan operation. 5969 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate 5970 * interface status is UP 5971 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of 5972 * interface. It takes one of nl80211_iftype values. 5973 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound 5974 * of chan width. ACS logic should try to get a channel with specified width 5975 * if not found then look for lower values. 5976 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands 5977 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as 5978 * a/b/g/n/ac. 5979 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list 5980 * among which ACS should choose best frequency. 5981 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the 5982 * driver which will have <channel(u8), weight(u8)> format as array of 5983 * nested values. 5984 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute 5985 * for each channel. It takes attr as defined in 5986 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as 5987 * PCL mandatory, PCL preferred, etc.It uses values defined in enum 5988 * qca_wlan_vendor_attr_external_acs_policy. 5989 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF 5990 * Operating Parameter (RROP) availability information (u16). It uses values 5991 * defined in enum qca_wlan_vendor_attr_rropavail_info. 5992 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to 5993 * indicate if driver supports 6 GHz AFC trigger for External ACS. 5994 */ 5995 enum qca_wlan_vendor_attr_external_acs_event { 5996 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0, 5997 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1, 5998 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2, 5999 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3, 6000 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4, 6001 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5, 6002 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6, 6003 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7, 6004 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8, 6005 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9, 6006 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10, 6007 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11, 6008 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12, 6009 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13, 6010 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14, 6011 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15, 6012 6013 /* keep last */ 6014 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST, 6015 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX = 6016 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1, 6017 }; 6018 6019 enum qca_iface_type { 6020 QCA_IFACE_TYPE_STA, 6021 QCA_IFACE_TYPE_AP, 6022 QCA_IFACE_TYPE_P2P_CLIENT, 6023 QCA_IFACE_TYPE_P2P_GO, 6024 QCA_IFACE_TYPE_IBSS, 6025 QCA_IFACE_TYPE_TDLS, 6026 }; 6027 6028 /** 6029 * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command 6030 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and 6031 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST. 6032 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value 6033 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number 6034 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight 6035 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency 6036 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask 6037 */ 6038 enum qca_wlan_vendor_attr_pcl_config { 6039 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0, 6040 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1, 6041 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2, 6042 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3, 6043 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4, 6044 }; 6045 6046 enum qca_set_band { 6047 QCA_SETBAND_AUTO = 0, 6048 QCA_SETBAND_5G = BIT(0), 6049 QCA_SETBAND_2G = BIT(1), 6050 QCA_SETBAND_6G = BIT(2), 6051 }; 6052 6053 /** 6054 * enum set_reset_packet_filter - set packet filter control commands 6055 * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter 6056 * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter 6057 * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data 6058 * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data 6059 * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter 6060 * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter 6061 */ 6062 enum set_reset_packet_filter { 6063 QCA_WLAN_SET_PACKET_FILTER = 1, 6064 QCA_WLAN_GET_PACKET_FILTER = 2, 6065 QCA_WLAN_WRITE_PACKET_FILTER = 3, 6066 QCA_WLAN_READ_PACKET_FILTER = 4, 6067 QCA_WLAN_ENABLE_PACKET_FILTER = 5, 6068 QCA_WLAN_DISABLE_PACKET_FILTER = 6, 6069 }; 6070 6071 /** 6072 * enum qca_wlan_vendor_attr_packet_filter - APF control commands 6073 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid 6074 * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID 6075 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version 6076 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length 6077 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset 6078 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions 6079 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program 6080 * section in packet filter buffer 6081 */ 6082 enum qca_wlan_vendor_attr_packet_filter { 6083 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0, 6084 QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER, 6085 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION, 6086 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID, 6087 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE, 6088 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET, 6089 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM, 6090 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH, 6091 6092 /* keep last */ 6093 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST, 6094 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX = 6095 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1, 6096 }; 6097 6098 /** 6099 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor 6100 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS. 6101 */ 6102 enum qca_wlan_vendor_attr_wake_stats { 6103 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0, 6104 /* Unsigned 32-bit value indicating the total count of wake event */ 6105 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE, 6106 /* Array of individual wake count, each index representing wake reason 6107 */ 6108 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR, 6109 /* Unsigned 32-bit value representing wake count array */ 6110 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ, 6111 /* Unsigned 32-bit total wake count value of driver/fw */ 6112 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE, 6113 /* Array of wake stats of driver/fw */ 6114 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR, 6115 /* Unsigned 32-bit total wake count value of driver/fw */ 6116 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ, 6117 /* Unsigned 32-bit total wake count value of packets received */ 6118 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE, 6119 /* Unsigned 32-bit wake count value unicast packets received */ 6120 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT, 6121 /* Unsigned 32-bit wake count value multicast packets received */ 6122 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT, 6123 /* Unsigned 32-bit wake count value broadcast packets received */ 6124 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT, 6125 /* Unsigned 32-bit wake count value of ICMP packets */ 6126 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT, 6127 /* Unsigned 32-bit wake count value of ICMP6 packets */ 6128 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT, 6129 /* Unsigned 32-bit value ICMP6 router advertisement */ 6130 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA, 6131 /* Unsigned 32-bit value ICMP6 neighbor advertisement */ 6132 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA, 6133 /* Unsigned 32-bit value ICMP6 neighbor solicitation */ 6134 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS, 6135 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */ 6136 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT, 6137 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */ 6138 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT, 6139 /* Unsigned 32-bit wake count value of receive side multicast */ 6140 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT, 6141 /* Unsigned 32-bit wake count value of a given RSSI breach */ 6142 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT, 6143 /* Unsigned 32-bit wake count value of low RSSI */ 6144 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT, 6145 /* Unsigned 32-bit value GSCAN count */ 6146 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT, 6147 /* Unsigned 32-bit value PNO complete count */ 6148 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT, 6149 /* Unsigned 32-bit value PNO match count */ 6150 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT, 6151 /* keep last */ 6152 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST, 6153 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX = 6154 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1, 6155 }; 6156 6157 /** 6158 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels 6159 * configured by userspace to the driver/firmware. The values will be 6160 * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute. 6161 * The driver/firmware takes necessary actions requested by userspace 6162 * such as throttling wifi tx etc. in order to mitigate high temperature. 6163 * 6164 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions. 6165 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly. 6166 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately. 6167 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely. 6168 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached. 6169 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached. 6170 */ 6171 enum qca_wlan_vendor_thermal_level { 6172 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0, 6173 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1, 6174 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2, 6175 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3, 6176 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4, 6177 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5, 6178 }; 6179 6180 /** 6181 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set 6182 * cmd value. Used for NL attributes for data used by 6183 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 6184 */ 6185 enum qca_wlan_vendor_attr_thermal_cmd { 6186 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0, 6187 /* The value of command, driver will implement different operations 6188 * according to this value. It uses values defined in 6189 * enum qca_wlan_vendor_attr_thermal_cmd_type. 6190 * u32 attribute. 6191 */ 6192 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1, 6193 /* Userspace uses this attribute to configure thermal level to the 6194 * driver/firmware, or get thermal level from the driver/firmware. 6195 * Used in request or response, u32 attribute, 6196 * possible values are defined in enum qca_wlan_vendor_thermal_level. 6197 */ 6198 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2, 6199 /* Userspace uses this attribute to configure the time in which the 6200 * driver/firmware should complete applying settings it received from 6201 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL 6202 * command type. Used in request, u32 attribute, value is in 6203 * milliseconds. A value of zero indicates to apply the settings 6204 * immediately. The driver/firmware can delay applying the configured 6205 * thermal settings within the time specified in this attribute if 6206 * there is any critical ongoing operation. 6207 */ 6208 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3, 6209 /* Nested attribute, driver/firmware uses this attribute to report 6210 * thermal stats of different thermal levels to userspace when requested 6211 * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command 6212 * type. This attribute contains nested array of records of thermal 6213 * statistics of multiple levels. The attributes used inside this nested 6214 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats. 6215 */ 6216 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4, 6217 6218 /* keep last */ 6219 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST, 6220 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX = 6221 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1 6222 }; 6223 6224 /** 6225 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for 6226 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd 6227 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the 6228 * thermal command types sent to driver. 6229 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to 6230 * get thermal shutdown configuration parameters for display. Parameters 6231 * responded from driver are defined in 6232 * enum qca_wlan_vendor_attr_get_thermal_params_rsp. 6233 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to 6234 * get temperature. Host should respond with a temperature data. It is defined 6235 * in enum qca_wlan_vendor_attr_thermal_get_temperature. 6236 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal 6237 * suspend action. 6238 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal 6239 * resume action. 6240 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to 6241 * the driver/firmware. 6242 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current 6243 * thermal level from the driver/firmware. The driver should respond with a 6244 * thermal level defined in enum qca_wlan_vendor_thermal_level. 6245 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the 6246 * current thermal stats from the driver/firmware. The driver should respond 6247 * with stats of all thermal levels encapsulated in attribute 6248 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS. 6249 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear 6250 * the current thermal stats all thermal levels maintained in the 6251 * driver/firmware and start counting from zero again. 6252 */ 6253 enum qca_wlan_vendor_attr_thermal_cmd_type { 6254 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS, 6255 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE, 6256 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND, 6257 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME, 6258 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL, 6259 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL, 6260 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS, 6261 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS, 6262 }; 6263 6264 /** 6265 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes 6266 * to get chip temperature by user. 6267 * enum values are used for NL attributes for data used by 6268 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used 6269 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 6270 */ 6271 enum qca_wlan_vendor_attr_thermal_get_temperature { 6272 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0, 6273 /* Temperature value (degree Celsius) from driver. 6274 * u32 attribute. 6275 */ 6276 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA, 6277 6278 /* keep last */ 6279 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST, 6280 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX = 6281 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1, 6282 }; 6283 6284 /** 6285 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to 6286 * report thermal events from driver to user space. 6287 * enum values are used for NL attributes for data used by 6288 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command. 6289 */ 6290 enum qca_wlan_vendor_attr_thermal_event { 6291 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0, 6292 /* Temperature value (degree Celsius) from driver. 6293 * u32 attribute. 6294 */ 6295 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE, 6296 /* Indication of resume completion from power save mode. 6297 * NLA_FLAG attribute. 6298 */ 6299 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE, 6300 /* Thermal level from the driver. 6301 * u32 attribute. Possible values are defined in 6302 * enum qca_wlan_vendor_thermal_level. 6303 */ 6304 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3, 6305 6306 /* keep last */ 6307 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST, 6308 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX = 6309 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1, 6310 }; 6311 6312 /** 6313 * enum qca_vendor_element_id - QCA Vendor Specific element types 6314 * 6315 * These values are used to identify QCA Vendor Specific elements. The 6316 * payload of the element starts with the three octet OUI (OUI_QCA) and 6317 * is followed by a single octet type which is defined by this enum. 6318 * 6319 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list. 6320 * This element can be used to specify preference order for supported 6321 * channels. The channels in this list are in preference order (the first 6322 * one has the highest preference) and are described as a pair of 6323 * (global) Operating Class and Channel Number (each one octet) fields. 6324 * 6325 * This extends the standard P2P functionality by providing option to have 6326 * more than one preferred operating channel. When this element is present, 6327 * it replaces the preference indicated in the Operating Channel attribute. 6328 * For supporting other implementations, the Operating Channel attribute is 6329 * expected to be used with the highest preference channel. Similarly, all 6330 * the channels included in this Preferred channel list element are 6331 * expected to be included in the Channel List attribute. 6332 * 6333 * This vendor element may be included in GO Negotiation Request, P2P 6334 * Invitation Request, and Provision Discovery Request frames. 6335 * 6336 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element. 6337 * This element can be used for pre-standard publication testing of HE 6338 * before P802.11ax draft assigns the element ID. The payload of this 6339 * vendor specific element is defined by the latest P802.11ax draft. 6340 * Please note that the draft is still work in progress and this element 6341 * payload is subject to change. 6342 * 6343 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element. 6344 * This element can be used for pre-standard publication testing of HE 6345 * before P802.11ax draft assigns the element ID. The payload of this 6346 * vendor specific element is defined by the latest P802.11ax draft. 6347 * Please note that the draft is still work in progress and this element 6348 * payload is subject to change. 6349 * 6350 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set 6351 * element). 6352 * This element can be used for pre-standard publication testing of HE 6353 * before P802.11ax draft assigns the element ID extension. The payload of 6354 * this vendor specific element is defined by the latest P802.11ax draft 6355 * (not including the Element ID Extension field). Please note that the 6356 * draft is still work in progress and this element payload is subject to 6357 * change. 6358 * 6359 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element. 6360 * This element can be used for pre-standard publication testing of HE 6361 * before P802.11ax draft assigns the element ID extension. The payload of 6362 * this vendor specific element is defined by the latest P802.11ax draft 6363 * (not including the Element ID Extension field). Please note that the 6364 * draft is still work in progress and this element payload is subject to 6365 * change. 6366 * 6367 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element. 6368 * This element can be used for pre-standard publication testing of HE 6369 * before P802.11ax draft assigns the element ID extension. The payload of 6370 * this vendor specific element is defined by the latest P802.11ax draft 6371 * (not including the Element ID Extension field). Please note that the 6372 * draft is still work in progress and this element payload is subject to 6373 * change. 6374 */ 6375 enum qca_vendor_element_id { 6376 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0, 6377 QCA_VENDOR_ELEM_HE_CAPAB = 1, 6378 QCA_VENDOR_ELEM_HE_OPER = 2, 6379 QCA_VENDOR_ELEM_RAPS = 3, 6380 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4, 6381 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5, 6382 }; 6383 6384 /** 6385 * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture 6386 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32) 6387 * Specify the TSF command. Possible values are defined in 6388 * &enum qca_tsf_cmd. 6389 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64) 6390 * This attribute contains TSF timer value. This attribute is only available 6391 * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response. 6392 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64) 6393 * This attribute contains SOC timer value at TSF capture. This attribute is 6394 * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response. 6395 * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32) 6396 * This attribute is used to provide TSF sync interval and only applicable when 6397 * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the 6398 * driver will use the default value. Time unit is in milliseconds. 6399 */ 6400 enum qca_vendor_attr_tsf_cmd { 6401 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0, 6402 QCA_WLAN_VENDOR_ATTR_TSF_CMD, 6403 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE, 6404 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE, 6405 QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL, 6406 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST, 6407 QCA_WLAN_VENDOR_ATTR_TSF_MAX = 6408 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1 6409 }; 6410 6411 /** 6412 * enum qca_tsf_cmd: TSF driver commands 6413 * @QCA_TSF_CAPTURE: Initiate TSF Capture 6414 * @QCA_TSF_GET: Get TSF capture value 6415 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value 6416 * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target 6417 * will automatically send TSF report to the host. To query 6418 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be 6419 * initiated first. 6420 * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target 6421 * will not automatically send TSF report to the host. If 6422 * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and 6423 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this 6424 * operation needs to be initiated. 6425 * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically 6426 * fetches TSF and host time mapping from the firmware with interval configured 6427 * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the 6428 * interval value is not provided the driver will use the default value. The 6429 * userspace can query the TSF and host time mapping via the %QCA_TSF_GET 6430 * command. 6431 * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature. 6432 */ 6433 enum qca_tsf_cmd { 6434 QCA_TSF_CAPTURE, 6435 QCA_TSF_GET, 6436 QCA_TSF_SYNC_GET, 6437 QCA_TSF_AUTO_REPORT_ENABLE, 6438 QCA_TSF_AUTO_REPORT_DISABLE, 6439 QCA_TSF_SYNC_START, 6440 QCA_TSF_SYNC_STOP, 6441 }; 6442 6443 /** 6444 * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list 6445 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value 6446 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type 6447 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list 6448 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight 6449 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last 6450 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max 6451 */ 6452 enum qca_vendor_attr_get_preferred_freq_list { 6453 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID, 6454 /* A 32-unsigned value; the interface type/mode for which the preferred 6455 * frequency list is requested (see enum qca_iface_type for possible 6456 * values); used in both south- and north-bound. 6457 */ 6458 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE, 6459 /* An array of 32-unsigned values; values are frequency (MHz); used 6460 * in north-bound only. 6461 */ 6462 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST, 6463 /* An array of nested values as per enum 6464 * qca_wlan_vendor_attr_pcl_config attribute. 6465 * Each element contains frequency (MHz), weight, and flag 6466 * bit mask indicating how the frequency should be used in P2P 6467 * negotiation. 6468 */ 6469 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL, 6470 /* keep last */ 6471 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST, 6472 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX = 6473 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1 6474 }; 6475 6476 /** 6477 * enum qca_vendor_attr_probable_oper_channel - channel hint 6478 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value 6479 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type 6480 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value 6481 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last 6482 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max 6483 */ 6484 enum qca_vendor_attr_probable_oper_channel { 6485 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID, 6486 /* 32-bit unsigned value; indicates the connection/iface type likely to 6487 * come on this channel (see enum qca_iface_type). 6488 */ 6489 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE, 6490 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */ 6491 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ, 6492 /* keep last */ 6493 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST, 6494 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX = 6495 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1 6496 }; 6497 6498 /** 6499 * enum qca_wlan_vendor_attr_gw_param_config - gateway param config 6500 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid 6501 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr 6502 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr 6503 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr 6504 */ 6505 enum qca_wlan_vendor_attr_gw_param_config { 6506 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0, 6507 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR, 6508 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR, 6509 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR, 6510 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST, 6511 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX = 6512 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1, 6513 }; 6514 6515 /** 6516 * enum drv_dbs_capability - DBS capability 6517 * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled 6518 * @DRV_DBS_CAPABILITY_1X1: 1x1 6519 * @DRV_DBS_CAPABILITY_2X2: 2x2 6520 */ 6521 enum drv_dbs_capability { 6522 DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */ 6523 DRV_DBS_CAPABILITY_1X1, 6524 DRV_DBS_CAPABILITY_2X2, 6525 }; 6526 6527 /** 6528 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease 6529 * 6530 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB. 6531 */ 6532 enum qca_vendor_attr_txpower_decr_db { 6533 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID, 6534 /* 6535 * 8-bit unsigned value to indicate the reduction of TX power in dB for 6536 * a virtual interface. 6537 */ 6538 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB, 6539 /* keep last */ 6540 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST, 6541 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX = 6542 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1 6543 }; 6544 6545 /** 6546 * enum qca_vendor_attr_ota_test - Enable OTA test 6547 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value 6548 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test 6549 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last 6550 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max 6551 */ 6552 enum qca_vendor_attr_ota_test { 6553 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID, 6554 /* 8-bit unsigned value to indicate if OTA test is enabled */ 6555 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE, 6556 /* keep last */ 6557 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST, 6558 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX = 6559 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1 6560 }; 6561 6562 /** enum qca_vendor_attr_txpower_scale - vendor sub commands index 6563 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value 6564 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value 6565 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value 6566 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value 6567 */ 6568 enum qca_vendor_attr_txpower_scale { 6569 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID, 6570 /* 8-bit unsigned value to indicate the scaling of tx power */ 6571 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE, 6572 /* keep last */ 6573 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST, 6574 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX = 6575 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1 6576 }; 6577 6578 /** 6579 * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index 6580 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value 6581 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value 6582 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value 6583 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value 6584 */ 6585 enum qca_vendor_attr_txpower_scale_decr_db { 6586 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID, 6587 /* 8-bit unsigned value to indicate the scaling of tx power */ 6588 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB, 6589 /* keep last */ 6590 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST, 6591 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX = 6592 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1 6593 }; 6594 6595 /** 6596 * enum dfs_mode - state of DFS mode 6597 * @DFS_MODE_NONE: DFS mode attribute is none 6598 * @DFS_MODE_ENABLE: DFS mode is enabled 6599 * @DFS_MODE_DISABLE: DFS mode is disabled 6600 * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning 6601 */ 6602 enum dfs_mode { 6603 DFS_MODE_NONE, 6604 DFS_MODE_ENABLE, 6605 DFS_MODE_DISABLE, 6606 DFS_MODE_DEPRIORITIZE 6607 }; 6608 6609 /** 6610 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes 6611 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY. 6612 * 6613 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8) 6614 * DFS mode for ACS operation from enum qca_acs_dfs_mode. 6615 * 6616 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8) 6617 * channel number hint for ACS operation, if valid channel is specified then 6618 * ACS operation gives priority to this channel. 6619 * Note: If both the driver and user space application supports the 6 GHz band, 6620 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT 6621 * should be used. 6622 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT 6623 * is still used if either of the driver or user space application doesn't 6624 * support the 6 GHz band. 6625 * 6626 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32). 6627 * Channel center frequency (MHz) hint for ACS operation, if a valid center 6628 * frequency is specified, ACS operation gives priority to this channel. 6629 */ 6630 enum qca_wlan_vendor_attr_acs_config { 6631 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0, 6632 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1, 6633 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2, 6634 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3, 6635 6636 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST, 6637 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX = 6638 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1, 6639 }; 6640 6641 /** 6642 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability 6643 */ 6644 enum qca_wlan_vendor_attr_get_hw_capability { 6645 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID, 6646 /* 6647 * Antenna isolation 6648 * An attribute used in the response. 6649 * The content of this attribute is encoded in a byte array. Each byte 6650 * value is an antenna isolation value. The array length is the number 6651 * of antennas. 6652 */ 6653 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION, 6654 /* 6655 * Request HW capability 6656 * An attribute used in the request. 6657 * The content of this attribute is a u32 array for one or more of 6658 * hardware capabilities (attribute IDs) that are being requested. Each 6659 * u32 value has a value from this 6660 * enum qca_wlan_vendor_attr_get_hw_capability 6661 * identifying which capabilities are requested. 6662 */ 6663 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY, 6664 6665 /* keep last */ 6666 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST, 6667 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX = 6668 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1, 6669 }; 6670 6671 /** 6672 * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config - 6673 * config params for sta roam policy 6674 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid 6675 * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels 6676 * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL: 6677 * If sta should skip unsafe channels or not in scanning 6678 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST: 6679 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute 6680 */ 6681 enum qca_wlan_vendor_attr_sta_connect_roam_policy_config { 6682 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0, 6683 QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE, 6684 QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL, 6685 6686 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST, 6687 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX = 6688 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1, 6689 }; 6690 6691 /* Attributes for FTM commands and events */ 6692 6693 /** 6694 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities 6695 * 6696 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See 6697 * enum qca_wlan_vendor_attr_loc_capa_flags. 6698 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number 6699 * of measurement sessions that can run concurrently. 6700 * Default is one session (no session concurrency). 6701 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique 6702 * peers that are supported in running sessions. For example, 6703 * if the value is 8 and maximum number of sessions is 2, you can 6704 * have one session with 8 unique peers, or 2 sessions with 4 unique 6705 * peers each, and so on. 6706 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number 6707 * of bursts per peer, as an exponent (2^value). Default is 0, 6708 * meaning no multi-burst support. 6709 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number 6710 * of measurement exchanges allowed in a single burst. 6711 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement 6712 * types. A bit mask (unsigned 32 bit value), each bit corresponds 6713 * to an AOA type as defined by enum qca_vendor_attr_aoa_type. 6714 */ 6715 enum qca_wlan_vendor_attr_loc_capa { 6716 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID, 6717 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS, 6718 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS, 6719 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS, 6720 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP, 6721 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST, 6722 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES, 6723 /* keep last */ 6724 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST, 6725 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX = 6726 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1, 6727 }; 6728 6729 /** 6730 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags 6731 * 6732 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver 6733 * can be configured as an FTM responder (for example, an AP that 6734 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 6735 * will be supported if set. 6736 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver 6737 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION 6738 * will be supported if set. 6739 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder 6740 * supports immediate (ASAP) response. 6741 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone 6742 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS. 6743 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports 6744 * requesting AOA measurements as part of an FTM session. 6745 */ 6746 enum qca_wlan_vendor_attr_loc_capa_flags { 6747 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0, 6748 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1, 6749 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2, 6750 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3, 6751 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4, 6752 }; 6753 6754 /** 6755 * enum qca_wlan_ani_setting - ANI setting type 6756 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level 6757 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter 6758 */ 6759 enum qca_wlan_ani_setting { 6760 QCA_WLAN_ANI_SETTING_AUTO = 0, 6761 QCA_WLAN_ANI_SETTING_FIXED = 1, 6762 }; 6763 6764 /** 6765 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration 6766 * 6767 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8) 6768 * Channel number on which Access Point should restart. 6769 * Note: If both the driver and user space application supports the 6 GHz band, 6770 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY 6771 * should be used. 6772 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL 6773 * is still used if either of the driver or user space application doesn't 6774 * support the 6 GHz band. 6775 * 6776 * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required 6777 * Nested attribute to hold list of center frequencies on which AP is 6778 * expected to operate. This is irrespective of ACS configuration. 6779 * This list is a priority based one and is looked for before the AP is 6780 * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC) 6781 * co-exist in the system. 6782 * 6783 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32) 6784 * Channel center frequency (MHz) on which the access point should restart. 6785 */ 6786 enum qca_wlan_vendor_attr_sap_config { 6787 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0, 6788 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1, 6789 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2, 6790 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3, 6791 6792 /* Keep last */ 6793 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST, 6794 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX = 6795 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1, 6796 }; 6797 6798 /** 6799 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about 6800 * a single peer in a measurement session. 6801 * 6802 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer. 6803 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related 6804 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags. 6805 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of 6806 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0 6807 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for 6808 * list of supported attributes. 6809 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for 6810 * secure measurement. 6811 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA 6812 * measurement every <value> bursts. If 0 or not specified, 6813 * AOA measurements will be disabled for this peer. 6814 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where 6815 * the measurement frames are exchanged. Optional; if not 6816 * specified, try to locate the peer in the kernel scan 6817 * results cache and use frequency from there. 6818 */ 6819 enum qca_wlan_vendor_attr_ftm_peer_info { 6820 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID, 6821 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR, 6822 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS, 6823 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS, 6824 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID, 6825 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD, 6826 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ, 6827 /* keep last */ 6828 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST, 6829 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX = 6830 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1, 6831 }; 6832 6833 /** 6834 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags, 6835 * per-peer 6836 * 6837 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request 6838 * immediate (ASAP) response from peer. 6839 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request 6840 * LCI report from peer. The LCI report includes the absolute 6841 * location of the peer in "official" coordinates (similar to GPS). 6842 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information. 6843 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request 6844 * Location civic report from peer. The LCR includes the location 6845 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0, 6846 * 11.24.6.7 for more information. 6847 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set, 6848 * request a secure measurement. 6849 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided. 6850 */ 6851 enum qca_wlan_vendor_attr_ftm_peer_meas_flags { 6852 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0, 6853 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1, 6854 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2, 6855 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3, 6856 }; 6857 6858 /** 6859 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters 6860 * 6861 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements 6862 * to perform in a single burst. 6863 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to 6864 * perform, specified as an exponent (2^value). 6865 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst 6866 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. 6867 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts, 6868 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must 6869 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION. 6870 */ 6871 enum qca_wlan_vendor_attr_ftm_meas_param { 6872 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID, 6873 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST, 6874 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP, 6875 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION, 6876 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD, 6877 /* keep last */ 6878 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST, 6879 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX = 6880 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1, 6881 }; 6882 6883 /** 6884 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results 6885 * 6886 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported 6887 * peer. 6888 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement 6889 * request for this peer. 6890 * See enum qca_wlan_vendor_attr_ftm_peer_result_status. 6891 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related 6892 * to measurement results for this peer. 6893 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags. 6894 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when 6895 * request failed and peer requested not to send an additional request 6896 * for this number of seconds. 6897 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received 6898 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 6899 * 9.4.2.22.10. 6900 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when 6901 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 6902 * 9.4.2.22.13. 6903 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer 6904 * overridden some measurement request parameters. See 6905 * enum qca_wlan_vendor_attr_ftm_meas_param. 6906 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement 6907 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT. 6908 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement 6909 * results. Each entry is a nested attribute defined 6910 * by enum qca_wlan_vendor_attr_ftm_meas. 6911 */ 6912 enum qca_wlan_vendor_attr_ftm_peer_result { 6913 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID, 6914 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR, 6915 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS, 6916 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS, 6917 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS, 6918 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI, 6919 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR, 6920 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS, 6921 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS, 6922 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS, 6923 /* keep last */ 6924 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST, 6925 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX = 6926 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1, 6927 }; 6928 6929 /** 6930 * enum qca_wlan_vendor_attr_ftm_peer_result_status 6931 * 6932 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results 6933 * will be provided. Peer may have overridden some measurement parameters, 6934 * in which case overridden parameters will be report by 6935 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute. 6936 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable 6937 * of performing the measurement request. No more results will be sent 6938 * for this peer in this session. 6939 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request 6940 * failed, and requested not to send an additional request for number 6941 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS 6942 * attribute. 6943 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation 6944 * failed. Request was not sent over the air. 6945 */ 6946 enum qca_wlan_vendor_attr_ftm_peer_result_status { 6947 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK, 6948 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE, 6949 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED, 6950 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID, 6951 }; 6952 6953 /** 6954 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags 6955 * for measurement result, per-peer 6956 * 6957 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set, 6958 * measurement completed for this peer. No more results will be reported 6959 * for this peer in this session. 6960 */ 6961 enum qca_wlan_vendor_attr_ftm_peer_result_flags { 6962 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0, 6963 }; 6964 6965 /** 6966 * enum qca_vendor_attr_loc_session_status: Session completion status code 6967 * 6968 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed 6969 * successfully. 6970 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted 6971 * by request. 6972 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request 6973 * was invalid and was not started. 6974 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error 6975 * and did not complete normally (for example out of resources). 6976 */ 6977 enum qca_vendor_attr_loc_session_status { 6978 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK, 6979 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED, 6980 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID, 6981 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED, 6982 }; 6983 6984 /** 6985 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data 6986 * 6987 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as 6988 * recorded by responder, in picoseconds. 6989 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 6990 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at 6991 * initiator, in picoseconds. 6992 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 6993 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by 6994 * initiator, in picoseconds. 6995 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 6996 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at 6997 * responder, in picoseconds. 6998 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 6999 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded 7000 * during this measurement exchange. Optional and will be provided if 7001 * the hardware can measure it. 7002 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by 7003 * responder. Not always provided. 7004 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 7005 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by 7006 * responder. Not always provided. 7007 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 7008 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by 7009 * initiator. Not always provided. 7010 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 7011 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by 7012 * initiator. Not always provided. 7013 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 7014 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding. 7015 */ 7016 enum qca_wlan_vendor_attr_ftm_meas { 7017 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID, 7018 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1, 7019 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2, 7020 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3, 7021 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4, 7022 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI, 7023 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR, 7024 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR, 7025 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR, 7026 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR, 7027 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD, 7028 /* keep last */ 7029 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST, 7030 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX = 7031 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1, 7032 }; 7033 7034 /** 7035 * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index 7036 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value 7037 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL: 7038 * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one 7039 * of the social channels. 7040 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period 7041 * A 32-bit unsigned value; the P2P listen offload period (ms). 7042 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL: 7043 * A 32-bit unsigned value; the P2P listen interval duration (ms). 7044 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT: 7045 * A 32-bit unsigned value; number of interval times the Firmware needs 7046 * to run the offloaded P2P listen operation before it stops. 7047 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types 7048 * An array of unsigned 8-bit characters; vendor information elements. 7049 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs 7050 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW 7051 * A 32-bit unsigned value; a control flag to indicate whether listen 7052 * results need to be flushed to wpa_supplicant. 7053 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason 7054 * A 8-bit unsigned value; reason code for P2P listen offload stop 7055 * event. 7056 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value 7057 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value 7058 */ 7059 enum qca_wlan_vendor_attr_p2p_listen_offload { 7060 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0, 7061 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL, 7062 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD, 7063 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL, 7064 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT, 7065 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES, 7066 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE, 7067 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG, 7068 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON, 7069 /* keep last */ 7070 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST, 7071 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX = 7072 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1 7073 }; 7074 7075 /** 7076 * enum qca_wlan_vendor_drv_info - WLAN driver info 7077 * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid 7078 * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info 7079 * between Firmware & Host. 7080 */ 7081 enum qca_wlan_vendor_drv_info { 7082 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0, 7083 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE, 7084 7085 /* keep last */ 7086 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST, 7087 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX = 7088 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1, 7089 }; 7090 7091 /** 7092 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type 7093 * 7094 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest 7095 * CIR (channel impulse response) path for each antenna. 7096 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude 7097 * of the strongest CIR path for each antenna. 7098 */ 7099 enum qca_wlan_vendor_attr_aoa_type { 7100 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE, 7101 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP, 7102 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX 7103 }; 7104 7105 /** 7106 * enum qca_wlan_vendor_attr_encryption_test - Attributes to 7107 * validate encryption engine 7108 * 7109 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute. 7110 * This will be included if the request is for decryption; if not included, 7111 * the request is treated as a request for encryption by default. 7112 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value 7113 * indicating the key cipher suite. Takes same values as 7114 * NL80211_ATTR_KEY_CIPHER. 7115 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value 7116 * Key Id to be used for encryption 7117 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values. 7118 * Key (TK) to be used for encryption/decryption 7119 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values. 7120 * Packet number to be specified for encryption/decryption 7121 * 6 bytes for TKIP/CCMP/GCMP. 7122 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values 7123 * representing the 802.11 packet (header + payload + FCS) that 7124 * needs to be encrypted/decrypted. 7125 * Encrypted/decrypted response from the driver will also be sent 7126 * to userspace with the same attribute. 7127 */ 7128 enum qca_wlan_vendor_attr_encryption_test { 7129 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0, 7130 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION, 7131 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER, 7132 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID, 7133 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK, 7134 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN, 7135 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA, 7136 7137 /* keep last */ 7138 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST, 7139 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX = 7140 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1 7141 }; 7142 7143 /** 7144 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of 7145 * sector for DMG RF sector operations. 7146 * 7147 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector 7148 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector 7149 */ 7150 enum qca_wlan_vendor_attr_dmg_rf_sector_type { 7151 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX, 7152 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX, 7153 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX 7154 }; 7155 7156 /** 7157 * enum qca_wlan_vendor_attr_fw_state - State of firmware 7158 * 7159 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state 7160 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active 7161 */ 7162 enum qca_wlan_vendor_attr_fw_state { 7163 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR, 7164 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE, 7165 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX 7166 }; 7167 7168 /** 7169 * BRP antenna limit mode 7170 * 7171 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force 7172 * antenna limit, BRP will be performed as usual. 7173 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal 7174 * antennas limit. the hardware may use less antennas than the 7175 * maximum limit. 7176 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will 7177 * use exactly the specified number of antennas for BRP. 7178 */ 7179 enum qca_wlan_vendor_attr_brp_ant_limit_mode { 7180 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE, 7181 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE, 7182 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE, 7183 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX 7184 }; 7185 7186 /** 7187 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for 7188 * DMG RF sector configuration for a single RF module. 7189 * The values are defined in a compact way which closely matches 7190 * the way it is stored in HW registers. 7191 * The configuration provides values for 32 antennas and 8 distribution 7192 * amplifiers, and together describes the characteristics of the RF 7193 * sector - such as a beam in some direction with some gain. 7194 * 7195 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index 7196 * of RF module for this configuration. 7197 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge 7198 * amplifier gain index. Unsigned 32 bit number containing 7199 * bits for all 32 antennas. 7200 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge 7201 * amplifier gain index. Unsigned 32 bit number containing 7202 * bits for all 32 antennas. 7203 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge 7204 * amplifier gain index. Unsigned 32 bit number containing 7205 * bits for all 32 antennas. 7206 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values 7207 * for first 16 antennas, 2 bits per antenna. 7208 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values 7209 * for last 16 antennas, 2 bits per antenna. 7210 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains 7211 * DTYPE values (3 bits) for each distribution amplifier, followed 7212 * by X16 switch bits for each distribution amplifier. There are 7213 * total of 8 distribution amplifiers. 7214 */ 7215 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg { 7216 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0, 7217 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1, 7218 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2, 7219 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3, 7220 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4, 7221 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5, 7222 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6, 7223 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7, 7224 7225 /* keep last */ 7226 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST, 7227 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX = 7228 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1 7229 }; 7230 7231 /** 7232 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for 7233 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver. 7234 * 7235 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger 7236 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode 7237 * represents the different TDLS trigger modes. 7238 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within 7239 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number 7240 * of packets shall meet the criteria for implicit TDLS setup. 7241 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx 7242 * packets within a duration. 7243 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate 7244 * a TDLS setup. 7245 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate 7246 * a TDLS Discovery to the Peer. 7247 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of 7248 * discovery attempts to know the TDLS capability of the peer. A peer is 7249 * marked as TDLS not capable if there is no response for all the attempts. 7250 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32) 7251 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD 7252 * number of TX / RX frames meet the criteria for TDLS teardown. 7253 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number 7254 * (u32) of Tx/Rx packets within a duration 7255 * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link 7256 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold 7257 * corresponding to the RSSI of the peer below which a TDLS 7258 * setup is triggered. 7259 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold 7260 * corresponding to the RSSI of the peer above which 7261 * a TDLS teardown is triggered. 7262 */ 7263 enum qca_wlan_vendor_attr_tdls_configuration { 7264 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0, 7265 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1, 7266 7267 /* Attributes configuring the TDLS Implicit Trigger */ 7268 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2, 7269 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3, 7270 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4, 7271 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5, 7272 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6, 7273 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7, 7274 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8, 7275 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9, 7276 7277 /* keep last */ 7278 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST, 7279 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX = 7280 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1 7281 }; 7282 7283 /** 7284 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in 7285 * the driver. 7286 * 7287 * The following are the different values for 7288 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE. 7289 * 7290 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to 7291 * initiate/teardown the TDLS connection to a respective peer comes 7292 * from the user space. wpa_supplicant provides the commands 7293 * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this. 7294 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS 7295 * setup/teardown to the eligible peer once the configured criteria 7296 * (such as TX/RX threshold, RSSI) is met. The attributes 7297 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to 7298 * the different configuration criteria for the TDLS trigger from the 7299 * host driver. 7300 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger 7301 * the TDLS setup / teardown through the implicit mode, only to the 7302 * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1, 7303 * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands). 7304 * External mode works on top of the implicit mode, thus the host Driver 7305 * is expected to be configured in TDLS Implicit mode too to operate in 7306 * External mode. Configuring External mode alone without Implicit 7307 * mode is invalid. 7308 * 7309 * All the above implementations work as expected only when the host driver 7310 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - 7311 * representing that the TDLS message exchange is not internal to the host 7312 * driver, but depends on wpa_supplicant to do the message exchange. 7313 */ 7314 enum qca_wlan_vendor_tdls_trigger_mode { 7315 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0, 7316 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1, 7317 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2, 7318 }; 7319 7320 /** 7321 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits 7322 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0 7323 * that is hard-coded in the Board Data File (BDF). 7324 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1 7325 * that is hard-coded in the Board Data File (BDF). 7326 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2 7327 * that is hard-coded in the Board Data File (BDF). 7328 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3 7329 * that is hard-coded in the Board Data File (BDF). 7330 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4 7331 * that is hard-coded in the Board Data File (BDF). 7332 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any 7333 * source of SAR power limits, thereby disabling the SAR power 7334 * limit feature. 7335 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power 7336 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 7337 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power 7338 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 7339 * 7340 * This enumerates the valid set of values that may be supplied for 7341 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of 7342 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in 7343 * the response to an instance of the 7344 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 7345 */ 7346 enum qca_vendor_attr_sar_limits_selections { 7347 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0, 7348 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1, 7349 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2, 7350 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3, 7351 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4, 7352 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5, 7353 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6, 7354 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7, 7355 }; 7356 7357 /** 7358 * enum qca_vendor_attr_sar_limits_spec_modulations - 7359 * SAR limits specification modulation 7360 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK - 7361 * CCK modulation 7362 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM - 7363 * OFDM modulation 7364 * 7365 * This enumerates the valid set of values that may be supplied for 7366 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an 7367 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an 7368 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor 7369 * command or in the response to an instance of the 7370 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 7371 */ 7372 enum qca_vendor_attr_sar_limits_spec_modulations { 7373 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0, 7374 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1, 7375 }; 7376 7377 /** 7378 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits 7379 * 7380 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to 7381 * select which SAR power limit table should be used. Valid 7382 * values are enumerated in enum 7383 * %qca_vendor_attr_sar_limits_selections. The existing SAR 7384 * power limit selection is unchanged if this attribute is not 7385 * present. 7386 * 7387 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value 7388 * which specifies the number of SAR power limit specifications 7389 * which will follow. 7390 * 7391 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power 7392 * limit specifications. The number of specifications is 7393 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each 7394 * specification contains a set of 7395 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A 7396 * specification is uniquely identified by the attributes 7397 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND, 7398 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and 7399 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always 7400 * contains as a payload the attribute 7401 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT. 7402 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX. 7403 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or 7404 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is 7405 * needed based upon the value of 7406 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE. 7407 * 7408 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to 7409 * indicate for which band this specification applies. Valid 7410 * values are enumerated in enum %nl80211_band (although not all 7411 * bands may be supported by a given device). If the attribute is 7412 * not supplied then the specification will be applied to all 7413 * supported bands. 7414 * 7415 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value 7416 * to indicate for which antenna chain this specification 7417 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the 7418 * attribute is not supplied then the specification will be 7419 * applied to all chains. 7420 * 7421 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32) 7422 * value to indicate for which modulation scheme this 7423 * specification applies. Valid values are enumerated in enum 7424 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute 7425 * is not supplied then the specification will be applied to all 7426 * modulation schemes. 7427 * 7428 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32) 7429 * value to specify the actual power limit value in units of 0.5 7430 * dBm (i.e., a value of 11 represents 5.5 dBm). 7431 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 7432 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER. 7433 * 7434 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32) 7435 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles. 7436 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 7437 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0. 7438 * 7439 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS 7440 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS. 7441 */ 7442 enum qca_vendor_attr_sar_limits { 7443 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0, 7444 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1, 7445 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2, 7446 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3, 7447 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4, 7448 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5, 7449 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6, 7450 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7, 7451 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8, 7452 7453 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST, 7454 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX = 7455 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1 7456 }; 7457 7458 /** 7459 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring 7460 * offload which is an extension for LL_STATS. 7461 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms. 7462 * If MAC counters do not exceed the threshold, FW will report monitored 7463 * link layer counters periodically as this setting. The first report is 7464 * always triggered by this timer. 7465 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99). 7466 * For each MAC layer counter, FW holds two copies. One is the current value. 7467 * The other is the last report. Once a current counter's increment is larger 7468 * than the threshold, FW will indicate that counter to host even if the 7469 * monitoring timer does not expire. 7470 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change 7471 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU 7472 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same 7473 * failure code. 7474 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code 7475 * 1: TX packet discarded 7476 * 2: No ACK 7477 * 3: Postpone 7478 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address 7479 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state 7480 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold. 7481 * Threshold for all monitored parameters. If per counter dedicated threshold 7482 * is not enabled, this threshold will take effect. 7483 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this 7484 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0. 7485 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID 7486 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID 7487 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters 7488 * Bit0: TX counter unit in MSDU 7489 * Bit1: TX counter unit in MPDU 7490 * Bit2: TX counter unit in PPDU 7491 * Bit3: TX counter unit in byte 7492 * Bit4: Dropped MSDUs 7493 * Bit5: Dropped Bytes 7494 * Bit6: MPDU retry counter 7495 * Bit7: MPDU failure counter 7496 * Bit8: PPDU failure counter 7497 * Bit9: MPDU aggregation counter 7498 * Bit10: MCS counter for ACKed MPDUs 7499 * Bit11: MCS counter for Failed MPDUs 7500 * Bit12: TX Delay counter 7501 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters 7502 * Bit0: MAC RX counter unit in MPDU 7503 * Bit1: MAC RX counter unit in byte 7504 * Bit2: PHY RX counter unit in PPDU 7505 * Bit3: PHY RX counter unit in byte 7506 * Bit4: Disorder counter 7507 * Bit5: Retry counter 7508 * Bit6: Duplication counter 7509 * Bit7: Discard counter 7510 * Bit8: MPDU aggregation size counter 7511 * Bit9: MCS counter 7512 * Bit10: Peer STA power state change (wake to sleep) counter 7513 * Bit11: Peer STA power save counter, total time in PS mode 7514 * Bit12: Probe request counter 7515 * Bit13: Other management frames counter 7516 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA 7517 * Bit0: Idle time 7518 * Bit1: TX time 7519 * Bit2: time RX in current bss 7520 * Bit3: Out of current bss time 7521 * Bit4: Wireless medium busy time 7522 * Bit5: RX in bad condition time 7523 * Bit6: TX in bad condition time 7524 * Bit7: time wlan card not available 7525 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal 7526 * Bit0: Per channel SNR counter 7527 * Bit1: Per channel noise floor counter 7528 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers 7529 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels 7530 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats 7531 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats 7532 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats 7533 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs 7534 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs 7535 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs 7536 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data 7537 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets 7538 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped 7539 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK 7540 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed 7541 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed 7542 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM: 7543 * aggregation stats buffer length 7544 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats 7545 * buffer for ACKed MPDUs. 7546 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats 7547 * buffer for failed MPDUs. 7548 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE: 7549 * length of delay stats array. 7550 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats 7551 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs 7552 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs 7553 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats 7554 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received 7555 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received 7556 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received 7557 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received 7558 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost 7559 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets 7560 * flagged as retransmissions 7561 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets 7562 * flagged as duplicated 7563 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX 7564 * packets discarded 7565 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation 7566 * stats buffer. 7567 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs 7568 * stats buffer. 7569 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer 7570 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer 7571 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep 7572 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time 7573 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe 7574 * requests received 7575 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt 7576 * frames received 7577 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time 7578 * there is no TX, nor RX, nor interference. 7579 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time 7580 * transmitting packets. 7581 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time 7582 * for receiving. 7583 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time 7584 * interference detected. 7585 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time 7586 * receiving packets with errors. 7587 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time 7588 * TX no-ACK. 7589 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time 7590 * the chip is unable to work in normal conditions. 7591 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time 7592 * receiving packets in current BSS. 7593 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time 7594 * receiving packets not in current BSS. 7595 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas 7596 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL: 7597 * This is a container for per antenna signal stats. 7598 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value 7599 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value 7600 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon 7601 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon 7602 */ 7603 enum qca_wlan_vendor_attr_ll_stats_ext { 7604 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0, 7605 7606 /* Attributes for configurations */ 7607 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD, 7608 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD, 7609 7610 /* Peer STA power state change */ 7611 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG, 7612 7613 /* TX failure event */ 7614 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID, 7615 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU, 7616 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS, 7617 7618 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE, 7619 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS, 7620 7621 /* MAC counters */ 7622 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL, 7623 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE, 7624 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID, 7625 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID, 7626 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP, 7627 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP, 7628 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP, 7629 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP, 7630 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM, 7631 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM, 7632 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS, 7633 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER, 7634 7635 /* Sub-attributes for PEER_AC_TX */ 7636 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU, 7637 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU, 7638 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU, 7639 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES, 7640 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP, 7641 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES, 7642 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY, 7643 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK, 7644 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK, 7645 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM, 7646 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM, 7647 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM, 7648 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR, 7649 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS, 7650 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS, 7651 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE, 7652 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY, 7653 7654 /* Sub-attributes for PEER_AC_RX */ 7655 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU, 7656 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES, 7657 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU, 7658 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES, 7659 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST, 7660 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY, 7661 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP, 7662 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD, 7663 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM, 7664 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM, 7665 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS, 7666 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR, 7667 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES, 7668 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION, 7669 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ, 7670 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT, 7671 7672 /* Sub-attributes for CCA_BSS */ 7673 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME, 7674 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME, 7675 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME, 7676 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY, 7677 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD, 7678 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD, 7679 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL, 7680 7681 /* sub-attribute for BSS_RX_TIME */ 7682 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME, 7683 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME, 7684 7685 /* Sub-attributes for PEER_SIGNAL */ 7686 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM, 7687 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL, 7688 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR, 7689 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF, 7690 7691 /* Sub-attributes for IFACE_BSS */ 7692 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON, 7693 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON, 7694 7695 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST, 7696 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX = 7697 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1 7698 }; 7699 7700 /** 7701 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd 7702 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels 7703 * in priority order as decided after ACS operation in userspace. 7704 * 7705 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8). 7706 * One of reason code from enum qca_wlan_vendor_acs_select_reason. 7707 * 7708 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required 7709 * Array of nested values for each channel with following attributes: 7710 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, 7711 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, 7712 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, 7713 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, 7714 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 7715 * Note: If both the driver and user-space application supports the 6 GHz band, 7716 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use 7717 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST. 7718 * To maintain backward compatibility, 7719 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST 7720 * is still used if either of the driver or user space application doesn't 7721 * support the 6 GHz band. 7722 * 7723 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8). 7724 * Primary channel number 7725 * Note: If both the driver and user-space application supports the 6 GHz band, 7726 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use 7727 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY. 7728 * To maintain backward compatibility, 7729 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY 7730 * is still used if either of the driver or user space application doesn't 7731 * support the 6 GHz band. 7732 * 7733 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8). 7734 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths. 7735 * Note: If both the driver and user-space application supports the 6 GHz band, 7736 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use 7737 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY. 7738 * To maintain backward compatibility, 7739 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY 7740 * is still used if either of the driver or user space application 7741 * doesn't support the 6 GHz band. 7742 * 7743 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8). 7744 * VHT seg0 channel number 7745 * Note: If both the driver and user-space application supports the 6 GHz band, 7746 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use 7747 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0. 7748 * To maintain backward compatibility, 7749 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 7750 * is still used if either of the driver or user space application 7751 * doesn't support the 6 GHz band. 7752 * 7753 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8). 7754 * VHT seg1 channel number 7755 * Note: If both the driver and user-space application supports the 6 GHz band, 7756 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use 7757 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1. 7758 * To maintain backward compatibility, 7759 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 7760 * is still used if either of the driver or user space application 7761 * doesn't support the 6 GHz band. 7762 * 7763 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8). 7764 * Takes one of enum nl80211_chan_width values. 7765 * 7766 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required 7767 * Array of nested values for each channel with following attributes: 7768 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32), 7769 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32), 7770 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32), 7771 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32), 7772 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 7773 * Note: If user-space application has no support of the 6 GHz band, this 7774 * attribute is optional. 7775 * 7776 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32) 7777 * Primary channel frequency in MHz 7778 * Note: If user-space application has no support of the 6 GHz band, this 7779 * attribute is optional. 7780 * 7781 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32) 7782 * Secondary channel frequency in MHz used for HT 40 MHz channels. 7783 * Note: If user-space application has no support of the 6 GHz band, this 7784 * attribute is optional. 7785 * 7786 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32) 7787 * VHT seg0 channel frequency in MHz 7788 * Note: If user-space application has no support of the 6GHz band, this 7789 * attribute is optional. 7790 * 7791 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32) 7792 * VHT seg1 channel frequency in MHz 7793 * Note: If user-space application has no support of the 6 GHz band, this 7794 * attribute is optional. 7795 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16) 7796 * Puncture Bitmap for selected primary channel. Optional if no support 7797 * for EHT (IEEE 802.11be). Encoding for this attribute follows the 7798 * convention used in the Disabled Subchannel Bitmap field of the EHT Operation 7799 * element. 7800 */ 7801 enum qca_wlan_vendor_attr_external_acs_channels { 7802 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0, 7803 7804 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason 7805 */ 7806 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1, 7807 7808 /* Array of nested values for each channel with following attributes: 7809 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND, 7810 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, 7811 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, 7812 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, 7813 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, 7814 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 7815 */ 7816 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2, 7817 /* This (u8) will hold values of one of enum nl80211_bands */ 7818 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3, 7819 /* Primary channel (u8) */ 7820 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4, 7821 /* Secondary channel (u8) used for HT 40 MHz channels */ 7822 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5, 7823 /* VHT seg0 channel (u8) */ 7824 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6, 7825 /* VHT seg1 channel (u8) */ 7826 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7, 7827 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */ 7828 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8, 7829 7830 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9, 7831 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10, 7832 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11, 7833 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12, 7834 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13, 7835 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14, 7836 7837 /* keep last */ 7838 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST, 7839 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX = 7840 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1 7841 }; 7842 7843 /** 7844 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why 7845 * the ACS has to be triggered. These values are used by 7846 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and 7847 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON 7848 */ 7849 enum qca_wlan_vendor_acs_select_reason { 7850 /* Represents the reason that the ACS triggered during the AP start */ 7851 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT, 7852 /* Represents the reason that DFS found with the current channel */ 7853 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS, 7854 /* Represents the reason that LTE co-exist in the current band. */ 7855 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX, 7856 /* Represents the reason that generic, uncategorized interference has 7857 * been found in the current channel. 7858 */ 7859 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE, 7860 /* Represents the reason that excessive 802.11 interference has been 7861 * found in the current channel. 7862 */ 7863 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE, 7864 /* Represents the reason that generic Continuous Wave (CW) interference 7865 * has been found in the current channel. 7866 */ 7867 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE, 7868 /* Represents the reason that Microwave Oven (MWO) interference has been 7869 * found in the current channel. 7870 */ 7871 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE, 7872 /* Represents the reason that generic Frequency-Hopping Spread Spectrum 7873 * (FHSS) interference has been found in the current channel. This may 7874 * include 802.11 waveforms. 7875 */ 7876 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE, 7877 /* Represents the reason that non-802.11 generic Frequency-Hopping 7878 * Spread Spectrum (FHSS) interference has been found in the current 7879 * channel. 7880 */ 7881 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE, 7882 /* Represents the reason that generic Wideband (WB) interference has 7883 * been found in the current channel. This may include 802.11 waveforms. 7884 */ 7885 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE, 7886 /* Represents the reason that non-802.11 generic Wideband (WB) 7887 * interference has been found in the current channel. 7888 */ 7889 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE, 7890 /* Represents the reason that Jammer interference has been found in the 7891 * current channel. 7892 */ 7893 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE, 7894 /* Represents the reason that ACS triggered by AFC */ 7895 QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER, 7896 }; 7897 7898 /** 7899 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration 7900 * 7901 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32) 7902 * value to specify the gpio command, please refer to enum qca_gpio_cmd_type 7903 * to get the available value that this item can use. 7904 * 7905 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32) 7906 * value to specify the gpio number. 7907 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 7908 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT. 7909 * 7910 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32) 7911 * value to specify the gpio output level, please refer to enum qca_gpio_value 7912 * to get the available value that this item can use. 7913 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 7914 * %QCA_WLAN_VENDOR_GPIO_OUTPUT. 7915 * 7916 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32) 7917 * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type 7918 * to get the available value that this item can use. 7919 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 7920 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 7921 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 7922 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 7923 * attribute is present. 7924 * 7925 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32) 7926 * value to specify the gpio interrupt mode, please refer to enum 7927 * qca_gpio_interrupt_mode to get the available value that this item can use. 7928 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 7929 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 7930 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 7931 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 7932 * attribute is present. 7933 * 7934 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32) 7935 * value to specify the gpio direction, please refer to enum qca_gpio_direction 7936 * to get the available value that this item can use. 7937 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 7938 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 7939 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 7940 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 7941 * attribute is present. 7942 * 7943 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32) 7944 * Value to specify the mux config. Meaning of a given value is dependent 7945 * on the target chipset and gpio pin. Must be of the range 0-15. 7946 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 7947 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0. 7948 * 7949 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32) 7950 * Value to specify the drive, Refer to enum qca_gpio_drive. 7951 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 7952 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0). 7953 * 7954 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag) 7955 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 7956 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all 7957 * other parameters for the given GPIO will be obtained from internal 7958 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be 7959 * specified to indicate the GPIO pin being configured. 7960 */ 7961 enum qca_wlan_gpio_attr { 7962 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0, 7963 /* Unsigned 32-bit attribute for GPIO command */ 7964 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1, 7965 /* Unsigned 32-bit attribute for GPIO PIN number to configure */ 7966 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2, 7967 /* Unsigned 32-bit attribute for GPIO value to configure */ 7968 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3, 7969 /* Unsigned 32-bit attribute for GPIO pull type */ 7970 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4, 7971 /* Unsigned 32-bit attribute for GPIO interrupt mode */ 7972 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5, 7973 /* Unsigned 32-bit attribute for GPIO direction to configure */ 7974 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6, 7975 /* Unsigned 32-bit attribute for GPIO mux config */ 7976 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7, 7977 /* Unsigned 32-bit attribute for GPIO drive */ 7978 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8, 7979 /* Flag attribute for using internal gpio configuration */ 7980 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9, 7981 7982 /* keep last */ 7983 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST, 7984 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX = 7985 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1, 7986 }; 7987 7988 /** 7989 * enum gpio_cmd_type - GPIO configuration command type 7990 * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info 7991 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level 7992 */ 7993 enum qca_gpio_cmd_type { 7994 QCA_WLAN_VENDOR_GPIO_CONFIG = 0, 7995 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1, 7996 }; 7997 7998 /** 7999 * enum qca_gpio_pull_type - GPIO pull type 8000 * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none 8001 * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up 8002 * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down 8003 */ 8004 enum qca_gpio_pull_type { 8005 QCA_WLAN_GPIO_PULL_NONE = 0, 8006 QCA_WLAN_GPIO_PULL_UP = 1, 8007 QCA_WLAN_GPIO_PULL_DOWN = 2, 8008 QCA_WLAN_GPIO_PULL_MAX, 8009 }; 8010 8011 /** 8012 * enum qca_gpio_direction - GPIO direction 8013 * @QCA_WLAN_GPIO_INPUT: set gpio as input mode 8014 * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode 8015 * @QCA_WLAN_GPIO_VALUE_MAX: invalid value 8016 */ 8017 enum qca_gpio_direction { 8018 QCA_WLAN_GPIO_INPUT = 0, 8019 QCA_WLAN_GPIO_OUTPUT = 1, 8020 QCA_WLAN_GPIO_DIR_MAX, 8021 }; 8022 8023 /** 8024 * enum qca_gpio_value - GPIO Value 8025 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low 8026 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high 8027 * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value 8028 */ 8029 enum qca_gpio_value { 8030 QCA_WLAN_GPIO_LEVEL_LOW = 0, 8031 QCA_WLAN_GPIO_LEVEL_HIGH = 1, 8032 QCA_WLAN_GPIO_LEVEL_MAX, 8033 }; 8034 8035 /** 8036 * enum gpio_interrupt_mode - GPIO interrupt mode 8037 * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger 8038 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger 8039 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger 8040 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger 8041 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger 8042 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger 8043 * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value 8044 */ 8045 enum qca_gpio_interrupt_mode { 8046 QCA_WLAN_GPIO_INTMODE_DISABLE = 0, 8047 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1, 8048 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2, 8049 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3, 8050 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4, 8051 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5, 8052 QCA_WLAN_GPIO_INTMODE_MAX, 8053 }; 8054 8055 /** 8056 * enum gpio_drive - GPIO drive 8057 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA 8058 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA 8059 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA 8060 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA 8061 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA 8062 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA 8063 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA 8064 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA 8065 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive 8066 */ 8067 enum qca_gpio_drive { 8068 QCA_WLAN_GPIO_DRIVE_2MA = 0, 8069 QCA_WLAN_GPIO_DRIVE_4MA = 1, 8070 QCA_WLAN_GPIO_DRIVE_6MA = 2, 8071 QCA_WLAN_GPIO_DRIVE_8MA = 3, 8072 QCA_WLAN_GPIO_DRIVE_10MA = 4, 8073 QCA_WLAN_GPIO_DRIVE_12MA = 5, 8074 QCA_WLAN_GPIO_DRIVE_14MA = 6, 8075 QCA_WLAN_GPIO_DRIVE_16MA = 7, 8076 QCA_WLAN_GPIO_DRIVE_MAX, 8077 }; 8078 8079 /** 8080 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting 8081 * MSDUQ depth threshold per peer per tid in the target 8082 * 8083 * Associated Vendor Command: 8084 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH 8085 */ 8086 enum qca_wlan_set_qdepth_thresh_attr { 8087 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0, 8088 /* 6-byte MAC address */ 8089 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR, 8090 /* Unsigned 32-bit attribute for holding the TID */ 8091 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID, 8092 /* Unsigned 32-bit attribute for holding the update mask 8093 * bit 0 - Update high priority msdu qdepth threshold 8094 * bit 1 - Update low priority msdu qdepth threshold 8095 * bit 2 - Update UDP msdu qdepth threshold 8096 * bit 3 - Update Non UDP msdu qdepth threshold 8097 * rest of bits are reserved 8098 */ 8099 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK, 8100 /* Unsigned 32-bit attribute for holding the threshold value */ 8101 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE, 8102 8103 /* keep last */ 8104 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST, 8105 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX = 8106 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1, 8107 }; 8108 8109 /** 8110 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for 8111 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd 8112 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the 8113 * external ACS policies to select the channels w.r.t. the PCL weights. 8114 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and 8115 * their PCL weights.) 8116 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to 8117 * select a channel with non-zero PCL weight. 8118 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a 8119 * channel with non-zero PCL weight. 8120 * 8121 */ 8122 enum qca_wlan_vendor_attr_external_acs_policy { 8123 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED, 8124 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY, 8125 }; 8126 8127 /** 8128 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters 8129 */ 8130 enum qca_wlan_vendor_attr_spectral_scan { 8131 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0, 8132 /* 8133 * Number of times the chip enters spectral scan mode before 8134 * deactivating spectral scans. When set to 0, chip will enter spectral 8135 * scan mode continuously. u32 attribute. 8136 */ 8137 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1, 8138 /* 8139 * Spectral scan period. Period increment resolution is 256*Tclk, 8140 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute. 8141 */ 8142 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2, 8143 /* Spectral scan priority. u32 attribute. */ 8144 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3, 8145 /* Number of FFT data points to compute. u32 attribute. */ 8146 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4, 8147 /* 8148 * Enable targeted gain change before starting the spectral scan FFT. 8149 * u32 attribute. 8150 */ 8151 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5, 8152 /* Restart a queued spectral scan. u32 attribute. */ 8153 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6, 8154 /* 8155 * Noise floor reference number for the calculation of bin power. 8156 * u32 attribute. 8157 */ 8158 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7, 8159 /* 8160 * Disallow spectral scan triggers after TX/RX packets by setting 8161 * this delay value to roughly SIFS time period or greater. 8162 * u32 attribute. 8163 */ 8164 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8, 8165 /* 8166 * Number of strong bins (inclusive) per sub-channel, below 8167 * which a signal is declared a narrow band tone. u32 attribute. 8168 */ 8169 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9, 8170 /* 8171 * Specify the threshold over which a bin is declared strong (for 8172 * scan bandwidth analysis). u32 attribute. 8173 */ 8174 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10, 8175 /* Spectral scan report mode. u32 attribute. */ 8176 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11, 8177 /* 8178 * RSSI report mode, if the ADC RSSI is below 8179 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR, 8180 * then FFTs will not trigger, but timestamps and summaries get 8181 * reported. u32 attribute. 8182 */ 8183 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12, 8184 /* 8185 * ADC RSSI must be greater than or equal to this threshold (signed dB) 8186 * to ensure spectral scan reporting with normal error code. 8187 * u32 attribute. 8188 */ 8189 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13, 8190 /* 8191 * Format of frequency bin magnitude for spectral scan triggered FFTs: 8192 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)). 8193 * u32 attribute. 8194 */ 8195 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14, 8196 /* 8197 * Format of FFT report to software for spectral scan triggered FFTs. 8198 * 0: No FFT report (only spectral scan summary report) 8199 * 1: 2-dword summary of metrics for each completed FFT + spectral scan 8200 * report 8201 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled 8202 * bins (in-band) per FFT + spectral scan summary report 8203 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled 8204 * bins (all) per FFT + spectral scan summary report 8205 * u32 attribute. 8206 */ 8207 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15, 8208 /* 8209 * Number of LSBs to shift out in order to scale the FFT bins. 8210 * u32 attribute. 8211 */ 8212 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16, 8213 /* 8214 * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes 8215 * in dBm power. u32 attribute. 8216 */ 8217 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17, 8218 /* 8219 * Per chain enable mask to select input ADC for search FFT. 8220 * u32 attribute. 8221 */ 8222 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18, 8223 /* 8224 * An unsigned 64-bit integer provided by host driver to identify the 8225 * spectral scan request. This attribute is included in the scan 8226 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START 8227 * and used as an attribute in 8228 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the 8229 * specific scan to be stopped. 8230 */ 8231 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19, 8232 /* Skip interval for FFT reports. u32 attribute */ 8233 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20, 8234 /* Set to report only one set of FFT results. 8235 * u32 attribute. 8236 */ 8237 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21, 8238 /* Debug level for spectral module in driver. 8239 * 0 : Verbosity level 0 8240 * 1 : Verbosity level 1 8241 * 2 : Verbosity level 2 8242 * 3 : Matched filterID display 8243 * 4 : One time dump of FFT report 8244 * u32 attribute. 8245 */ 8246 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22, 8247 /* Type of spectral scan request. u32 attribute. 8248 * It uses values defined in enum 8249 * qca_wlan_vendor_attr_spectral_scan_request_type. 8250 */ 8251 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23, 8252 /* This specifies the frequency span over which spectral 8253 * scan would be carried out. Its value depends on the 8254 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and 8255 * the relation is as follows. 8256 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL 8257 * Not applicable. Spectral scan would happen in the 8258 * operating span. 8259 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE 8260 * Center frequency (in MHz) of the span of interest or 8261 * for convenience, center frequency (in MHz) of any channel 8262 * in the span of interest. For 80+80 MHz agile spectral scan 8263 * request it represents center frequency (in MHz) of the primary 8264 * 80 MHz span or for convenience, center frequency (in MHz) of any 8265 * channel in the primary 80 MHz span. If agile spectral scan is 8266 * initiated without setting a valid frequency it returns the 8267 * error code 8268 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED). 8269 * u32 attribute. 8270 */ 8271 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24, 8272 /* Spectral scan mode. u32 attribute. 8273 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. 8274 * If this attribute is not present, it is assumed to be 8275 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL). 8276 */ 8277 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25, 8278 /* Spectral scan error code. u32 attribute. 8279 * It uses values defined in enum 8280 * qca_wlan_vendor_spectral_scan_error_code. 8281 * This attribute is included only in failure scenarios. 8282 */ 8283 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26, 8284 /* 8-bit unsigned value to enable/disable debug of the 8285 * Spectral DMA ring. 8286 * 1-enable, 0-disable 8287 */ 8288 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27, 8289 /* 8-bit unsigned value to enable/disable debug of the 8290 * Spectral DMA buffers. 8291 * 1-enable, 0-disable 8292 */ 8293 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28, 8294 /* This specifies the frequency span over which spectral scan would be 8295 * carried out. Its value depends on the value of 8296 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as 8297 * follows. 8298 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL 8299 * Not applicable. Spectral scan would happen in the operating span. 8300 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE 8301 * This attribute is applicable only for agile spectral scan 8302 * requests in 80+80 MHz mode. It represents center frequency (in 8303 * MHz) of the secondary 80 MHz span or for convenience, center 8304 * frequency (in MHz) of any channel in the secondary 80 MHz span. 8305 * u32 attribute. 8306 */ 8307 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29, 8308 /* This attribute specifies the bandwidth to be used for Spectral scan 8309 * operation. This is an u8 attribute and uses the values in enum 8310 * nl80211_chan_width. This is an optional attribute. 8311 * If this attribute is not populated, the driver should configure the 8312 * Spectral scan bandwidth to the maximum value supported by the target 8313 * for the current operating bandwidth. 8314 */ 8315 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30, 8316 /* Spectral FFT recapture flag attribute, to enable/disable FFT 8317 * recapture. Recapture can only be enabled for Scan period greater 8318 * than 52us. 8319 * If this attribute is enabled, re-triggers will be enabled in uCode 8320 * when AGC gain changes. 8321 */ 8322 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31, 8323 8324 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST, 8325 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX = 8326 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1, 8327 }; 8328 8329 /** 8330 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command 8331 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS. 8332 */ 8333 enum qca_wlan_vendor_attr_spectral_diag_stats { 8334 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0, 8335 /* Number of spectral TLV signature mismatches. 8336 * u64 attribute. 8337 */ 8338 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1, 8339 /* Number of spectral phyerror events with insufficient length when 8340 * parsing for secondary 80 search FFT report. u64 attribute. 8341 */ 8342 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2, 8343 /* Number of spectral phyerror events without secondary 80 8344 * search FFT report. u64 attribute. 8345 */ 8346 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3, 8347 /* Number of spectral phyerror events with vht operation segment 1 id 8348 * mismatches in search fft report. u64 attribute. 8349 */ 8350 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4, 8351 /* Number of spectral phyerror events with vht operation segment 2 id 8352 * mismatches in search fft report. u64 attribute. 8353 */ 8354 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5, 8355 8356 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST, 8357 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX = 8358 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1, 8359 }; 8360 8361 /** 8362 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command 8363 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. 8364 */ 8365 enum qca_wlan_vendor_attr_spectral_cap { 8366 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0, 8367 /* Flag attribute to indicate phydiag capability */ 8368 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1, 8369 /* Flag attribute to indicate radar detection capability */ 8370 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2, 8371 /* Flag attribute to indicate spectral capability */ 8372 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3, 8373 /* Flag attribute to indicate advanced spectral capability */ 8374 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4, 8375 /* Spectral hardware generation. u32 attribute. 8376 * It uses values defined in enum 8377 * qca_wlan_vendor_spectral_scan_cap_hw_gen. 8378 */ 8379 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5, 8380 /* Spectral bin scaling formula ID. u16 attribute. 8381 * It uses values defined in enum 8382 * qca_wlan_vendor_spectral_scan_cap_formula_id. 8383 */ 8384 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6, 8385 /* Spectral bin scaling param - low level offset. 8386 * s16 attribute. 8387 */ 8388 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7, 8389 /* Spectral bin scaling param - high level offset. 8390 * s16 attribute. 8391 */ 8392 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8, 8393 /* Spectral bin scaling param - RSSI threshold. 8394 * s16 attribute. 8395 */ 8396 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9, 8397 /* Spectral bin scaling param - default AGC max gain. 8398 * u8 attribute. 8399 */ 8400 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10, 8401 /* Flag attribute to indicate agile spectral scan capability 8402 * for 20/40/80 MHz modes. 8403 */ 8404 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11, 8405 /* Flag attribute to indicate agile spectral scan capability 8406 * for 160 MHz mode. 8407 */ 8408 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12, 8409 /* Flag attribute to indicate agile spectral scan capability 8410 * for 80+80 MHz mode. 8411 */ 8412 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13, 8413 /* Number of spectral detectors used for scan in 20 MHz. 8414 * u32 attribute. 8415 */ 8416 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14, 8417 /* Number of spectral detectors used for scan in 40 MHz. 8418 * u32 attribute. 8419 */ 8420 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15, 8421 /* Number of spectral detectors used for scan in 80 MHz. 8422 * u32 attribute. 8423 */ 8424 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16, 8425 /* Number of spectral detectors used for scan in 160 MHz. 8426 * u32 attribute. 8427 */ 8428 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17, 8429 /* Number of spectral detectors used for scan in 80+80 MHz. 8430 * u32 attribute. 8431 */ 8432 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18, 8433 /* Flag attribute to indicate agile spectral scan capability 8434 * for 320 MHz mode. 8435 */ 8436 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19, 8437 /* Number of spectral detectors used for scan in 320 MHz. 8438 * u32 attribute. 8439 */ 8440 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20, 8441 8442 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST, 8443 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX = 8444 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1, 8445 }; 8446 8447 /** 8448 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command 8449 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. 8450 */ 8451 enum qca_wlan_vendor_attr_spectral_scan_status { 8452 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0, 8453 /* Flag attribute to indicate whether spectral scan is enabled */ 8454 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1, 8455 /* Flag attribute to indicate whether spectral scan is in progress*/ 8456 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2, 8457 /* Spectral scan mode. u32 attribute. 8458 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. 8459 * If this attribute is not present, normal mode 8460 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be 8461 * requested. 8462 */ 8463 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3, 8464 8465 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST, 8466 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX = 8467 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1, 8468 }; 8469 8470 /** 8471 * enum qca_wlan_vendor_attr_config_latency_level - Level for 8472 * wlan latency module. 8473 * 8474 * There will be various of Wi-Fi functionality like scan/roaming/adaptive 8475 * power saving which would causing data exchange out of service, this 8476 * would be a big impact on latency. For latency sensitive applications over 8477 * Wi-Fi are intolerant to such operations and thus would configure them 8478 * to meet their respective needs. It is well understood by such applications 8479 * that altering the default behavior would degrade the Wi-Fi functionality 8480 * w.r.t the above pointed WLAN operations. 8481 * 8482 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL: 8483 * Default WLAN operation level which throughput orientated. 8484 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR: 8485 * Use XR level to benefit XR (extended reality) application to achieve 8486 * latency and power by via constraint scan/roaming/adaptive PS. 8487 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW: 8488 * Use low latency level to benefit application like concurrent 8489 * downloading or video streaming via constraint scan/adaptive PS. 8490 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW: 8491 * Use ultra low latency level to benefit for gaming/voice 8492 * application via constraint scan/roaming/adaptive PS. 8493 */ 8494 enum qca_wlan_vendor_attr_config_latency_level { 8495 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0, 8496 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1, 8497 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2, 8498 /* legacy name */ 8499 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 8500 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR, 8501 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3, 8502 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4, 8503 8504 /* keep last */ 8505 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST, 8506 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX = 8507 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1, 8508 }; 8509 8510 /** 8511 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for 8512 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd 8513 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the 8514 * spectral scan request types. 8515 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to 8516 * set the spectral parameters and start scan. 8517 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to 8518 * only set the spectral parameters. 8519 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to 8520 * only start the spectral scan. 8521 */ 8522 enum qca_wlan_vendor_attr_spectral_scan_request_type { 8523 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG, 8524 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN, 8525 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG, 8526 }; 8527 8528 /** 8529 * qca_wlan_vendor_spectral_scan_mode: Attribute values for 8530 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd 8531 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and 8532 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd 8533 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the 8534 * spectral scan modes. 8535 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan: 8536 * spectral scan in the current operating span. 8537 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan: 8538 * spectral scan in the configured agile span. 8539 */ 8540 enum qca_wlan_vendor_spectral_scan_mode { 8541 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0, 8542 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1, 8543 }; 8544 8545 /** 8546 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for 8547 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd 8548 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. 8549 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value 8550 * of a parameter is not supported. 8551 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan 8552 * mode is not supported. 8553 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter 8554 * has invalid value. 8555 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter 8556 * is not initialized. 8557 */ 8558 enum qca_wlan_vendor_spectral_scan_error_code { 8559 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0, 8560 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1, 8561 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2, 8562 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3, 8563 }; 8564 8565 /** 8566 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for 8567 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd 8568 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the 8569 * spectral hardware generation. 8570 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1 8571 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2 8572 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3 8573 */ 8574 enum qca_wlan_vendor_spectral_scan_cap_hw_gen { 8575 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0, 8576 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1, 8577 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2, 8578 }; 8579 8580 /** 8581 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for 8582 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd 8583 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the 8584 * Spectral bin scaling formula ID. 8585 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling 8586 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain 8587 * and RSSI threshold based formula. 8588 */ 8589 enum qca_wlan_vendor_spectral_scan_cap_formula_id { 8590 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0, 8591 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1, 8592 }; 8593 8594 /** 8595 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative 8596 * RF Operating Parameter (RROP) information is available, and if so, at which 8597 * point in the application-driver interaction sequence it can be retrieved by 8598 * the application from the driver. This point may vary by architecture and 8599 * other factors. This is a u16 value. 8600 */ 8601 enum qca_wlan_vendor_attr_rropavail_info { 8602 /* RROP information is unavailable. */ 8603 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE, 8604 /* RROP information is available and the application can retrieve the 8605 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS 8606 * event from the driver. 8607 */ 8608 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START, 8609 /* RROP information is available only after a vendor specific scan 8610 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has 8611 * successfully completed. The application can retrieve the information 8612 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from 8613 * the driver. 8614 */ 8615 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END, 8616 }; 8617 8618 /** 8619 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific 8620 * Representative RF Operating Parameter (RROP) information. It is sent for the 8621 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is 8622 * intended for use by external Auto Channel Selection applications. It provides 8623 * guidance values for some RF parameters that are used by the system during 8624 * operation. These values could vary by channel, band, radio, and so on. 8625 */ 8626 enum qca_wlan_vendor_attr_rrop_info { 8627 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0, 8628 8629 /* Representative Tx Power List (RTPL) which has an array of nested 8630 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst. 8631 */ 8632 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1, 8633 8634 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST, 8635 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX = 8636 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1 8637 }; 8638 8639 /** 8640 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list 8641 * entry instances in the Representative Tx Power List (RTPL). It provides 8642 * simplified power values intended for helping external Auto channel Selection 8643 * applications compare potential Tx power performance between channels, other 8644 * operating conditions remaining identical. These values are not necessarily 8645 * the actual Tx power values that will be used by the system. They are also not 8646 * necessarily the max or average values that will be used. Instead, they are 8647 * relative, summarized keys for algorithmic use computed by the driver or 8648 * underlying firmware considering a number of vendor specific factors. 8649 */ 8650 enum qca_wlan_vendor_attr_rtplinst { 8651 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0, 8652 8653 /* Primary channel number (u8). 8654 * Note: If both the driver and user space application support the 8655 * 6 GHz band, this attribute is deprecated and 8656 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To 8657 * maintain backward compatibility, 8658 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the 8659 * driver or user space application or both do not support the 6 GHz 8660 * band. 8661 */ 8662 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1, 8663 /* Representative Tx power in dBm (s32) with emphasis on throughput. */ 8664 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2, 8665 /* Representative Tx power in dBm (s32) with emphasis on range. */ 8666 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3, 8667 /* Primary channel center frequency (u32) in MHz */ 8668 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4, 8669 8670 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST, 8671 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX = 8672 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1, 8673 }; 8674 8675 /** 8676 * enum qca_wlan_vendor_attr_mac - Used by the vendor command 8677 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 8678 * 8679 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an 8680 * array of nested values as per attributes in 8681 * enum qca_wlan_vendor_attr_mac_mode_info. 8682 */ 8683 enum qca_wlan_vendor_attr_mac { 8684 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0, 8685 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1, 8686 8687 /* keep last */ 8688 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST, 8689 QCA_WLAN_VENDOR_ATTR_MAC_MAX = 8690 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1, 8691 }; 8692 8693 /** 8694 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected 8695 * WiFi netdev interface on a respective MAC. Used by the attribute 8696 * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO. 8697 * 8698 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32). 8699 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of 8700 * the connected Wi-Fi interface(u32). 8701 */ 8702 enum qca_wlan_vendor_attr_mac_iface_info { 8703 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0, 8704 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1, 8705 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2, 8706 8707 /* keep last */ 8708 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST, 8709 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX = 8710 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1, 8711 }; 8712 8713 /** 8714 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information. 8715 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the 8716 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 8717 * 8718 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the 8719 * MAC (u32) 8720 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC 8721 * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described 8722 * in enum nl80211_band. 8723 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev 8724 * interfaces associated with this MAC. Represented by enum 8725 * qca_wlan_vendor_attr_mac_iface_info. 8726 */ 8727 enum qca_wlan_vendor_attr_mac_info { 8728 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0, 8729 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1, 8730 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2, 8731 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3, 8732 8733 /* keep last */ 8734 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST, 8735 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX = 8736 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1, 8737 8738 }; 8739 8740 /** 8741 * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes 8742 * to get thermal status from driver/firmware. 8743 * enum values are used for NL attributes encapsulated inside 8744 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute. 8745 * 8746 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature 8747 * of a thermal level in Celsius. u32 size. 8748 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature 8749 * of a thermal level in Celsius. u32 size. 8750 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each 8751 * thermal level in milliseconds. u32 size. 8752 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number 8753 * of times the temperature crossed into the temperature range defined by the 8754 * thermal level from both higher and lower directions. u32 size. 8755 */ 8756 enum qca_wlan_vendor_attr_thermal_stats { 8757 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0, 8758 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE, 8759 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE, 8760 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME, 8761 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER, 8762 8763 /* keep last */ 8764 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST, 8765 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX = 8766 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1, 8767 }; 8768 8769 /** 8770 * enum he_fragmentation_val - HE fragmentation support values 8771 * Indicates level of dynamic fragmentation that is supported by 8772 * a STA as a recipient. 8773 * HE fragmentation values are defined as per 11ax spec and are used in 8774 * HE capability IE to advertise the support. These values are validated 8775 * in the driver to check the device capability and advertised in the HE 8776 * capability element. 8777 * 8778 * @HE_FRAG_DISABLE: no support for dynamic fragmentation 8779 * @HE_FRAG_LEVEL1: support for dynamic fragments that are 8780 * contained within an MPDU or S-MPDU, no support for dynamic fragments 8781 * within an A-MPDU that is not an S-MPDU. 8782 * @HE_FRAG_LEVEL2: support for dynamic fragments that are 8783 * contained within an MPDU or S-MPDU and support for up to one dynamic 8784 * fragment for each MSDU, each A-MSDU if supported by the recipient, and 8785 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an 8786 * MPDU or S-MPDU. 8787 * @HE_FRAG_LEVEL3: support for dynamic fragments that are 8788 * contained within an MPDU or S-MPDU and support for multiple dynamic 8789 * fragments for each MSDU and for each A-MSDU if supported by the 8790 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic 8791 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU. 8792 */ 8793 enum he_fragmentation_val { 8794 HE_FRAG_DISABLE, 8795 HE_FRAG_LEVEL1, 8796 HE_FRAG_LEVEL2, 8797 HE_FRAG_LEVEL3, 8798 }; 8799 8800 /** 8801 * enum he_mcs_config - HE MCS support configuration 8802 * 8803 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth. 8804 * These values are used in driver to configure the HE MCS map to advertise 8805 * Tx/Rx MCS map in HE capability and these values are applied for all the 8806 * streams supported by the device. To configure MCS for different bandwidths, 8807 * vendor command needs to be sent using this attribute with appropriate value. 8808 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS 8809 * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS 8810 * for HE_160_MCS0_11 send this command using HE MCS config attribute with 8811 * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11; 8812 * 8813 * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7 8814 * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9 8815 * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11 8816 * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7 8817 * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9 8818 * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11 8819 * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7 8820 * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9 8821 * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11 8822 */ 8823 enum he_mcs_config { 8824 HE_80_MCS0_7 = 0, 8825 HE_80_MCS0_9 = 1, 8826 HE_80_MCS0_11 = 2, 8827 HE_160_MCS0_7 = 4, 8828 HE_160_MCS0_9 = 5, 8829 HE_160_MCS0_11 = 6, 8830 HE_80p80_MCS0_7 = 8, 8831 HE_80p80_MCS0_9 = 9, 8832 HE_80p80_MCS0_11 = 10, 8833 }; 8834 8835 /** 8836 * enum qca_wlan_ba_session_config - BA session configuration 8837 * 8838 * Indicates the configuration values for BA session configuration attribute. 8839 * 8840 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration. 8841 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID. 8842 */ 8843 enum qca_wlan_ba_session_config { 8844 QCA_WLAN_ADD_BA = 1, 8845 QCA_WLAN_DELETE_BA = 2, 8846 }; 8847 8848 /** 8849 * enum qca_wlan_ac_type - access category type 8850 * 8851 * Indicates the access category type value. 8852 * 8853 * @QCA_WLAN_AC_BE: BE access category 8854 * @QCA_WLAN_AC_BK: BK access category 8855 * @QCA_WLAN_AC_VI: VI access category 8856 * @QCA_WLAN_AC_VO: VO access category 8857 * @QCA_WLAN_AC_ALL: All ACs 8858 */ 8859 enum qca_wlan_ac_type { 8860 QCA_WLAN_AC_BE = 0, 8861 QCA_WLAN_AC_BK = 1, 8862 QCA_WLAN_AC_VI = 2, 8863 QCA_WLAN_AC_VO = 3, 8864 QCA_WLAN_AC_ALL = 4, 8865 }; 8866 8867 /** 8868 * enum qca_wlan_he_ltf_cfg - HE LTF configuration 8869 * 8870 * Indicates the HE LTF configuration value. 8871 * 8872 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to 8873 * the mandatory HE-LTF based on the GI setting 8874 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF 8875 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF 8876 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF 8877 */ 8878 enum qca_wlan_he_ltf_cfg { 8879 QCA_WLAN_HE_LTF_AUTO = 0, 8880 QCA_WLAN_HE_LTF_1X = 1, 8881 QCA_WLAN_HE_LTF_2X = 2, 8882 QCA_WLAN_HE_LTF_4X = 3, 8883 }; 8884 8885 /** 8886 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration 8887 * 8888 * Indicates the HE trigger frame MAC padding duration value. 8889 * 8890 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to 8891 * process the trigger frame. 8892 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for 8893 * trigger frame. 8894 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for 8895 * trigger frame. 8896 */ 8897 enum qca_wlan_he_mac_padding_dur { 8898 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0, 8899 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1, 8900 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2, 8901 }; 8902 8903 /** 8904 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration 8905 * 8906 * Indicates the HE Operating mode control channel width setting value. 8907 * 8908 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz 8909 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz 8910 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz 8911 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz 8912 */ 8913 enum qca_wlan_he_om_ctrl_ch_bw { 8914 QCA_WLAN_HE_OM_CTRL_BW_20M = 0, 8915 QCA_WLAN_HE_OM_CTRL_BW_40M = 1, 8916 QCA_WLAN_HE_OM_CTRL_BW_80M = 2, 8917 QCA_WLAN_HE_OM_CTRL_BW_160M = 3, 8918 }; 8919 8920 /** 8921 * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration 8922 * 8923 * Indicates the frame types to use for keep alive data. 8924 * 8925 * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive. 8926 * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive. 8927 * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive. 8928 */ 8929 enum qca_wlan_keep_alive_data_type { 8930 QCA_WLAN_KEEP_ALIVE_DEFAULT = 0, 8931 QCA_WLAN_KEEP_ALIVE_DATA = 1, 8932 QCA_WLAN_KEEP_ALIVE_MGMT = 2, 8933 }; 8934 8935 /** 8936 * enum eht_mcs_config - EHT MCS support configuration 8937 * 8938 * Configures the EHT Tx/Rx MCS map in EHT Capability element. 8939 * These values are used in the driver to configure the EHT MCS map to advertise 8940 * Tx/Rx MCS map in EHT capability and these values are applied for all the 8941 * streams supported by the device. 8942 * @EHT_MCS0_7: EHT MCS 0 to 7 support 8943 * @EHT_MCS0_9: EHT MCS 0 to 9 support 8944 * @EHT_MCS0_11: EHT MCS 0 to 11 support 8945 * @EHT_MCS0_13: EHT MCS 0 to 13 support 8946 */ 8947 enum eht_mcs_config { 8948 EHT_MCS0_7 = 0, 8949 EHT_MCS0_9 = 1, 8950 EHT_MCS0_11 = 2, 8951 EHT_MCS0_13 = 3, 8952 }; 8953 8954 /** 8955 * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration. 8956 * @QCA_WLAN_EHT_MODE_INVALID: Invalid. 8957 * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode 8958 * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode. 8959 * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive 8960 * multi-link multi radio mode. 8961 * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive 8962 * multi-link multi radio mode. 8963 */ 8964 enum qca_wlan_eht_mlo_mode { 8965 QCA_WLAN_EHT_MODE_INVALID = 0, 8966 QCA_WLAN_EHT_MLSR = 1, 8967 QCA_WLAN_EHT_EMLSR = 2, 8968 QCA_WLAN_EHT_NON_STR_MLMR = 3, 8969 QCA_WLAN_EHT_STR_MLMR = 4, 8970 }; 8971 8972 /** 8973 * enum qca_wlan_vendor_attr_he_omi_tx: Represents attributes for 8974 * HE operating mode control transmit request. These attributes are 8975 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX and 8976 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 8977 * 8978 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value 8979 * indicates the maximum number of spatial streams, NSS, that the STA 8980 * supports in reception for PPDU bandwidths less than or equal to 80 MHz 8981 * and is set to NSS - 1. 8982 * 8983 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value 8984 * indicates the operating channel width supported by the STA for both 8985 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values. 8986 * 8987 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value 8988 * indicates the all trigger based UL MU operations by the STA. 8989 * 0 - UL MU operations are enabled by the STA. 8990 * 1 - All triggered UL MU transmissions are suspended by the STA. 8991 * 8992 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value 8993 * indicates the maximum number of space-time streams, NSTS, that 8994 * the STA supports in transmission and is set to NSTS - 1. 8995 * 8996 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value 8997 * combined with the UL MU Disable subfield and the recipient's setting 8998 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC 8999 * capabilities to determine which HE TB PPDUs are possible by the 9000 * STA to transmit. 9001 * 0 - UL MU data operations are enabled by the STA. 9002 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable 9003 * bit is not set, else UL MU Tx is suspended. 9004 * 9005 */ 9006 enum qca_wlan_vendor_attr_he_omi_tx { 9007 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0, 9008 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1, 9009 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2, 9010 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3, 9011 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4, 9012 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5, 9013 9014 /* keep last */ 9015 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST, 9016 QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX = 9017 QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST - 1, 9018 }; 9019 9020 /** 9021 * enum qca_wlan_vendor_phy_mode - Different PHY modes 9022 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE. 9023 * 9024 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect 9025 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect 9026 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect 9027 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM 9028 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK 9029 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM 9030 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz 9031 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20 9032 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1) 9033 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1) 9034 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40 9035 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20 9036 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1) 9037 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1) 9038 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40 9039 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20 9040 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1) 9041 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1) 9042 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40 9043 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80 9044 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80 9045 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160 9046 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20 9047 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40 9048 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1) 9049 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1) 9050 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80 9051 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80 9052 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160 9053 */ 9054 enum qca_wlan_vendor_phy_mode { 9055 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0, 9056 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1, 9057 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2, 9058 QCA_WLAN_VENDOR_PHY_MODE_11A = 3, 9059 QCA_WLAN_VENDOR_PHY_MODE_11B = 4, 9060 QCA_WLAN_VENDOR_PHY_MODE_11G = 5, 9061 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6, 9062 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7, 9063 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8, 9064 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9, 9065 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10, 9066 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11, 9067 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12, 9068 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13, 9069 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14, 9070 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15, 9071 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16, 9072 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17, 9073 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18, 9074 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19, 9075 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20, 9076 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21, 9077 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22, 9078 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23, 9079 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24, 9080 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25, 9081 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26, 9082 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27, 9083 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28, 9084 }; 9085 9086 /* Attributes for data used by 9087 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION 9088 */ 9089 enum qca_wlan_vendor_attr_wifi_test_config { 9090 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0, 9091 /* 8-bit unsigned value to configure the driver to enable/disable 9092 * WMM feature. This attribute is used to configure testbed device. 9093 * 1-enable, 0-disable 9094 */ 9095 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1, 9096 9097 /* 8-bit unsigned value to configure the driver to accept/reject 9098 * the addba request from peer. This attribute is used to configure 9099 * the testbed device. 9100 * 1-accept addba, 0-reject addba 9101 */ 9102 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2, 9103 9104 /* 8-bit unsigned value to configure the driver to send or not to 9105 * send the addba request to peer. 9106 * This attribute is used to configure the testbed device. 9107 * 1-send addba, 0-do not send addba 9108 */ 9109 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3, 9110 9111 /* 8-bit unsigned value to indicate the HE fragmentation support. 9112 * Uses enum he_fragmentation_val values. 9113 * This attribute is used to configure the testbed device to 9114 * allow the advertised hardware capabilities to be downgraded 9115 * for testing purposes. 9116 */ 9117 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4, 9118 9119 /* 8-bit unsigned value to indicate the HE MCS support. 9120 * Uses enum he_mcs_config values. 9121 * This attribute is used to configure the testbed device to 9122 * allow the advertised hardware capabilities to be downgraded 9123 * for testing purposes. 9124 */ 9125 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5, 9126 9127 /* 8-bit unsigned value to configure the driver to allow or not to 9128 * allow the connection with WEP/TKIP in HT/VHT/HE modes. 9129 * This attribute is used to configure the testbed device. 9130 * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip 9131 */ 9132 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6, 9133 9134 /* 8-bit unsigned value to configure the driver to add a 9135 * new BA session or delete the existing BA session for 9136 * given TID. ADDBA command uses the buffer size and tid 9137 * configuration if user specifies the values else default 9138 * value for buffer size is used for all tids if the tid 9139 * also not specified. For DEL_BA command TID value is 9140 * required to process the command. 9141 * Uses enum qca_wlan_ba_session_config values. 9142 * This attribute is used to configure the testbed device. 9143 */ 9144 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7, 9145 9146 /* 16-bit unsigned value to configure the buffer size in addba 9147 * request and response frames. 9148 * This attribute is used to configure the testbed device. 9149 * The range of the value is 0 to 256. 9150 */ 9151 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8, 9152 9153 /* 8-bit unsigned value to configure the buffer size in addba 9154 * request and response frames. 9155 * This attribute is used to configure the testbed device. 9156 */ 9157 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9, 9158 9159 /* 8-bit unsigned value to configure the no ack policy. 9160 * To configure no ack policy, access category value 9161 * is required to process the command. 9162 * This attribute is used to configure the testbed device. 9163 * 1 - enable no ack, 0 - disable no ack 9164 */ 9165 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10, 9166 9167 /* 8-bit unsigned value to configure the AC for no ack policy 9168 * This attribute is used to configure the testbed device. 9169 * uses the enum qca_wlan_ac_type values 9170 */ 9171 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11, 9172 9173 /* 8-bit unsigned value to configure the HE LTF 9174 * This attribute is used to configure the testbed device. 9175 * Uses the enum qca_wlan_he_ltf_cfg values. 9176 */ 9177 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12, 9178 9179 /* 8-bit unsigned value to configure the tx beamformee. 9180 * This attribute is used to configure the testbed device. 9181 * 1 - enable, 0 - disable. 9182 */ 9183 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13, 9184 9185 /* 8-bit unsigned value to configure the tx beamformee number of 9186 * space-time streams. 9187 * This attribute is used to configure the testbed device. 9188 * The range of the value is 0 to 8 9189 */ 9190 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14, 9191 9192 /* 8-bit unsigned value to configure the MU EDCA params for given AC 9193 * This attribute is used to configure the testbed device. 9194 * Uses the enum qca_wlan_ac_type values. 9195 */ 9196 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15, 9197 9198 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC 9199 * To configure MU EDCA AIFSN value, MU EDCA access category value 9200 * is required to process the command. 9201 * This attribute is used to configure the testbed device. 9202 */ 9203 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16, 9204 9205 /* 8-bit unsigned value to configure the MU EDCA ECW min value for 9206 * given AC. 9207 * To configure MU EDCA ECW min value, MU EDCA access category value 9208 * is required to process the command. 9209 * This attribute is used to configure the testbed device. 9210 */ 9211 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17, 9212 9213 /* 8-bit unsigned value to configure the MU EDCA ECW max value for 9214 * given AC. 9215 * To configure MU EDCA ECW max value, MU EDCA access category value 9216 * is required to process the command. 9217 * This attribute is used to configure the testbed device. 9218 */ 9219 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18, 9220 9221 /* 8-bit unsigned value to configure the MU EDCA timer for given AC 9222 * To configure MU EDCA timer value, MU EDCA access category value 9223 * is required to process the command. 9224 * This attribute is used to configure the testbed device. 9225 */ 9226 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19, 9227 9228 /* 8-bit unsigned value to configure the HE trigger frame MAC padding 9229 * duration. 9230 * This attribute is used to configure the testbed device. 9231 * Uses the enum qca_wlan_he_mac_padding_dur values. 9232 */ 9233 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20, 9234 9235 /* 8-bit unsigned value to override the MU EDCA params to defaults 9236 * regardless of the AP beacon MU EDCA params. If it is enabled use 9237 * the default values else use the MU EDCA params from AP beacon. 9238 * This attribute is used to configure the testbed device. 9239 * 1 - enable override, 0 - disable. 9240 */ 9241 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21, 9242 9243 /* 8-bit unsigned value to configure the support for receiving 9244 * an MPDU that contains an operating mode control subfield. 9245 * This attribute is used to configure the testbed device. 9246 * 1-enable, 0-disable. 9247 */ 9248 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22, 9249 9250 /* Nested attribute values required to setup the TWT session. 9251 * enum qca_wlan_vendor_attr_twt_setup provides the necessary 9252 * information to set up the session. It contains broadcast flags, 9253 * set_up flags, trigger value, flow type, flow ID, wake interval 9254 * exponent, protection, target wake time, wake duration, wake interval 9255 * mantissa. These nested attributes are used to setup a host triggered 9256 * TWT session. 9257 */ 9258 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23, 9259 9260 /* This nested attribute is used to terminate the current TWT session. 9261 * It does not currently carry any attributes. 9262 */ 9263 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24, 9264 9265 /* This nested attribute is used to suspend the current TWT session. 9266 * It does not currently carry any attributes. 9267 */ 9268 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25, 9269 9270 /* Nested attribute values to indicate the request for resume. 9271 * This attribute is used to resume the TWT session. 9272 * enum qca_wlan_vendor_attr_twt_resume provides the necessary 9273 * parameters required to resume the TWT session. 9274 */ 9275 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26, 9276 9277 /* 8-bit unsigned value to set the HE operating mode control 9278 * (OM CTRL) Channel Width subfield. 9279 * The Channel Width subfield indicates the operating channel width 9280 * supported by the STA for both reception and transmission. 9281 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values. 9282 * This setting is cleared with the 9283 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 9284 * flag attribute to reset defaults. 9285 * This attribute is used to configure the testbed device. 9286 */ 9287 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27, 9288 9289 /* 8-bit unsigned value to configure the number of spatial 9290 * streams in HE operating mode control field. 9291 * This setting is cleared with the 9292 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 9293 * flag attribute to reset defaults. 9294 * This attribute is used to configure the testbed device. 9295 */ 9296 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28, 9297 9298 /* Flag attribute to configure the UL MU disable bit in 9299 * HE operating mode control field. 9300 * This setting is cleared with the 9301 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 9302 * flag attribute to reset defaults. 9303 * This attribute is used to configure the testbed device. 9304 */ 9305 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29, 9306 9307 /* Flag attribute to clear the previously set HE operating mode 9308 * control field configuration. 9309 * This attribute is used to configure the testbed device to reset 9310 * defaults to clear any previously set HE operating mode control 9311 * field configuration. 9312 */ 9313 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30, 9314 9315 /* 8-bit unsigned value to configure HE single user PPDU 9316 * transmission. By default this setting is disabled and it 9317 * is disabled in the reset defaults of the device configuration. 9318 * This attribute is used to configure the testbed device. 9319 * 1-enable, 0-disable 9320 */ 9321 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31, 9322 9323 /* 8-bit unsigned value to configure action frame transmission 9324 * in HE trigger based PPDU transmission. 9325 * By default this setting is disabled and it is disabled in 9326 * the reset defaults of the device configuration. 9327 * This attribute is used to configure the testbed device. 9328 * 1-enable, 0-disable 9329 */ 9330 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32, 9331 9332 /* Nested attribute to indicate HE operating mode control field 9333 * transmission. It contains operating mode control field Nss, 9334 * channel bandwidth, Tx Nsts and UL MU disable attributes. 9335 * These nested attributes are used to send HE operating mode control 9336 * with configured values. 9337 * Uses the enum qca_wlan_vendor_attr_he_omi_tx attributes. 9338 * This attribute is used to configure the testbed device. 9339 */ 9340 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX = 33, 9341 9342 /* 8-bit unsigned value to configure +HTC_HE support to indicate the 9343 * support for the reception of a frame that carries an HE variant 9344 * HT Control field. 9345 * This attribute is used to configure the testbed device. 9346 * 1-enable, 0-disable 9347 */ 9348 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34, 9349 9350 /* 8-bit unsigned value to configure VHT support in 2.4G band. 9351 * This attribute is used to configure the testbed device. 9352 * 1-enable, 0-disable 9353 */ 9354 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35, 9355 9356 /* 8-bit unsigned value to configure HE testbed defaults. 9357 * This attribute is used to configure the testbed device. 9358 * 1-set the device HE capabilities to testbed defaults. 9359 * 0-reset the device HE capabilities to supported config. 9360 */ 9361 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36, 9362 9363 /* 8-bit unsigned value to configure twt request support. 9364 * This attribute is used to configure the testbed device. 9365 * 1-enable, 0-disable. 9366 */ 9367 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37, 9368 9369 /* 8-bit unsigned value to configure protection for Management 9370 * frames when PMF is enabled for the association. 9371 * This attribute is used to configure the testbed device. 9372 * 0-use the correct key, 1-use an incorrect key, 2-disable protection. 9373 */ 9374 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38, 9375 9376 /* Flag attribute to inject Disassociation frame to the connected AP. 9377 * This attribute is used to configure the testbed device. 9378 */ 9379 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39, 9380 9381 /* 8-bit unsigned value to configure an override for the RSNXE Used 9382 * subfield in the MIC control field of the FTE in FT Reassociation 9383 * Request frame. 9384 * 0 - Default behavior, 1 - override with 1, 2 - override with 0. 9385 * This attribute is used to configure the testbed device. 9386 * This attribute can be configured when STA is in disconnected or 9387 * associated state and the configuration is valid until the next 9388 * disconnection. 9389 */ 9390 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40, 9391 9392 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel 9393 * Switch Announcement) when STA is in connected state. 9394 * 0 - Default behavior, 1 - Ignore CSA. 9395 * This attribute is used to configure the testbed device. 9396 * This attribute can be configured when STA is in disconnected or 9397 * associated state and the configuration is valid until the next 9398 * disconnection. 9399 */ 9400 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41, 9401 9402 /* Nested attribute values required to configure OCI (Operating Channel 9403 * Information). Attributes defined in enum 9404 * qca_wlan_vendor_attr_oci_override are nested within this attribute. 9405 * This attribute is used to configure the testbed device. 9406 * This attribute can be configured when STA is in disconnected or 9407 * associated state and the configuration is valid until the next 9408 * disconnection. 9409 */ 9410 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42, 9411 9412 /* 8-bit unsigned value to configure the driver/firmware to ignore SA 9413 * Query timeout. If this configuration is enabled STA shall not send 9414 * Deauthentication frmae when SA Query times out (mainly, after a 9415 * channel switch when OCV is enabled). 9416 * 0 - Default behavior, 1 - Ignore SA Query timeout. 9417 * This attribute is used to configure the testbed device. 9418 * This attribute can be configured only when STA is in associated state 9419 * and the configuration is valid until the disconnection. 9420 */ 9421 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43, 9422 9423 /* 8-bit unsigned value to configure the driver/firmware to start or 9424 * stop transmitting FILS discovery frames. 9425 * 0 - Stop transmitting FILS discovery frames 9426 * 1 - Start transmitting FILS discovery frames 9427 * This attribute is used to configure the testbed device. 9428 * This attribute can be configured only in AP mode and the 9429 * configuration is valid until AP restart. 9430 */ 9431 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44, 9432 9433 /* 8-bit unsigned value to configure the driver/firmware to enable or 9434 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities 9435 * information field. 9436 * 0 - Disable full bandwidth UL MU-MIMO subfield 9437 * 1 - Enable full bandwidth UL MU-MIMO subfield 9438 * This attribute is used to configure the testbed device. 9439 */ 9440 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45, 9441 9442 /* 16-bit unsigned value to configure the driver with a specific BSS 9443 * max idle period to advertise in the BSS Max Idle Period element 9444 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames. 9445 * This attribute is used to configure the testbed device. 9446 */ 9447 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46, 9448 9449 /* 8-bit unsigned value to configure the driver to use only RU 242 tone 9450 * for data transmission. 9451 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx. 9452 * This attribute is used to configure the testbed device. 9453 */ 9454 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47, 9455 9456 /* 8-bit unsigned value to configure the driver to disable data and 9457 * management response frame transmission to test the BSS max idle 9458 * feature. 9459 * 0 - Default behavior, 1 - Disable data and management response Tx. 9460 * This attribute is used to configure the testbed device. 9461 */ 9462 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48, 9463 9464 /* 8-bit unsigned value to configure the driver/firmware to enable or 9465 * disable Punctured Preamble Rx subfield in the HE PHY capabilities 9466 * information field. 9467 * 0 - Disable Punctured Preamble Rx subfield 9468 * 1 - Enable Punctured Preamble Rx subfield 9469 * This attribute is used to configure the testbed device. 9470 */ 9471 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49, 9472 9473 /* 8-bit unsigned value to configure the driver to ignore the SAE H2E 9474 * requirement mismatch for 6 GHz connection. 9475 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch. 9476 * This attribute is used to configure the testbed device. 9477 */ 9478 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50, 9479 9480 /* 8-bit unsigned value to configure the driver to allow 6 GHz 9481 * connection with all security modes. 9482 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security 9483 * modes. 9484 * This attribute is used for testing purposes. 9485 */ 9486 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51, 9487 9488 /* 8-bit unsigned value to configure the driver to transmit data with 9489 * ER SU PPDU type. 9490 * 9491 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX. 9492 * This attribute is used for testing purposes. 9493 */ 9494 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52, 9495 9496 /* 8-bit unsigned value to configure the driver to use Data or 9497 * Management frame type for keep alive data. 9498 * Uses enum qca_wlan_keep_alive_data_type values. 9499 * 9500 * This attribute is used for testing purposes. 9501 */ 9502 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53, 9503 9504 /* 8-bit unsigned value to configure the driver to use scan request 9505 * BSSID value in Probe Request frame RA(A1) during the scan. The 9506 * driver saves this configuration and applies this setting to all user 9507 * space scan requests until the setting is cleared. If this 9508 * configuration is set, the driver uses the BSSID value from the scan 9509 * request to set the RA(A1) in the Probe Request frames during the 9510 * scan. 9511 * 9512 * 0 - Default behavior uses the broadcast RA in Probe Request frames. 9513 * 1 - Uses the scan request BSSID in RA in Probe Request frames. 9514 * This attribute is used for testing purposes. 9515 */ 9516 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54, 9517 9518 /* 8-bit unsigned value to configure the driver to enable/disable the 9519 * BSS max idle period support. 9520 * 9521 * 0 - Disable the BSS max idle support. 9522 * 1 - Enable the BSS max idle support. 9523 * This attribute is used for testing purposes. 9524 */ 9525 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55, 9526 9527 /* 8-bit unsigned value to configure the driver/firmware to enable or 9528 * disable Rx control frame to MultiBSS subfield in the HE MAC 9529 * capabilities information field. 9530 * 0 - Disable Rx control frame to MultiBSS subfield 9531 * 1 - Enable Rx control frame to MultiBSS subfield 9532 * This attribute is used to configure the testbed device. 9533 */ 9534 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56, 9535 9536 /* 8-bit unsigned value to configure the driver/firmware to enable or 9537 * disable Broadcast TWT support subfield in the HE MAC capabilities 9538 * information field. 9539 * 0 - Disable Broadcast TWT support subfield 9540 * 1 - Enable Broadcast TWT support subfield 9541 * This attribute is used to configure the testbed device. 9542 */ 9543 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57, 9544 9545 /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR 9546 * mode for 802.11be MLO capable devices. If the attribute is set to 1, 9547 * and if the FW supports this capability too, then the STA host 9548 * advertises this capability to AP over assoc request frame. This 9549 * attribute will not have any effect on legacy devices with no 802.11be 9550 * support. 9551 * 0 - Default behavior 9552 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode 9553 * This attribute is used to configure the testbed device. 9554 */ 9555 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58, 9556 9557 /* 8-bit unsigned value to configure the driver to enable/disable the 9558 * periodic sounding for Tx beamformer functionality. The default 9559 * behavior uses algorithm to do sounding based on packet stats. 9560 * 9561 * 0 - Default behavior. 9562 * 1 - Enable the periodic sounding for Tx beamformer. 9563 * This attribute is used for testing purposes. 9564 */ 9565 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59, 9566 9567 /* 8-bit unsigned value to configure beamformee SS EHT capability 9568 * to indicate the maximum number of spatial streams that the STA 9569 * can receive in an EHT sounding NDP for <= 80 MHz bandwidth. 9570 * The range of the value is 3 to 7. 9571 * This attribute is used to configure the testbed device. 9572 */ 9573 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60, 9574 9575 /* 8-bit unsigned value to configure beamformee SS EHT capability 9576 * to indicate the maximum number of spatial streams that the STA 9577 * can receive in an EHT sounding NDP for 160 MHz bandwidth. 9578 * The range of the value is 3 to 7. 9579 * This attribute is used to configure the testbed device. 9580 */ 9581 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61, 9582 9583 /* 8-bit unsigned value to configure beamformee SS EHT capability 9584 * to indicate the maximum number of spatial streams that the STA 9585 * can receive in an EHT sounding NDP for 320 MHz bandwidth. 9586 * The range of the value is 3 to 7. 9587 * This attribute is used to configure the testbed device. 9588 */ 9589 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62, 9590 9591 /* 8-bit unsigned value to configure the driver to exclude station 9592 * profile in Probe Request frame Multi-Link element. 9593 * 0 - Default behavior, sends the Probe Request frame with station 9594 * profile data included in the Multi-Link element. 9595 * 1 - Exclude station profile in Probe Request frame Multi-Link 9596 * element. 9597 * This attribute is used to configure the testbed device. 9598 */ 9599 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63, 9600 9601 /* 8-bit unsigned value to configure EHT testbed defaults. 9602 * This attribute is used to configure the testbed device. 9603 * 1 - Set the device EHT capabilities to testbed defaults. 9604 * 0 - Reset the device EHT capabilities to supported config. 9605 */ 9606 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64, 9607 9608 /* 8-bit unsigned value to indicate the EHT MCS support. 9609 * Uses enum eht_mcs_config values. 9610 * This attribute is used to configure the testbed device to 9611 * allow the advertised hardware capabilities to be downgraded 9612 * for testing purposes. 9613 */ 9614 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65, 9615 9616 /* 8-bit unsigned value to configure EHT TB Sounding Feedback 9617 * Rate Limit capability. 9618 * This attribute is used to configure the testbed device. 9619 * 0 - Indicates no maximum supported data rate limitation. 9620 * 1 - Indicates the maximum supported data rate is the lower of 9621 * the 1500 Mb/s and the maximum supported data rate. 9622 */ 9623 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66, 9624 9625 /* keep last */ 9626 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST, 9627 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX = 9628 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1, 9629 }; 9630 9631 /** 9632 * enum qca_wlan_twt_operation - Operation of the config TWT request 9633 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION. 9634 * The response for the respective operations can be either synchronous or 9635 * asynchronous (wherever specified). If synchronous, the response to this 9636 * operation is obtained in the corresponding vendor command reply to the user 9637 * space. For the asynchronous case the response is obtained as an event with 9638 * the same operation type. 9639 * 9640 * Drivers shall support either of these modes but not both simultaneously. 9641 * This support for asynchronous mode is advertised through the flag 9642 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised, 9643 * the driver shall support synchronous mode. 9644 * 9645 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured 9646 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 9647 * qca_wlan_vendor_attr_twt_setup. Depending upon the 9648 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a 9649 * synchronous or asynchronous operation. 9650 * 9651 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are 9652 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 9653 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation. 9654 * 9655 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are 9656 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 9657 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup. 9658 * This terminate can either get triggered by the user space or can as well be 9659 * a notification from the firmware if it initiates a terminate. 9660 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, 9661 * the request from user space can either be a synchronous or asynchronous 9662 * operation. 9663 * 9664 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are 9665 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 9666 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup. 9667 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, 9668 * this is either a synchronous or asynchronous operation. 9669 * 9670 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are 9671 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 9672 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup. 9673 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE 9674 * request. 9675 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT 9676 * capability, this is either a synchronous or asynchronous operation. 9677 * 9678 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a 9679 * combination of suspend and resume in a single request. Required parameters 9680 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the 9681 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is 9682 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT 9683 * capability, this is either a synchronous or asynchronous operation. 9684 * 9685 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information. 9686 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT 9687 * session is setup. It's a synchronous operation. 9688 * 9689 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information. 9690 * Valid only after the TWT session is setup. It's a synchronous operation. 9691 * 9692 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its 9693 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous 9694 * operation. 9695 * 9696 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is 9697 * ready for a new TWT session setup after it issued a twt teardown. 9698 * 9699 * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required 9700 * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer 9701 * the enum qca_wlan_vendor_attr_twt_set_param. 9702 * 9703 * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT 9704 * related information for example TWT required bit in AP capabilities etc. 9705 * The reason for the notification is sent using 9706 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS. 9707 */ 9708 enum qca_wlan_twt_operation { 9709 QCA_WLAN_TWT_SET = 0, 9710 QCA_WLAN_TWT_GET = 1, 9711 QCA_WLAN_TWT_TERMINATE = 2, 9712 QCA_WLAN_TWT_SUSPEND = 3, 9713 QCA_WLAN_TWT_RESUME = 4, 9714 QCA_WLAN_TWT_NUDGE = 5, 9715 QCA_WLAN_TWT_GET_STATS = 6, 9716 QCA_WLAN_TWT_CLEAR_STATS = 7, 9717 QCA_WLAN_TWT_GET_CAPABILITIES = 8, 9718 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9, 9719 QCA_WLAN_TWT_SET_PARAM = 10, 9720 QCA_WLAN_TWT_NOTIFY = 11, 9721 }; 9722 9723 /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by 9724 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT 9725 * 9726 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: 9727 * u8 attribute. Specify the TWT operation of this request. Possible values 9728 * are defined in enum qca_wlan_twt_operation. The parameters for the 9729 * respective operation is specified through 9730 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. 9731 * 9732 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the 9733 * parameters configured for TWT. These parameters are represented by 9734 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume, 9735 * enum qca_wlan_vendor_attr_twt_set_param or 9736 * enum qca_wlan_vendor_attr_twt_stats based on the operation. 9737 * 9738 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when 9739 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY. 9740 * The values used by this attribute are defined in 9741 * enum qca_wlan_vendor_twt_status. 9742 */ 9743 enum qca_wlan_vendor_attr_config_twt { 9744 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0, 9745 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1, 9746 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2, 9747 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3, 9748 9749 /* keep last */ 9750 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST, 9751 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX = 9752 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1, 9753 }; 9754 9755 /** 9756 * qca_wlan_twt_setup_state: Represents the TWT session states. 9757 * 9758 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established. 9759 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active. 9760 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state. 9761 */ 9762 enum qca_wlan_twt_setup_state { 9763 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0, 9764 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1, 9765 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2, 9766 }; 9767 9768 /** 9769 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for 9770 * TWT (Target Wake Time) setup request. These attributes are sent as part of 9771 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and 9772 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by 9773 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 9774 * 9775 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute. 9776 * Disable (flag attribute not present) - Individual TWT 9777 * Enable (flag attribute present) - Broadcast TWT. 9778 * Individual means the session is between the STA and the AP. 9779 * This session is established using a separate negotiation between 9780 * STA and AP. 9781 * Broadcast means the session is across multiple STAs and an AP. The 9782 * configuration parameters are announced in Beacon frames by the AP. 9783 * This is used in 9784 * 1. TWT SET Request and Response 9785 * 2. TWT GET Response 9786 * 9787 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8). 9788 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to 9789 * specify the TWT request type. This is used in TWT SET operation. 9790 * 9791 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute 9792 * Enable (flag attribute present) - TWT with trigger support. 9793 * Disable (flag attribute not present) - TWT without trigger support. 9794 * Trigger means the AP will send the trigger frame to allow STA to send data. 9795 * Without trigger, the STA will wait for the MU EDCA timer before 9796 * transmitting the data. 9797 * This is used in 9798 * 1. TWT SET Request and Response 9799 * 2. TWT GET Response 9800 * 9801 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8) 9802 * 0 - Announced TWT - In this mode, STA may skip few service periods to 9803 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS 9804 * NULL frame to AP. 9805 * 1 - Unannounced TWT - The STA will wakeup during every SP. 9806 * This is a required parameter for 9807 * 1. TWT SET Request and Response 9808 * 2. TWT GET Response 9809 * 9810 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8) 9811 * Flow ID is the unique identifier for each TWT session. 9812 * If not provided then dialog ID will be set to zero. 9813 * This is an optional parameter for 9814 * 1. TWT SET Request and Response 9815 * 2. TWT GET Request and Response 9816 * 3. TWT TERMINATE Request and Response 9817 * 4. TWT SUSPEND Request and Response 9818 * Flow Id values from 0 to 254 represent a single TWT session 9819 * Flow ID value of 255 represents all twt sessions for the following 9820 * 1. TWT TERMINATE Request and Response 9821 * 2. TWT SUSPEND Request and Response 9822 * 4. TWT CLEAR STATISTICS request 9823 * 5. TWT GET STATISTICS request and response 9824 * If an invalid dialog id is provided, status 9825 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 9826 * 9827 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8) 9828 * This attribute (exp) is used along with the mantissa to derive the 9829 * wake interval using the following formula: 9830 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis 9831 * Wake interval is the interval between 2 successive SP. 9832 * This is a required parameter for 9833 * 1. TWT SET Request and Response 9834 * 2. TWT GET Response 9835 * 9836 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute 9837 * Enable (flag attribute present) - Protection required. 9838 * Disable (flag attribute not present) - Protection not required. 9839 * If protection is enabled, then the AP will use protection 9840 * mechanism using RTS/CTS to self to reserve the airtime. 9841 * This is used in 9842 * 1. TWT SET Request and Response 9843 * 2. TWT GET Response 9844 * 9845 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32) 9846 * This attribute is used as the SP offset which is the offset from 9847 * TSF after which the wake happens. The units are in microseconds. If 9848 * this attribute is not provided, then the value will be set to zero. 9849 * This is an optional parameter for 9850 * 1. TWT SET Request and Response 9851 * 2. TWT GET Response 9852 * 9853 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32) 9854 * This is the duration of the service period. This is specified as 9855 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF. 9856 * This is a required parameter for 9857 * 1. TWT SET Request and Response 9858 * 2. TWT GET Response 9859 * 9860 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32) 9861 * This attribute is used to configure wake interval mantissa. 9862 * The units are in TU. 9863 * This is a required parameter for 9864 * 1. TWT SET Request and Response 9865 * 2. TWT GET Response 9866 * 9867 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8) 9868 * This field is applicable for TWT response only. 9869 * This contains status values in enum qca_wlan_vendor_twt_status 9870 * and is passed to the userspace. This is used in TWT SET operation. 9871 * This is a required parameter for 9872 * 1. TWT SET Response 9873 * 2. TWT TERMINATE Response 9874 * 3. TWT SUSPEND Response 9875 * 4. TWT RESUME Response 9876 * 5. TWT NUDGE Response 9877 * 9878 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8) 9879 * This field is applicable for TWT response only. 9880 * This field contains response type from the TWT responder and is 9881 * passed to the userspace. The values for this field are defined in 9882 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET 9883 * response. 9884 * 9885 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64) 9886 * In TWT setup command this field contains absolute TSF that will 9887 * be used by TWT requester during setup. 9888 * In TWT response this field contains absolute TSF value of the 9889 * wake time received from the TWT responder and is passed to 9890 * the userspace. 9891 * This is an optional parameter for 9892 * 1. TWT SET Request 9893 * This is a required parameter for 9894 * 1. TWT SET Response 9895 * 2. TWT GET Response 9896 * 9897 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute. 9898 * Enable (flag attribute present) - Indicates that the TWT responder 9899 * supports reception of TWT information frame from the TWT requestor. 9900 * Disable (flag attribute not present) - Indicates that the responder 9901 * doesn't support reception of TWT information frame from requestor. 9902 * This is used in 9903 * 1. TWT SET Response 9904 * 2. TWT GET Response 9905 * 9906 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address 9907 * Represents the MAC address of the peer for which the TWT session 9908 * is being configured. This is used in AP mode to represent the respective 9909 * client 9910 * In AP mode, this is a required parameter in response for 9911 * 1. TWT SET 9912 * 2. TWT GET 9913 * 3. TWT TERMINATE 9914 * 4. TWT SUSPEND 9915 * In STA mode, this is an optional parameter in request and response for 9916 * the above four TWT operations. 9917 * In AP mode, this is a required parameter in request for 9918 * 1. TWT GET 9919 * 2. TWT TERMINATE 9920 * 9921 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32) 9922 * Minimum tolerance limit of wake interval parameter in microseconds. 9923 * 9924 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32) 9925 * Maximum tolerance limit of wake interval parameter in microseconds. 9926 * 9927 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32) 9928 * Minimum tolerance limit of wake duration parameter in microseconds. 9929 * 9930 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32) 9931 * Maximum tolerance limit of wake duration parameter in microseconds. 9932 * 9933 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32) 9934 * TWT state for the given dialog id. The values for this are represented 9935 * by enum qca_wlan_twt_setup_state. 9936 * This is obtained through TWT GET operation. 9937 * 9938 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32) 9939 * This attribute is used to configure wake interval mantissa. 9940 * The unit is microseconds. This attribute, when specified, takes 9941 * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA. 9942 * This parameter is used for 9943 * 1. TWT SET Request and Response 9944 * 2. TWT GET Response 9945 * 9946 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8) 9947 * This attribute is used to configure Broadcast TWT ID. 9948 * The Broadcast TWT ID indicates a specific Broadcast TWT for which the 9949 * transmitting STA is providing TWT parameters. The allowed values are 0 to 31. 9950 * This parameter is used for 9951 * 1. TWT SET Request 9952 * 2. TWT TERMINATE Request 9953 * 9954 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8) 9955 * This attribute is used to configure Broadcast TWT recommendation. 9956 * The Broadcast TWT Recommendation subfield contains a value that indicates 9957 * recommendations on the types of frames that are transmitted by TWT 9958 * scheduled STAs and scheduling AP during the broadcast TWT SP. 9959 * The allowed values are 0 - 3. 9960 * This parameter is used for 9961 * 1. TWT SET Request 9962 * 9963 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8) 9964 * This attribute is used to configure Broadcast TWT Persistence. 9965 * The Broadcast TWT Persistence subfield indicates the number of 9966 * TBTTs during which the Broadcast TWT SPs corresponding to this 9967 * broadcast TWT Parameter set are present. The number of beacon intervals 9968 * during which the Broadcast TWT SPs are present is equal to the value in the 9969 * Broadcast TWT Persistence subfield plus 1 except that the value 255 9970 * indicates that the Broadcast TWT SPs are present until explicitly terminated. 9971 * This parameter is used for 9972 * 1. TWT SET Request 9973 * 9974 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8) 9975 * This attribute contains the value of the Responder PM Mode subfield (0 or 1) 9976 * from TWT response frame. 9977 * This parameter is used for 9978 * 1. TWT SET Response 9979 * 2. TWT GET Response 9980 * 9981 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32) 9982 * This attribute is used to configure the announce timeout value (in us) in 9983 * firmware. This timeout value is only applicable for announced TWT. If 9984 * timeout value is non-zero then firmware waits upto timeout value to use 9985 * data frame as announcement frame. If timeout value is 0 then firmware sends 9986 * explicit QoS NULL frame as announcement frame on SP start. Default value in 9987 * firmware is 0. 9988 * This parameter is used for 9989 * 1. TWT SET Request 9990 */ 9991 enum qca_wlan_vendor_attr_twt_setup { 9992 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0, 9993 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1, 9994 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2, 9995 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3, 9996 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4, 9997 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5, 9998 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6, 9999 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7, 10000 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8, 10001 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9, 10002 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10, 10003 10004 /* TWT Response only attributes */ 10005 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11, 10006 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12, 10007 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13, 10008 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14, 10009 10010 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15, 10011 10012 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16, 10013 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17, 10014 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18, 10015 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19, 10016 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20, 10017 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21, 10018 10019 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22, 10020 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23, 10021 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24, 10022 10023 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25, 10024 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26, 10025 10026 /* keep last */ 10027 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST, 10028 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX = 10029 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1, 10030 }; 10031 10032 /** 10033 * enum qca_wlan_vendor_twt_status - Represents the status of the requested 10034 * TWT operation 10035 * 10036 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed 10037 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled 10038 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used 10039 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy 10040 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist 10041 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state 10042 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters 10043 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready 10044 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted 10045 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the 10046 * request/response frame 10047 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response 10048 * frame 10049 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request 10050 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an 10051 * unknown reason 10052 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in 10053 * suspend state 10054 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to 10055 * invalid IE in the received TWT frame 10056 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from 10057 * the responder are not in the specified range 10058 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT 10059 * session due to request from the responder. Used on the TWT_TERMINATE 10060 * notification from the firmware. 10061 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT 10062 * session due to roaming. Used on the TWT_TERMINATE notification from the 10063 * firmware. 10064 * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the 10065 * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel) 10066 * Concurrency). Used on the TWT_TERMINATE notification from the firmware. 10067 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup 10068 * request due to roaming in progress. 10069 * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT 10070 * setup request due to channel switch in progress. 10071 * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup 10072 * request due to scan in progress. 10073 * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to 10074 * terminate an existing TWT session on power save exit request from userspace. 10075 * Used on the TWT_TERMINATE notification from the driver/firmware. 10076 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT 10077 * required bit in its capabilities. 10078 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared 10079 * the TWT required bit(1->0) in its capabilities. 10080 */ 10081 enum qca_wlan_vendor_twt_status { 10082 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0, 10083 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1, 10084 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2, 10085 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3, 10086 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4, 10087 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5, 10088 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6, 10089 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7, 10090 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8, 10091 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9, 10092 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10, 10093 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11, 10094 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12, 10095 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13, 10096 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14, 10097 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15, 10098 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16, 10099 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17, 10100 QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18, 10101 QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19, 10102 QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20, 10103 QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21, 10104 QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22, 10105 QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23, 10106 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24, 10107 }; 10108 10109 /** 10110 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for 10111 * TWT (Target Wake Time) resume request. These attributes are sent as part of 10112 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and 10113 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by 10114 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10115 * 10116 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8) 10117 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32) 10118 * These attributes are used as the SP offset which is the offset from TSF after 10119 * which the wake happens. The units are in microseconds. Please note that 10120 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data. 10121 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation 10122 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value 10123 * will be set to zero. 10124 * 10125 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32) 10126 * This attribute represents the next TWT subfield size. 10127 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits, 10128 * and 4 for 64 bits. 10129 * 10130 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8). 10131 * Flow ID is the unique identifier for each TWT session. This attribute 10132 * represents the respective TWT session to resume. 10133 * Flow Id values from 0 to 254 represent a single TWT session 10134 * Flow ID value of 255 represents all TWT sessions. 10135 * If an invalid dialog id is provided, status 10136 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 10137 * 10138 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address 10139 * Represents the MAC address of the peer to which TWT Resume is 10140 * being sent. This is used in AP mode to represent the respective 10141 * client and is a required parameter. In STA mode, this is an optional 10142 * parameter 10143 * 10144 */ 10145 enum qca_wlan_vendor_attr_twt_resume { 10146 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0, 10147 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1, 10148 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2, 10149 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3, 10150 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4, 10151 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5, 10152 10153 /* keep last */ 10154 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST, 10155 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX = 10156 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1, 10157 }; 10158 10159 /** 10160 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for 10161 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend 10162 * and resume in a single request. These attributes are sent as part of 10163 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10164 * 10165 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8) 10166 * Flow ID is the unique identifier for each TWT session. This attribute 10167 * represents the respective TWT session to suspend and resume. 10168 * 10169 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8) 10170 * Flow ID is the unique identifier for each TWT session. This attribute 10171 * represents the respective TWT session to suspend and resume. 10172 * Flow Id values from 0 to 254 represent a single TWT session 10173 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request 10174 * and response. 10175 * If an invalid dialog id is provided, status 10176 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 10177 * 10178 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32) 10179 * This attribute is used as the SP offset which is the offset from 10180 * TSF after which the wake happens. The units are in microseconds. 10181 * 10182 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32) 10183 * This attribute represents the next TWT subfield size. 10184 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits, 10185 * and 4 for 64 bits. 10186 * 10187 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address 10188 * Represents the MAC address of the peer to which TWT Suspend and Resume is 10189 * being sent. This is used in AP mode to represent the respective 10190 * client and is a required parameter. In STA mode, this is an optional 10191 * parameter. 10192 * 10193 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64) 10194 * This field contains absolute TSF value of the time at which twt 10195 * sesion will be resumed. 10196 * 10197 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32) 10198 * This field will be used when device supports Flexible TWT. 10199 * This field contains an offset value by which to shift the starting time 10200 * of the next service period. The value of offset can be negative or positive. 10201 * If provided, this attribute will override 10202 * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds. 10203 */ 10204 enum qca_wlan_vendor_attr_twt_nudge { 10205 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0, 10206 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1, 10207 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2, 10208 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3, 10209 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4, 10210 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5, 10211 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6, 10212 10213 /* keep last */ 10214 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST, 10215 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX = 10216 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1, 10217 }; 10218 10219 /** 10220 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for 10221 * TWT (Target Wake Time) get statistics and clear statistics request. 10222 * These attributes are sent as part of 10223 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10224 * 10225 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8) 10226 * Flow ID is the unique identifier for each TWT session. This attribute 10227 * represents the respective TWT session for get and clear TWT statistics. 10228 * Flow Id values from 0 to 254 represent a single TWT session 10229 * Flow ID value of 255 represents all TWT sessions in 10230 * 1) TWT GET STATISTICS request and response 10231 * 2) TWT CLEAR STATISTICS request 10232 * 10233 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address 10234 * Represents the MAC address of the peer for which TWT Statistics 10235 * is required. 10236 * In AP mode this is used to represent the respective 10237 * client and is a required parameter for 10238 * 1) TWT GET STATISTICS request and response 10239 * 2) TWT CLEAR STATISTICS request and response 10240 * In STA mode, this is an optional parameter. 10241 * 10242 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32) 10243 * This is the duration of the service period in microseconds. 10244 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10245 * 10246 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32) 10247 * Average of actual wake duration observed so far. Unit is microseconds. 10248 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10249 * 10250 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32) 10251 * Number of TWT service period elapsed so far. 10252 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10253 * 10254 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32) 10255 * This is the minimum value of wake duration observed across 10256 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is 10257 * microseconds. 10258 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10259 * 10260 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32) 10261 * This is the maximum value of wake duration observed across 10262 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is 10263 * microseconds. 10264 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10265 * 10266 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32) 10267 * Average number of MPDU's transmitted successfully across 10268 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10269 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10270 * 10271 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32) 10272 * Average number of MPDU's received successfully across 10273 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10274 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10275 * 10276 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32) 10277 * Average number of bytes transmitted successfully across 10278 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10279 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10280 * 10281 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32) 10282 * Average number of bytes received successfully across 10283 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10284 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10285 * 10286 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32) 10287 * Status of the TWT GET STATISTICS request. 10288 * This contains status values in enum qca_wlan_vendor_twt_status 10289 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10290 */ 10291 enum qca_wlan_vendor_attr_twt_stats { 10292 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0, 10293 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1, 10294 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2, 10295 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3, 10296 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4, 10297 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5, 10298 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6, 10299 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7, 10300 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8, 10301 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9, 10302 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10, 10303 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11, 10304 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12, 10305 10306 /* keep last */ 10307 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST, 10308 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX = 10309 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1, 10310 }; 10311 10312 /** 10313 * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities 10314 * supported by the device and peer. 10315 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES 10316 * 10317 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by 10318 * TWT non-scheduling STA. This capability is advertised in the HE 10319 * capability/Extended capabilities information element in the 10320 * Association request frame by the device. 10321 * 10322 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised 10323 * by the TWT scheduling AP. This capability is advertised in the extended 10324 * capabilities/HE capabilities information element. 10325 * 10326 * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support 10327 * for the broadcast TWT functionality. On responder side, this indicates 10328 * support for the role of broadcast TWT scheduling functionality. This 10329 * capability is advertised in the HE capabilities information element. 10330 * 10331 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule. 10332 * This capability is advertised in the HE capabilities information element. 10333 * 10334 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate 10335 * that it mandates the associated HE STAs to support TWT. This capability is 10336 * advertised by AP in the HE Operation Parameters field of the HE operation 10337 * information element. 10338 */ 10339 enum qca_wlan_twt_capa { 10340 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0), 10341 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1), 10342 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2), 10343 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3), 10344 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4), 10345 10346 }; 10347 10348 /** 10349 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT 10350 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT 10351 * operation. 10352 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address 10353 * Represents the MAC address of the peer for which the TWT capabilities 10354 * are being queried. This is used in AP mode to represent the respective 10355 * client. In STA mode, this is an optional parameter. 10356 * 10357 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16). 10358 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in 10359 * enum qca_wlan_twt_capa. 10360 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16). 10361 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in 10362 * enum qca_wlan_twt_capa. 10363 */ 10364 enum qca_wlan_vendor_attr_twt_capability { 10365 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0, 10366 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1, 10367 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2, 10368 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3, 10369 10370 /* keep last */ 10371 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST, 10372 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX = 10373 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1, 10374 }; 10375 10376 /** 10377 * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for 10378 * TWT (Target Wake Time) related parameters. It is used when 10379 * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM. 10380 * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10381 * 10382 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8) 10383 * This attribute configures AC parameters to be used for all TWT 10384 * sessions in AP mode. 10385 * Uses the enum qca_wlan_ac_type values. 10386 */ 10387 enum qca_wlan_vendor_attr_twt_set_param { 10388 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0, 10389 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1, 10390 10391 /* keep last */ 10392 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST, 10393 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX = 10394 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1, 10395 }; 10396 10397 /** 10398 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by 10399 * the TWT responder 10400 * 10401 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT 10402 * parameters that are different from TWT requesting STA suggested 10403 * or demanded TWT parameters 10404 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT 10405 * parameters that are different from TWT requesting STA TWT suggested 10406 * or demanded parameters 10407 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT 10408 * setup 10409 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT 10410 * setup. 10411 */ 10412 enum qca_wlan_vendor_twt_setup_resp_type { 10413 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1, 10414 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2, 10415 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3, 10416 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4, 10417 }; 10418 10419 /** 10420 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8) 10421 * Represents the setup type being requested for TWT. 10422 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT 10423 * parameters but relying on AP to fill the parameters during the negotiation. 10424 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested 10425 * values which the AP may accept or AP may provide alternative parameters 10426 * which the STA may accept. 10427 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any 10428 * alternate parameters than the requested ones. 10429 */ 10430 enum qca_wlan_vendor_twt_setup_req_type { 10431 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1, 10432 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2, 10433 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3, 10434 }; 10435 10436 /** 10437 * enum qca_wlan_throughput_level - Current throughput level 10438 * 10439 * Indicates the current level of throughput calculated by driver. The driver 10440 * may choose different thresholds to decide whether the throughput level is 10441 * low or medium or high based on variety of parameters like physical link 10442 * capacity of current connection, number of pakcets being dispatched per 10443 * second etc. The throughput level events might not be consistent with the 10444 * actual current throughput value being observed. 10445 * 10446 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput 10447 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput 10448 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput 10449 */ 10450 enum qca_wlan_throughput_level { 10451 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0, 10452 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1, 10453 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2, 10454 }; 10455 10456 /** 10457 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to 10458 * report throughput changes from driver to user space. enum values are used 10459 * for NL attributes sent with 10460 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command. 10461 */ 10462 enum qca_wlan_vendor_attr_throughput_change { 10463 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0, 10464 /* 10465 * Indicates the direction of throughput in which the change is being 10466 * reported. u8 attribute. Value is 0 for TX and 1 for RX. 10467 */ 10468 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1, 10469 10470 /* 10471 * Indicates the newly observed throughput level. 10472 * qca_wlan_throughput_level describes the possible range of values. 10473 * u8 attribute. 10474 */ 10475 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2, 10476 10477 /* 10478 * Indicates the driver's guidance on the new value to be set to 10479 * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver 10480 * may optionally include this attribute. 10481 */ 10482 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3, 10483 10484 /* 10485 * Indicates the driver's guidance on the new value to be set to 10486 * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible 10487 * values are from -31 to 31. Driver may optionally include this 10488 * attribute. 10489 */ 10490 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4, 10491 10492 /* 10493 * Indicates the driver's guidance on the new value to be set to 10494 * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may 10495 * optionally include this attribute. 10496 */ 10497 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5, 10498 10499 /* keep last */ 10500 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST, 10501 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX = 10502 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1, 10503 }; 10504 10505 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute 10506 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command 10507 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 10508 */ 10509 enum qca_wlan_nan_ext_subcmd_type { 10510 /* Subcmd of type NAN Enable Request */ 10511 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1, 10512 /* Subcmd of type NAN Disable Request */ 10513 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2, 10514 }; 10515 10516 /** 10517 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command 10518 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 10519 */ 10520 enum qca_wlan_vendor_attr_nan_params { 10521 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0, 10522 /* Carries NAN command for firmware component. Every vendor command 10523 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a 10524 * payload containing the NAN command. NLA_BINARY attribute. 10525 */ 10526 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1, 10527 /* Indicates the type of NAN command sent with 10528 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type 10529 * describes the possible range of values. This attribute is mandatory 10530 * if the command being issued is either 10531 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or 10532 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute. 10533 */ 10534 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2, 10535 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz 10536 * band. This attribute is mandatory when command type is 10537 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute. 10538 */ 10539 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3, 10540 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz 10541 * band. This attribute is optional and should be included when command 10542 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery 10543 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute. 10544 */ 10545 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4, 10546 10547 /* keep last */ 10548 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST, 10549 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX = 10550 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1 10551 }; 10552 10553 /** 10554 * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data 10555 * transport modes and is used by attribute 10556 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command 10557 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG. 10558 * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data. 10559 * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR 10560 * data. The data shall be encapsulated within 10561 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command 10562 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event. 10563 */ 10564 enum qca_wlan_vendor_cfr_data_transport_modes { 10565 QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0, 10566 QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1, 10567 }; 10568 10569 /** 10570 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by 10571 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor 10572 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG. 10573 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame. 10574 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame 10575 * with phase 10576 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame 10577 */ 10578 enum qca_wlan_vendor_cfr_method { 10579 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0, 10580 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1, 10581 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2, 10582 }; 10583 10584 /** 10585 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by 10586 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE. 10587 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames. 10588 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames. 10589 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames. 10590 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which 10591 * is provided by one or more of below attributes: 10592 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA 10593 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA 10594 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK 10595 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK 10596 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER 10597 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER 10598 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER 10599 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets. 10600 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames. 10601 */ 10602 enum qca_wlan_vendor_cfr_capture_type { 10603 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0, 10604 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1, 10605 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2, 10606 QCA_WLAN_VENDOR_CFR_TA_RA = 3, 10607 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4, 10608 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5, 10609 }; 10610 10611 /** 10612 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command 10613 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer 10614 * Channel Frequency Response capture parameters and enable periodic CFR 10615 * capture. 10616 * 10617 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address) 10618 * MAC address of peer. This is for CFR version 1 only. 10619 * 10620 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag) 10621 * Enable peer CFR Capture. This attribute is mandatory to 10622 * enable peer CFR capture. If this attribute is not present, 10623 * peer CFR capture is disabled. 10624 * 10625 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8) 10626 * BW of measurement, attribute uses the values in enum nl80211_chan_width 10627 * Supported values: 20, 40, 80, 80+80, 160. 10628 * Note that all targets may not support all bandwidths. 10629 * This attribute is mandatory for version 1 if attribute 10630 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 10631 * 10632 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32) 10633 * Periodicity of CFR measurement in msec. 10634 * Periodicity should be a multiple of Base timer. 10635 * Current Base timer value supported is 10 msecs (default). 10636 * 0 for one shot capture. 10637 * This attribute is mandatory for version 1 if attribute 10638 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 10639 * 10640 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8) 10641 * Method used to capture Channel Frequency Response. 10642 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method. 10643 * This attribute is mandatory for version 1 if attribute 10644 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 10645 * 10646 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag) 10647 * Enable periodic CFR capture. 10648 * This attribute is mandatory for version 1 to enable Periodic CFR capture. 10649 * If this attribute is not present, periodic CFR capture is disabled. 10650 * 10651 * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8) 10652 * Value is 1 or 2 since there are two versions of CFR capture. Two versions 10653 * can't be enabled at same time. This attribute is mandatory if target 10654 * support both versions and use one of them. 10655 * 10656 * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32) 10657 * This attribute is mandatory for version 2 if 10658 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used. 10659 * Bits 15:0 Bit fields indicating which group to be enabled. 10660 * Bits 31:16 Reserved for future use. 10661 * 10662 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32) 10663 * CFR capture duration in microsecond. This attribute is mandatory for 10664 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used. 10665 * 10666 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32) 10667 * CFR capture interval in microsecond. This attribute is mandatory for 10668 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used. 10669 * 10670 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32) 10671 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type. 10672 * This attribute is mandatory for version 2. 10673 * 10674 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64) 10675 * Bit fields indicating which user in the current UL MU 10676 * transmissions are enabled for CFR capture. Bits 36 to 0 indicating 10677 * user indexes for 37 users in a UL MU transmission. If bit 0 is set, 10678 * then the CFR capture will happen for user index 0 in the current 10679 * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU 10680 * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use. 10681 * This is for CFR version 2 only. 10682 * 10683 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32) 10684 * Indicates the number of consecutive Rx packets to be skipped 10685 * before CFR capture is enabled again. 10686 * This is for CFR version 2 only. 10687 * 10688 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing 10689 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes. 10690 * 10691 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing 10692 * the following GROUP attributes: 10693 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER, 10694 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA, 10695 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA, 10696 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK, 10697 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK, 10698 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS, 10699 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW, 10700 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER, 10701 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER, 10702 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER 10703 * 10704 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32) 10705 * Target support multiple groups for some configurations. Group number could be 10706 * any value between 0 and 15. This is for CFR version 2 only. 10707 * 10708 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address) 10709 * Transmitter address which is used to filter packets, this MAC address takes 10710 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. 10711 * This is for CFR version 2 only. 10712 * 10713 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address) 10714 * Receiver address which is used to filter packets, this MAC address takes 10715 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. 10716 * This is for CFR version 2 only. 10717 * 10718 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address) 10719 * Mask of transmitter address which is used to filter packets. 10720 * This is for CFR version 2 only. 10721 * 10722 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address) 10723 * Mask of receiver address which is used to filter packets. 10724 * This is for CFR version 2 only. 10725 * 10726 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32) 10727 * Indicates packets with a specific NSS will be filtered for CFR capture. 10728 * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will 10729 * be done for packets matching the NSS specified within this bitmask. 10730 * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS: 10731 * bit 0 : NSS 1 10732 * bit 1 : NSS 2 10733 * ... 10734 * bit 7 : NSS 8 10735 * 10736 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32) 10737 * Indicates packets with a specific BW will be filtered for CFR capture. 10738 * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture 10739 * will be done for packets matching the bandwidths specified within this 10740 * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth 10741 * numerated in enum nl80211_band (although not all bands may be supported 10742 * by a given device). 10743 * 10744 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32) 10745 * Management packets matching the subtype filter categories will be 10746 * filtered in by MAC for CFR capture. This is a bitmask, in which each bit 10747 * represents the corresponding mgmt subtype value as per 10748 * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields. 10749 * For example, beacon frame control type is 8, its value is 1<<8 = 0x100. 10750 * This is for CFR version 2 only 10751 * 10752 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32) 10753 * Control packets matching the subtype filter categories will be 10754 * filtered in by MAC for CFR capture. This is a bitmask, in which each bit 10755 * represents the corresponding control subtype value as per 10756 * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields. 10757 * This is for CFR version 2 only. 10758 * 10759 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32) 10760 * Data packets matching the subtype filter categories will be 10761 * filtered in by MAC for CFR capture. This is a bitmask, in which each bit 10762 * represents the corresponding data subtype value as per 10763 * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields. 10764 * This is for CFR version 2 only. 10765 * 10766 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8) 10767 * Userspace can use this attribute to specify the driver about which transport 10768 * mode shall be used by the driver to send CFR data to userspace. Uses values 10769 * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is 10770 * not present, driver shall choose the default transport mechanism which is 10771 * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS. 10772 * 10773 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32) 10774 * Userspace can use this attribute to specify the nl port id of the application 10775 * which receives the CFR data and processes it further so that the drivers can 10776 * unicast the NL events to a specific application. Optionally included when 10777 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to 10778 * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers 10779 * shall multicast the netlink events when this attribute is not included. 10780 * 10781 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY). 10782 * This attribute will be used by the driver to encapsulate and send CFR data 10783 * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an 10784 * asynchronous event when the driver is configured to send CFR data using NL 10785 * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS 10786 * 10787 */ 10788 enum qca_wlan_vendor_peer_cfr_capture_attr { 10789 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0, 10790 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1, 10791 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2, 10792 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3, 10793 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4, 10794 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5, 10795 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6, 10796 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7, 10797 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8, 10798 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9, 10799 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10, 10800 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11, 10801 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12, 10802 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13, 10803 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14, 10804 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15, 10805 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16, 10806 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17, 10807 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18, 10808 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19, 10809 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20, 10810 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21, 10811 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22, 10812 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23, 10813 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24, 10814 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25, 10815 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26, 10816 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27, 10817 QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28, 10818 10819 /* Keep last */ 10820 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST, 10821 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX = 10822 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1, 10823 }; 10824 10825 /** 10826 * enum qca_coex_config_profiles - This enum defines different types of 10827 * traffic streams that can be prioritized one over the other during coex 10828 * scenarios. 10829 * The types defined in this enum are categorized in the below manner. 10830 * 0 - 31 values corresponds to WLAN 10831 * 32 - 63 values corresponds to BT 10832 * 64 - 95 values corresponds to Zigbee 10833 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA 10834 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA 10835 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA 10836 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA 10837 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA 10838 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP 10839 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP 10840 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP 10841 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP 10842 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP 10843 * @QCA_BT_A2DP: Prioritize BT A2DP 10844 * @QCA_BT_BLE: Prioritize BT BLE 10845 * @QCA_BT_SCO: Prioritize BT SCO 10846 * @QCA_ZB_LOW: Prioritize Zigbee Low 10847 * @QCA_ZB_HIGH: Prioritize Zigbee High 10848 */ 10849 enum qca_coex_config_profiles { 10850 /* 0 - 31 corresponds to WLAN */ 10851 QCA_WIFI_STA_DISCOVERY = 0, 10852 QCA_WIFI_STA_CONNECTION = 1, 10853 QCA_WIFI_STA_CLASS_3_MGMT = 2, 10854 QCA_WIFI_STA_DATA = 3, 10855 QCA_WIFI_STA_ALL = 4, 10856 QCA_WIFI_SAP_DISCOVERY = 5, 10857 QCA_WIFI_SAP_CONNECTION = 6, 10858 QCA_WIFI_SAP_CLASS_3_MGMT = 7, 10859 QCA_WIFI_SAP_DATA = 8, 10860 QCA_WIFI_SAP_ALL = 9, 10861 QCA_WIFI_CASE_MAX = 31, 10862 /* 32 - 63 corresponds to BT */ 10863 QCA_BT_A2DP = 32, 10864 QCA_BT_BLE = 33, 10865 QCA_BT_SCO = 34, 10866 QCA_BT_CASE_MAX = 63, 10867 /* 64 - 95 corresponds to Zigbee */ 10868 QCA_ZB_LOW = 64, 10869 QCA_ZB_HIGH = 65, 10870 QCA_ZB_CASE_MAX = 95, 10871 /* 0xff is default value if the u8 profile value is not set. */ 10872 QCA_PROFILE_DEFAULT_VALUE = 255 10873 }; 10874 10875 /** 10876 * enum qca_vendor_attr_coex_config_types - Coex configurations types. 10877 * This enum defines the valid set of values of coex configuration types. These 10878 * values may used by attribute 10879 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE. 10880 * 10881 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the 10882 * weights to default values. 10883 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config 10884 * weights with configurability value. 10885 */ 10886 enum qca_vendor_attr_coex_config_types { 10887 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0, 10888 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1, 10889 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2, 10890 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX 10891 }; 10892 10893 /** 10894 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config 10895 * attributes 10896 * Attributes for data used by 10897 * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG 10898 * 10899 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute. 10900 * Indicate config type. 10901 * the config types are 32-bit values from qca_vendor_attr_coex_config_types 10902 * 10903 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute. 10904 * Indicate the Priority 1 profiles. 10905 * the profiles are 8-bit values from enum qca_coex_config_profiles 10906 * In same priority level, maximum to 4 profiles can be set here. 10907 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute. 10908 * Indicate the Priority 2 profiles. 10909 * the profiles are 8-bit values from enum qca_coex_config_profiles 10910 * In same priority level, maximum to 4 profiles can be set here. 10911 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute. 10912 * Indicate the Priority 3 profiles. 10913 * the profiles are 8-bit values from enum qca_coex_config_profiles 10914 * In same priority level, maximum to 4 profiles can be set here. 10915 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute. 10916 * Indicate the Priority 4 profiles. 10917 * the profiles are 8-bit values from enum qca_coex_config_profiles 10918 * In same priority level, maximum to 4 profiles can be set here. 10919 * NOTE: 10920 * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority 10921 * arrangement: 10922 * 1: In the same u32 attribute(priority x), the profiles enum values own 10923 * same priority level. 10924 * 2: 0xff is default value if the u8 profile value is not set. 10925 * 3: max to 4 rules/profiles in same priority level. 10926 * 4: max to 4 priority level (priority 1 - priority 4) 10927 * 5: one priority level only supports one scenario from WLAN/BT/ZB, 10928 * hybrid rules not support. 10929 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will 10930 * remain blank to reset all parameters. 10931 * For example: 10932 * 10933 * If the attributes as follow: 10934 * priority 1: 10935 * ------------------------------------ 10936 * | 0xff | 0 | 1 | 2 | 10937 * ------------------------------------ 10938 * priority 2: 10939 * ------------------------------------- 10940 * | 0xff | 0xff | 0xff | 32 | 10941 * ------------------------------------- 10942 * priority 3: 10943 * ------------------------------------- 10944 * | 0xff | 0xff | 0xff | 65 | 10945 * ------------------------------------- 10946 * then it means: 10947 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION 10948 * owns same priority level. 10949 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION 10950 * has priority over BT_A2DP and ZB_HIGH. 10951 * 3: BT_A2DP has priority over ZB_HIGH. 10952 */ 10953 10954 enum qca_vendor_attr_coex_config_three_way { 10955 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0, 10956 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1, 10957 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2, 10958 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3, 10959 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4, 10960 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5, 10961 10962 /* Keep last */ 10963 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST, 10964 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX = 10965 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1, 10966 }; 10967 10968 /** 10969 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type 10970 * This enum defines the valid set of values of peer stats cache types. These 10971 * values are used by attribute 10972 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID. 10973 * 10974 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics. 10975 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics. 10976 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn 10977 * statistics 10978 */ 10979 enum qca_vendor_attr_peer_stats_cache_type { 10980 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0, 10981 10982 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS, 10983 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS, 10984 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS, 10985 }; 10986 10987 /** 10988 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines 10989 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH 10990 * Attributes are required to flush peer rate statistics from driver to 10991 * user application. 10992 * 10993 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute 10994 * Indicate peer stats cache type. 10995 * The statistics types are 32-bit values from 10996 * qca_vendor_attr_peer_stats_cache_type 10997 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array 10998 * of size 6, representing peer mac address. 10999 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute 11000 * containing buffer of statistics to send event to application layer entity. 11001 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute 11002 * representing cookie for peer unique session. 11003 */ 11004 enum qca_wlan_vendor_attr_peer_stats_cache_params { 11005 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0, 11006 11007 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1, 11008 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2, 11009 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3, 11010 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4, 11011 11012 /* Keep last */ 11013 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST, 11014 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX = 11015 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1 11016 }; 11017 11018 /** 11019 * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee. 11020 * this enum defines all the possible state of zigbee, which can be 11021 * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE. 11022 * 11023 * @ZIGBEE_IDLE: zigbee in idle state 11024 * @ZIGBEE_FORM_NETWORK: zibee forming network 11025 * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network 11026 * @ZIGBEE_JOIN: zigbee joining network 11027 * @ZIGBEE_NETWORK_UP: zigbee network is up 11028 * @ZIGBEE_HMI: zigbee in HMI mode 11029 */ 11030 enum qca_mpta_helper_attr_zigbee_state { 11031 ZIGBEE_IDLE = 0, 11032 ZIGBEE_FORM_NETWORK = 1, 11033 ZIGBEE_WAIT_JOIN = 2, 11034 ZIGBEE_JOIN = 3, 11035 ZIGBEE_NETWORK_UP = 4, 11036 ZIGBEE_HMI = 5, 11037 }; 11038 11039 /** 11040 * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by 11041 * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG. 11042 */ 11043 enum qca_mpta_helper_vendor_attr { 11044 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0, 11045 /* Optional attribute used to update zigbee state. 11046 * enum qca_mpta_helper_attr_zigbee_state. 11047 * NLA_U32 attribute. 11048 */ 11049 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1, 11050 /* Optional attribute used to configure wlan duration for Shape-OCS 11051 * during interrupt. 11052 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION. 11053 * Value range 0 ~ 300 (ms). 11054 * NLA_U32 attribute. 11055 */ 11056 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2, 11057 /* Optional attribute used to configure non wlan duration for Shape-OCS 11058 * during interrupt. 11059 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION. 11060 * Value range 0 ~ 300 (ms). 11061 * NLA_U32 attribute. 11062 */ 11063 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3, 11064 /* Optional attribute used to configure wlan duration for Shape-OCS 11065 * monitor period. 11066 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION. 11067 * Value range 0 ~ 300 (ms) 11068 * NLA_U32 attribute 11069 */ 11070 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4, 11071 /* Optional attribute used to configure non wlan duration for Shape-OCS 11072 * monitor period. 11073 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION. 11074 * Value range 0 ~ 300 (ms) 11075 * NLA_U32 attribute 11076 */ 11077 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5, 11078 /* Optional attribute used to configure ocs interrupt duration. 11079 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION. 11080 * Value range 1000 ~ 20000 (ms) 11081 * NLA_U32 attribute 11082 */ 11083 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6, 11084 /* Optional attribute used to configure ocs monitor duration. 11085 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION. 11086 * Value range 1000 ~ 20000 (ms) 11087 * NLA_U32 attribute 11088 */ 11089 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7, 11090 /* Optional attribute used to notify wlan FW current zigbee channel. 11091 * Value range 11 ~ 26 11092 * NLA_U32 attribute 11093 */ 11094 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8, 11095 /* Optional attribute used to configure wlan mute duration. 11096 * Value range 0 ~ 400 (ms) 11097 * NLA_U32 attribute 11098 */ 11099 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9, 11100 11101 /* keep last */ 11102 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST, 11103 QCA_MPTA_HELPER_VENDOR_ATTR_MAX = 11104 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1 11105 }; 11106 11107 /** 11108 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of 11109 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be 11110 * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE. 11111 * 11112 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver 11113 * to request the driver to start reporting Beacon frames. 11114 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver 11115 * to request the driver to stop reporting Beacon frames. 11116 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to 11117 * userspace to report received Beacon frames. 11118 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace 11119 * to indicate that the driver is going to pause reporting Beacon frames. 11120 */ 11121 enum qca_wlan_vendor_beacon_reporting_op_types { 11122 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0, 11123 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1, 11124 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2, 11125 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3, 11126 }; 11127 11128 /** 11129 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different 11130 * types of reasons for which the driver is pausing reporting Beacon frames. 11131 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON. 11132 * 11133 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified 11134 * reasons. 11135 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the 11136 * driver/firmware is starting a scan. 11137 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the 11138 * driver/firmware disconnects from the ESS and indicates the disconnection to 11139 * userspace (non-seamless roaming case). This reason code will be used by the 11140 * driver/firmware to indicate stopping of beacon report events. Userspace 11141 * will need to start beacon reporting again (if desired) by sending vendor 11142 * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with 11143 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to 11144 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is 11145 * completed. 11146 */ 11147 enum qca_wlan_vendor_beacon_reporting_pause_reasons { 11148 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0, 11149 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1, 11150 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2, 11151 }; 11152 11153 /* 11154 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used 11155 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING. 11156 */ 11157 enum qca_wlan_vendor_attr_beacon_reporting_params { 11158 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0, 11159 /* Specifies the type of operation that the vendor command/event is 11160 * intended for. Possible values for this attribute are defined in 11161 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute. 11162 */ 11163 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1, 11164 /* Optionally set by userspace to request the driver to report Beacon 11165 * frames using asynchronous vendor events when the 11166 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11167 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. 11168 * If this flag is not set, the driver will only update Beacon frames 11169 * in cfg80211 scan cache but not send any vendor events. 11170 */ 11171 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2, 11172 /* Optionally used by userspace to request the driver/firmware to 11173 * report Beacon frames periodically when the 11174 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11175 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. 11176 * u32 attribute, indicates the period of Beacon frames to be reported 11177 * and in the units of beacon interval. 11178 * If this attribute is missing in the command, then the default value 11179 * of 1 will be assumed by driver, i.e., to report every Beacon frame. 11180 * Zero is an invalid value. 11181 * If a valid value is received for this attribute, the driver will 11182 * update the cfg80211 scan cache periodically as per the value 11183 * received in this attribute in addition to updating the cfg80211 scan 11184 * cache when there is significant change in Beacon frame IEs. 11185 */ 11186 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3, 11187 /* Used by the driver to encapsulate the SSID when the 11188 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11189 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11190 * u8 array with a maximum size of 32. 11191 * 11192 * When generating beacon report from non-MBSSID Beacon frame, the SSID 11193 * will be taken from the SSID element of the received Beacon frame. 11194 * 11195 * When generating beacon report from Multiple BSSID Beacon frame and 11196 * if the BSSID of the current connected BSS matches the BSSID of the 11197 * transmitting BSS, the SSID will be taken from the SSID element of 11198 * the received Beacon frame. 11199 * 11200 * When generating beacon report from Multiple BSSID Beacon frame and 11201 * if the BSSID of the current connected BSS matches the BSSID of one 11202 * of the* nontransmitting BSSs, the SSID will be taken from the SSID 11203 * field included in the nontransmitted BSS profile whose derived BSSI 11204 * is same as the BSSID of the current connected BSS. When there is no 11205 * nontransmitted BSS profile whose derived BSSID is same as the BSSID 11206 * of current connected* BSS, this attribute will not be present. 11207 */ 11208 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4, 11209 /* Used by the driver to encapsulate the BSSID of the AP to which STA 11210 * is currently connected to when the 11211 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11212 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a 11213 * fixed size of 6 bytes. 11214 * 11215 * When generating beacon report from a Multiple BSSID beacon and the 11216 * current connected BSSID matches one of the nontransmitted BSSIDs in 11217 * a Multiple BSSID set, this BSSID will be that particular 11218 * nontransmitted BSSID and not the transmitted BSSID (i.e., the 11219 * transmitting address of the Beacon frame). 11220 */ 11221 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5, 11222 /* Used by the driver to encapsulate the frequency in MHz on which 11223 * the Beacon frame was received when the 11224 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is 11225 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11226 * u32 attribute. 11227 */ 11228 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6, 11229 /* Used by the driver to encapsulate the Beacon interval 11230 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11231 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11232 * u16 attribute. The value will be copied from the Beacon frame and 11233 * the units are TUs. 11234 */ 11235 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7, 11236 /* Used by the driver to encapsulate the Timestamp field from the 11237 * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE 11238 * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11239 * u64 attribute. 11240 */ 11241 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8, 11242 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this 11243 * Beacon frame is received in the driver when the 11244 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11245 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in 11246 * the units of nanoseconds. This value is expected to have accuracy of 11247 * about 10 ms. 11248 */ 11249 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9, 11250 /* Used by the driver to encapsulate the IEs of the Beacon frame from 11251 * which this event is generated when the 11252 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11253 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array. 11254 */ 11255 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10, 11256 /* Used by the driver to specify the reason for the driver/firmware to 11257 * pause sending beacons to userspace when the 11258 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11259 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are 11260 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32 11261 * attribute. 11262 */ 11263 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11, 11264 /* Used by the driver to specify whether the driver will automatically 11265 * resume reporting beacon events to userspace later (for example after 11266 * the ongoing off-channel activity is completed etc.) when the 11267 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11268 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute. 11269 */ 11270 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12, 11271 /* Optionally set by userspace to request the driver not to resume 11272 * beacon reporting after a pause is completed, when the 11273 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11274 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. 11275 * If this flag is set, the driver will not resume beacon reporting 11276 * after any pause in beacon reporting is completed. Userspace has to 11277 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order 11278 * to initiate beacon reporting again. If this flag is set in the recent 11279 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the 11280 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any) 11281 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be 11282 * set by the driver. Setting this flag until and unless there is a 11283 * specific need is not recommended as there is a chance of some beacons 11284 * received after pause command and next start command being not 11285 * reported. 11286 */ 11287 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13, 11288 11289 /* Keep last */ 11290 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST, 11291 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX = 11292 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1 11293 }; 11294 11295 /** 11296 * enum qca_vendor_oem_device_type - Represents the target device in firmware. 11297 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO. 11298 * 11299 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for 11300 * a virtual device. 11301 * 11302 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for 11303 * a physical device. 11304 */ 11305 enum qca_vendor_oem_device_type { 11306 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0, 11307 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1, 11308 }; 11309 11310 /* 11311 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command 11312 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA. 11313 * 11314 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is 11315 * used to set/query the data to/from the firmware. On query, the same 11316 * attribute is used to carry the respective data in the reply sent by the 11317 * driver to userspace. The request to set/query the data and the format of the 11318 * respective data from the firmware are embedded in the attribute. The 11319 * maximum size of the attribute payload is 1024 bytes. 11320 * 11321 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed 11322 * based on this field. This optional attribute is included to specify whether 11323 * the device type is a virtual device or a physical device for the command. 11324 * This attribute can be omitted for a virtual device (default) command. 11325 * This u8 attribute is used to carry information for the device type using 11326 * values defined by enum qca_vendor_oem_device_type. 11327 * 11328 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED 11329 * attribute when the data is queried from the firmware. 11330 * 11331 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute 11332 * is set when the userspace queries data from the firmware. This attribute 11333 * should not be set when userspace sets the OEM data to the firmware. 11334 */ 11335 enum qca_wlan_vendor_attr_oem_data_params { 11336 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0, 11337 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1, 11338 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2, 11339 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3, 11340 11341 /* keep last */ 11342 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST, 11343 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX = 11344 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1 11345 }; 11346 11347 /** 11348 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be 11349 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT. 11350 * 11351 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required 11352 * Nested attribute containing multiple ranges with following attributes: 11353 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START, 11354 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and 11355 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM. 11356 * 11357 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32) 11358 * Starting center frequency in MHz. 11359 * 11360 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32) 11361 * Ending center frequency in MHz. 11362 * 11363 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM: 11364 * s32 attribute, optional. It is a per frequency range attribute. 11365 * The maximum TX power limit from user space is to be applied on an 11366 * unrestricted interface for corresponding frequency range. It is also 11367 * possible that the actual TX power may be even lower than this cap due to 11368 * other considerations such as regulatory compliance, SAR, etc. In absence of 11369 * this attribute the driver shall follow current behavior which means 11370 * interface (SAP/P2P) function can keep operating on an unsafe channel with TX 11371 * power derived by the driver based on regulatory/SAR during interface up. 11372 * 11373 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK: 11374 * u32 attribute, optional. Indicates all the interface types which are 11375 * restricted for all frequency ranges provided in 11376 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and 11377 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END. 11378 * This attribute encapsulates bitmasks of interface types defined in 11379 * enum nl80211_iftype. If an interface is marked as restricted the driver must 11380 * move to a safe channel and if no safe channel is available the driver shall 11381 * terminate that interface functionality. In absence of this attribute, 11382 * interface (SAP/P2P) can still continue operating on an unsafe channel with 11383 * TX power limit derived from either 11384 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on 11385 * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM 11386 * is not provided. 11387 */ 11388 enum qca_wlan_vendor_attr_avoid_frequency_ext { 11389 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0, 11390 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1, 11391 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2, 11392 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3, 11393 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4, 11394 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5, 11395 11396 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST, 11397 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX = 11398 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1 11399 }; 11400 11401 /* 11402 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command 11403 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE. 11404 */ 11405 enum qca_wlan_vendor_attr_add_sta_node_params { 11406 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0, 11407 /* 6 byte MAC address of STA */ 11408 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1, 11409 /* Authentication algorithm used by the station of size u16; 11410 * defined in enum nl80211_auth_type. 11411 */ 11412 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2, 11413 11414 /* keep last */ 11415 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST, 11416 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX = 11417 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1 11418 }; 11419 11420 /** 11421 * enum qca_btc_chain_mode - Specifies BT coex chain mode. 11422 * This enum defines the valid set of values of BT coex chain mode. 11423 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of 11424 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. 11425 * 11426 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared. 11427 * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are 11428 * separated, hybrid mode. 11429 * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are 11430 * separated, fixed FDD mode. 11431 */ 11432 enum qca_btc_chain_mode { 11433 QCA_BTC_CHAIN_SHARED = 0, 11434 QCA_BTC_CHAIN_SEPARATED_HYBRID = 1, 11435 QCA_BTC_CHAIN_SEPARATED_FDD = 2, 11436 }; 11437 11438 /* deprecated legacy name */ 11439 #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID 11440 11441 /** 11442 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex 11443 * chain mode. 11444 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. 11445 * 11446 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute. 11447 * Indicates the BT coex chain mode, are 32-bit values from 11448 * enum qca_btc_chain_mode. This attribute is mandatory. 11449 * 11450 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute. 11451 * If set, vdev should be restarted when BT coex chain mode is updated. 11452 * This attribute is optional. 11453 */ 11454 enum qca_vendor_attr_btc_chain_mode { 11455 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0, 11456 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1, 11457 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2, 11458 11459 /* Keep last */ 11460 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST, 11461 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX = 11462 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1, 11463 }; 11464 11465 /** 11466 * enum qca_vendor_wlan_sta_flags - Station feature flags 11467 * Bits will be set to 1 if the corresponding features are enabled. 11468 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station 11469 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled 11470 for the station 11471 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled 11472 for the station 11473 */ 11474 enum qca_vendor_wlan_sta_flags { 11475 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0), 11476 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1), 11477 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2), 11478 }; 11479 11480 /** 11481 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval 11482 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval 11483 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval 11484 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE 11485 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE 11486 */ 11487 enum qca_vendor_wlan_sta_guard_interval { 11488 QCA_VENDOR_WLAN_STA_GI_800_NS = 0, 11489 QCA_VENDOR_WLAN_STA_GI_400_NS = 1, 11490 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2, 11491 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3, 11492 }; 11493 11494 /** 11495 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes 11496 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command. 11497 * 11498 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC: 11499 * Required attribute in request for AP mode only, 6-byte MAC address, 11500 * corresponding to the station's MAC address for which information is 11501 * requested. For STA mode this is not required as the info always correspond 11502 * to the self STA and the current/last association. 11503 * 11504 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS: 11505 * Optionally used in response, u32 attribute, contains a bitmap of different 11506 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only. 11507 * 11508 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL: 11509 * Optionally used in response, u32 attribute, possible values are defined in 11510 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only. 11511 * Guard interval used by the station. 11512 * 11513 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT: 11514 * Optionally used in response, u32 attribute, used in AP mode only. 11515 * Value indicates the number of data frames received from station with retry 11516 * bit set to 1 in FC. 11517 * 11518 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT: 11519 * Optionally used in response, u32 attribute, used in AP mode only. 11520 * Counter for number of data frames with broadcast or multicast address in 11521 * the destination address received from the station. 11522 * 11523 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED: 11524 * Optionally used in response, u32 attribute, used in both STA and AP modes. 11525 * Value indicates the number of data frames successfully transmitted only 11526 * after retrying the packets and for which the TX status has been updated 11527 * back to host from target. 11528 * 11529 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED: 11530 * Optionally used in response, u32 attribute, used in both STA and AP mode. 11531 * Value indicates the number of data frames not transmitted successfully even 11532 * after retrying the packets for the number of times equal to the total number 11533 * of retries allowed for that packet and for which the TX status has been 11534 * updated back to host from target. 11535 * 11536 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL: 11537 * Optionally used in response, u32 attribute, used in AP mode only. 11538 * Counter in the target for the number of data frames successfully transmitted 11539 * to the station. 11540 * 11541 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY: 11542 * Optionally used in response, u32 attribute, used in AP mode only. 11543 * Value indicates the number of data frames successfully transmitted only 11544 * after retrying the packets. 11545 * 11546 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED: 11547 * Optionally used in response, u32 attribute, used in both STA & AP mode. 11548 * Value indicates the number of data frames not transmitted successfully even 11549 * after retrying the packets for the number of times equal to the total number 11550 * of retries allowed for that packet. 11551 * 11552 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in 11553 * the STA mode only. Represent the number of probe requests sent by the STA 11554 * while attempting to roam on missing certain number of beacons from the 11555 * connected AP. If queried in the disconnected state, this represents the 11556 * count for the last connected state. 11557 * 11558 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in 11559 * the STA mode. Represent the number of probe responses received by the station 11560 * while attempting to roam on missing certain number of beacons from the 11561 * connected AP. When queried in the disconnected state, this represents the 11562 * count when in last connected state. 11563 * 11564 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the 11565 * STA mode only. Represents the total number of frames sent out by STA 11566 * including Data, ACK, RTS, CTS, Control Management. This data is maintained 11567 * only for the connect session. Represents the count of last connected session, 11568 * when queried in the disconnected state. 11569 * 11570 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode. 11571 * Total number of RTS sent out by the STA. This data is maintained per connect 11572 * session. Represents the count of last connected session, when queried in the 11573 * disconnected state. 11574 * 11575 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the 11576 * STA mode.Represent the number of RTS transmission failure that reach retry 11577 * limit. This data is maintained per connect session. Represents the count of 11578 * last connected session, when queried in the disconnected state. 11579 * 11580 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in 11581 * the STA mode. Represent the total number of non aggregated frames transmitted 11582 * by the STA. This data is maintained per connect session. Represents the count 11583 * of last connected session, when queried in the disconnected state. 11584 * 11585 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the 11586 * STA mode. Represent the total number of aggregated frames transmitted by the 11587 * STA. This data is maintained per connect session. Represents the count of 11588 * last connected session, when queried in the disconnected state. 11589 * 11590 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in 11591 * the STA mode. Represents the number of received frames with a good PLCP. This 11592 * data is maintained per connect session. Represents the count of last 11593 * connected session, when queried in the disconnected state. 11594 * 11595 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32, 11596 * used in the STA mode. Represents the number of occasions that no valid 11597 * delimiter is detected by A-MPDU parser. This data is maintained per connect 11598 * session. Represents the count of last connected session, when queried in the 11599 * disconnected state. 11600 * 11601 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the 11602 * STA mode. Represents the number of frames for which CRC check failed in the 11603 * MAC. This data is maintained per connect session. Represents the count of 11604 * last connected session, when queried in the disconnected state. 11605 * 11606 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the 11607 * STA mode. Represents the number of unicast ACKs received with good FCS. This 11608 * data is maintained per connect session. Represents the count of last 11609 * connected session, when queried in the disconnected state. 11610 * 11611 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA 11612 * mode. Represents the number of received Block Acks. This data is maintained 11613 * per connect session. Represents the count of last connected session, when 11614 * queried in the disconnected state. 11615 * 11616 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA 11617 * mode. Represents the number of beacons received from the connected BSS. This 11618 * data is maintained per connect session. Represents the count of last 11619 * connected session, when queried in the disconnected state. 11620 * 11621 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the 11622 * STA mode. Represents the number of beacons received by the other BSS when in 11623 * connected state (through the probes done by the STA). This data is maintained 11624 * per connect session. Represents the count of last connected session, when 11625 * queried in the disconnected state. 11626 * 11627 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in 11628 * the STA mode. Represents the number of received DATA frames with good FCS and 11629 * matching Receiver Address when in connected state. This data is maintained 11630 * per connect session. Represents the count of last connected session, when 11631 * queried in the disconnected state. 11632 * 11633 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the 11634 * STA mode. Represents the number of RX Data multicast frames dropped by the HW 11635 * when in the connected state. This data is maintained per connect session. 11636 * Represents the count of last connected session, when queried in the 11637 * disconnected state. 11638 * 11639 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the 11640 * STA mode. This represents the target power in dBm for the transmissions done 11641 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per 11642 * connect session. Represents the count of last connected session, when 11643 * queried in the disconnected state. 11644 * 11645 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the 11646 * STA mode. This represents the Target power in dBm for transmissions done to 11647 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect 11648 * session. Represents the count of last connected session, when queried in the 11649 * disconnected state. 11650 * 11651 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the 11652 * STA mode. This represents the Target power in dBm for transmissions done to 11653 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session. 11654 * Represents the count of last connected session, when queried in the 11655 * disconnected state. 11656 * 11657 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the 11658 * STA mode. This represents the Target power in dBm for transmissions done to 11659 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect 11660 * session. Represents the count of last connected session, when queried in 11661 * the disconnected state. 11662 * 11663 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the 11664 * STA mode. This represents the Target power in dBm for for transmissions done 11665 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session. 11666 * Represents the count of last connected session, when queried in the 11667 * disconnected state. 11668 * 11669 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used 11670 * in the STA mode. This represents the Nested attribute representing the 11671 * overflow counts of each receive buffer allocated to the hardware during the 11672 * STA's connection. The number of hw buffers might vary for each WLAN 11673 * solution and hence this attribute represents the nested array of all such 11674 * HW buffer count. This data is maintained per connect session. Represents 11675 * the count of last connected session, when queried in the disconnected state. 11676 * 11677 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm) 11678 * allowed as per the regulatory requirements for the current or last connected 11679 * session. Used in the STA mode. 11680 * 11681 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power 11682 * (dBm) used by the station in its latest unicast frame while communicating 11683 * to the AP in the connected state. When queried in the disconnected state, 11684 * this represents the TX power used by the STA with last AP communication 11685 * when in connected state. 11686 * 11687 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity 11688 * level used to adjust the RX sensitivity. Represents the current ANI level 11689 * when queried in the connected state. When queried in the disconnected 11690 * state, this corresponds to the latest ANI level at the instance of 11691 * disconnection. 11692 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode 11693 * only. This represents the number of group addressed robust management frames 11694 * received from this station with an invalid MIC or a missing MME when PMF is 11695 * enabled. 11696 * 11697 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode 11698 * only. This represents the number of group addressed robust management frames 11699 * received from this station with the packet number less than or equal to the 11700 * last received packet number when PMF is enabled. 11701 * 11702 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA 11703 * mode only. This represents the number of Beacon frames received from this 11704 * station with an invalid MIC or a missing MME when beacon protection is 11705 * enabled. 11706 * 11707 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode 11708 * only. This represents number of Beacon frames received from this station with 11709 * the packet number less than or equal to the last received packet number when 11710 * beacon protection is enabled. 11711 * 11712 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in 11713 * STA mode only. Driver uses this attribute to populate the connection failure 11714 * reason codes and the values are defined in 11715 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send 11716 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving 11717 * connection failure from driver. The driver shall not include this attribute 11718 * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no 11719 * connection failure observed in the last attempted connection. 11720 * 11721 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps) 11722 * used by the station in its last TX frame while communicating to the AP in the 11723 * connected state. When queried in the disconnected state, this represents the 11724 * rate used by the STA in the last TX frame to the AP when it was connected. 11725 * This attribute is used for STA mode only. 11726 * 11727 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only. 11728 * This represents the rate index used by the STA for the last TX frame to the 11729 * AP. When queried in the disconnected state, this gives the last RIX used by 11730 * the STA in the last TX frame to the AP when it was connected. 11731 * 11732 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA 11733 * mode only. This represents the number of times the STA TSF goes out of sync 11734 * from the AP after the connection. If queried in the disconnected state, this 11735 * gives the count of TSF out of sync for the last connection. 11736 * 11737 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA 11738 * mode only. This represents the roam trigger reason for the last roaming 11739 * attempted by the firmware. This can be queried either in connected state or 11740 * disconnected state. Each bit of this attribute represents the different 11741 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers. 11742 * 11743 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode 11744 * only. This represents the roam fail reason for the last failed roaming 11745 * attempt by the firmware. Different roam failure reason codes are specified 11746 * in enum qca_vendor_roam_fail_reasons. This can be queried either in 11747 * connected state or disconnected state. 11748 * 11749 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in 11750 * STA mode only. This represents the roam invoke fail reason for the last 11751 * failed roam invoke. Different roam invoke failure reason codes 11752 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be 11753 * queried either in connected state or disconnected state. 11754 * 11755 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only. 11756 * This represents the average congestion duration of uplink frames in MAC 11757 * queue in unit of ms. This can be queried either in connected state or 11758 * disconnected state. 11759 * 11760 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested 11761 * attribute, used in AP mode. This represents the MPDU packet count per MCS 11762 * rate value of TX packets. Every index of this nested attribute corresponds 11763 * to MCS index, for example Index 0 represents MCS0 TX rate. This can be 11764 * queried in connected state. 11765 * 11766 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested 11767 * attribute, used in AP mode. This represents the MPDU packet count per MCS 11768 * rate value of RX packets. Every index of this nested attribute corresponds 11769 * to MCS index, for example Index 0 represents MCS0 RX rate. This can be 11770 * queried in connected state. 11771 */ 11772 enum qca_wlan_vendor_attr_get_sta_info { 11773 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0, 11774 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1, 11775 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2, 11776 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3, 11777 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4, 11778 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5, 11779 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6, 11780 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7, 11781 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8, 11782 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9, 11783 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10, 11784 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11, 11785 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12, 11786 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13, 11787 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14, 11788 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15, 11789 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16, 11790 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17, 11791 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18, 11792 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19, 11793 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20, 11794 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21, 11795 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22, 11796 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23, 11797 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24, 11798 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25, 11799 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26, 11800 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27, 11801 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28, 11802 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29, 11803 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30, 11804 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31, 11805 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32, 11806 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33, 11807 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34, 11808 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35, 11809 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39, 11810 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40, 11811 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41, 11812 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42, 11813 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43, 11814 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44, 11815 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45, 11816 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46, 11817 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47, 11818 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48, 11819 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49, 11820 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50, 11821 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51, 11822 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52, 11823 11824 /* keep last */ 11825 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST, 11826 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX = 11827 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1, 11828 }; 11829 11830 /** 11831 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes. 11832 * Used when the driver triggers the STA to disconnect from the AP. 11833 * 11834 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the 11835 * disconnection with the AP due to unspecified reasons. 11836 * 11837 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the 11838 * disconnection with the AP due to a roaming failure. This roaming is triggered 11839 * internally (host driver/firmware). 11840 * 11841 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from 11842 * the AP when the user/external triggered roaming fails. 11843 * 11844 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used 11845 * by the host driver whenever gateway reachability failure is detected and the 11846 * driver disconnects with AP. 11847 * 11848 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from 11849 * the AP on a channel switch announcement from it with an unsupported channel. 11850 * 11851 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start 11852 * with indoor channels disabled and if the STA is connected on one of these 11853 * disabled channels, the host driver disconnected the STA with this reason 11854 * code. 11855 * 11856 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an 11857 * explicit request from the user to disable the current operating channel. 11858 * 11859 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to 11860 * the internal host driver/firmware recovery. 11861 * 11862 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on 11863 * a timeout for the key installations from the user space. 11864 * 11865 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the 11866 * STA on a band change request from the user space to a different band from the 11867 * current operation channel/band. 11868 * 11869 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an 11870 * interface down trigger from the user space. 11871 * 11872 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the 11873 * STA on getting continuous transmission failures for multiple Data frames. 11874 * 11875 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive 11876 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection 11877 * represents inactivity from AP on such transmissions. 11878 11879 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on 11880 * disconnection when SA Query times out (AP does not respond to SA Query). 11881 * 11882 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the 11883 * STA on missing the beacons continuously from the AP. 11884 * 11885 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not 11886 * able to move to the channel mentioned by the AP in CSA. 11887 * 11888 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection. 11889 */ 11890 enum qca_disconnect_reason_codes { 11891 QCA_DISCONNECT_REASON_UNSPECIFIED = 0, 11892 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1, 11893 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2, 11894 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3, 11895 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4, 11896 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5, 11897 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6, 11898 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7, 11899 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8, 11900 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9, 11901 QCA_DISCONNECT_REASON_IFACE_DOWN = 10, 11902 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11, 11903 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12, 11904 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13, 11905 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14, 11906 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15, 11907 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16, 11908 }; 11909 11910 /** 11911 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes 11912 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command. 11913 * 11914 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute. 11915 * This attribute represents the driver specific reason codes (local 11916 * driver/firmware initiated reasons for disconnection) defined 11917 * in enum qca_disconnect_reason_codes. 11918 */ 11919 enum qca_wlan_vendor_attr_driver_disconnect_reason { 11920 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0, 11921 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1, 11922 11923 /* keep last */ 11924 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST, 11925 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX = 11926 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1, 11927 }; 11928 11929 /** 11930 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request 11931 * 11932 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION. 11933 */ 11934 enum qca_wlan_tspec_operation { 11935 QCA_WLAN_TSPEC_ADD = 0, 11936 QCA_WLAN_TSPEC_DEL = 1, 11937 QCA_WLAN_TSPEC_GET = 2, 11938 }; 11939 11940 /** 11941 * enum qca_wlan_tspec_direction - Direction in TSPEC 11942 * As what is defined in IEEE Std 802.11-2016, Table 9-139. 11943 * 11944 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION. 11945 */ 11946 enum qca_wlan_tspec_direction { 11947 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0, 11948 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1, 11949 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2, 11950 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3, 11951 }; 11952 11953 /** 11954 * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC 11955 * As what is defined in IEEE Std 802.11-2016, Table 9-141. 11956 * 11957 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY. 11958 */ 11959 enum qca_wlan_tspec_ack_policy { 11960 QCA_WLAN_TSPEC_NORMAL_ACK = 0, 11961 QCA_WLAN_TSPEC_NO_ACK = 1, 11962 /* Reserved */ 11963 QCA_WLAN_TSPEC_BLOCK_ACK = 3, 11964 }; 11965 11966 /** 11967 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes 11968 * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command. 11969 * 11970 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION: 11971 * u8 attribute. Specify the TSPEC operation of this request. Possible values 11972 * are defined in enum qca_wlan_tspec_operation. 11973 * Mandatory attribute for all kinds of config TSPEC requests. 11974 * 11975 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID: 11976 * u8 attribute. TS ID. Possible values are 0-7. 11977 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL, 11978 * QCA_WLAN_TSPEC_GET. A mandatory attribute. 11979 * 11980 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION: 11981 * u8 attribute. Direction of data carried by the TS. Possible values are 11982 * defined in enum qca_wlan_tspec_direction. 11983 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11984 * 11985 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD: 11986 * Flag attribute. Indicate whether APSD is enabled for the traffic associated 11987 * with the TS. set - enabled, not set - disabled. 11988 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 11989 * 11990 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY: 11991 * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs 11992 * belonging to this TS. Possible values are 0-7. 11993 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 11994 * 11995 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY: 11996 * u8 attribute. Indicate whether MAC acknowledgements are required for 11997 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements. 11998 * Possible values are defined in enum qca_wlan_tspec_ack_policy. 11999 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12000 * 12001 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE: 12002 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs 12003 * belonging to this TS. 12004 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12005 * 12006 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE: 12007 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs 12008 * belonging to this TS. 12009 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12010 * 12011 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL: 12012 * u32 attribute. Specify the minimum interval in microseconds between the 12013 * start of two successive SPs. 12014 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12015 * 12016 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL: 12017 * u32 attribute. Specify the maximum interval in microseconds between the 12018 * start of two successive SPs. 12019 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12020 * 12021 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL: 12022 * u32 attribute. Specify the minimum interval in microseconds that can elapse 12023 * without arrival or transfer of an MPDU belonging to the TS before this TS 12024 * is deleted by the MAC entity at the HC. 12025 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12026 * 12027 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL: 12028 * u32 attribute. Specify the minimum interval in microseconds that can elapse 12029 * without arrival or transfer of an MSDU belonging to the TS before the 12030 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of 12031 * 0xFFFFFFFF disables the suspension interval. The value of the suspension 12032 * interval is always less than or equal to the inactivity interval. 12033 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12034 * 12035 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE: 12036 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC 12037 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the 12038 * bounds of this TSPEC. 12039 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12040 * 12041 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE: 12042 * u32 attribute. Indicate the average data rate in bps specified at the MAC 12043 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the 12044 * bounds of this TSPEC. 12045 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12046 * 12047 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE: 12048 * u32 attribute. Indicate the maximum allowable data rate in bps specified at 12049 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within 12050 * the bounds of this TSPEC. 12051 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12052 * 12053 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE: 12054 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs 12055 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A 12056 * value of 0 indicates that there are no bursts. 12057 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12058 * 12059 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE: 12060 * u32 attribute. Indicate the minimum PHY rate in bps for transport of 12061 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC. 12062 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12063 * 12064 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE: 12065 * u16 attribute. Specify the excess allocation of time (and bandwidth) over 12066 * and above the stated application rates required to transport an MSDU/A-MSDU 12067 * belonging to the TS in this TSPEC. 12068 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12069 */ 12070 enum qca_wlan_vendor_attr_config_tspec { 12071 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0, 12072 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1, 12073 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2, 12074 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3, 12075 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4, 12076 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5, 12077 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6, 12078 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7, 12079 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8, 12080 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9, 12081 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10, 12082 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11, 12083 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12, 12084 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13, 12085 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14, 12086 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15, 12087 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16, 12088 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17, 12089 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18, 12090 12091 /* keep last */ 12092 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST, 12093 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX = 12094 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1, 12095 }; 12096 12097 /** 12098 * enum qca_wlan_medium_assess_type - Type of medium assess request 12099 * 12100 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE. 12101 */ 12102 enum qca_wlan_medium_assess_type { 12103 QCA_WLAN_MEDIUM_ASSESS_CCA = 0, 12104 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1, 12105 }; 12106 12107 /** 12108 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by 12109 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command. 12110 * 12111 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE: 12112 * u8 attribute. Mandatory in all kinds of medium assess requests/responses. 12113 * Specify the type of medium assess request and indicate its type in response. 12114 * Possible values are defined in enum qca_wlan_medium_assess_type. 12115 * 12116 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD: 12117 * u32 attribute. Mandatory in CCA request. 12118 * Specify the assessment period in terms of seconds. Assessment result will be 12119 * sent as the response to the CCA request after the assessment period. 12120 * 12121 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT: 12122 * u32 attribute. Mandatory in response to CCA request. 12123 * Total timer tick count of the assessment cycle. 12124 * 12125 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT: 12126 * u32 attribute. Mandatory in response to CCA request. 12127 * Timer tick count of idle time in the assessment cycle. 12128 * 12129 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT: 12130 * u32 attribute. Mandatory in response to CCA request. 12131 * Timer tick count of Intra BSS traffic RX time in the assessment cycle. 12132 * 12133 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT: 12134 * u32 attribute. Mandatory in response to CCA request. 12135 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle. 12136 * 12137 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI: 12138 * s32 attribute. Mandatory in response to CCA request. 12139 * Maximum RSSI of Intra BSS traffic in the assessment cycle. 12140 * 12141 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI: 12142 * s32 attribute. Mandatory in response to CCA request. 12143 * Minimum RSSI of Intra BSS traffic in the assessment cycle. 12144 * 12145 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE: 12146 * u8 attribute. Mandatory in congestion report request. 12147 * 1-enable 0-disable. 12148 * 12149 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD: 12150 * u8 attribute. Mandatory in congestion report enable request and will be 12151 * ignored if present in congestion report disable request. Possible values are 12152 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type 12153 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if 12154 * congestion percentage reaches the configured threshold. 12155 * 12156 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL: 12157 * u8 attribute. Optional in congestion report enable request and will be 12158 * ignored if present in congestion report disable request. 12159 * Specify the interval of congestion report event in terms of seconds. Possible 12160 * values are 1-255. Default value 1 will be used if this attribute is omitted 12161 * or using invalid values. 12162 * 12163 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE: 12164 * u8 attribute. Mandatory in congestion report event. 12165 * Indicate the actual congestion percentage. Possible values are 0-100. 12166 */ 12167 enum qca_wlan_vendor_attr_medium_assess { 12168 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0, 12169 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1, 12170 12171 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2, 12172 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3, 12173 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4, 12174 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5, 12175 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6, 12176 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7, 12177 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8, 12178 12179 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9, 12180 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10, 12181 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11, 12182 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12, 12183 12184 /* keep last */ 12185 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST, 12186 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX = 12187 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1, 12188 }; 12189 12190 /** 12191 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes 12192 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command. 12193 * 12194 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL: 12195 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1 12196 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV, 12197 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events. 12198 * 12199 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT: 12200 * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event. 12201 * 12202 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID: 12203 * u8 attribute, required. indicates group id of Tx VDEV 12204 * 12205 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO: 12206 * Nested attribute. This attribute shall be used by the driver to send 12207 * group information. The attributes defined in enum 12208 * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info 12209 * are nested in this attribute. 12210 */ 12211 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status { 12212 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0, 12213 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1, 12214 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2, 12215 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3, 12216 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4, 12217 12218 /* keep last */ 12219 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST, 12220 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX = 12221 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1, 12222 }; 12223 12224 /** 12225 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used 12226 * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute. 12227 * 12228 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX: 12229 * u32 attribute, required. contains interface index. 12230 * 12231 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS: 12232 * u8 attribute, required. 0 - means vdev is in down state. 12233 * 1- means vdev is in up state. 12234 */ 12235 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info { 12236 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0, 12237 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1, 12238 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2, 12239 12240 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST, 12241 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX = 12242 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1, 12243 }; 12244 12245 /** 12246 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type 12247 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame 12248 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame 12249 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request 12250 * frame 12251 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation 12252 * Request frame. 12253 */ 12254 enum qca_wlan_vendor_oci_override_frame_type { 12255 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1, 12256 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2, 12257 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3, 12258 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4, 12259 }; 12260 12261 /** 12262 * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies 12263 * 12264 * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary 12265 * STA interface has to be given while selecting the connection policies 12266 * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface. 12267 * An interface is set as primary through the attribute 12268 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not 12269 * applicable if the primary interface has not been set earlier. 12270 * 12271 * The intention is not to downgrade the primary STA performance, such as: 12272 * - Do not reduce the number of TX/RX chains of primary connection. 12273 * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of 12274 * chains. 12275 * - If using MCC, should set the MCC duty cycle of the primary connection to 12276 * be higher than the secondary connection. 12277 * 12278 * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the 12279 * subsequent STA connection shall be chosen to balance with the existing 12280 * concurrent STA's performance. 12281 * Such as 12282 * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware 12283 * capability. 12284 * - If using MCC, set the MCC duty cycle of the primary connection to be equal 12285 * to the secondary. 12286 * - Prefer BSSID candidates which will help provide the best "overall" 12287 * performance for all the STA connections. 12288 */ 12289 enum qca_wlan_concurrent_sta_policy_config { 12290 QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0, 12291 QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1, 12292 }; 12293 12294 /** 12295 * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies 12296 * 12297 * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP 12298 * interface. 12299 * 12300 * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies 12301 * to meet gaming audio latency requirements. 12302 * 12303 * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface 12304 * concurrencies to meet lossless audio streaming requirements. 12305 * 12306 * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet 12307 * XR (eXtended Reality) requirements. 12308 */ 12309 enum qca_wlan_concurrent_ap_policy_config { 12310 QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0, 12311 QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1, 12312 QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2, 12313 QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3, 12314 }; 12315 12316 /** 12317 * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes 12318 * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command. 12319 * 12320 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG: 12321 * u8 attribute. Configures the concurrent STA policy configuration. 12322 * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config. 12323 12324 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG: 12325 * u8 attribute. Configures the concurrent AP policy configuration. 12326 * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config. 12327 */ 12328 enum qca_wlan_vendor_attr_concurrent_policy { 12329 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0, 12330 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1, 12331 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2, 12332 12333 /* keep last */ 12334 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST, 12335 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX = 12336 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1, 12337 12338 }; 12339 12340 /* Compatibility defines for previously used enum 12341 * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used 12342 * in any new implementation. 12343 */ 12344 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \ 12345 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG 12346 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \ 12347 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX 12348 #define qca_wlan_vendor_attr_concurrent_sta_policy \ 12349 qca_wlan_vendor_attr_concurrent_policy 12350 12351 /** 12352 * enum qca_sta_connect_fail_reason_codes - Defines values carried 12353 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor 12354 * attribute. 12355 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received 12356 * for unicast probe request. 12357 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request. 12358 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for 12359 * ath request. 12360 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not 12361 * received from AP. 12362 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc 12363 * request. 12364 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for 12365 * assoc request. 12366 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not 12367 * received from AP. 12368 */ 12369 enum qca_sta_connect_fail_reason_codes { 12370 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1, 12371 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2, 12372 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3, 12373 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4, 12374 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5, 12375 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6, 12376 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7, 12377 }; 12378 12379 /** 12380 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for 12381 * OCI override request. These attributes are used inside nested attribute 12382 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command 12383 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 12384 * 12385 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8. 12386 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this 12387 * attribute to specify the frame type in which the OCI is to be overridden. 12388 * 12389 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32) 12390 * OCI frequency (in MHz) to override in the specified frame type. 12391 */ 12392 enum qca_wlan_vendor_attr_oci_override { 12393 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0, 12394 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1, 12395 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2, 12396 12397 /* keep last */ 12398 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST, 12399 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX = 12400 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1, 12401 }; 12402 12403 /** 12404 * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different 12405 * filters defined in this enum are used in attribute 12406 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK. 12407 * 12408 * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver 12409 * shall filter the channels which are not usable because of coexistence with 12410 * cellular radio. 12411 * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver 12412 * shall filter the channels which are not usable because of existing active 12413 * interfaces in the driver and will result in Multi Channel Concurrency, etc. 12414 * 12415 */ 12416 enum qca_wlan_vendor_usable_channels_filter { 12417 QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0, 12418 QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1, 12419 }; 12420 12421 /** 12422 * enum qca_wlan_vendor_attr_chan_info - Attributes used inside 12423 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute. 12424 * 12425 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ: 12426 * u32 attribute, required. Indicates the center frequency of the primary 12427 * channel in MHz. 12428 * 12429 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ: 12430 * u32 attribute. Indicates the center frequency of the primary segment of the 12431 * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz, 12432 * 160 MHz, and 320 MHz channels. 12433 * 12434 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ: 12435 * u32 attribute. Indicates the center frequency of the secondary segment of 12436 * 80+80 channel in MHz. This attribute is required only when 12437 * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80. 12438 * 12439 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH: 12440 * u32 attribute, required. Indicates the bandwidth of the channel, possible 12441 * values are defined in enum nl80211_chan_width. 12442 * 12443 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK: 12444 * u32 attribute, required. Indicates all the interface types for which this 12445 * channel is usable. This attribute encapsulates bitmasks of interface types 12446 * defined in enum nl80211_iftype. 12447 * 12448 */ 12449 enum qca_wlan_vendor_attr_chan_info { 12450 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0, 12451 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1, 12452 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2, 12453 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3, 12454 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4, 12455 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5, 12456 12457 /* keep last */ 12458 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST, 12459 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX = 12460 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1, 12461 }; 12462 12463 /** 12464 * enum qca_wlan_vendor_attr_usable_channels - Attributes used by 12465 * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command. 12466 * 12467 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK: 12468 * u32 attribute. Indicates the bands from which the channels should be reported 12469 * in response. This attribute encapsulates bit masks of bands defined in enum 12470 * nl80211_band. Optional attribute, if not present in the request the driver 12471 * shall return channels from all supported bands. 12472 * 12473 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK: 12474 * u32 attribute. Indicates all the interface types for which the usable 12475 * channels information is requested. This attribute encapsulates bitmasks of 12476 * interface types defined in enum nl80211_iftype. Optional attribute, if not 12477 * present in the request the driver shall send information of all supported 12478 * interface modes. 12479 * 12480 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK: 12481 * u32 attribute. This attribute carries information of all filters that shall 12482 * be applied while populating usable channels information by the driver. This 12483 * attribute carries bit masks of different filters defined in enum 12484 * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present 12485 * in the request the driver shall send information of channels without applying 12486 * any of the filters that can be configured through this attribute. 12487 * 12488 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO: 12489 * Nested attribute. This attribute shall be used by the driver to send 12490 * usability information of each channel. The attributes defined in enum 12491 * qca_wlan_vendor_attr_chan_info are used inside this attribute. 12492 */ 12493 enum qca_wlan_vendor_attr_usable_channels { 12494 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0, 12495 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1, 12496 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2, 12497 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3, 12498 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4, 12499 12500 /* keep last */ 12501 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST, 12502 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX = 12503 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1, 12504 }; 12505 12506 /** 12507 * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command 12508 * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history. 12509 * 12510 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry 12511 * the list of radar history entries. 12512 * Each entry contains freq, timestamp, and radar signal detect flag. 12513 * The driver shall add an entry when CAC has finished, or radar signal 12514 * has been detected post AP beaconing. The driver shall maintain at least 12515 * 8 entries in order to save CAC result for a 160 MHz channel. 12516 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute. 12517 * Channel frequency in MHz. 12518 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds. 12519 * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC 12520 * or radar detection. 12521 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute. 12522 * This flag indicates radar signal has been detected. 12523 */ 12524 enum qca_wlan_vendor_attr_radar_history { 12525 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0, 12526 12527 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1, 12528 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2, 12529 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3, 12530 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4, 12531 12532 /* keep last */ 12533 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST, 12534 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX = 12535 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1, 12536 }; 12537 12538 /** 12539 * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type 12540 * 12541 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the 12542 * target exited MCC state and cleared the quota information. In the 12543 * command it clears MCC quota setting and restores adaptive scheduling. 12544 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and 12545 * will not be changed. 12546 * This quota type is present in command/event. 12547 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic 12548 * and the target may change the quota based on the data activity. 12549 * This quota type is only present in event. 12550 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized 12551 * by the target for low latency. 12552 * This quota type is only present in command. 12553 */ 12554 enum qca_wlan_vendor_mcc_quota_type { 12555 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0, 12556 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1, 12557 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2, 12558 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3, 12559 }; 12560 12561 /** 12562 * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event 12563 * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel 12564 * quota information or as a command to set the required MCC quota for an 12565 * interface. 12566 * 12567 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute. 12568 * The type is defined in enum qca_wlan_vendor_mcc_quota_type. 12569 * In a command this specifies the MCC quota type to be set for the interface. 12570 * In an event this provides the current quota type in force. 12571 * This is required in a command and an event. 12572 * 12573 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry 12574 * the list of channel quota entries. 12575 * In an event each entry contains the frequency and respective time quota for 12576 * all the MCC interfaces. 12577 * In a command it specifies the interface index and respective time quota. 12578 * In a command only one entry (ifindex, quota pair) may be specified. 12579 * 12580 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute. 12581 * Channel frequency in MHz. This is present only in an event. 12582 * 12583 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute. 12584 * Channel time quota expressed as percentage. 12585 * This is present in an event and a command. 12586 * In an command, the user shall specify the quota to be allocated for the 12587 * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX. 12588 * In an event this provides the existing quota for the channel. 12589 * 12590 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute. 12591 * Specifies the interface index (netdev) for which the corresponding 12592 * configurations are applied. This is required in a command only. Only one 12593 * interface index may be specified. If not specified, the configuration is 12594 * rejected. 12595 * 12596 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE 12597 * 8-bit unsigned value to enable/disable Multi-Channel Concurrency 12598 * low latency mode. The firmware will do optimization for low 12599 * latency in Multi-Channel concurrency state if enabled. And all existing 12600 * user quota setting will be overwritten by the target. 12601 * 0 - disable(default), 1 - enable. 12602 * It is only present in a command with quota type of 12603 * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY. 12604 */ 12605 enum qca_wlan_vendor_attr_mcc_quota { 12606 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0, 12607 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1, 12608 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2, 12609 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3, 12610 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4, 12611 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5, 12612 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6, 12613 12614 /* keep last */ 12615 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST, 12616 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX = 12617 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1, 12618 }; 12619 12620 /** 12621 * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values 12622 * are used by the attribute 12623 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON. 12624 * 12625 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target 12626 * invoke roam. 12627 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable 12628 * detection failed when the roam trigger. 12629 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space. 12630 */ 12631 12632 enum qca_wlan_roam_stats_invoke_reason { 12633 QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0, 12634 QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1, 12635 QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2, 12636 }; 12637 12638 /** 12639 * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These 12640 * values are used by the attribute 12641 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON. 12642 * 12643 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when 12644 * roam by kickout. 12645 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam 12646 * trigger by kickout. 12647 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when 12648 * roam trigger by kickout. 12649 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when 12650 * roam trigger by kickout. 12651 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has 12652 * disappeared, and all TX is failing when roam trigger by kickout. 12653 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process 12654 * timeout when roam trigger by kickout. 12655 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected 12656 * peer has roamed to a repeater. 12657 */ 12658 enum qca_wlan_roam_stats_tx_failures_reason { 12659 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0, 12660 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1, 12661 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2, 12662 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3, 12663 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4, 12664 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5, 12665 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6, 12666 }; 12667 12668 /** 12669 * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values 12670 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON. 12671 * 12672 * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the 12673 * detailed reason for roam scan being aborted. 12674 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not 12675 * started due to high data RSSI during LOW-RSSI roaming. 12676 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not 12677 * started due to good link speed during LOW-RSSI roaming. 12678 * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started 12679 * due to high data RSSI during background roaming. 12680 * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not 12681 * started due to high beacon RSSI during background roaming 12682 */ 12683 enum qca_wlan_roam_stats_abort_reason { 12684 QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0, 12685 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1, 12686 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2, 12687 QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3, 12688 QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4, 12689 }; 12690 12691 /** 12692 * enum qca_wlan_roam_stats_scan_type - Roam scan type define. 12693 * These values are used by the attribute 12694 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE. 12695 * 12696 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan 12697 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan 12698 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered. 12699 * This is generally used in BTM events to indicate BTM frame exchange logs. 12700 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan 12701 * from 2.4 GHz to 5 GHz or 6 GHz 12702 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from 12703 * 5 GHz to 6 GHz 12704 */ 12705 enum qca_wlan_roam_stats_scan_type { 12706 QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0, 12707 QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1, 12708 QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2, 12709 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3, 12710 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4, 12711 }; 12712 12713 /** 12714 * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type. 12715 * These values are used by the attribute 12716 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE. 12717 * 12718 * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the 12719 * detailed roam scan type. 12720 * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam. 12721 * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam. 12722 */ 12723 enum qca_wlan_roam_stats_scan_dwell_type { 12724 QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0, 12725 QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1, 12726 QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2, 12727 }; 12728 12729 /** 12730 * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside 12731 * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute. 12732 */ 12733 enum qca_wlan_vendor_attr_roam_stats_scan_chan_info { 12734 /* 32-bit unsigned value to indicate center frequency of the primary 12735 * channel in MHz for each roam scan channel. 12736 */ 12737 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1, 12738 /* 8-bit unsigned value to indicate channel scan type for each 12739 * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type. 12740 */ 12741 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2, 12742 /* 32-bit unsigned value to indicate maximum scan time in milliseconds 12743 * for each roam scan channel. 12744 */ 12745 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3, 12746 12747 /* keep last */ 12748 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST, 12749 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX = 12750 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1, 12751 }; 12752 12753 /** 12754 * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values 12755 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE. 12756 * 12757 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH: Pre-authentication frame 12758 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC: Reassociation frame 12759 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame 12760 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame 12761 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame 12762 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame 12763 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame 12764 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame 12765 */ 12766 enum qca_wlan_roam_stats_frame_subtype { 12767 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH = 1, 12768 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC = 2, 12769 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3, 12770 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4, 12771 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5, 12772 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6, 12773 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7, 12774 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8, 12775 }; 12776 12777 /** 12778 * enum roam_frame_status - Specifies the valid values the vendor roam frame 12779 * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take. 12780 * 12781 * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was 12782 * sent or received successfully. 12783 * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or 12784 * receiving failed. 12785 */ 12786 enum qca_wlan_roam_stats_frame_status { 12787 QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0, 12788 QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1, 12789 }; 12790 12791 /** 12792 * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the 12793 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute. 12794 */ 12795 enum qca_wlan_vendor_attr_roam_stats_frame_info { 12796 /* 8-bit unsigned value to indicate the frame subtype during 12797 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype. 12798 */ 12799 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1, 12800 /* 8-bit unsigned value to indicate the frame is successful or failed 12801 * during roaming, one of the values in 12802 * qca_wlan_roam_stats_frame_status. 12803 */ 12804 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2, 12805 /* 64-bit unsigned value to indicate the timestamp for frame of 12806 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4 12807 * when sent or received during roaming, timestamp in milliseconds 12808 * from system boot. 12809 */ 12810 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3, 12811 12812 /* keep last */ 12813 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST, 12814 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX = 12815 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1, 12816 }; 12817 12818 /** 12819 * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute 12820 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO. 12821 */ 12822 enum qca_wlan_vendor_attr_roam_stats_info { 12823 /* 64-bit unsigned value to indicate the timestamp when roam was 12824 * triggered by the firmware, timestamp in milliseconds from system 12825 * boot. 12826 */ 12827 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1, 12828 /* 32-bit unsigned value to indicate the roam trigger reason for the 12829 * last roaming attempted by the firmware. This can be queried either 12830 * in a connected state or disconnected state. The values of this 12831 * attribute represent the roam trigger reason codes, which 12832 * are defined in enum qca_roam_reason. 12833 */ 12834 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2, 12835 /* 8-bit unsigned value to indicate percentage of packets for which 12836 * the RX rate is lower than the RX rate threshold in total RX packets, 12837 * used for roaming trigger by per. 12838 */ 12839 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3, 12840 /* 8-bit unsigned value to indicate percentage of packets for which 12841 * the TX rate is lower than TX rate threshold in total TX packets, 12842 * used for roaming trigger by per. 12843 */ 12844 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4, 12845 /* 32-bit unsigned value to indicate final beacon miss count for 12846 * trigger reason of beacon miss. 12847 */ 12848 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5, 12849 /* 32-bit unsigned value to indicate consecutive beacon miss count 12850 * for trigger reason of beacon miss. 12851 */ 12852 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6, 12853 /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger 12854 * reason of beacon miss, 0 - success, 1 - fail. 12855 * If QOS-NULL TX status is successful, beacon miss final count and 12856 * consecutive beacon miss count will be reset to zero, and roam will 12857 * not be triggered. If QOS-NULL TX status is failed, beacon miss final 12858 * count and consecutive beacon miss count continue to calculate until 12859 * roaming trigger by beacon miss. 12860 */ 12861 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7, 12862 /* 8-bit signed value to indicate connected AP RSSI in dBm 12863 * for trigger reason of poor RSSI. 12864 */ 12865 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8, 12866 /* 8-bit signed value to indicate RSSI threshold value in dBm 12867 * for trigger reason of poor RSSI. 12868 */ 12869 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9, 12870 /* 8-bit unsigned value to indicate RX link speed status 12871 * for trigger reason of poor RSSI, 0 - good link speed, 12872 * 1 - bad link speed. 12873 */ 12874 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10, 12875 /* 8-bit signed value to indicate connected AP RSSI in dBm 12876 * for trigger reason of better RSSI. 12877 */ 12878 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11, 12879 /* 8-bit signed value to indicate RSSI threshold value in dBm 12880 * for trigger reason of better RSSI. 12881 */ 12882 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12, 12883 /* 32-bit unsigned value to indicate RX throughput in bytes per second 12884 * for trigger reason of congestion. 12885 */ 12886 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13, 12887 /* 32-bit unsigned value to indicate TX throughput in bytes per second 12888 * for trigger reason of congestion. 12889 */ 12890 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14, 12891 /* 8-bit unsigned value to indicate roamable AP count 12892 * for trigger reason of congestion. 12893 */ 12894 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15, 12895 /* 8-bit unsigned value to indicate invoke reason, one of the values 12896 * defined in qca_wlan_roam_stats_invoke_reason. 12897 */ 12898 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16, 12899 /* 8-bit unsigned value to indicate request mode for trigger reason 12900 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9. 12901 */ 12902 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17, 12903 /* 32-bit unsigned value to indicate disassociate time in milliseconds 12904 * for trigger reason of BTM. 12905 */ 12906 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18, 12907 /* 32-bit unsigned value to indicate preferred candidate list valid 12908 * interval in milliseconds for trigger reason of BTM. 12909 */ 12910 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19, 12911 /* 8-bit unsigned value to indicate the number of preferred 12912 * candidates for trigger reason of BTM. 12913 */ 12914 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20, 12915 /* 8-bit unsigned value to indicate response status for trigger 12916 * reason of BTM, values are defined in IEEE Std 802.11-2020, 12917 * Table 9-428 (BTM status code definitions). 12918 */ 12919 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21, 12920 /* 32-bit unsigned value to indicate BSS termination timeout value 12921 * in milliseconds for trigger reason of BTM. 12922 */ 12923 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22, 12924 /* 32-bit unsigned value to indicate MBO associate retry timeout 12925 * value in milliseconds for trigger reason of BTM. 12926 */ 12927 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23, 12928 /* 8-bit unsigned value to indicate dialog token number 12929 * for trigger reason of BTM. 12930 */ 12931 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24, 12932 /* 8-bit unsigned value to indicate percentage of connected AP 12933 * channel congestion utilization for trigger reason of BSS load. 12934 */ 12935 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25, 12936 /* 8-bit unsigned value to indicate disconnection type 12937 * for trigger reason of disconnection. 1 - Deauthentication, 12938 * 2 - Disassociation. 12939 */ 12940 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26, 12941 /* 16-bit unsigned value to indicate deauthentication or disassociation 12942 * reason for trigger reason of disconnection, values are defined 12943 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes). 12944 */ 12945 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27, 12946 /* 32-bit unsigned value to indicate milliseconds of roam scan 12947 * periodicity when needing to roam to find a better AP for trigger 12948 * reason of periodic timer. 12949 */ 12950 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28, 12951 /* 8-bit signed value to indicate connected AP RSSI in dBm for 12952 * trigger reason of background scan. 12953 */ 12954 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29, 12955 /* 8-bit signed value to indicate data RSSI in dBm for trigger reason 12956 * of background scan. 12957 */ 12958 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30, 12959 /* 8-bit signed value to indicate data RSSI threshold in dBm 12960 * for trigger reason of background scan. 12961 */ 12962 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31, 12963 /* 32-bit unsigned value to indicate consecutive TX failure threshold 12964 * for trigger reason of TX failures. 12965 */ 12966 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32, 12967 /* 8-bit unsigned value to indicate TX failure reason for trigger 12968 * reason of TX failures, one of the values defined in 12969 * qca_wlan_roam_stats_tx_failures_reason. 12970 */ 12971 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33, 12972 /* 8-bit unsigned value to indicate detail abort reason. One of the 12973 * values in enum qca_wlan_roam_stats_abort_reason. 12974 */ 12975 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34, 12976 /* 8-bit signed value to indicate data RSSI in dBm when aborting the 12977 * roam scan. 12978 */ 12979 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35, 12980 /* 8-bit signed value to indicate data RSSI threshold in dBm when 12981 * aborting the roam scan. 12982 */ 12983 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36, 12984 /* 8-bit unsigned value to indicate data RSSI threshold in RX link 12985 * speed status when aborting the roam scan. 12986 * 0 - good link speed, 1 - bad link speed 12987 */ 12988 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37, 12989 /* 8-bit unsigned value to indicate roaming scan type. 12990 * One of the values in enum qca_wlan_roam_stats_scan_type. 12991 */ 12992 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38, 12993 /* 8-bit unsigned value to indicate roaming result, used in STA mode 12994 * only. 12995 * 0-Roaming is successful, 1-Roaming is failed 12996 */ 12997 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39, 12998 /* 8-bit unsigned value to indicate the roam fail reason for the 12999 * last failed roaming attempt by the firmware. Different roam failure 13000 * reason codes are specified in enum qca_vendor_roam_fail_reasons. 13001 * This can be queried either in connected state or disconnected state. 13002 */ 13003 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40, 13004 /* Nested attribute. Indicate roam scan info for each channel, the 13005 * attributes defined in enum 13006 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside 13007 * this attribute. 13008 */ 13009 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41, 13010 /* 32-bit unsigned value to indicate total scan time during roam scan 13011 * all channels, time in milliseconds. 13012 */ 13013 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42, 13014 /* Nested attribute. This attribute shall be used by the driver to 13015 * send roam information of each subtype. The attributes defined in 13016 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside 13017 * this attribute. 13018 */ 13019 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43, 13020 13021 /* keep last */ 13022 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST, 13023 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX = 13024 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1, 13025 }; 13026 13027 /** 13028 * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to 13029 * report cached roam info from the driver to user space, enum values are used 13030 * for netlink attributes sent with the 13031 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command. 13032 */ 13033 enum qca_wlan_vendor_attr_roam_cached_stats { 13034 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0, 13035 /* Nested attribute, this attribute contains nested array roam info 13036 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info. 13037 */ 13038 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1, 13039 13040 /* keep last */ 13041 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST, 13042 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX = 13043 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1, 13044 }; 13045 13046 /** 13047 * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for 13048 * radio configurations present in each radio combination. 13049 * 13050 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates 13051 * the band info in the radio configuration. Uses the enum qca_set_band values. 13052 * 13053 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates 13054 * the number of antennas info in the radio configuration. 13055 */ 13056 enum qca_wlan_vendor_attr_supported_radio_cfg { 13057 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0, 13058 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1, 13059 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2, 13060 13061 /* keep last */ 13062 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST, 13063 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX = 13064 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1, 13065 }; 13066 13067 /** 13068 * enum qca_wlan_vendor_attr_radio_combination - Attributes for 13069 * radio combinations supported by the device. 13070 * 13071 * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute 13072 * provides the radio configurations present in the radio combination. 13073 * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes. 13074 * This attribute provides the values for radio combination matrix. 13075 * For standalone config, the number of config values is one and the config 13076 * carries the band and antenna information for standalone configuration. For 13077 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode 13078 * configuration the number of config values is two and the config carries the 13079 * band and antenna information for each simultaneous radio. 13080 */ 13081 enum qca_wlan_vendor_attr_radio_combination { 13082 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0, 13083 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1, 13084 13085 /* keep last */ 13086 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST, 13087 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX = 13088 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1, 13089 }; 13090 13091 /** 13092 * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by 13093 * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX 13094 * 13095 * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute 13096 * provides the radio combinations supported by the device. 13097 * Uses the enum qca_wlan_vendor_attr_radio_combination attributes. 13098 * For example, in the radio combination matrix for a device which has two 13099 * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is 13100 * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio 13101 * combinations is 5 and the radio combinations are 13102 * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz 13103 * {{5 GHz 2X2}}, //Standalone 5 GHz 13104 * {{6 GHz 2X2}}, //Standalone 6 GHz 13105 * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS 13106 * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS 13107 * The band and antenna info together as nested data provides one radio config. 13108 * Standalone configuration has one config with band and antenna nested data. 13109 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration 13110 * have two nested band and antenna info data. 13111 */ 13112 enum qca_wlan_vendor_attr_radio_combination_matrix { 13113 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0, 13114 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1, 13115 13116 /* keep last */ 13117 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST, 13118 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX = 13119 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1, 13120 }; 13121 13122 /** 13123 * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by 13124 * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command. 13125 * 13126 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag) 13127 * Enable mDNS offload. This attribute is mandatory to enable 13128 * mDNS offload feature. If this attribute is not present, mDNS offload 13129 * is disabled. 13130 * 13131 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing 13132 * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This 13133 * attribute is mandatory when enabling the feature, and not required when 13134 * disabling the feature. 13135 * 13136 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing 13137 * the following attributes: 13138 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN 13139 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT 13140 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD 13141 * 13142 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute. 13143 * It consists of a hostname and ".local" as the domain name. The character 13144 * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes. 13145 * It is used to compare the domain the in the "QU" query. Only 1 FQDN is 13146 * supported per vdev. 13147 * For example: myphone.local 13148 * 13149 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required 13150 * u16 attribute. It specifies the total number of resource records present 13151 * in the answer section of the answer payload. This attribute is needed by the 13152 * firmware to populate the mDNS response frame for mNDS queries without having 13153 * to parse the answer payload. 13154 * 13155 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob 13156 * attribute sent by the mdnsResponder from userspace. It contains resource 13157 * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This 13158 * payload is passed down to firmware and is transmitted in response to 13159 * mDNS queries. 13160 * The maximum size of the answer payload supported is 512 bytes. 13161 */ 13162 enum qca_wlan_vendor_attr_mdns_offload { 13163 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0, 13164 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1, 13165 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2, 13166 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3, 13167 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4, 13168 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5, 13169 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6, 13170 13171 /* keep last */ 13172 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST, 13173 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX = 13174 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1, 13175 }; 13176 13177 /** 13178 * enum qca_vendor_attr_diag_event_type - Attributes used by 13179 * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute. 13180 * 13181 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from 13182 * driver/firmware during Connection request from Userspace. Uses the 13183 * following attributes of enum qca_wlan_vendor_attr_diag: 13184 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13185 * QCA_WLAN_VENDOR_ATTR_DIAG_SSID, 13186 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13187 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT, 13188 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 13189 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT, 13190 * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE, 13191 * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE, 13192 * QCA_WLAN_VENDOR_ATTR_DIAG_AKM, 13193 * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO, 13194 * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE, 13195 * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE, 13196 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13197 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13198 * 13199 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from 13200 * driver/firmware when a connection is failed. Uses the 13201 * following attributes of enum qca_wlan_vendor_attr_diag: 13202 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13203 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13204 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 13205 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13206 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 13207 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13208 * 13209 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from 13210 * driver/firmware during Authentication request from a device. Uses the 13211 * following attributes of enum qca_wlan_vendor_attr_diag: 13212 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13213 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13214 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13215 * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO, 13216 * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE, 13217 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13218 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 13219 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 13220 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13221 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13222 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13223 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13224 * 13225 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from 13226 * driver/firmware when device receives an authentication response. Uses the 13227 * following attributes of enum qca_wlan_vendor_attr_diag: 13228 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13229 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13230 * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO, 13231 * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE, 13232 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13233 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 13234 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13235 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13236 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13237 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13238 * 13239 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from 13240 * driver/firmware when device sends an association request. Uses the 13241 * following attributes of enum qca_wlan_vendor_attr_diag: 13242 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13243 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13244 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13245 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13246 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 13247 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13248 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13249 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13250 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13251 * 13252 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from 13253 * driver/firmware when device receives an association response. Uses the 13254 * following attributes of enum qca_wlan_vendor_attr_diag: 13255 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13256 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13257 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13258 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 13259 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13260 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13261 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13262 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 13263 * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID. 13264 * 13265 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from 13266 * driver/userspace when device receives a deauthentication response. Uses the 13267 * following attributes of enum qca_wlan_vendor_attr_diag: 13268 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13269 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13270 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13271 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13272 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 13273 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13274 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13275 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13276 * 13277 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from 13278 * driver/userspace when device sends a deauthentication request. Uses the 13279 * following attributes of enum qca_wlan_vendor_attr_diag: 13280 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13281 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13282 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13283 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13284 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 13285 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13286 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13287 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13288 * 13289 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from 13290 * driver/firmware when device receives a disassociation response. Uses the 13291 * following attributes of enum qca_wlan_vendor_attr_diag: 13292 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13293 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13294 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13295 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13296 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 13297 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13298 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13299 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13300 * 13301 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from 13302 * driver/firmware when device sends a disassociation request. Uses the 13303 * following attributes of enum qca_wlan_vendor_attr_diag: 13304 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13305 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13306 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13307 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13308 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 13309 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13310 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13311 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13312 * 13313 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from 13314 * driver/firmware when device did not receive beacon packets during connection. 13315 * Uses the following attributes of enum qca_wlan_vendor_attr_diag: 13316 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13317 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13318 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13319 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 13320 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13321 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13322 * 13323 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from 13324 * driver/firmware when Roaming scan is triggered. Uses the following 13325 * attributes of enum qca_wlan_vendor_attr_diag: 13326 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13327 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON, 13328 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON, 13329 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13330 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU, 13331 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE, 13332 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD, 13333 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13334 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13335 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13336 * 13337 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from 13338 * driver/firmware Roam scanning is processed. Uses the following 13339 * attributes of enum qca_wlan_vendor_attr_diag: 13340 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13341 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK, 13342 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST, 13343 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT, 13344 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 13345 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13346 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13347 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 13348 * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE. 13349 * 13350 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from 13351 * driver/firmware to provide Roam information of the current AP. Uses the 13352 * following attributes of enum qca_wlan_vendor_attr_diag: 13353 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13354 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13355 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13356 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 13357 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU, 13358 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE, 13359 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13360 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13361 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13362 * 13363 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from 13364 * driver/firmware to provide Roam information of the candid AP. Uses the 13365 * following attributes of enum qca_wlan_vendor_attr_diag: 13366 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13367 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13368 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13369 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 13370 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU, 13371 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE, 13372 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP, 13373 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK, 13374 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13375 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13376 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13377 * 13378 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from 13379 * driver/firmware to provide Roam result after selecting a candidate. Uses the 13380 * following attributes of enum qca_wlan_vendor_attr_diag: 13381 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13382 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL, 13383 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13384 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13385 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13386 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13387 * 13388 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from 13389 * driver/firmware to indicate Roam Cancellation due to higher priority events. 13390 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13391 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13392 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13393 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 13394 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13395 * 13396 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver 13397 * /firmware when STA sends a BTM request frame. Uses the following attributes 13398 * of enum qca_wlan_vendor_attr_diag: 13399 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13400 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN, 13401 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE, 13402 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER, 13403 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL, 13404 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT, 13405 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13406 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13407 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13408 * 13409 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from 13410 * driver/firmware when STA queries about BTM transition. Uses the following 13411 * attributes of enum qca_wlan_vendor_attr_diag: 13412 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13413 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN, 13414 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON, 13415 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13416 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13417 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13418 * 13419 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver 13420 * /firmware when STA receives BTM response frame. Uses the following 13421 * attributes of enum qca_wlan_vendor_attr_diag: 13422 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13423 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN, 13424 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE, 13425 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY, 13426 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID, 13427 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13428 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13429 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13430 * 13431 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from 13432 * driver/firmware to provide BTM request candidate information. Uses the 13433 * following attributes of enum qca_wlan_vendor_attr_diag: 13434 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13435 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13436 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE, 13437 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK, 13438 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13439 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13440 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13441 * 13442 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver 13443 * /firmware when ROAM WTC trigger happens. Uses the following attributes of 13444 * enum qca_wlan_vendor_attr_diag: 13445 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13446 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE, 13447 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 13448 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION, 13449 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13450 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13451 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13452 * 13453 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from 13454 * driver/firmware to indicate DHCP discovery to AP. Uses the following 13455 * attributes of enum qca_wlan_vendor_attr_diag: 13456 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13457 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 13458 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13459 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13460 * 13461 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from 13462 * driver/firmware to indicate DHCP offering to AP. Uses the following 13463 * attributes of enum qca_wlan_vendor_attr_diag: 13464 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13465 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 13466 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13467 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13468 * 13469 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from 13470 * driver/firmware to indicate driver sent DHCP packets. Uses the following 13471 * attributes of enum qca_wlan_vendor_attr_diag: 13472 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13473 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 13474 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13475 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13476 * 13477 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver 13478 * /firmware to indicate acknowledgement of DHCP packets. Uses the following 13479 * attributes of enum qca_wlan_vendor_attr_diag: 13480 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13481 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 13482 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13483 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13484 * 13485 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver 13486 * /firmware to indicate negative acknowledgement of DHCP packets. Uses the 13487 * following attributes of enum qca_wlan_vendor_attr_diag: 13488 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13489 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 13490 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13491 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13492 * 13493 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver 13494 * /firmware to indicate EAPOL M1 message. Uses the following attributes of 13495 * enum qca_wlan_vendor_attr_diag: 13496 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13497 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13498 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13499 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13500 * 13501 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver 13502 * /firmware to indicate EAPOL M2 message. Uses the following attributes of 13503 * enum qca_wlan_vendor_attr_diag: 13504 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13505 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 13506 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13507 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13508 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13509 * 13510 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver 13511 * /firmware to indicate EAPOL M3 message. Uses the following attributes of 13512 * enum qca_wlan_vendor_attr_diag: 13513 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13514 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13515 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13516 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13517 * 13518 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver 13519 * /firmware to indicate EAPOL M4 message. Uses the following attributes of 13520 * enum qca_wlan_vendor_attr_diag: 13521 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13522 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 13523 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13524 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13525 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13526 * 13527 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver 13528 * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of 13529 * enum qca_wlan_vendor_attr_diag: 13530 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13531 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13532 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13533 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13534 * 13535 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver 13536 * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of 13537 * enum qca_wlan_vendor_attr_diag: 13538 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13539 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 13540 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13541 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13542 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13543 * 13544 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver 13545 * /firmware to indicate device sent EAP request. Uses the following attributes 13546 * of enum qca_wlan_vendor_attr_diag: 13547 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13548 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE, 13549 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN, 13550 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13551 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13552 * 13553 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver 13554 * /firmware to indicate device received EAP response. Uses the following 13555 * attributes of enum qca_wlan_vendor_attr_diag: 13556 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13557 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE, 13558 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN, 13559 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 13560 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13561 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13562 * 13563 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver 13564 * /firmware to indicate EAP frame transmission is success. Uses the following 13565 * attributes of enum qca_wlan_vendor_attr_diag: 13566 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13567 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13568 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13569 * 13570 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver 13571 * /firmware to indicate EAP frame transmission is failed. Uses the following 13572 * attributes of enum qca_wlan_vendor_attr_diag: 13573 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13574 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13575 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13576 * 13577 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver 13578 * /firmware to indicate Reassocation request. Uses the following attributes 13579 * of enum qca_wlan_vendor_attr_diag: 13580 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 13581 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13582 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13583 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13584 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 13585 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13586 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13587 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP. 13588 * 13589 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver 13590 * /firmware to indicate Reassocation response. Uses the following attributes 13591 * of enum qca_wlan_vendor_attr_diag: 13592 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 13593 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13594 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13595 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 13596 * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID, 13597 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13598 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13599 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP. 13600 */ 13601 enum qca_vendor_attr_diag_event_type { 13602 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0, 13603 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1, 13604 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2, 13605 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3, 13606 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4, 13607 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5, 13608 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6, 13609 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7, 13610 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8, 13611 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9, 13612 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10, 13613 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11, 13614 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12, 13615 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13, 13616 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14, 13617 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15, 13618 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16, 13619 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17, 13620 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18, 13621 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19, 13622 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20, 13623 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21, 13624 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22, 13625 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23, 13626 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24, 13627 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25, 13628 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26, 13629 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27, 13630 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28, 13631 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29, 13632 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30, 13633 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31, 13634 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32, 13635 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33, 13636 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34, 13637 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35, 13638 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36, 13639 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37, 13640 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38, 13641 13642 /* keep last */ 13643 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST, 13644 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX = 13645 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1, 13646 }; 13647 13648 /** 13649 * enum qca_wlan_vendor_tx_status - Used by attribute 13650 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status. 13651 * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air. 13652 * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement 13653 * is not received. 13654 * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and 13655 * acknowledged. 13656 */ 13657 enum qca_wlan_vendor_tx_status { 13658 QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1, 13659 QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2, 13660 QCA_WLAN_VENDOR_TX_STATUS_ACK = 3, 13661 }; 13662 13663 /** 13664 * enum qca_roam_sub_reason - Used by attribute 13665 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON 13666 * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic 13667 * timer expiry 13668 * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due 13669 * to no candidate found during LOW RSSI trigger. 13670 * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc 13671 * Imminent timeout 13672 * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan 13673 * failure 13674 * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to 13675 * emergency like deauth/disassoc. 13676 * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to 13677 * BSS transition management request. 13678 * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI: 13679 * Roam scan triggered due to Low RSSI periodic timer 13680 * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU: 13681 * Roam trigger due to periodic timer after no candidate found during CU 13682 * inactivity timer scan. 13683 * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate 13684 * found in high CU roam trigger. 13685 */ 13686 enum qca_roam_sub_reason { 13687 QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1, 13688 QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2, 13689 QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3, 13690 QCA_ROAM_SUB_REASON_FULL_SCAN = 4, 13691 QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5, 13692 QCA_ROAM_SUB_REASON_CU_PERIODIC = 6, 13693 QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7, 13694 QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8, 13695 QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9, 13696 }; 13697 13698 /* 13699 * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver 13700 * to send diag data to the userspace. The attributes defined in this enum are 13701 * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA. 13702 * 13703 * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used 13704 * by driver/firmware to send diag data. Each instance of this nested attribute 13705 * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other 13706 * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the 13707 * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this 13708 * nested attribute can be sent with one vendor command 13709 * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA. 13710 * 13711 * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This 13712 * attribute indicates the type of the diag event from driver/firmware. Uses 13713 * values from enum qca_vendor_attr_diag_event_type. 13714 * 13715 * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This 13716 * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64() 13717 * API to send time of the day in microseconds to userspace. 13718 * 13719 * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute. 13720 * This attribute indicates firmware timestamp in microseconds. 13721 * 13722 * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute 13723 * indicates wlan interface index. 13724 * 13725 * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute 13726 * indicates 6-byte MAC address representing the BSSID of the AP. 13727 * 13728 * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute 13729 * indicates the 6-byte MAC address representing the BSSID hint sent in 13730 * the connect request. 13731 * 13732 * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute 13733 * indicates the SSID in u8 array with a maximum length of 32. 13734 * 13735 * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute 13736 * indicates the frequency of AP in MHz. 13737 * 13738 * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute 13739 * indicates frequency hint given in the connect request in MHz. 13740 * 13741 * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute. 13742 * This attribute indicates RSSI of the 802.11 frame in dBm. 13743 * 13744 * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute. 13745 * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020 13746 * Table 12-10—Integrity and key wrap algorithms. 13747 * 13748 * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute. 13749 * This attribute indicates Group cipher suite defined in IEEE 802.11 2020 13750 * Table 12-10—Integrity and key wrap algorithms. 13751 * 13752 * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This 13753 * attribute indicates Group management cipher suite defined in IEEE Std 13754 * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms. 13755 * 13756 * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute 13757 * indicates Auth key management suite defined in IEEE Std 802.11‐2020 13758 * Table 9-151—AKM suite selectors. 13759 * 13760 * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute 13761 * indicates authentication algorithm number defined in IEEE Std 802.11‐2020 13762 * Section 9.4.1.1 Authentication Algorithm Number field. 13763 * 13764 * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute 13765 * indicates bluetooth COEX is active or not. 13766 * 13767 * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This 13768 * attribute indicates SAE authentication frame type. The possible values are 13769 * 1 - SAE commit frame 13770 * 2 - SAE confirm frame 13771 * 13772 * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This 13773 * attribute indicates the reason codes defined in IEEE Std 802.11‐2020 13774 * Table 9-49—Reason codes. 13775 * 13776 * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This 13777 * attribute indicates sequence number of the frame defined in IEEE Std 13778 * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number 13779 * field. 13780 * 13781 * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This 13782 * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table 13783 * 9-50—Status codes. 13784 * 13785 * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute. 13786 * Uses enum qca_wlan_vendor_tx_status. 13787 * 13788 * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute 13789 * indicates if frame transmission is retried. 13790 * 13791 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute. 13792 * Uses enum qca_roam_reason. 13793 * 13794 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute. 13795 * Uses enum qca_roam_sub_reason. 13796 * 13797 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute 13798 * indicates channel utilization in percentage. 13799 * 13800 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This 13801 * attribute indicates scan type used. Uses enum qca_roam_scan_scheme. 13802 * 13803 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute. 13804 * This attribute indicates current RSSI threshold in dBm. 13805 * 13806 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute. 13807 * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE 13808 * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ. 13809 * 13810 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute. 13811 * This attribute indicates number of scanned candidate APs. 13812 * 13813 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This 13814 * attribute indicates roam AP rank computed based on connection preference. 13815 * 13816 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute. 13817 * This attribute indicates expected throughput in kbps. 13818 * 13819 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute. 13820 * This attribute indicates the preference value of candidate AP / connected AP 13821 * calculated in the firmware. 13822 * 13823 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute 13824 * indicates connection/roaming is successful or not. 13825 * 13826 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute. 13827 * This attribute indicates BTM WTC sub reason code in the WTC vendor specific 13828 * IE present in the BTM frame. 13829 * 13830 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute. 13831 * This attribute indicates BTM WTC duration in milliseconds. 13832 * 13833 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute 13834 * indicates dialog token value of BTM query/request/response frames. 13835 * 13836 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This 13837 * attribute indicates the Transition Reason field indicates the reason why 13838 * a transition attempt occurred and contains one of the values defined in IEEE 13839 * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons. 13840 * 13841 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute 13842 * indicates BTM mode defined in IEEE Std 802.11‐2020 13843 * Figure 9-924—Request Mode field format. 13844 * 13845 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute. 13846 * This attribute indicates the Disassociation Timer field which is the number 13847 * of beacon transmission times (TBTTs) until the serving AP will send a 13848 * Disassociation frame to this STA. 13849 * 13850 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute. 13851 * This attribute indicates BTM validity interval field in TBTTs defined in 13852 * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame 13853 * Action field format. 13854 * 13855 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute. 13856 * This attribute indicates BTM candidate list entries. 13857 * 13858 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute. 13859 * This attribute indicates network preference for BTM transition defined in 13860 * IEEE Std 802.11‐2020 Table 9-174—Preference field values. 13861 * 13862 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute. 13863 * This attribute indicates BTM transition status code defined in IEEE Std 13864 * 802.11‐2020 Table 9-428—BTM status code definitions. 13865 * 13866 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute. 13867 * This attribute indicates BSS termination delay defined in IEEE Std 13868 * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format. 13869 * 13870 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute. 13871 * This attribute indicates 6-byte MAC address representing the BSSID of the 13872 * BSS that the non-AP STA transitions to. 13873 * 13874 * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute 13875 * indicates EAP frame type. The methods are enumerated by IANA at 13876 * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml. 13877 * 13878 * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute 13879 * indicates EAP frame length. 13880 * 13881 * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This 13882 * attribute indicates the kernel timestamp. Driver uses ktime_get() API 13883 * (Time from boot but not the time spent in suspend) to send in microseconds 13884 * to userspace. 13885 * 13886 * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute 13887 * indicates the association id received in the (re)association response frame 13888 * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format. 13889 */ 13890 enum qca_wlan_vendor_attr_diag { 13891 QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0, 13892 QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1, 13893 QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2, 13894 QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3, 13895 QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4, 13896 QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5, 13897 QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6, 13898 QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7, 13899 QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8, 13900 QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9, 13901 QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10, 13902 QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11, 13903 QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12, 13904 QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13, 13905 QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14, 13906 QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15, 13907 QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16, 13908 QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17, 13909 QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18, 13910 QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19, 13911 QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20, 13912 QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21, 13913 QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22, 13914 QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23, 13915 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24, 13916 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25, 13917 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26, 13918 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27, 13919 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28, 13920 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29, 13921 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30, 13922 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31, 13923 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32, 13924 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33, 13925 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34, 13926 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35, 13927 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36, 13928 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37, 13929 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38, 13930 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39, 13931 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40, 13932 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41, 13933 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42, 13934 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43, 13935 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44, 13936 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45, 13937 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46, 13938 QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47, 13939 QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48, 13940 QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49, 13941 QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50, 13942 13943 /* keep last */ 13944 QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST, 13945 QCA_WLAN_VENDOR_ATTR_DIAG_MAX = 13946 QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1, 13947 }; 13948 13949 /** 13950 * qca_wlan_vendor_monitor_data_frame_type - Represent the various 13951 * data types to be sent over the monitor interface. 13952 */ 13953 enum qca_wlan_vendor_monitor_data_frame_type { 13954 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0), 13955 13956 /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is 13957 not set */ 13958 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1), 13959 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2), 13960 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3), 13961 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4), 13962 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5), 13963 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6), 13964 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7), 13965 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8), 13966 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9), 13967 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10), 13968 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11), 13969 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12), 13970 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13), 13971 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14), 13972 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15), 13973 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16), 13974 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17), 13975 }; 13976 13977 /** 13978 * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various 13979 * mgmt types to be sent over the monitor interface. 13980 * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames. 13981 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames 13982 * except the Beacons. Valid only in the Connect state. 13983 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected 13984 * BSSID Beacons. Valid only in the Connect state. 13985 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents 13986 * the Beacons obtained during the scan (off channel and connected channel) 13987 * when in connected state. 13988 */ 13989 13990 enum qca_wlan_vendor_monitor_mgmt_frame_type { 13991 QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0), 13992 /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */ 13993 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1), 13994 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2), 13995 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3), 13996 }; 13997 13998 /** 13999 * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various 14000 * ctrl types to be sent over the monitor interface. 14001 * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames. 14002 * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame. 14003 */ 14004 enum qca_wlan_vendor_monitor_ctrl_frame_type { 14005 QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0), 14006 /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */ 14007 QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1), 14008 }; 14009 14010 /** 14011 * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the 14012 * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the 14013 * monitor mode. 14014 * 14015 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute, 14016 * Represents the tx data packet type to be monitored (u32). These data packets 14017 * are represented by enum qca_wlan_vendor_monitor_data_frame_type. 14018 * 14019 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute, 14020 * Represents the tx data packet type to be monitored (u32). These data packets 14021 * are represented by enum qca_wlan_vendor_monitor_data_frame_type. 14022 * 14023 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute, 14024 * Represents the tx data packet type to be monitored (u32). These mgmt packets 14025 * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type. 14026 * 14027 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute, 14028 * Represents the tx data packet type to be monitored (u32). These mgmt packets 14029 * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type. 14030 * 14031 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute, 14032 * Represents the tx data packet type to be monitored (u32). These ctrl packets 14033 * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type. 14034 * 14035 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute, 14036 * Represents the tx data packet type to be monitored (u32). These ctrl packets 14037 * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type. 14038 * 14039 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: 14040 * u32 attribute, An interval only for the connected beacon interval, which 14041 * expects that the connected BSSID's beacons shall be sent on the monitor 14042 * interface only on this specific interval. 14043 */ 14044 enum qca_wlan_vendor_attr_set_monitor_mode { 14045 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0, 14046 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1, 14047 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2, 14048 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3, 14049 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4, 14050 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5, 14051 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6, 14052 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7, 14053 14054 /* keep last */ 14055 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST, 14056 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX = 14057 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1, 14058 14059 }; 14060 14061 /** 14062 * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags. 14063 * Bits will be set to 1 if the corresponding state is enabled. 14064 * 14065 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start. 14066 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end. 14067 */ 14068 enum qca_wlan_vendor_roam_scan_state { 14069 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0), 14070 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1), 14071 }; 14072 14073 /** 14074 * enum qca_wlan_vendor_roam_event_type - Roam event type flags. 14075 * Bits will be set to 1 if the corresponding event is notified. 14076 * 14077 * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event 14078 * carries the trigger reason. When set, it is expected that the roam event 14079 * carries the respective reason via the attribute 14080 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries 14081 * the BSSID, RSSI, frequency info of the AP to which the roam is attempted. 14082 * 14083 * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event 14084 * carries the roam fail reason. When set, it is expected that the roam event 14085 * carries the respective reason via the attribute 14086 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the 14087 * BSSID, RSSI, frequency info of the AP to which the roam was attempted. 14088 * 14089 * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam 14090 * event carries the roam invoke fail reason. When set, it is expected that 14091 * the roam event carries the respective reason via the attribute 14092 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON. 14093 * 14094 * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event 14095 * carries the roam scan state. When set, it is expected that the roam event 14096 * carries the respective scan state via the attribute 14097 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding 14098 * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST. 14099 */ 14100 enum qca_wlan_vendor_roam_event_type { 14101 QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0), 14102 QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1), 14103 QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2), 14104 QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3), 14105 }; 14106 14107 /** 14108 * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info. 14109 * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO. 14110 * 14111 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address 14112 * representing the BSSID of the AP to which the Roam is attempted. 14113 * 14114 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value 14115 * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is 14116 * attempted. 14117 * 14118 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz 14119 * on which the roam is attempted. 14120 * 14121 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in 14122 * STA mode only. This represents the roam fail reason for the last failed 14123 * roaming attempt by the firmware for the specific BSSID. Different roam 14124 * failure reason codes are specified in enum qca_vendor_roam_fail_reasons. 14125 */ 14126 enum qca_wlan_vendor_attr_roam_events_candidate_info { 14127 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0, 14128 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1, 14129 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2, 14130 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3, 14131 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4, 14132 14133 /* keep last */ 14134 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST, 14135 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX = 14136 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1, 14137 }; 14138 14139 /** 14140 * enum qca_wlan_vendor_attr_roam_events - Used by the 14141 * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the 14142 * roam events to the driver or notify these events from the driver. 14143 * 14144 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the 14145 * driver/firmware to enable/disable the notification of roam events. It's a 14146 * mandatory attribute and used only in the request from the userspace to the 14147 * host driver. 1-Enable, 0-Disable. 14148 * If the roaming is totally offloaded to the firmware, this request when 14149 * enabled shall mandate the firmware to notify all the relevant roam events 14150 * represented by the below attributes. If the host is in the suspend mode, 14151 * the behavior of the firmware to notify these events is guided by 14152 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get 14153 * these events in the suspend state, the firmware is expected to wake up the 14154 * host before the respective events are notified. Please note that such a 14155 * request to get the events in the suspend state will have a definite power 14156 * implication. 14157 * 14158 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents 14159 * that the roam events need to be notified in the suspend state too. By 14160 * default, these roam events are notified in the resume state. With this flag, 14161 * the roam events are notified in both resume and suspend states. 14162 * This attribute is used in the request from the userspace to the host driver. 14163 * 14164 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only. 14165 * Represents the different roam event types, signified by the enum 14166 * qca_wlan_vendor_roam_event_type. 14167 * Each bit of this attribute represents the different roam even types reported 14168 * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14169 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14170 * 14171 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA 14172 * mode only. This represents the roam trigger reason for the last roaming 14173 * attempted by the firmware. Each bit of this attribute represents the 14174 * different roam trigger reason code which are defined in enum 14175 * qca_vendor_roam_triggers. 14176 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14177 * 14178 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in 14179 * STA mode only. This represents the roam invoke fail reason for the last 14180 * failed roam invoke. Different roam invoke failure reason codes 14181 * are specified in enum qca_vendor_roam_invoke_fail_reasons. 14182 * 14183 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info 14184 * for which the roam is attempted. Each entry is a nested attribute defined 14185 * by enum qca_wlan_vendor_attr_roam_events_candidate_info. 14186 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14187 * 14188 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents 14189 * the scan state on which the roam events need to be notified. The values for 14190 * this attribute are referred from enum qca_wlan_vendor_roam_scan_state. 14191 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14192 * 14193 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of 14194 * u32 values. List of frequencies in MHz considered for a roam scan. 14195 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14196 */ 14197 14198 enum qca_wlan_vendor_attr_roam_events { 14199 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0, 14200 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1, 14201 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2, 14202 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3, 14203 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4, 14204 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5, 14205 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6, 14206 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7, 14207 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8, 14208 14209 /* keep last */ 14210 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST, 14211 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX = 14212 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1, 14213 }; 14214 14215 /* 14216 * enum qca_wlan_ratemask_params_type - Rate mask config type. 14217 * 14218 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config 14219 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config 14220 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config 14221 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config 14222 */ 14223 enum qca_wlan_ratemask_params_type { 14224 QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0, 14225 QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1, 14226 QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2, 14227 QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3, 14228 }; 14229 14230 /* enum qca_wlan_vendor_attr_ratemask_params - Used by the 14231 * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG. 14232 * This is used to set the rate mask value to be used in rate selection. 14233 * 14234 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST: 14235 * Array of nested containing attributes 14236 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and 14237 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP. 14238 * 14239 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents 14240 * the different phy types to which the rate mask config is to be applied. 14241 * The values for this attribute are referred from enum 14242 * qca_wlan_vendor_ratemask_params_type. 14243 * 14244 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap. 14245 * A bit value of 1 represents rate is enabled and a value of 0 14246 * represents rate is disabled. 14247 * For HE targets, 12 bits correpond to one NSS setting. 14248 * b0-13 => NSS1, MCS 0-13 14249 * b14-27 => NSS2, MCS 0-13 and so on for other NSS. 14250 * For VHT targets, 10 bits correspond to one NSS setting. 14251 * b0-9 => NSS1, MCS 0-9 14252 * b10-19 => NSS2, MCS 0-9 and so on for other NSS. 14253 * For HT targets, 8 bits correspond to one NSS setting. 14254 * b0-7 => NSS1, MCS 0-7 14255 * b8-15 => NSS2, MCS 0-7 and so on for other NSS. 14256 * For OFDM/CCK targets, 8 bits correspond to one NSS setting. 14257 */ 14258 14259 enum qca_wlan_vendor_attr_ratemask_params { 14260 QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0, 14261 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1, 14262 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2, 14263 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3, 14264 14265 /* keep last */ 14266 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST, 14267 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX = 14268 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1, 14269 }; 14270 14271 /** 14272 * enum qca_wlan_vendor_flush_pending_policy: Represents values for 14273 * the policy to flush pending frames, configured via 14274 * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the 14275 * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY. 14276 * 14277 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all 14278 * the flush policy configured before. This command basically disables the 14279 * flush config set by the user. 14280 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures 14281 * the flush policy to be immediate. All pending packets for the peer/TID are 14282 * flushed when this command/policy is received. 14283 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures 14284 * the flush policy to the end of TWT SP. All pending packets for the peer/TID 14285 * are flushed when the end of TWT SP is reached. 14286 */ 14287 enum qca_wlan_vendor_flush_pending_policy { 14288 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0, 14289 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1, 14290 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2, 14291 }; 14292 14293 /** 14294 * enum qca_wlan_vendor_attr_flush_pending - Attributes for 14295 * flushing pending traffic in firmware. 14296 * 14297 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address. 14298 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending 14299 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK, 14300 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to 14301 * flush packets with access category. This is optional. See below. 14302 * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets. 14303 * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding 14304 * bit to 1 to act upon the TID. This is optional. Either this attribute or 14305 * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided, 14306 * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided 14307 * it is an error. 14308 * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending 14309 * packets corresponding to the peer/TID provided. It is a u32 value, 14310 * represented by %enum qca_wlan_vendor_flush_pending_policy. This 14311 * value is honored only when TID mask is provided. This is not honored when AC 14312 * mask is provided. 14313 */ 14314 enum qca_wlan_vendor_attr_flush_pending { 14315 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0, 14316 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1, 14317 QCA_WLAN_VENDOR_ATTR_AC = 2, 14318 QCA_WLAN_VENDOR_ATTR_TID_MASK = 3, 14319 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4, 14320 /* keep last */ 14321 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST, 14322 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX = 14323 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1, 14324 }; 14325 14326 /** 14327 * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys 14328 * for) or drop existing PASN security association for the listed the 14329 * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver 14330 * to userspace. 14331 * 14332 * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer 14333 * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR. 14334 * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from 14335 * the driver to userspace to inform that the existing PASN keys of the 14336 * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are 14337 * not valid anymore. 14338 */ 14339 enum qca_wlan_vendor_pasn_action { 14340 QCA_WLAN_VENDOR_PASN_ACTION_AUTH, 14341 QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT, 14342 }; 14343 14344 /** 14345 * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in 14346 * QCA_WLAN_VENDOR_ATTR_PASN_PEERS. 14347 * 14348 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the 14349 * event from the driver to userspace and represents the local MAC address 14350 * to be used for PASN handshake. When this attribute is present, userspace 14351 * shall use the source address specified in this attribute by the driver 14352 * for PASN handshake with peer device. 14353 * This attribute is required in a command response from userspace to the 14354 * driver and represents the MAC address that was used in PASN handshake 14355 * with the peer device. 14356 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the 14357 * peer device to which PASN handshake is requested in an event from the 14358 * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to 14359 * QCA_WLAN_VENDOR_PASN_ACTION_AUTH. 14360 * Indicates the MAC address of the peer device for which the keys are to 14361 * be invalidated in an event from the driver to userspace when 14362 * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to 14363 * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT. 14364 * Indicates the MAC address of the peer device for which the status is 14365 * being sent in a status report from userspace to the driver. 14366 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used 14367 * in the event from the driver to userspace. When set, userspace is 14368 * required to derive LTF key seed from KDK and set it to the driver. 14369 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This 14370 * attribute is used in the command response from userspace to the driver. 14371 * If present, it indicates the successful PASN handshake with the peer. If 14372 * this flag is not present, it indicates that the PASN handshake with the 14373 * peer device failed. 14374 */ 14375 enum qca_wlan_vendor_attr_pasn_peer { 14376 QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0, 14377 QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1, 14378 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2, 14379 QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3, 14380 QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4, 14381 14382 /* keep last */ 14383 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST, 14384 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX = 14385 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1, 14386 }; 14387 14388 /** 14389 * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the 14390 * QCA_NL80211_VENDOR_SUBCMD_PASN command. 14391 * 14392 * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are 14393 * defined in enum qca_wlan_vendor_pasn_action and used only in an event 14394 * from the driver to userspace. 14395 * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer 14396 * details for each peer and used in both an event and a command response. 14397 * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are 14398 * defined in enum qca_wlan_vendor_attr_pasn_peer. 14399 */ 14400 enum qca_wlan_vendor_attr_pasn { 14401 QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0, 14402 QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1, 14403 QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2, 14404 14405 /* keep last */ 14406 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST, 14407 QCA_WLAN_VENDOR_ATTR_PASN_MAX = 14408 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1, 14409 }; 14410 14411 /** 14412 * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete 14413 * the ranging security context derived from PASN for each peer. Used in 14414 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION. 14415 * 14416 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging 14417 * context for the peer. 14418 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging 14419 * context for the peer. 14420 */ 14421 enum qca_wlan_vendor_secure_ranging_ctx_action { 14422 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD, 14423 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE, 14424 }; 14425 14426 /** 14427 * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type 14428 * used for deriving PASN keys to the driver. Used in 14429 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE 14430 * @QCA_WLAN_VENDOR_SHA_256: SHA-256 14431 * @QCA_WLAN_VENDOR_SHA_384: SHA-384 14432 */ 14433 enum qca_wlan_vendor_sha_type { 14434 QCA_WLAN_VENDOR_SHA_256, 14435 QCA_WLAN_VENDOR_SHA_384, 14436 }; 14437 14438 /** 14439 * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used 14440 * to set security context for the PASN peer from userspace to the driver. 14441 * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT. 14442 * 14443 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible 14444 * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action 14445 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that 14446 * was used during the PASN handshake. 14447 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of 14448 * the peer device for which secure ranging context is being configured. 14449 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the 14450 * hash algorithm to be used, possible values are defined in enum 14451 * qca_wlan_vendor_sha_type. 14452 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds 14453 * the temporal key generated from the PASN handshake. The length of this 14454 * attribute is dependent on the value of 14455 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER. 14456 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the 14457 * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites) 14458 * (e.g., 0x000FAC04). 14459 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length 14460 * attribute, holds the LTF keyseed derived from KDK of PASN handshake. 14461 * The length of this attribute is dependent on the value of 14462 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE. 14463 * 14464 */ 14465 enum qca_wlan_vendor_attr_secure_ranging_ctx { 14466 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0, 14467 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1, 14468 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2, 14469 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3, 14470 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4, 14471 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5, 14472 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6, 14473 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7, 14474 14475 /* keep last */ 14476 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST, 14477 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX = 14478 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1, 14479 }; 14480 14481 /** 14482 * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used 14483 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER 14484 * nested attribute. The packets that match a filter will be replied with 14485 * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY. 14486 * 14487 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4: 14488 * u32 attribute. Destination IPv4 address in network byte order, the 14489 * IPv4 packets with different address will be filtered out. 14490 * This attribute is optional. 14491 * 14492 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC: 14493 * Flag attribute. If it's present, indicates that 14494 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast 14495 * address; while if not, indicates that the address is a unicast/multicast 14496 * address. 14497 * This attribute is optional. 14498 * 14499 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6: 14500 * NLA_BINARY attribute, length is 16 bytes. 14501 * Destination IPv6 address in network byte order, the IPv6 packets 14502 * with different destination address will be filtered out. 14503 * This attribute is optional. 14504 * 14505 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and 14506 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured. 14507 * Packets on both IPv4 and IPv6 will be processed if both are configured. 14508 * 14509 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT: 14510 * u16 attribute. Destination UDP port, the packets with different destination 14511 * UDP port will be filtered out. 14512 * This attribute is mandatory. 14513 * 14514 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET: 14515 * u32 attribute. Represents the offset (in UDP payload) of the data 14516 * to be matched. 14517 * This attribute is mandatory. 14518 * 14519 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA: 14520 * NLA_BINARY attribute, the maximum allowed size is 16 bytes. 14521 * Binary data that is compared bit-by-bit against the data (specified 14522 * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP 14523 * payload, the packets don't match will be filtered out. 14524 * This attribute is mandatory. 14525 */ 14526 enum qca_wlan_vendor_attr_coap_offload_filter { 14527 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0, 14528 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1, 14529 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2, 14530 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3, 14531 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4, 14532 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5, 14533 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6, 14534 14535 /* keep last */ 14536 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST, 14537 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX = 14538 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1, 14539 }; 14540 14541 /** 14542 * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used 14543 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute. 14544 * 14545 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4: 14546 * u32 attribute. Source address (in network byte order) for replying 14547 * the matching broadcast/multicast IPv4 packets. 14548 * This attribute is optional. 14549 * 14550 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6: 14551 * NLA_BINARY attribute, length is 16 bytes. 14552 * Source address (in network byte order) for replying the matching 14553 * multicast IPv6 packets. 14554 * This attribute is optional. 14555 * 14556 * For broadcast/multicast offload reply, one of 14557 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and 14558 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be 14559 * configured according to version of the IP address(es) configured in 14560 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER; 14561 * while for unicast case, firmware will take the destination IP address 14562 * in the received matching packet as the source address for replying. 14563 * 14564 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER: 14565 * Nested attribute. Filter for the received UDP packets, only the matching 14566 * packets will be replied and cached. 14567 * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported 14568 * attributes. 14569 * This attribute is mandatory. 14570 * 14571 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG: 14572 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 14573 * CoAP message (UDP payload) to be sent upon receiving matching packets. 14574 * Firmware is responsible for adding any necessary protocol headers. 14575 * This attribute is mandatory. 14576 * 14577 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME: 14578 * u32 attribute. Expiration time in milliseconds of the cached CoAP messages. 14579 * A cached message will be dropped by firmware if it's expired. 14580 * This attribute is optional. A default value of 40000 will be used in the 14581 * absence of it. 14582 */ 14583 enum qca_wlan_vendor_attr_coap_offload_reply { 14584 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0, 14585 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1, 14586 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2, 14587 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3, 14588 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4, 14589 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5, 14590 14591 /* keep last */ 14592 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST, 14593 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX = 14594 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1, 14595 }; 14596 14597 /** 14598 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for 14599 * CoAP message (UDP) transmitting on IPv4. 14600 * 14601 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR: 14602 * u32 attribute. Source address (in network byte order) for transmitting 14603 * packets on IPv4. 14604 * This attribute is mandatory. 14605 * 14606 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT: 14607 * u16 attribute. Source UDP port. 14608 * This attribute is optional, a random port is taken if it's not present. 14609 * 14610 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR: 14611 * u32 attribute. Destination IPv4 address (in network byte order). 14612 * This attribute is mandatory. 14613 * 14614 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC: 14615 * Flag attribute. If it's present, indicates that 14616 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast 14617 * address; while if not, indicates that the address is unicast/multicast 14618 * address. 14619 * This attribute is optional. 14620 * 14621 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT: 14622 * u16 attribute. Destination UDP port. 14623 * This attribute is mandatory. 14624 */ 14625 enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 { 14626 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0, 14627 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1, 14628 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2, 14629 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3, 14630 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4, 14631 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5, 14632 14633 /* keep last */ 14634 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST, 14635 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX = 14636 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1, 14637 }; 14638 14639 /** 14640 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for 14641 * CoAP message (UDP) transmitting on IPv6. 14642 * 14643 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR: 14644 * NLA_BINARY attribute, length is 16 bytes. 14645 * Source address (in network byte order) for transmitting packets on IPv6. 14646 * This attribute is mandatory. 14647 * 14648 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT: 14649 * u16 attribute. Source UDP port. 14650 * This attribute is optional, a random port is taken if it's not present. 14651 * 14652 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR: 14653 * NLA_BINARY attribute, length is 16 bytes. 14654 * Destination IPv6 address (in network byte order). 14655 * This attribute is mandatory. 14656 * 14657 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT: 14658 * u16 attribute. Destination UDP port. 14659 * This attribute is mandatory. 14660 */ 14661 enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 { 14662 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0, 14663 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1, 14664 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2, 14665 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3, 14666 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4, 14667 14668 /* keep last */ 14669 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST, 14670 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX = 14671 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1, 14672 }; 14673 14674 /** 14675 * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used 14676 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute. 14677 * 14678 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4: 14679 * Nested attribute. The IPv4 source/destination address/port for offload 14680 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list 14681 * of supported attributes. 14682 * This attribute is optional. 14683 * 14684 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6: 14685 * Nested attribute. The IPv6 source/destination address/port for offload 14686 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list 14687 * of supported attributes. 14688 * This attribute is optional. 14689 * 14690 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and 14691 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured. 14692 * Firmware will transmit the packets on both IPv4 and IPv6 if both are 14693 * configured. 14694 * 14695 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD: 14696 * u32 attribute. Period in milliseconds for the periodic transmitting. 14697 * This attribute is mandatory. 14698 * 14699 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG: 14700 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 14701 * CoAP message (UDP payload) to be periodically transmitted. Firmware 14702 * is responsible for adding any necessary protocol headers. 14703 * This attribute is mandatory. 14704 */ 14705 enum qca_wlan_vendor_attr_coap_offload_periodic_tx { 14706 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0, 14707 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1, 14708 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2, 14709 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3, 14710 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4, 14711 14712 /* keep last */ 14713 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST, 14714 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX = 14715 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1, 14716 }; 14717 14718 /** 14719 * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used 14720 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute. 14721 * 14722 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS: 14723 * u64 attribute. Received time (since system booted in microseconds) of 14724 * the cached CoAP message. 14725 * This attribute is mandatory. 14726 * 14727 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4: 14728 * u32 attribute. Source IPv4 address (in network byte order) of the cached 14729 * CoAP message. 14730 * This attribute is optional. 14731 * 14732 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6: 14733 * NLA_BINARY attribute, length is 16 bytes. 14734 * Source IPv6 address (in network byte order) of the cached CoAP message. 14735 * This attribute is optional. 14736 * 14737 * At most and at least one of 14738 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and 14739 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for 14740 * an entry. 14741 * 14742 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG: 14743 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 14744 * The cached CoAP message (UDP payload). If the actual message size is 14745 * greater than the maximum size, it will be truncated and leaving only 14746 * the first 1152 bytes. 14747 * This attribute is mandatory. 14748 */ 14749 enum qca_wlan_vendor_attr_coap_offload_cache_info { 14750 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0, 14751 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1, 14752 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2, 14753 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3, 14754 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4, 14755 14756 /* keep last */ 14757 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST, 14758 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX = 14759 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1, 14760 }; 14761 14762 /** 14763 * enum qca_wlan_vendor_coap_offload_action - Actions for 14764 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD. 14765 * 14766 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE: 14767 * Enable CoAP offload reply. 14768 * If it's enabled, firmware will start offload processing on each suspend 14769 * and stop on each resume. 14770 * 14771 * Offload reply on match works as follows: 14772 * Reply the packets that match the filter with the given CoAP 14773 * message (with necessary protocol headers), increase the CoAP message 14774 * ID in the given CoAP message by one for the next use after each successful 14775 * transmission, and try to store the information of the received packet, 14776 * including the received time, source IP address, and CoAP message (UDP 14777 * payload). 14778 * 14779 * Firmware has a limit to the maximum stored entries, it takes the source IP 14780 * address as the key of an entry, and keeps at most one entry for each key. 14781 * A packet won't be stored if no entry for the same key is present and the 14782 * total number of the existing unexpired entries reaches the maximum value. 14783 * 14784 * If any configured item is changed, user space should disable offload reply 14785 * first and then issue a new enable request. 14786 * 14787 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE: 14788 * Disable CoAP offload reply and return information of any cached CoAP 14789 * messages. 14790 * 14791 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE: 14792 * Enable CoAP offload periodic transmitting. 14793 * If it's enabled, firmware will start offload periodic transmitting on 14794 * each suspend and stop on each resume. 14795 * 14796 * Offload periodic transmitting works as follows: 14797 * Send the given CoAP message (with necessary protocol headers) with the given 14798 * source/destination IP address/UDP port periodically based on the given 14799 * period and increase the CoAP message ID in the given CoAP message by one 14800 * for the next use after each successful transmission. 14801 * 14802 * If any configured item is changed, user space should disable offload 14803 * periodic transmitting first and then issue a new enable request. 14804 * 14805 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE: 14806 * Disable CoAP offload periodic transmitting. 14807 * 14808 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET: 14809 * Get information of the CoAP messages cached during offload reply 14810 * processing. The cache is cleared after retrieval. 14811 */ 14812 enum qca_wlan_vendor_coap_offload_action { 14813 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0, 14814 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1, 14815 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2, 14816 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3, 14817 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4, 14818 }; 14819 14820 /** 14821 * enum qca_wlan_vendor_attr_coap_offload - Used by the 14822 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD. 14823 * This is used to set parameters for CoAP offload processing, or get 14824 * cached CoAP messages from firmware. 14825 * 14826 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION: 14827 * u32 attribute. Action to take in this vendor command. 14828 * See enum qca_wlan_vendor_coap_offload_action for supported actions. 14829 * This attribute is mandatory. 14830 * 14831 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID: 14832 * u32 attribute. Represents the Request ID for the CoAP offload 14833 * configuration, which can help to identify the user entity starting 14834 * the CoAP offload processing and accordingly stop the respective 14835 * ones/get the cached CoAP messages with the matching ID. 14836 * This attribute is mandatory. 14837 * 14838 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY: 14839 * Nested attribute. Parameters for offload reply. 14840 * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of 14841 * supported attributes. 14842 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION 14843 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored 14844 * otherwise. 14845 * 14846 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX: 14847 * Nested attribute. Parameters for offload periodic transmitting. 14848 * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of 14849 * supported attributes. 14850 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is 14851 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored 14852 * otherwise. 14853 * 14854 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES: 14855 * Array of nested attributes. Information of the cached CoAP messages, 14856 * where each entry is taken from 14857 * enum qca_wlan_vendor_attr_coap_offload_cache_info. 14858 * This attribute is used for reporting the cached CoAP messages 14859 * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION 14860 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or 14861 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no 14862 * cached item if this attribute is not present. 14863 */ 14864 enum qca_wlan_vendor_attr_coap_offload { 14865 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0, 14866 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1, 14867 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2, 14868 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3, 14869 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4, 14870 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5, 14871 14872 /* keep last */ 14873 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST, 14874 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX = 14875 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1, 14876 }; 14877 14878 /** 14879 * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command 14880 * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification 14881 * Service (SCS) rule. 14882 * 14883 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute. 14884 * Represents the unique id of SCS rule to be configured. 14885 14886 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute. 14887 * Represents the request type: add, remove, or change. 14888 * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request 14889 * Type definitions). 14890 * 14891 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute 14892 * in case of add/change request type. 14893 * Represents the output traffic identifier (TID) to be assigned to the flow 14894 * matching the rule. 14895 * 14896 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8 14897 * attribute in case of add/change request type. 14898 * Represents type of classifier parameters present in SCS rule. 14899 * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type). 14900 * Only classifier types 4 and 10 are supported for SCS. 14901 * 14902 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute 14903 * in case of add/change request type when classifier type is TCLAS4. 14904 * Represents the IP version (4: IPv4, 6: IPv6) of the rule. 14905 * 14906 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional 14907 * attribute in case of add/change request type when classifier type is TCLAS4 14908 * and version attribute is IPv4. 14909 * Represents the source IPv4 address in the rule which is to be compared 14910 * against the source IP address in the IPv4 header. 14911 * 14912 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional 14913 * attribute in case of add/change request type when classifier type is TCLAS4 14914 * and version attribute is IPv4. 14915 * Represents the destination IPv4 address in the rule which is to be compared 14916 * against the destination IP address in the IPv4 header. 14917 * 14918 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional 14919 * attribute in case of add/change request type when classifier type is TCLAS4 14920 * and version attribute is IPv6. 14921 * Represents the source IPv6 address in the rule which is to be compared 14922 * against the source IP address in the IPv6 header. 14923 * 14924 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional 14925 * attribute in case of add/change request type when classifier type is TCLAS4 14926 * and version attribute is IPv6. 14927 * Represents the destination IPv6 address in the rule which is to be compared 14928 * against the destination IP address in the IPv6 header. 14929 * 14930 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute 14931 * in case of add/change request type when classifier type is TCLAS4. 14932 * Represents the source port number in the rule which is to be compared against 14933 * the source port number in the protocol header. 14934 * 14935 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute 14936 * in case of add/change request type when classifier type is TCLAS4. 14937 * Represents the destination port number in the rule which is to be compared 14938 * against the destination port number in the protocol header. 14939 * 14940 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute 14941 * in case of add/change request type when classifier type is TCLAS4. 14942 * Represents the DSCP value in the rule which is to be compared against the 14943 * DSCP field present in the IP header. 14944 * 14945 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8 14946 * attribute in case of add/change request type when classifier type is TCLAS4. 14947 * Represents the protocol/next header in the rule which is to be compared 14948 * against the protocol/next header field present in the IPv4/IPv6 header. 14949 * 14950 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional 14951 * attribute of size 3 bytes present in case of add/change request type 14952 * when classifier type is TCLAS4 and version is IPv6. 14953 * Represents the flow label value in the rule which is to be compared against 14954 * the flow label field present in the IPv6 header. 14955 * 14956 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8 14957 * attribute in case of add/change request type when classifier type is TCLAS10. 14958 * Represents the protocol instance number in the rule. 14959 * 14960 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8 14961 * attribute in case of add/change request type when classifier type is TCLAS10. 14962 * Represents the protocol/next header in the rule which is to be compared 14963 * against the protocol/next header field present in the IPv4/IPv6 header. 14964 * 14965 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional 14966 * attribute of variable length present when request type is add/change and 14967 * classifier type is TCLAS10. 14968 * Represents the mask to be used for masking the header contents of the header 14969 * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER 14970 * attribute. 14971 * 14972 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional 14973 * attribute of variable length present when request type is add/change and 14974 * classifier type is TCLAS10. 14975 * Represents the value to be compared against after masking the header contents 14976 * of the header specified by the 14977 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the 14978 * filter mask specified by the 14979 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute. 14980 * 14981 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16 14982 * attribute. 14983 * Represents the service class id of the configured SCS rule. 14984 * 14985 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes 14986 * MAC address. 14987 * Represents the destination MAC address in the rule. 14988 * 14989 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute 14990 * Represents the netdevice interface index in the rule. 14991 */ 14992 enum qca_wlan_vendor_attr_scs_rule_config { 14993 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0, 14994 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1, 14995 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2, 14996 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3, 14997 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4, 14998 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5, 14999 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6, 15000 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7, 15001 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8, 15002 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9, 15003 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10, 15004 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11, 15005 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12, 15006 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13, 15007 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14, 15008 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15, 15009 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16, 15010 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17, 15011 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18, 15012 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19, 15013 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20, 15014 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21, 15015 15016 /* Keep last */ 15017 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST, 15018 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX = 15019 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1, 15020 }; 15021 15022 /** 15023 * enum qca_wlan_vendor_sar_version - This describes the current SAR version 15024 * used in the firmware. 15025 * 15026 * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR. 15027 * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits. 15028 * 15029 * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2, 15030 * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for 15031 * each CTL group. So user can select up to 6 SAR indexes from the current CTL 15032 * groups. 15033 * 15034 * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3, 15035 * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each 15036 * CTL group but user can choose up to 3 SAR set index only, as the top half 15037 * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of 15038 * the SAR index (3 to 5) is used for DBS mode. 15039 */ 15040 enum qca_wlan_vendor_sar_version { 15041 QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0, 15042 QCA_WLAN_VENDOR_SAR_VERSION_1 = 1, 15043 QCA_WLAN_VENDOR_SAR_VERSION_2 = 2, 15044 QCA_WLAN_VENDOR_SAR_VERSION_3 = 3, 15045 }; 15046 15047 /** 15048 * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether 15049 * CTL grouping is enabled or disabled in the firmware. 15050 * 15051 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping 15052 * is enabled in firmware. 15053 * 15054 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping 15055 * is disabled in firmware. 15056 * 15057 */ 15058 enum qca_wlan_vendor_sar_ctl_group_state { 15059 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0, 15060 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1, 15061 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2, 15062 }; 15063 15064 /** 15065 * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command 15066 * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities 15067 * supported by the firmware. 15068 15069 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION: 15070 * u32 attribute. This field describes current SAR version supported by the 15071 * firmware. 15072 * See enum qca_wlan_vendor_sar_version for more information. 15073 * This attribute is mandatory. 15074 15075 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE: 15076 * u32 attribute. This field describes whether CTL groups are enabled 15077 * or disabled in the firmware. 15078 * See enum qca_wlan_vendor_sar_ctl_group_state for more information. 15079 * This attribute is optional. 15080 */ 15081 15082 enum qca_wlan_vendor_attr_sar_capability { 15083 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0, 15084 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1, 15085 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2, 15086 15087 /* Keep last */ 15088 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST, 15089 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX = 15090 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1, 15091 }; 15092 15093 /** 15094 * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics. 15095 * These statistics are sent from the driver in a response when userspace 15096 * queries to get the statistics using the operation 15097 * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset 15098 * by the driver when the SR feature is enabled, when the driver receives 15099 * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected. 15100 * 15101 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute. 15102 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15103 * This represents the number of non-SRG TX opportunities. 15104 * 15105 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute. 15106 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15107 * This represents the number of non-SRG PPDUs tried to transmit. 15108 * 15109 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute. 15110 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15111 * This represents the number of non-SRG PPDUs successfully transmitted. 15112 * 15113 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute. 15114 * Mandatory only when SRG is supported by the AP and optional otherwise. 15115 * This represents the number of SRG TX opportunities. 15116 * 15117 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute. 15118 * Mandatory only when SRG is supported by the AP and optional otherwise. 15119 * This represents the number of SRG PPDUs tried to transmit. 15120 * 15121 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute. 15122 * Mandatory only when SRG is supported by the AP and optional otherwise. 15123 * This represents the number of SRG PPDUs successfully transmitted. 15124 */ 15125 enum qca_wlan_vendor_attr_sr_stats { 15126 QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0, 15127 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1, 15128 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2, 15129 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3, 15130 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4, 15131 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5, 15132 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6, 15133 15134 /* Keep last */ 15135 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST, 15136 QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX = 15137 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1, 15138 }; 15139 15140 /** 15141 * enum qca_wlan_sr_reason_code - Defines the different reason codes used in 15142 * Spatial Reuse feature. 15143 * 15144 * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to 15145 * roaming to an AP that doesn't support/supports SR feature, respectively. 15146 * 15147 * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due 15148 * to change in concurrent interfaces that are supported by the driver. 15149 */ 15150 enum qca_wlan_sr_reason_code { 15151 QCA_WLAN_SR_REASON_CODE_ROAMING = 0, 15152 QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1, 15153 }; 15154 15155 /** 15156 * enum qca_wlan_sr_operation - Defines the different types of SR operations. 15157 * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION. 15158 * 15159 * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the 15160 * driver to enable the Spatial Reuse feature. Attributes 15161 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and 15162 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this 15163 * operation. 15164 * 15165 * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the 15166 * driver to disable the Spatial Reuse feature. 15167 * 15168 * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an 15169 * asynchronous event sent to userspace when the SR feature is disabled. 15170 * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE 15171 * and sent along with the asynchronous event. 15172 * 15173 * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an 15174 * asynchronous event when the SR feature is enabled again after the SR feature 15175 * was suspended by the driver earlier. The enable reason is 15176 * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are 15177 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and 15178 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD. 15179 * 15180 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is 15181 * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial 15182 * reuse transmissions. Userspace sends this operation to the driver. 15183 * The driver/firmware upon receiving this operation shall prohibit PSR-based 15184 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions. 15185 * 15186 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is 15187 * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial 15188 * reuse transmissions. Userspace sends this operation to the driver. 15189 * The driver/firmware upon receiving this operation shall allow PSR-based 15190 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions. 15191 * 15192 * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the 15193 * driver to get the SR statistics and the driver sends a synchronous response 15194 * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the 15195 * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS. 15196 * 15197 * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the 15198 * driver to clear the SR statistics and upon receiving this operation 15199 * the driver/firmware shall clear the SR statistics. 15200 * 15201 * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the 15202 * driver to get the SR parameters and the driver sends the synchronous response 15203 * with the following required attributes: 15204 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET, 15205 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET, 15206 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET, 15207 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE, 15208 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW. 15209 * 15210 * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an 15211 * asynchronous event to userspace to update any changes in SR parameters. 15212 * The following attributes are used with this operation: 15213 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET, 15214 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET, 15215 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET, 15216 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE, 15217 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW. 15218 */ 15219 enum qca_wlan_sr_operation { 15220 QCA_WLAN_SR_OPERATION_SR_ENABLE = 0, 15221 QCA_WLAN_SR_OPERATION_SR_DISABLE = 1, 15222 QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2, 15223 QCA_WLAN_SR_OPERATION_SR_RESUME = 3, 15224 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4, 15225 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5, 15226 QCA_WLAN_SR_OPERATION_GET_STATS = 6, 15227 QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7, 15228 QCA_WLAN_SR_OPERATION_GET_PARAMS = 8, 15229 QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9, 15230 }; 15231 15232 /** 15233 * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration 15234 * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS. 15235 * 15236 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute. 15237 * This attribute is optionally set in response to 15238 * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to 15239 * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std 15240 * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more 15241 * about HESIGA_Spatial_reuse_value15_allowed. 15242 * 15243 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute. 15244 * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS 15245 * operation. This indicates whether non-SRG OBSS PD SR transmissions are 15246 * allowed or not at non-AP STAs that are associated with the AP. If present 15247 * non-SRG OBSS PD SR transmissions are not allowed else are allowed. 15248 * 15249 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8 15250 * attribute. This attribute is used in response to 15251 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD 15252 * Min Offset field which contains an unsigned integer that is added to -82 dBm 15253 * to generate the value of the SRG OBSS PD Min parameter. 15254 * 15255 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8 15256 * attribute. This attribute is used in response to 15257 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD 15258 * Max Offset field which contains an unsigned integer that is added to -82 dBm 15259 * to generate the value of the SRG OBSS PD Max parameter. 15260 * 15261 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8 15262 * attribute. This attribute is used in response to 15263 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS 15264 * PD Max Offset field which contains an unsigned integer that is added to -82 15265 * dBm to generate the value of the Non-SRG OBSS PD Max parameter. 15266 * 15267 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm). 15268 * Userspace optionally sends this attribute with 15269 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the 15270 * preferred SRG PD threshold. The driver shall send this attribute to 15271 * userspace in SR resume event to indicate the PD threshold being used for SR. 15272 * When there is change in SRG PD threshold (for example, due to roaming, etc.) 15273 * the driver shall indicate the userspace the newly configured SRG PD threshold 15274 * using an asynchronous event. 15275 * 15276 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm). 15277 * Userspace optionally sends this attribute with 15278 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the 15279 * preferred non-SRG PD threshold. The driver shall send this attribute to 15280 * userspace in SR resume event to indicate the PD threshold being used for SR. 15281 * When there is change in non-SRG PD threshold (for example, due to roaming, 15282 * etc.) the driver shall indicate the userspace the newly configured non-SRG PD 15283 * threshold using an asynchronous event. 15284 * 15285 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible 15286 * values are defined in enum qca_wlan_sr_reason_code. This 15287 * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and 15288 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations. 15289 */ 15290 enum qca_wlan_vendor_attr_sr_params { 15291 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0, 15292 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1, 15293 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2, 15294 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3, 15295 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4, 15296 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5, 15297 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6, 15298 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7, 15299 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8, 15300 15301 /* keep last */ 15302 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST, 15303 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX = 15304 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1, 15305 }; 15306 15307 /** 15308 * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor 15309 * command QCA_NL80211_VENDOR_SUBCMD_SR. 15310 * 15311 * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests 15312 * from userspace to the driver. Possible values are defined in enum 15313 * qca_wlan_sr_operation. 15314 * 15315 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR 15316 * configuration parameters. The possible attributes inside this attribute are 15317 * defined in enum qca_wlan_vendor_attr_sr_params. 15318 * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to 15319 * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and 15320 * also in response from the driver to userspace when the response is sent for 15321 * %QCA_WLAN_SR_OPERATION_GET_PARAMS. 15322 * The driver uses this attribute in asynchronous events in which the operation 15323 * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME, 15324 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS. 15325 * 15326 * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR 15327 * statistics. These attributes used inside this are defined in enum 15328 * qca_wlan_vendor_attr_sr_stats. 15329 * This attribute is used in response from the driver to a command in which 15330 * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to 15331 * %QCA_WLAN_SR_OPERATION_GET_STATS. 15332 */ 15333 enum qca_wlan_vendor_attr_sr { 15334 QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0, 15335 QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1, 15336 QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2, 15337 QCA_WLAN_VENDOR_ATTR_SR_STATS = 3, 15338 15339 /* Keep last */ 15340 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST, 15341 QCA_WLAN_VENDOR_ATTR_SR_MAX = 15342 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1, 15343 }; 15344 15345 /** 15346 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes 15347 * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand. 15348 * 15349 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address 15350 * used by the peer on the link that corresponds to the link used for sending 15351 * the event notification. 15352 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte 15353 * MLD MAC address of the peer. 15354 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute, 15355 * used to pass ifindex of the primary netdev. 15356 */ 15357 enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event { 15358 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0, 15359 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1, 15360 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2, 15361 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3, 15362 15363 /* keep last */ 15364 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST, 15365 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX = 15366 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1, 15367 }; 15368 15369 /** 15370 * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with 15371 * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and 15372 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range 15373 * and PSD information. 15374 * 15375 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is 15376 * u32. This attribute is used to indicate the start of the queried frequency 15377 * range in MHz. 15378 * 15379 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32. 15380 * This attribute is used to indicate the end of the queried frequency range 15381 * in MHz. 15382 * 15383 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32. 15384 * This attribute will contain the PSD information for a single range as 15385 * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and 15386 * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes. 15387 * 15388 * The PSD power info (dBm/MHz) from user space should be multiplied 15389 * by a factor of 100 when sending to the driver to preserve granularity 15390 * up to 2 decimal places. 15391 * Example: 15392 * PSD power value: 10.21 dBm/MHz 15393 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021. 15394 * 15395 * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only 15396 * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with 15397 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when 15398 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15399 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE. 15400 * 15401 * The following set of attributes will be used to exchange frequency and 15402 * corresponding PSD information for AFC between the user space and the driver. 15403 */ 15404 enum qca_wlan_vendor_attr_afc_freq_psd_info { 15405 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0, 15406 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1, 15407 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2, 15408 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3, 15409 15410 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST, 15411 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX = 15412 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1, 15413 }; 15414 15415 /** 15416 * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with 15417 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the 15418 * channel list and corresponding EIRP information. 15419 * 15420 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8. 15421 * This attribute is used to indicate queried channel from 15422 * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO. 15423 * 15424 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32. 15425 * This attribute is used to configure the EIRP power info corresponding 15426 * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM. 15427 * The EIRP power info(dBm) from user space should be multiplied 15428 * by a factor of 100 when sending to Driver to preserve granularity up to 15429 * 2 decimal places. 15430 * Example: 15431 * EIRP power value: 34.23 dBm 15432 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423. 15433 * 15434 * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with 15435 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 15436 * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when 15437 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15438 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: 15439 * 15440 * The following set of attributes will be used to exchange Channel and 15441 * corresponding EIRP information for AFC between the user space and Driver. 15442 */ 15443 enum qca_wlan_vendor_attr_afc_chan_eirp_info { 15444 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0, 15445 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1, 15446 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2, 15447 15448 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST, 15449 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX = 15450 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1, 15451 }; 15452 15453 /** 15454 * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested 15455 * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 15456 * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class, 15457 * channel, and EIRP related information. 15458 * 15459 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8. 15460 * This attribute is used to indicate the operating class, as listed under 15461 * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list. 15462 * 15463 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes 15464 * for updating the channel number and EIRP power information. 15465 * It uses the attributes defined in 15466 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. 15467 * 15468 * Operating class information packing format for 15469 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when 15470 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15471 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY. 15472 * 15473 * m - Total number of operating classes. 15474 * n, j - Number of queried channels for the corresponding operating class. 15475 * 15476 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0] 15477 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0] 15478 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 15479 * ..... 15480 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1] 15481 * .... 15482 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m] 15483 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m] 15484 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 15485 * .... 15486 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1] 15487 * 15488 * Operating class information packing format for 15489 * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 15490 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when 15491 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15492 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE. 15493 * 15494 * m - Total number of operating classes. 15495 * n, j - Number of channels for the corresponding operating class. 15496 * 15497 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0] 15498 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0] 15499 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 15500 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0] 15501 * ..... 15502 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1] 15503 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1] 15504 * .... 15505 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m] 15506 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m] 15507 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 15508 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0] 15509 * .... 15510 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1] 15511 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1] 15512 * 15513 * The following set of attributes will be used to exchange operating class 15514 * information for AFC between the user space and the driver. 15515 */ 15516 enum qca_wlan_vendor_attr_afc_opclass_info { 15517 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0, 15518 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1, 15519 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2, 15520 15521 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST, 15522 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX = 15523 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1, 15524 }; 15525 15526 /** 15527 * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type. 15528 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute. 15529 * 15530 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the 15531 * driver to userspace in order to query the new AFC power values. 15532 * 15533 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update 15534 * complete event will be sent from the driver to userspace to indicate 15535 * processing of the AFC response. 15536 * 15537 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event 15538 * will be sent from the driver to userspace to indicate last received 15539 * AFC response data has been cleared on the AP due to invalid data 15540 * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. 15541 * 15542 * The following enum defines the different event types that will be 15543 * used by the driver to help trigger corresponding AFC functionality in user 15544 * space. 15545 */ 15546 enum qca_wlan_vendor_afc_event_type { 15547 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0, 15548 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1, 15549 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2, 15550 }; 15551 15552 /** 15553 * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP 15554 * deployment type. 15555 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute. 15556 * 15557 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment. 15558 * 15559 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment. 15560 * 15561 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment. 15562 * 15563 * The following enum defines different deployment modes that the AP might 15564 * come up in. This information will be essential to retrieve deployment-type 15565 * specific SP power values for AFC operation. 15566 */ 15567 enum qca_wlan_vendor_afc_ap_deployment_type { 15568 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0, 15569 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1, 15570 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2, 15571 }; 15572 15573 /** 15574 * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to 15575 * indicate AFC response status. 15576 * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute. 15577 * 15578 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success 15579 * 15580 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication 15581 * command was not received within the expected time of the AFC expiry event 15582 * being triggered. 15583 * 15584 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data 15585 * parsing error by the driver. 15586 * 15587 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local 15588 * error. 15589 * 15590 * The following enum defines the status codes that the driver will use to 15591 * indicate whether the AFC data is valid or not. 15592 */ 15593 enum qca_wlan_vendor_afc_evt_status_code { 15594 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0, 15595 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1, 15596 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2, 15597 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3, 15598 }; 15599 15600 /** 15601 * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with 15602 * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will 15603 * support sending only a single request to the user space at a time. 15604 * 15605 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute. 15606 * Used with event to notify the type of AFC event received. 15607 * Valid values are defined in enum qca_wlan_vendor_afc_event_type. 15608 * 15609 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when 15610 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, 15611 * otherwise unused. 15612 * 15613 * This attribute is used to indicate the AP deployment type in the AFC request. 15614 * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type. 15615 * 15616 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute. 15617 * Unique request identifier generated by the AFC client for every 15618 * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID. 15619 * The user space application is responsible for ensuring no duplicate values 15620 * are in-flight with the server, e.g., by delaying a request, should the same 15621 * value be received from different radios in parallel. 15622 * 15623 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional. 15624 * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15625 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused. 15626 * 15627 * This attribute indicates the AFC spec version information. This will 15628 * indicate the AFC version AFC client must use to query the AFC data. 15629 * Bits 15:0 - Minor version 15630 * Bits 31:16 - Major version 15631 * 15632 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when 15633 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, 15634 * otherwise unused. 15635 * This attribute indicates the minimum desired power (in dBm) for 15636 * the queried spectrum. 15637 * 15638 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when 15639 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15640 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 15641 * 15642 * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code. 15643 * This attribute is used to indicate if there were any errors parsing the 15644 * AFC response. 15645 * 15646 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required 15647 * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15648 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 15649 * 15650 * This attribute indicates the AFC response code. The AFC response codes are 15651 * in the following categories: 15652 * -1: General Failure. 15653 * 0: Success. 15654 * 100 - 199: General errors related to protocol. 15655 * 300 - 399: Error events specific to message exchange 15656 * for the Available Spectrum Inquiry. 15657 * 15658 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when 15659 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15660 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 15661 * 15662 * This attribute indicates the date until which the current response is 15663 * valid for in UTC format. 15664 * Date format: bits 7:0 - DD (Day 1-31) 15665 * bits 15:8 - MM (Month 1-12) 15666 * bits 31:16 - YYYY (Year) 15667 * 15668 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when 15669 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15670 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 15671 * 15672 * This attribute indicates the time until which the current response is 15673 * valid for in UTC format. 15674 * Time format: bits 7:0 - SS (Seconds 0-59) 15675 * bits 15:8 - MM (Minutes 0-59) 15676 * bits 23:16 - HH (Hours 0-23) 15677 * bits 31:24 - Reserved 15678 * 15679 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes 15680 * for updating the list of frequency ranges to be queried. 15681 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15682 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or 15683 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 15684 * It uses the attributes defined in 15685 * enum qca_wlan_vendor_attr_afc_freq_psd_info. 15686 * 15687 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes 15688 * for updating the list of operating classes and corresponding channels to be 15689 * queried. 15690 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15691 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or 15692 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 15693 * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info. 15694 */ 15695 enum qca_wlan_vendor_attr_afc_event { 15696 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0, 15697 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1, 15698 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2, 15699 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3, 15700 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4, 15701 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5, 15702 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6, 15703 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7, 15704 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8, 15705 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9, 15706 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10, 15707 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11, 15708 15709 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST, 15710 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX = 15711 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1, 15712 }; 15713 15714 /** 15715 * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used 15716 * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes 15717 * will support sending only a single AFC response to the driver at a time. 15718 * 15719 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute. 15720 * This attribute will be used to send a single Spectrum Inquiry response object 15721 * from the 'availableSpectrumInquiryResponses' array object from the response 15722 * JSON. 15723 * 15724 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute. 15725 * 15726 * This attribute indicates the period (in seconds) for which the response 15727 * data received is valid for. 15728 * 15729 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute. 15730 * 15731 * This attribute indicates the request ID for which the corresponding 15732 * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID. 15733 * 15734 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute. 15735 * 15736 * This attribute indicates the date until which the current response is 15737 * valid for in UTC format. 15738 * Date format: bits 7:0 - DD (Day 1-31) 15739 * bits 15:8 - MM (Month 1-12) 15740 * bits 31:16 - YYYY (Year) 15741 * 15742 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute. 15743 * 15744 * This attribute indicates the time until which the current response is 15745 * valid for in UTC format. 15746 * Time format: bits 7:0 - SS (Seconds 0-59) 15747 * bits 15:8 - MM (Minutes 0-59) 15748 * bits 23:16 - HH (Hours 0-23) 15749 * bits 31:24 - Reserved 15750 * 15751 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute. 15752 * 15753 * This attribute indicates the AFC response code. The AFC response codes are 15754 * in the following categories: 15755 * -1: General Failure. 15756 * 0: Success. 15757 * 100 - 199: General errors related to protocol. 15758 * 300 - 399: Error events specific to message exchange 15759 * for the Available Spectrum Inquiry. 15760 * 15761 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes 15762 * for PSD info of all the queried frequency ranges. It uses the attributes 15763 * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute. 15764 * 15765 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested 15766 * attributes for EIRP info of all queried operating class/channels. It uses 15767 * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and 15768 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute. 15769 * 15770 */ 15771 enum qca_wlan_vendor_attr_afc_response { 15772 QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0, 15773 QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1, 15774 QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2, 15775 QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3, 15776 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4, 15777 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5, 15778 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6, 15779 QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7, 15780 QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8, 15781 15782 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST, 15783 QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX = 15784 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1, 15785 }; 15786 15787 /** 15788 * enum qca_wlan_dozed_ap_state - Doze states for AP interface 15789 * 15790 * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface. 15791 * 15792 * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts 15793 * beaconing at higher beacon interval with Rx disabled. 15794 */ 15795 enum qca_wlan_dozed_ap_state { 15796 QCA_WLAN_DOZED_AP_DISABLE = 0, 15797 QCA_WLAN_DOZED_AP_ENABLE = 1, 15798 }; 15799 15800 /** 15801 * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command 15802 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode 15803 * configuration. 15804 * 15805 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute. 15806 * Configures the doze state for an AP interface. Possible values are defined 15807 * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event 15808 * gets triggered asynchronously to provide updated AP interface configuration. 15809 * 15810 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by 15811 * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP 15812 * command, which is used later to maintain synchronization between commands 15813 * and asynchronous events. 15814 * 15815 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute. 15816 * Used in event to indicate the next TBTT TSF timer value after applying the 15817 * doze mode configuration. Next TBTT TSF is the time at which the AP sends 15818 * the first beacon after entering or exiting dozed mode. 15819 * 15820 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute. 15821 * Used with event to inform the periodicity of beacon transmission that would 15822 * be skipped at all TBTTs in between. 15823 */ 15824 enum qca_wlan_vendor_attr_dozed_ap { 15825 QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0, 15826 QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1, 15827 QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2, 15828 QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3, 15829 QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4, 15830 15831 /* Keep last */ 15832 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST, 15833 QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX = 15834 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1, 15835 }; 15836 15837 /** 15838 * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes 15839 * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE. 15840 * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no 15841 * capture running status. 15842 * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate 15843 * capture running status. 15844 **/ 15845 15846 enum qca_wlan_vendor_monitor_mode_status { 15847 QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0, 15848 QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1, 15849 }; 15850 15851 /** 15852 * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the 15853 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report 15854 * information regarding the local packet capture over the monitor mode. 15855 * 15856 * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute 15857 * represents the status of the start capture commands. The values used with 15858 * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This 15859 * is returned by the driver in the response to the command. 15860 */ 15861 15862 enum qca_wlan_vendor_attr_get_monitor_mode { 15863 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0, 15864 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1, 15865 15866 /* Keep last */ 15867 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST, 15868 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX = 15869 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1, 15870 }; 15871 15872 /** 15873 * enum qca_wlan_vendor_link_state_op_types - Defines different types of 15874 * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used. 15875 * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute. 15876 * 15877 * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information. 15878 * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information. 15879 */ 15880 enum qca_wlan_vendor_link_state_op_types { 15881 QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0, 15882 QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1, 15883 }; 15884 15885 /** 15886 * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO 15887 * links state control modes. This enum is used by 15888 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute. 15889 * 15890 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled 15891 * by the driver. 15892 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by 15893 * user space. 15894 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the 15895 * desired number of MLO links to operate in active state at any given time. 15896 * The driver will choose which MLO links should operate in the active state. 15897 * See enum qca_wlan_vendor_link_state for active state definition. 15898 */ 15899 enum qca_wlan_vendor_link_state_control_modes { 15900 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0, 15901 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1, 15902 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2, 15903 }; 15904 15905 /** 15906 * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO 15907 * links state operation modes. This enum is used by 15908 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute. 15909 * 15910 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation 15911 * mode, the driver selects the operating mode of the links, without any 15912 * guidance from the user space. 15913 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency 15914 * operation mode the driver should select MLO links that will achieve low 15915 * latency. 15916 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high 15917 * throughput operation mode the driver should select MLO links that will 15918 * achieve higher throughput. 15919 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power 15920 * operation mode the driver should select MLO links that will achieve low 15921 * power. 15922 */ 15923 enum qca_wlan_vendor_link_state_operation_modes { 15924 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0, 15925 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1, 15926 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2, 15927 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3, 15928 }; 15929 15930 /** 15931 * enum qca_wlan_vendor_link_state - Represents the possible link states of an 15932 * MLO link. 15933 * 15934 * @QCA_WLAN_VENDOR_LINK_STATE_INACTIVE: In this state, the link will not 15935 * be used for data transmission but it can have TIDs mapped to it. It will be 15936 * in doze state always and does not monitor the beacons. 15937 * @QCA_WLAN_VENDOR_LINK_STATE_ACTIVE: In this state, the link will be 15938 * used for data TX/RX and monitors the beacons to check TIM bit indication. 15939 * It may enter doze state and comes out based on the transmit data traffic and 15940 * TIM bit indication in the beacon. 15941 */ 15942 enum qca_wlan_vendor_link_state { 15943 QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0, 15944 QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1, 15945 }; 15946 15947 /** 15948 * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used 15949 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG. 15950 * 15951 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the 15952 * MLO link. 15953 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See 15954 * enum qca_wlan_vendor_link_state for possible MLO link states. 15955 */ 15956 15957 enum qca_wlan_vendor_attr_link_state_config { 15958 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0, 15959 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1, 15960 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2, 15961 15962 /* Keep last */ 15963 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST, 15964 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX = 15965 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1, 15966 }; 15967 15968 /** 15969 * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by 15970 * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command. 15971 * 15972 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type 15973 * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for. 15974 * Required only in a command. Possible values for this attribute are defined in 15975 * enum qca_wlan_vendor_link_state_op_types. 15976 * 15977 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO 15978 * links control mode type. Optional attribute in a command when 15979 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 15980 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when 15981 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 15982 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 15983 * See enum qca_wlan_vendor_link_state_control_modes for possible control modes. 15984 * 15985 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes. 15986 * Indicates the state of the each MLO link affiliated with the interface. 15987 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE 15988 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and 15989 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to 15990 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a 15991 * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 15992 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 15993 * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes. 15994 * 15995 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute. 15996 * Represents the number of active state links. See enum 15997 * qca_wlan_vendor_link_state for active state definition. 15998 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE 15999 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and 16000 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to 16001 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED. 16002 * 16003 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO 16004 * links operation mode type. Optional attribute in a command when 16005 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16006 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when 16007 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16008 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 16009 * See enum qca_wlan_vendor_link_state_operation_modes for possible operation 16010 * modes. 16011 */ 16012 enum qca_wlan_vendor_attr_mlo_link_state { 16013 QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0, 16014 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1, 16015 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2, 16016 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3, 16017 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4, 16018 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5, 16019 16020 /* keep last */ 16021 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST, 16022 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX = 16023 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1, 16024 }; 16025 #endif 16026