1 /* 2 * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved. 3 * Copyright (c) 2021-2024 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: This command is used to enable TDLS 95 * capability or to form a session with the specified peer. 96 * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this 97 * indicates to enable TDLS capability on the interface. 98 * If %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is nested in 99 * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to 100 * form a TDLS session with the specified peer MAC address. 101 * The attributes used with this command are defined in 102 * enum qca_wlan_vendor_attr_tdls_enable. 103 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: This command is used to disable TDLS 104 * capability or to terminate the session with the specified peer. 105 * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this 106 * indicates to disable TDLS capability on the interface. 107 * If %QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR is nested in 108 * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to 109 * terminate TDLS session with the specified peer MAC address. 110 * The attributes used with this command are defined in 111 * enum qca_wlan_vendor_attr_tdls_disable. 112 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: This command is to get the TDLS 113 * status at the interface level or with the specific peer. 114 * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this 115 * indicates the TDLS status query is at interface level. 116 * If %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR is nested in 117 * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to 118 * get TDLS session status with the specified peer MAC address. 119 * The attributes used with this command are defined in 120 * enum qca_wlan_vendor_attr_tdls_get_status. 121 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: This event is to indicate the result 122 * of the TDLS session request with the peer sent by userspace in 123 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE. 124 * The attributes used with this command are defined in 125 * enum qca_wlan_vendor_attr_tdls_state. 126 * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features 127 * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui 128 * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag 129 * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix 130 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys 131 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the 132 * roaming and auth information. 133 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule 134 * 135 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to 136 * invoke the ACS function in device and pass selected channels to 137 * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes. 138 * 139 * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the 140 * driver. 141 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver 142 * started CAC on DFS channel 143 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver 144 * completed the CAC check on DFS channel 145 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC 146 * check was aborted by the driver 147 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the 148 * driver completed NOP 149 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the 150 * driver detected radar signal on the current operating channel 151 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information 152 * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: This command is used to 153 * configure various wiphy or interface level configurations. Attributes 154 * are defined in enum qca_wlan_vendor_attr_config. Userspace can send one 155 * or more configuration attributes with a single command. The driver 156 * accepts the command only if all the configurations are known, otherwise 157 * it rejects the command. The driver returns success only if processing of 158 * all the configurations succeeds. The driver continues to process all the 159 * configurations even if processing of some configurations failed and 160 * returns the last error occurred while processing the failed 161 * configurations. 162 * 163 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: This command is used to 164 * get the current values of the various wiphy or interface level 165 * configurations. Attributes are defined in enum 166 * qca_wlan_vendor_attr_config. Userspace needs to specify the 167 * configuration attributes for which it wants to get the values in the 168 * command, there is no significance for the value sent in the attribute 169 * unless explicitly specified in the corresponding configuration 170 * attribute documentation. The driver accepts the command only if all the 171 * configurations are known, otherwise it rejects the command. The driver 172 * returns success only if fetching of all configuration values succeeds 173 * and indicates the configuration values in corresponding attributes in 174 * the response. The driver continues to process all the configurations 175 * even if processing of some configurations failed and returns the last 176 * error occurred while processing the failed configurations. 177 * 178 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger 179 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request 180 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set 181 * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam 182 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist 183 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST: 184 * extscan reset ssid hotlist 185 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found 186 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost 187 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list 188 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list 189 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST: 190 * reset passpoint list 191 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found 192 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND: 193 * passpoint network found 194 * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config 195 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config 196 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features 197 * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties 198 * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters 199 * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel 200 list 201 * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint 202 * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band 203 * to the host driver. This command sets the band through either 204 * the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or 205 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE 206 * refers enum qca_set_band as unsigned integer values and 207 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask 208 * values. Also, the acceptable values for 209 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further 210 * values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The 211 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the 212 * recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the 213 * implementations configure using both the attributes, the configurations 214 * through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the 215 * precedence. 216 * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command 217 * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete 218 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan 219 * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test 220 * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage 221 * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB 222 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration 223 * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command 224 * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration 225 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to 226 * start the P2P Listen Offload function in device and pass the listen 227 * channel, period, interval, count, number of device types, device 228 * types and vendor information elements to device driver and firmware. 229 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to 230 * indicate stop request/response of the P2P Listen Offload function in 231 * device. As an event, it indicates either the feature stopped after it 232 * was already running or feature has actually failed to start. 233 * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information 234 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts 235 * beaconing, this sub command provides the driver, the frequencies on the 236 * 5 GHz to check for any radar activity. Driver selects one channel from 237 * this priority list provided through 238 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts 239 * to check for radar activity on it. If no radar activity is detected 240 * during the channel availability check period, driver internally switches 241 * to the selected frequency of operation. If the frequency is zero, driver 242 * internally selects a channel. The status of this conditional switch is 243 * indicated through an event using the same sub command through 244 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are 245 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch 246 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config 247 * indication period and threshold for MAC layer counters. 248 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior 249 * in the host driver. The different TDLS configurations are defined 250 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration. 251 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities 252 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate 253 * (SAR) power limits. A critical regulation for FCC compliance, OEMs 254 * require methods to set SAR limits on TX power of WLAN/WWAN. 255 * enum qca_vendor_attr_sar_limits attributes are used with this command. 256 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set 257 * configuration of vendor ACS. 258 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the 259 * requisite information leading to a power save failure. The information 260 * carried as part of this event is represented by the 261 * enum qca_attr_chip_power_save_failure attributes. 262 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics 263 * collection. Uses attributes defined in enum qca_attr_nud_stats_set. 264 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These 265 * statistics are represented by the enum qca_attr_nud_stats_get 266 * attributes. 267 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch 268 * the BSS transition status, whether accept or reject, for a list of 269 * candidate BSSIDs provided by the userspace. This uses the vendor 270 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and 271 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify 272 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an 273 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in 274 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response 275 * the driver shall specify array of 276 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and 277 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in 278 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. 279 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a 280 * specific QCA module. The trace levels are represented by 281 * enum qca_attr_trace_level attributes. 282 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement 283 * Protocol antenna limit in different modes. See enum 284 * qca_wlan_vendor_attr_brp_ant_limit_mode. 285 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan 286 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan. 287 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) 288 * identifying the operation in success case. In failure cases an 289 * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE) 290 * describing the reason for the failure is returned. 291 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses 292 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from 293 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to 294 * be stopped. 295 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the 296 * specific interface. This can be used to modify some of the low level 297 * scan parameters (off channel dwell time, home channel time) in the 298 * driver/firmware. These parameters are maintained within the host 299 * driver. 300 * This command is valid only when the interface is in the connected 301 * state. 302 * These scan parameters shall be reset by the driver/firmware once 303 * disconnected. The attributes used with this command are defined in 304 * enum qca_wlan_vendor_attr_active_tos. 305 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the 306 * driver has detected an internal failure. This event carries the 307 * information indicating the reason that triggered this detection. The 308 * attributes for this command are defined in 309 * enum qca_wlan_vendor_attr_hang. 310 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values 311 * of spectral parameters used. The spectral scan parameters are specified 312 * by enum qca_wlan_vendor_attr_spectral_scan. 313 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats 314 * for spectral scan functionality. The debug stats are specified by 315 * enum qca_wlan_vendor_attr_spectral_diag_stats. 316 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral 317 * scan system capabilities. The capabilities are specified 318 * by enum qca_wlan_vendor_attr_spectral_cap. 319 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current 320 * status of spectral scan. The status values are specified 321 * by enum qca_wlan_vendor_attr_spectral_scan_status. 322 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush 323 * peer pending packets. Specify the peer MAC address in 324 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets 325 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed 326 * in enum qca_wlan_vendor_attr_flush_pending. 327 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative 328 * RF Operating Parameter (RROP) information. The attributes for this 329 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is 330 * intended for use by external Auto Channel Selection applications. 331 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate 332 * (SAR) power limits. This is a companion to the command 333 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the 334 * settings currently in use. The attributes returned by this command are 335 * defined by enum qca_vendor_attr_sar_limits. 336 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of 337 * the WLAN hardware MAC's associated with each WLAN netdev interface. 338 * This works both as a query (user space asks the current mode) or event 339 * interface (driver advertizing the current mode to the user space). 340 * Driver does not trigger this event for temporary hardware mode changes. 341 * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion, 342 * channel change etc ) are updated with this event. Attributes for this 343 * interface are defined in enum qca_wlan_vendor_attr_mac. 344 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold 345 * per peer per TID. Attributes for this command are define in 346 * enum qca_wlan_set_qdepth_thresh_attr 347 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action 348 * guide for WLAN driver. Request to suspend of driver and FW if the 349 * temperature is higher than the suspend threshold; resume action is 350 * requested to driver if the temperature is lower than the resume 351 * threshold. In user poll mode, request temperature data by user. For test 352 * purpose, getting thermal shutdown configuration parameters is needed. 353 * Attributes for this interface are defined in 354 * enum qca_wlan_vendor_attr_thermal_cmd. 355 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from 356 * driver. Thermal temperature and indication of resume completion are 357 * reported as thermal events. The attributes for this command are defined 358 * in enum qca_wlan_vendor_attr_thermal_event. 359 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi 360 * test configuration. Attributes for this command are defined in 361 * enum qca_wlan_vendor_attr_wifi_test_config. 362 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor 363 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN, 364 * carried a payload which was a binary blob of data. The command was not 365 * extendable to send more information. The newer version carries the 366 * legacy blob encapsulated within an attribute and can be extended with 367 * additional vendor attributes that can enhance the NAN command 368 * interface. 369 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to 370 * configure parameters per peer to capture Channel Frequency Response 371 * (CFR) and enable Periodic CFR capture. The attributes for this command 372 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command 373 * can also be used to send CFR data from the driver to userspace when 374 * netlink events are used to send CFR data. 375 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state. 376 * The returned firmware state is specified in the attribute 377 * QCA_WLAN_VENDOR_ATTR_FW_STATE. 378 * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand 379 * is used by host driver to flush per-peer cached statistics to user space 380 * application. This interface is used as an event from host driver to 381 * user space application. Attributes for this event are specified in 382 * enum qca_wlan_vendor_attr_peer_stats_cache_params. 383 * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be 384 * sent as event from host driver. 385 * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to 386 * improve the success rate of Zigbee joining network. 387 * Due to PTA master limitation, zigbee joining network success rate is 388 * low while wlan is working. Wlan host driver need to configure some 389 * parameters including Zigbee state and specific WLAN periods to enhance 390 * PTA master. All this parameters are delivered by the NetLink attributes 391 * defined in "enum qca_mpta_helper_vendor_attr". 392 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to 393 * implement Beacon frame reporting feature. 394 * 395 * Userspace can request the driver/firmware to periodically report 396 * received Beacon frames whose BSSID is same as the current connected 397 * BSS's MAC address. 398 * 399 * In case the STA seamlessly (without sending disconnect indication to 400 * userspace) roams to a different BSS, Beacon frame reporting will be 401 * automatically enabled for the Beacon frames whose BSSID is same as the 402 * MAC address of the new BSS. Beacon reporting will be stopped when the 403 * STA is disconnected (when the disconnect indication is sent to 404 * userspace) and need to be explicitly enabled by userspace for next 405 * connection. 406 * 407 * When a Beacon frame matching configured conditions is received, and if 408 * userspace has requested to send asynchronous beacon reports, the 409 * driver/firmware will encapsulate the details of the Beacon frame in an 410 * event and send it to userspace along with updating the BSS information 411 * in cfg80211 scan cache, otherwise driver will only update the cfg80211 412 * scan cache with the information from the received Beacon frame but 413 * will not send any active report to userspace. 414 * 415 * The userspace can request the driver/firmware to stop reporting Beacon 416 * frames. If the driver/firmware is not able to receive Beacon frames 417 * due to other Wi-Fi operations such as off-channel activities, etc., 418 * the driver/firmware will send a pause event to userspace and stop 419 * reporting Beacon frames. Whether the beacon reporting will be 420 * automatically resumed or not by the driver/firmware later will be 421 * reported to userspace using the 422 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon 423 * reporting shall be resumed for all the cases except either when 424 * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag 425 * in the command which triggered the current beacon reporting or during 426 * any disconnection case as indicated by setting 427 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to 428 * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the 429 * driver. 430 * 431 * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received 432 * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES 433 * flag not set, the next first 434 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver 435 * shall be considered as un-pause event. 436 * 437 * All the attributes used with this command are defined in 438 * enum qca_wlan_vendor_attr_beacon_reporting_params. 439 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have 440 * interop issues with the DUT. This sub command is used to transfer the 441 * ap info between driver and user space. This works both as a command 442 * or event. As a command, it configs the stored list of aps from user 443 * space to firmware; as an event, it indicates the ap info detected by 444 * firmware to user space for persistent storage. The attributes defined 445 * in enum qca_vendor_attr_interop_issues_ap are used to deliver the 446 * parameters. 447 * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data 448 * binary blobs from application/service to firmware. The attributes 449 * defined in enum qca_wlan_vendor_attr_oem_data_params are used to 450 * deliver the parameters. 451 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used 452 * to send/receive avoid frequency data using 453 * enum qca_wlan_vendor_attr_avoid_frequency_ext. 454 * This new command is alternative to existing command 455 * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event 456 * is using stream of bytes instead of structured data using vendor 457 * attributes. User space sends unsafe frequency ranges to the driver using 458 * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On 459 * reception of this command, the driver shall check if an interface is 460 * operating on an unsafe frequency and the driver shall try to move to a 461 * safe channel when needed. If the driver is not able to find a safe 462 * channel the interface can keep operating on an unsafe channel with the 463 * TX power limit derived based on internal configurations like 464 * regulatory/SAR rules. 465 * 466 * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to 467 * add the STA node details in driver/firmware. Attributes for this event 468 * are specified in enum qca_wlan_vendor_attr_add_sta_node_params. 469 * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT 470 * coex chain mode from application/service. 471 * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used 472 * to deliver the parameters. 473 * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to 474 * get information of a station from driver to userspace. This command can 475 * be used in both STA and AP modes. For STA mode, it provides information 476 * of the current association when in connected state or the last 477 * association when in disconnected state. For AP mode, only information 478 * of the currently connected stations is available. This command uses 479 * attributes defined in enum qca_wlan_vendor_attr_get_sta_info. 480 * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event. 481 * Host drivers can request the user space entity to set the SAR power 482 * limits with this event. Accordingly, the user space entity is expected 483 * to set the SAR power limits. Host drivers can retry this event to the 484 * user space for the SAR power limits configuration from user space. If 485 * the driver does not get the SAR power limits from user space for all 486 * the retried attempts, it can configure a default SAR power limit. 487 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and 488 * is used to update the information about the station from the driver to 489 * userspace. Uses attributes from enum 490 * qca_wlan_vendor_attr_update_sta_info. 491 * 492 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event. 493 * The host driver initiates the disconnection for scenarios such as beacon 494 * miss, NUD failure, peer kick out, etc. The disconnection indication 495 * through cfg80211_disconnected() expects the reason codes from enum 496 * ieee80211_reasoncode which does not signify these various reasons why 497 * the driver has triggered the disconnection. This event will be used to 498 * send the driver specific reason codes by the host driver to userspace. 499 * Host drivers should trigger this event and pass the respective reason 500 * code immediately prior to triggering cfg80211_disconnected(). The 501 * attributes used with this event are defined in enum 502 * qca_wlan_vendor_attr_driver_disconnect_reason. 503 * 504 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to 505 * add/delete TSPEC for each AC. One command is for one specific AC only. 506 * This command can only be used in STA mode and the STA must be 507 * associated with an AP when the command is issued. Uses attributes 508 * defined in enum qca_wlan_vendor_attr_config_tspec. 509 * 510 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT. 511 * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt. 512 * 513 * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from 514 * the host driver. The band configurations obtained are referred through 515 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. 516 * 517 * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium 518 * assessment. 519 * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess. 520 * 521 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is 522 * used to update SSID information in hostapd when it is updated in the 523 * driver. Uses the attribute NL80211_ATTR_SSID. 524 * 525 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by 526 * the driver to send opaque data from the firmware to userspace. The 527 * driver sends an event to userspace whenever such data is received from 528 * the firmware. 529 * 530 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to 531 * send this opaque data for this event. 532 * 533 * The format of the opaque data is specific to the particular firmware 534 * version and there is no guarantee of the format remaining same. 535 * 536 * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event. 537 * The host driver selects Tx VDEV, and notifies user. The attributes 538 * used with this event are defined in enum 539 * qca_wlan_vendor_attr_mbssid_tx_vdev_status. 540 * This event contains Tx VDEV group information contains other VDEVs 541 * interface index and status information. 542 * 543 * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to 544 * configure the concurrent session policies when multiple interfaces 545 * are (getting) active. The attributes used by this command are defined 546 * in enum qca_wlan_vendor_attr_concurrent_policy. 547 * 548 * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command 549 * to query usable channels for different interface types such as STA, 550 * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable 551 * channels in the response based on country code, different static 552 * configurations, concurrency combinations, etc. The attributes used 553 * with this command are defined in 554 * enum qca_wlan_vendor_attr_usable_channels. 555 * 556 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used 557 * to get DFS radar history from the driver to userspace. The driver 558 * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an 559 * array of nested entries. 560 * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to 561 * enable/disable mDNS offload to the firmware. The attributes used with 562 * this command are defined in enum qca_wlan_vendor_attr_mdns_offload. 563 * 564 * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send 565 * important debug events that are required for various issues. The 566 * attributes used with this command are defined in 567 * enum qca_wlan_vendor_attr_diag. 568 * This command is defined for temporary usage until this interface is 569 * moved to the existing diag infra with cnss diag events. This command 570 * will be deprecated soon and it is not recommended to do any further 571 * enhancements to this command. 572 * 573 * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used 574 * to set packet monitor mode that aims to send the specified set of TX and 575 * RX frames on the current client interface to an active monitor interface. 576 * If this Monitor mode is set, the driver will send the configured frames, 577 * from the interface on which the command is issued, to an active monitor 578 * interface. The attributes used with this command are defined in 579 * enum qca_wlan_vendor_attr_set_monitor_mode. 580 * 581 * Though the monitor mode is configured for the respective data/mgmt/ctrl 582 * frames, it is up to the respective WLAN driver/firmware/hardware designs 583 * to consider the possibility of sending these frames over the monitor 584 * interface. For example, the control frames are handled with in the 585 * hardware and thus passing such frames over the monitor interface is left 586 * to the respective designs. 587 * 588 * Also, this monitor mode is governed to behave accordingly in 589 * suspend/resume states. If the firmware handles any of such frames 590 * in suspend state without waking up the host and if the monitor mode 591 * is configured to notify all such frames, then the firmware is expected 592 * to resume the host and forward the respective frames to the monitor 593 * interface. Please note that such a request to get the frames over the 594 * monitor interface will have a definite power implications. 595 * 596 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both 597 * as a request to set the driver/firmware with the parameters to trigger 598 * the roaming events, and also used by the driver/firmware to pass on the 599 * various roam events to userspace. 600 * Applicable only for the STA mode. The attributes used with this command 601 * are defined in enum qca_wlan_vendor_attr_roam_events. 602 * 603 * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the 604 * rate mask config for a list of phy types. Userspace shall provide 605 * an array of the vendor attributes defined in 606 * enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS. 607 * 608 * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs 609 * when two interfaces are active on the same band, using two different 610 * home channels, and only supported by a single radio. In this scenario 611 * the device must split the use of the radio between the two interfaces. 612 * The percentage of time allocated to a given interface is the quota. 613 * Depending on the configuration, the quota can either be fixed or 614 * dynamic. 615 * 616 * When used as an event, the device will report the quota type, and for 617 * all interfaces operating in MCC it will report the current quota. 618 * When used as a command, the device can be configured for a specific 619 * quota type, and in the case of a fixed quota, the quota to apply to one 620 * of the interfaces. 621 * 622 * Applications can use the event to do TX bitrate control based on the 623 * information, and can use the command to explicitly set the quota to 624 * enhance performance in specific scenarios. 625 * 626 * The attributes used with this command are defined in 627 * enum qca_wlan_vendor_attr_mcc_quota. 628 * 629 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the 630 * user space that the driver is ready for operations again after 631 * recovering from internal failures. This occurs following a failure 632 * that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG. 633 * 634 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to 635 * get the WLAN radio combinations matrix supported by the device which 636 * provides the device simultaneous radio configurations such as 637 * standalone, dual band simultaneous, and single band simultaneous. 638 * 639 * The attributes used with this command are defined in 640 * enum qca_wlan_vendor_attr_radio_combination_matrix. 641 * 642 * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation 643 * security negotiation and key generation to user space. 644 * 645 * When used as an event, the driver requests userspace to trigger the PASN 646 * authentication or dropping of a PTKSA for the indicated peer devices. 647 * When used as a command response, userspace indicates a consolidated 648 * status report for all the peers that were requested for. 649 * 650 * The attributes used with this command are defined in 651 * enum qca_wlan_vendor_attr_pasn. 652 * 653 * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set 654 * secure ranging context such as TK and LTF keyseed for each peer 655 * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event. 656 * 657 * The attributes used with this command are defined in 658 * enum qca_wlan_vendor_attr_secure_ranging_ctx. 659 * 660 * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to 661 * enable/disable offload processing in firmware during system/runtime 662 * suspend for CoAP messages (see RFC7252: The Constrained Application 663 * Protocol) and fetch information of the CoAP messages cached during 664 * offload processing. 665 * 666 * The attributes used with this command are defined in 667 * enum qca_wlan_vendor_attr_coap_offload. 668 * 669 * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure 670 * (add, remove, or change) a Stream Classification Service (SCS) rule. 671 * 672 * The attributes used with this event are defined in 673 * enum qca_wlan_vendor_attr_scs_rule_config. 674 * 675 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities 676 * supported by the WLAN firmware. 677 * 678 * The attributes used with this command are defined in 679 * enum qca_wlan_vendor_attr_sar_capability. 680 * 681 * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse 682 * (SR) feature. This command is used by userspace to configure SR 683 * parameters to the driver and to get the SR related parameters and 684 * statistics with synchronous responses from the driver. 685 * The driver also uses this command to send asynchronous events to 686 * userspace to indicate suspend/resume of SR feature and changes 687 * in SR parameters. 688 * 689 * The attributes used with this command are defined in 690 * enum qca_wlan_vendor_attr_sr. 691 * 692 * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to 693 * notify application layer about the primary netdev of an MLO connection. 694 * In some implementations, MLO has multiple netdevs out of which one 695 * netdev is designated as primary to provide a unified interface to the 696 * bridge. In those implementations this event is sent on every MLO peer 697 * connection. User applications on an AP MLD will use this event to get 698 * info for all the links from non-AP MLD that were negotiated to be used 699 * for the ML association. 700 * 701 * The attributes used with this event are defined in 702 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event. 703 * 704 * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the 705 * driver to notify different AFC events to userspace. The attributes used 706 * with this command are defined in enum qca_wlan_vendor_attr_afc_event. 707 * 708 * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by 709 * userspace to deliver AFC response data to driver. The attributes used 710 * with this command are defined in enum qca_wlan_vendor_attr_afc_response. 711 * 712 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to 713 * operate in doze mode. 714 * 715 * Userspace uses this command to configure the AP interface to enter or 716 * exit from doze mode. The driver sends this event after it enters or 717 * exits the doze mode with the updated AP doze mode settings. 718 * 719 * The attributes used with this subcommand are defined in 720 * enum qca_wlan_vendor_attr_dozed_ap. 721 * 722 * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used 723 * to get the status of local packet capture of monitor mode. The monitor 724 * mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE 725 * subcommand. 726 * 727 * The attributes used with this command are defined in enum 728 * qca_wlan_vendor_attr_get_monitor_mode. 729 * 730 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to 731 * get roam information from the driver to user space. It provides the 732 * latest several instances of roam information cached in the driver. 733 * The command is only used for STA mode. The attributes used with this 734 * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats. 735 * 736 * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to 737 * configure and fetch the state information of the MLO links affiliated 738 * with the STA interface. The attributes used with this command are 739 * defined in enum qca_wlan_vendor_attr_mlo_link_state. 740 * 741 * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this 742 * vendor subcommand to trigger channel utilization measurement on entire 743 * channel width of the connected channel(s). For MLO connection, connected 744 * channel utilization measurement shall be done on all the MLO links. 745 * The driver may use regular scan or wideband energy detection feature 746 * based on the hardware capability for connected channel(s) utilization 747 * measurement. The driver indicates the connected channel(s) utilization 748 * measurement completion as an asynchronous event with this command ID to 749 * userspace. Upon receiving this event, userspace can use 750 * %NL80211_CMD_GET_INTERFACE to determine the channel width of the current 751 * connected channel(s) and can derive the channel utilization percentage 752 * (CU) of each 20 MHz sub-channel of the entire connected channel using 753 * %NL80211_CMD_GET_SURVEY response. 754 * CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME. 755 * This command is only used for STA mode. 756 * 757 * @QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP: This vendor subcommand is 758 * used as an event to notify the userspace of TID-to-link map changes 759 * negotiated by the driver or updated by associated AP MLD with Beacon, 760 * Probe Response, or Action frames. The attributes used with this command 761 * are defined in enum qca_wlan_vendor_attr_tid_to_link_map. 762 * 763 * Note that the attribute 764 * %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to 765 * the current connected AP MLD address. 766 * 767 * @QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG: Notify userspace about the removal 768 * of STA MLD setup links due to AP MLD removing the corresponding 769 * affiliated APs with Multi-Link reconfiguration. If all the STA MLD setup 770 * links are removed during Multi-Link reconfiguration, the driver shall 771 * use %NL80211_CMD_DISCONNECT instead of this command since it is a 772 * connection drop. The attributes used with this command are defined in 773 * enum qca_wlan_vendor_attr_link_reconfig. 774 * Note that the attribute 775 * %QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR may not correspond to 776 * the current connected AP MLD address. 777 * 778 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT: Vendor command to configure 779 * the driver with MLO link id information on which to transmit the TDLS 780 * discovery response frame on the configured MLO BSS link when the 781 * local station is connected in MLO mode. This command is sent to the 782 * driver prior to the TDLS discovery response management transmit 783 * operation and is followed immediately by the TDLS discovery response 784 * management frame transmit command. 785 * 786 * The driver saves the configured MLO link id information and uses it for 787 * the following TDLS discovery response frame transmission on the 788 * configured MLO BSS link and the link id information is cleared in the 789 * driver after the TDLS discovery response frame is successfully 790 * transmitted. This behavior is independent of the TDLS peer STA connection 791 * mode (MLO or non-MLO). 792 * 793 * Uses the attributes defined in 794 * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext. 795 * 796 * @QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH: This vendor subcommand is 797 * used to configure and indicate the audio transport switch in both 798 * command and event paths. This is used when two or more audio transports 799 * (ex: WLAN and bluetooth) are available between peers. 800 * 801 * If the driver needs to perform operations like scan, connection, 802 * roaming, RoC etc. and AP concurrency policy is set to either 803 * QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO or 804 * QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING, the driver sends 805 * audio transport switch event to userspace. Userspace application upon 806 * receiving the event, can try to switch to requested audio transport. 807 * The userspace uses this command to send the status of transport 808 * switching (either confirm or reject) to the driver using this 809 * subcommand. The driver continues with the pending operation either upon 810 * receiving the command from userspace or after waiting for timeout since 811 * sending the event to userspace. The driver can request userspace to 812 * switch to WLAN upon availability of WLAN audio transport once after the 813 * concurrent operations are completed. 814 * 815 * Userspace can also request audio transport switch from non-WLAN to WLAN 816 * using this subcommand to the driver. The driver can accept or reject 817 * depending on other concurrent operations in progress. The driver returns 818 * success if it can allow audio transport when it receives the command or 819 * appropriate kernel error code otherwise. Userspace indicates the audio 820 * transport switch from WLAN to non-WLAN using this subcommand and the 821 * driver can do other concurrent operations without needing to send any 822 * event to userspace. This subcommand is used by userspace only when the 823 * driver advertises support for 824 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN. 825 * 826 * The attributes used with this command are defined in enum 827 * qca_wlan_vendor_attr_audio_transport_switch. 828 * 829 * @QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY: This vendor subcommand is used to 830 * configure, retrieve, and report per-link transmit latency statistics. 831 * 832 * The attributes used with this subcommand are defined in 833 * enum qca_wlan_vendor_attr_tx_latency. 834 * 835 * @QCA_NL80211_VENDOR_SUBCMD_RECONFIG_REMOVE_COMPLETE_EVENT: This vendor 836 * subcommand is used to send event to the user space once the MLD remove 837 * link process is completed in the API mlme_ext_vap_down and the event 838 * is sent through wlan_cfg80211_reconfig_remove_complete_event. 839 * 840 * @QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO: Vendor command is used to 841 * query transmit power information on STA interface from the driver for a 842 * connected AP. The attributes included in response are defined in 843 * enum qca_wlan_vendor_attr_tpc_links. In case of MLO STA, multiple links 844 * TPC info may be returned. The information includes regulatory maximum 845 * transmit power limit, AP local power constraint advertised from AP's 846 * Beacon and Probe Response frames. For PSD power mode, the information 847 * includes PSD power levels for each subchannel of operating bandwidth. 848 * The information is driver calculated power limits based on the current 849 * regulatory domain, AP local power constraint, and other IEs. The 850 * information will be set to target. Target will decide the final TX power 851 * based on this and chip specific power conformance test limits (CTL), and 852 * SAR limits. 853 * 854 * @QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT: Event indication from the 855 * driver to user space which is carrying firmware page fault related 856 * summary report. The attributes for this command are defined in 857 * enum qca_wlan_vendor_attr_fw_page_fault_report. 858 */ 859 860 enum qca_nl80211_vendor_subcmds { 861 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, 862 QCA_NL80211_VENDOR_SUBCMD_TEST = 1, 863 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9, 864 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10, 865 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11, 866 QCA_NL80211_VENDOR_SUBCMD_NAN = 12, 867 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13, 868 869 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14, 870 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15, 871 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16, 872 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17, 873 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18, 874 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19, 875 876 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20, 877 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21, 878 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22, 879 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23, 880 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24, 881 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25, 882 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26, 883 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27, 884 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28, 885 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29, 886 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30, 887 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31, 888 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32, 889 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33, 890 891 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34, 892 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35, 893 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36, 894 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37, 895 896 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38, 897 898 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39, 899 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40, 900 901 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41, 902 903 /* Get Concurrency Matrix */ 904 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42, 905 906 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50, 907 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51, 908 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52, 909 910 /* Deprecated */ 911 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53, 912 913 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54, 914 915 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55, 916 917 /* Off loaded DFS events */ 918 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56, 919 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57, 920 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58, 921 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59, 922 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60, 923 924 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61, 925 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62, 926 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63, 927 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64, 928 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65, 929 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66, 930 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67, 931 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68, 932 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69, 933 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70, 934 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71, 935 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72, 936 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73, 937 938 /* Wi-Fi Configuration subcommands */ 939 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74, 940 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75, 941 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76, 942 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77, 943 944 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78, 945 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79, 946 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80, 947 QCA_NL80211_VENDOR_SUBCMD_NDP = 81, 948 949 /* NS Offload enable/disable cmd */ 950 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82, 951 952 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83, 953 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84, 954 955 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85, 956 957 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91, 958 /* OCB commands */ 959 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92, 960 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93, 961 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94, 962 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95, 963 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96, 964 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97, 965 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98, 966 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99, 967 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100, 968 969 /* subcommand to get link properties */ 970 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101, 971 /* LFR Subnet Detection */ 972 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102, 973 974 /* DBS subcommands */ 975 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103, 976 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104, 977 978 /* Vendor setband command */ 979 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105, 980 981 /* Vendor scan commands */ 982 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106, 983 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107, 984 985 /* OTA test subcommand */ 986 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108, 987 /* Tx power scaling subcommands */ 988 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109, 989 /* Tx power scaling in db subcommands */ 990 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115, 991 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116, 992 QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117, 993 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118, 994 QCA_NL80211_VENDOR_SUBCMD_TSF = 119, 995 QCA_NL80211_VENDOR_SUBCMD_WISA = 120, 996 QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121, 997 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122, 998 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123, 999 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124, 1000 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125, 1001 1002 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126, 1003 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127, 1004 /* FTM/indoor location subcommands */ 1005 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128, 1006 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129, 1007 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130, 1008 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131, 1009 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132, 1010 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133, 1011 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134, 1012 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135, 1013 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136, 1014 1015 /* Encrypt/Decrypt command */ 1016 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137, 1017 1018 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138, 1019 /* DMG low level RF sector operations */ 1020 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139, 1021 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140, 1022 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141, 1023 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142, 1024 1025 /* Configure the TDLS mode from user space */ 1026 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143, 1027 1028 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144, 1029 1030 /* Vendor abort scan command */ 1031 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145, 1032 1033 /* Set Specific Absorption Rate(SAR) Power Limits */ 1034 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146, 1035 1036 /* External Auto channel configuration setting */ 1037 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147, 1038 1039 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148, 1040 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149, 1041 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150, 1042 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151, 1043 1044 /* Set the trace level for QDF */ 1045 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152, 1046 1047 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153, 1048 1049 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154, 1050 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155, 1051 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156, 1052 QCA_NL80211_VENDOR_SUBCMD_HANG = 157, 1053 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158, 1054 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159, 1055 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160, 1056 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161, 1057 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162, 1058 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163, 1059 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164, 1060 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165, 1061 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166, 1062 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167, 1063 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168, 1064 /* Wi-Fi test configuration subcommand */ 1065 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169, 1066 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171, 1067 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173, 1068 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174, 1069 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175, 1070 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177, 1071 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178, 1072 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179, 1073 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180, 1074 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181, 1075 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182, 1076 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183, 1077 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184, 1078 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185, 1079 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186, 1080 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187, 1081 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188, 1082 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189, 1083 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190, 1084 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191, 1085 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192, 1086 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193, 1087 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194, 1088 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195, 1089 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196, 1090 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197, 1091 QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198, 1092 QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199, 1093 QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200, 1094 QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201, 1095 QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202, 1096 QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203, 1097 QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204, 1098 QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205, 1099 /* 206..212 - reserved for QCA */ 1100 QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213, 1101 QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214, 1102 QCA_NL80211_VENDOR_SUBCMD_PASN = 215, 1103 QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216, 1104 QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217, 1105 QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218, 1106 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219, 1107 QCA_NL80211_VENDOR_SUBCMD_SR = 220, 1108 QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221, 1109 QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222, 1110 QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223, 1111 QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224, 1112 QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225, 1113 QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226, 1114 QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227, 1115 QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228, 1116 QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229, 1117 QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230, 1118 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231, 1119 QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH = 232, 1120 QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY = 233, 1121 QCA_NL80211_VENDOR_SUBCMD_RECONFIG_REMOVE_COMPLETE_EVENT = 234, 1122 QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO = 237, 1123 QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT = 238, 1124 }; 1125 1126 enum qca_wlan_vendor_tos { 1127 QCA_WLAN_VENDOR_TOS_BK = 0, 1128 QCA_WLAN_VENDOR_TOS_BE = 1, 1129 QCA_WLAN_VENDOR_TOS_VI = 2, 1130 QCA_WLAN_VENDOR_TOS_VO = 3, 1131 }; 1132 1133 /** 1134 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command 1135 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS. 1136 */ 1137 enum qca_wlan_vendor_attr_active_tos { 1138 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0, 1139 /* Type Of Service - Represented by qca_wlan_vendor_tos */ 1140 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1, 1141 /* Flag attribute representing the start (attribute included) or stop 1142 * (attribute not included) of the respective TOS. 1143 */ 1144 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2, 1145 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3, 1146 }; 1147 1148 enum qca_wlan_vendor_hang_reason { 1149 /* Unspecified reason */ 1150 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0, 1151 /* No Map for the MAC entry for the received frame */ 1152 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1, 1153 /* peer deletion timeout happened */ 1154 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2, 1155 /* peer unmap timeout */ 1156 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3, 1157 /* Scan request timed out */ 1158 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4, 1159 /* Consecutive Scan attempt failures */ 1160 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5, 1161 /* Unable to get the message buffer */ 1162 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6, 1163 /* Current command processing is timedout */ 1164 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7, 1165 /* Timeout for an ACK from FW for suspend request */ 1166 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8, 1167 /* Timeout for an ACK from FW for resume request */ 1168 QCA_WLAN_HANG_RESUME_TIMEOUT = 9, 1169 /* Transmission timeout for consecutive data frames */ 1170 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10, 1171 /* Timeout for the TX completion status of data frame */ 1172 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11, 1173 /* DXE failure for tx/Rx, DXE resource unavailability */ 1174 QCA_WLAN_HANG_DXE_FAILURE = 12, 1175 /* WMI pending commands exceed the maximum count */ 1176 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13, 1177 /* Timeout for peer STA connection accept command's response from the 1178 * FW in AP mode. This command is triggered when a STA (peer) connects 1179 * to AP (DUT). 1180 */ 1181 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14, 1182 /* Timeout for the AP connection accept command's response from the FW 1183 * in STA mode. This command is triggered when the STA (DUT) connects 1184 * to an AP (peer). 1185 */ 1186 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15, 1187 /* Timeout waiting for the response to the MAC HW mode change command 1188 * sent to FW as a part of MAC mode switch among DBS (Dual Band 1189 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi 1190 * Channel Concurrency) mode. 1191 */ 1192 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16, 1193 /* Timeout waiting for the response from FW to configure the MAC HW's 1194 * mode. This operation is to configure the single/two MACs in either 1195 * SCC/MCC/DBS mode. 1196 */ 1197 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17, 1198 /* Timeout waiting for response of VDEV start command from the FW */ 1199 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18, 1200 /* Timeout waiting for response of VDEV restart command from the FW */ 1201 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19, 1202 /* Timeout waiting for response of VDEV stop command from the FW */ 1203 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20, 1204 /* Timeout waiting for response of VDEV delete command from the FW */ 1205 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21, 1206 /* Timeout waiting for response of peer all delete request command to 1207 * the FW on a specific VDEV. 1208 */ 1209 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22, 1210 /* WMI sequence mismatch between WMI command and Tx completion */ 1211 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23, 1212 /* Write to Device HAL register failed */ 1213 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24, 1214 /* No credit left to send the wow_wakeup_from_sleep to firmware */ 1215 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25, 1216 /* Bus failure */ 1217 QCA_WLAN_HANG_BUS_FAILURE = 26, 1218 /* tasklet/credit latency found */ 1219 QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27, 1220 /* MSDU buffers received in REO error ring, exceeding certain 1221 * threshold 1222 */ 1223 QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28, 1224 /* Vdev SM is out of sync and connect req received 1225 * when already connected 1226 */ 1227 QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29, 1228 /* Stats request timeout */ 1229 QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30, 1230 /* Leak in TX descriptor for a packet */ 1231 QCA_WLAN_HANG_TX_DESC_LEAK = 31, 1232 /* Scheduler watchdog timeout */ 1233 QCA_WLAN_HANG_SCHED_TIMEOUT = 32, 1234 /* Failed to send self peer deletion cmd to firmware */ 1235 QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33, 1236 /* Received del self sta without del bss */ 1237 QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34, 1238 /* Recovery needed when sending flush completion to userspace */ 1239 QCA_WLAN_HANG_FLUSH_LOGS = 35, 1240 /* Host wakeup because of page fault */ 1241 QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36, 1242 }; 1243 1244 /** 1245 * enum qca_wlan_vendor_attr_fw_page_fault_report - Used by the vendor 1246 * command %QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT. 1247 * 1248 * @QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA: The binary blob data 1249 * associated with the firmware page fault that is expected to contain the 1250 * required dump to analyze frequent page faults. 1251 * NLA_BINARY attribute, the maximum size is QDF_HANG_EVENT_DATA_SIZE 1252 */ 1253 enum qca_wlan_vendor_attr_fw_page_fault_report { 1254 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_INVALID = 0, 1255 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA = 1, 1256 1257 /* keep last */ 1258 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST, 1259 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_MAX = 1260 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST - 1, 1261 }; 1262 1263 /** 1264 * enum qca_wlan_vendor_attr_hang - Used by the vendor command 1265 * QCA_NL80211_VENDOR_SUBCMD_HANG. 1266 */ 1267 enum qca_wlan_vendor_attr_hang { 1268 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0, 1269 /* 1270 * Reason for the Hang - Represented by enum 1271 * qca_wlan_vendor_hang_reason. 1272 */ 1273 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1, 1274 /* The binary blob data associated with the hang reason specified by 1275 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to 1276 * contain the required dump to analyze the reason for the hang. 1277 * NLA_BINARY attribute, the max size is 1024 bytes. 1278 */ 1279 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2, 1280 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST, 1281 QCA_WLAN_VENDOR_ATTR_HANG_MAX = 1282 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1, 1283 }; 1284 1285 /** 1286 * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level 1287 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level 1288 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters 1289 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace 1290 level needs to be updated. 1291 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need 1292 * to be set. 1293 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last. 1294 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute. 1295 */ 1296 enum qca_vendor_attr_set_trace_level { 1297 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0, 1298 /* 1299 * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM 1300 * attributes. 1301 */ 1302 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1, 1303 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2, 1304 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3, 1305 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST, 1306 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX = 1307 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1, 1308 }; 1309 1310 /** 1311 * enum qca_wlan_vendor_attr_get_station - Sub commands used by 1312 * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding 1313 * station information. The information obtained through these 1314 * commands signify the current info in connected state and 1315 * latest cached information during the connected state , if queried 1316 * when in disconnected state. 1317 * 1318 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute 1319 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info 1320 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason 1321 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info 1322 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last 1323 */ 1324 enum qca_wlan_vendor_attr_get_station { 1325 QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0, 1326 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO, 1327 QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON, 1328 QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE, 1329 1330 /* keep last */ 1331 QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST, 1332 QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX = 1333 QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1, 1334 }; 1335 1336 /** 1337 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes 1338 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command. 1339 * 1340 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC. 1341 * Used in STA mode. This attribute represents the list of channel center 1342 * frequencies in MHz (u32) the station has learnt during the last connection 1343 * or roaming attempt. This information shall not signify the channels for 1344 * an explicit scan request from the user space. Host drivers can update this 1345 * information to the user space in both connected and disconnected state. 1346 * In the disconnected state this information shall signify the channels 1347 * scanned in the last connection/roam attempt that lead to the disconnection. 1348 */ 1349 enum qca_wlan_vendor_attr_update_sta_info { 1350 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0, 1351 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1, 1352 1353 /* keep last */ 1354 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST, 1355 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX = 1356 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1, 1357 }; 1358 1359 /** 1360 * enum qca_wlan_802_11_mode - dot11 mode 1361 * @QCA_WLAN_802_11_MODE_11B: mode B 1362 * @QCA_WLAN_802_11_MODE_11G: mode G 1363 * @QCA_WLAN_802_11_MODE_11N: mode N 1364 * @QCA_WLAN_802_11_MODE_11A: mode A 1365 * @QCA_WLAN_802_11_MODE_11AC: mode AC 1366 * @QCA_WLAN_802_11_MODE_11AX: mode AX 1367 * @QCA_WLAN_802_11_MODE_11BE: mode BE 1368 * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode 1369 */ 1370 enum qca_wlan_802_11_mode { 1371 QCA_WLAN_802_11_MODE_11B, 1372 QCA_WLAN_802_11_MODE_11G, 1373 QCA_WLAN_802_11_MODE_11N, 1374 QCA_WLAN_802_11_MODE_11A, 1375 QCA_WLAN_802_11_MODE_11AC, 1376 QCA_WLAN_802_11_MODE_11AX, 1377 QCA_WLAN_802_11_MODE_11BE, 1378 QCA_WLAN_802_11_MODE_INVALID, 1379 }; 1380 1381 /** 1382 * enum qca_wlan_auth_type - Authentication key management type 1383 * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type 1384 * @QCA_WLAN_AUTH_TYPE_OPEN: Open key 1385 * @QCA_WLAN_AUTH_TYPE_SHARED: shared key 1386 * @QCA_WLAN_AUTH_TYPE_WPA: wpa key 1387 * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key 1388 * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key 1389 * @QCA_WLAN_AUTH_TYPE_RSN: rsn key 1390 * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key 1391 * @QCA_WLAN_AUTH_TYPE_FT: ft key 1392 * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key 1393 * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key 1394 * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk 1395 * @QCA_WLAN_AUTH_TYPE_WAI: wai key 1396 * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key 1397 * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key 1398 * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key 1399 * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key 1400 * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm 1401 * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384 1402 * @QCA_WLAN_AUTH_TYPE_SAE: SAE key 1403 * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key 1404 * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key 1405 * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key 1406 * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key 1407 * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key 1408 * @QCA_WLAN_AUTH_TYPE_OWE: owe key 1409 * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key 1410 * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key 1411 */ 1412 enum qca_wlan_auth_type { 1413 QCA_WLAN_AUTH_TYPE_INVALID, 1414 QCA_WLAN_AUTH_TYPE_OPEN, 1415 QCA_WLAN_AUTH_TYPE_SHARED, 1416 QCA_WLAN_AUTH_TYPE_WPA, 1417 QCA_WLAN_AUTH_TYPE_WPA_PSK, 1418 QCA_WLAN_AUTH_TYPE_WPA_NONE, 1419 QCA_WLAN_AUTH_TYPE_RSN, 1420 QCA_WLAN_AUTH_TYPE_RSN_PSK, 1421 QCA_WLAN_AUTH_TYPE_FT, 1422 QCA_WLAN_AUTH_TYPE_FT_PSK, 1423 QCA_WLAN_AUTH_TYPE_SHA256, 1424 QCA_WLAN_AUTH_TYPE_SHA256_PSK, 1425 QCA_WLAN_AUTH_TYPE_WAI, 1426 QCA_WLAN_AUTH_TYPE_WAI_PSK, 1427 QCA_WLAN_AUTH_TYPE_CCKM_WPA, 1428 QCA_WLAN_AUTH_TYPE_CCKM_RSN, 1429 QCA_WLAN_AUTH_TYPE_AUTOSWITCH, 1430 QCA_WLAN_AUTH_TYPE_FT_SAE, 1431 QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384, 1432 QCA_WLAN_AUTH_TYPE_SAE, 1433 QCA_WLAN_AUTH_TYPE_FILS_SHA256, 1434 QCA_WLAN_AUTH_TYPE_FILS_SHA384, 1435 QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256, 1436 QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384, 1437 QCA_WLAN_AUTH_TYPE_DPP_RSN, 1438 QCA_WLAN_AUTH_TYPE_OWE, 1439 QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256, 1440 QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384, 1441 }; 1442 1443 /** 1444 * enum qca_wlan_vendor_attr_get_station_info - Station Info queried 1445 * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION. 1446 * 1447 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute 1448 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR: 1449 * Get the standard NL attributes Nested with this attribute. 1450 * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link - 1451 * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) / 1452 * NL80211_ATTR_STA_INFO 1453 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR: 1454 * Get the standard NL attributes Nested with this attribute. 1455 * Ex : Query HT/VHT Capability advertised by the AP. 1456 * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY 1457 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT: 1458 * Number of successful Roam attempts before a 1459 * disconnect, Unsigned 32 bit value 1460 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM: 1461 * Authentication Key Management Type used for the connected session. 1462 * Signified by enum qca_wlan_auth_type 1463 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the 1464 * connected Session, signified by enum qca_wlan_802_11_mode 1465 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION: 1466 * HS20 Indication Element 1467 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON: 1468 * Status Code Corresponding to the Association Failure. 1469 * Unsigned 32 bit value. 1470 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE: 1471 * Max phy rate of remote station 1472 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS: 1473 * TX packets to remote station 1474 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES: 1475 * TX bytes to remote station 1476 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS: 1477 * RX packets from remote station 1478 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES: 1479 * RX bytes from remote station 1480 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE: 1481 * Last TX rate with remote station 1482 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE: 1483 * Last RX rate with remote station 1484 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM: 1485 * Remote station enable/disable WMM 1486 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE: 1487 * Remote station connection mode 1488 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU: 1489 * Remote station AMPDU enable/disable 1490 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC: 1491 * Remote station TX Space-time block coding enable/disable 1492 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC: 1493 * Remote station RX Space-time block coding enable/disable 1494 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH: 1495 * Remote station channel width 1496 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE: 1497 * Remote station short GI enable/disable 1498 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding 1499 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute 1500 * containing the raw information elements from Beacon frames. Represents 1501 * the Beacon frames of the current BSS in the connected state. When queried 1502 * in the disconnected state, these IEs correspond to the last connected BSSID. 1503 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver 1504 * disconnect reason for the last disconnection if the disconnection is 1505 * triggered from the host driver. The values are referred from 1506 * enum qca_disconnect_reason_codes. If the disconnect is from 1507 * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED. 1508 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute 1509 * Applicable in AP mode only. It contains the raw information elements 1510 * from assoc request frame of the given peer station. User queries with the 1511 * mac address of peer station when it disconnects. Host driver sends 1512 * assoc request frame of the given station. Host driver doesn't provide 1513 * the IEs when the peer station is still in connected state. 1514 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for 1515 * sending HE operation info. 1516 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2: Attribute 1517 * type for remote channel width greater than 160 MHz. 1518 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION: Attribute type for 1519 * sending EHT operation info. 1520 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last 1521 * 1522 */ 1523 enum qca_wlan_vendor_attr_get_station_info { 1524 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0, 1525 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR, 1526 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR, 1527 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT, 1528 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM, 1529 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE, 1530 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION, 1531 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION, 1532 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION, 1533 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON, 1534 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE, 1535 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS, 1536 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES, 1537 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS, 1538 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES, 1539 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE, 1540 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE, 1541 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM, 1542 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE, 1543 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU, 1544 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC, 1545 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC, 1546 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH, 1547 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE, 1548 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD, 1549 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT, 1550 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT, 1551 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE, 1552 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN, 1553 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED, 1554 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI, 1555 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY, 1556 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST, 1557 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW, 1558 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW, 1559 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW, 1560 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES, 1561 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON, 1562 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES, 1563 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION, 1564 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2, 1565 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION, 1566 1567 /* keep last */ 1568 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST, 1569 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX = 1570 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1, 1571 }; 1572 1573 /** 1574 * qca_chip_power_save_failure_reason: Power save failure reason 1575 * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure 1576 * due to protocol/module. 1577 * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure 1578 * due to hardware 1579 */ 1580 enum qca_chip_power_save_failure_reason { 1581 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0, 1582 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1, 1583 }; 1584 1585 /** 1586 * qca_attr_chip_power_save_failure: attributes to vendor subcmd 1587 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite 1588 * information leading to the power save failure. 1589 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid 1590 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason 1591 * represented by enum qca_chip_power_save_failure_reason 1592 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last 1593 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value 1594 */ 1595 enum qca_attr_chip_power_save_failure { 1596 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0, 1597 1598 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1, 1599 1600 /* keep last */ 1601 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST, 1602 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX = 1603 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1, 1604 }; 1605 1606 /* enum's to provide TDLS capabilities */ 1607 enum qca_wlan_vendor_attr_get_tdls_capabilities { 1608 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0, 1609 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1, 1610 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2, 1611 1612 /* keep last */ 1613 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST, 1614 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX = 1615 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1, 1616 }; 1617 1618 /* Compatibility defines for previously used subcmd names. 1619 * These values should not be used in any new implementation. 1620 */ 1621 #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \ 1622 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY 1623 1624 enum qca_wlan_vendor_attr { 1625 QCA_WLAN_VENDOR_ATTR_INVALID = 0, 1626 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */ 1627 QCA_WLAN_VENDOR_ATTR_DFS = 1, 1628 /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */ 1629 QCA_WLAN_VENDOR_ATTR_NAN = 2, 1630 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 1631 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3, 1632 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 1633 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4, 1634 /* 1635 * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined 1636 * by enum qca_roaming_policy. 1637 */ 1638 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5, 1639 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6, 1640 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ 1641 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7, 1642 QCA_WLAN_VENDOR_ATTR_TEST = 8, 1643 /* 1644 * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES 1645 * Unsigned 32-bit value. 1646 */ 1647 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9, 1648 /* Unsigned 32-bit value */ 1649 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10, 1650 /* Unsigned 32-bit value */ 1651 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11, 1652 /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable 1653 * value for this attribute are only till QCA_SETBAND_2G. This attribute 1654 * is deprecated. Recommendation is to use 1655 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured 1656 * using both the attributes, the ones configured through 1657 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence. 1658 */ 1659 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12, 1660 /* Dummy (NOP) attribute for 64 bit padding */ 1661 QCA_WLAN_VENDOR_ATTR_PAD = 13, 1662 /* 1663 * Unique FTM session cookie (Unsigned 64 bit). Specified in 1664 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in 1665 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and 1666 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE. 1667 */ 1668 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14, 1669 /* 1670 * Indoor location capabilities, returned by 1671 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA. 1672 * see enum qca_wlan_vendor_attr_loc_capa. 1673 */ 1674 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15, 1675 /* 1676 * Array of nested attributes containing information about each peer 1677 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info 1678 * for supported attributes for each peer. 1679 */ 1680 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16, 1681 /* 1682 * Array of nested attributes containing measurement results for 1683 * one or more peers, reported by the 1684 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event. 1685 * See enum qca_wlan_vendor_attr_peer_result for list of supported 1686 * attributes. 1687 */ 1688 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17, 1689 /* Flag attribute for enabling or disabling responder functionality. */ 1690 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18, 1691 /* 1692 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 1693 * command to specify the LCI report that will be sent by 1694 * the responder during a measurement exchange. The format is 1695 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10. 1696 */ 1697 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19, 1698 /* 1699 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 1700 * command to specify the location civic report that will 1701 * be sent by the responder during a measurement exchange. 1702 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13. 1703 */ 1704 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20, 1705 /* 1706 * Session/measurement completion status code, 1707 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and 1708 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT 1709 * see enum qca_vendor_attr_loc_session_status. 1710 */ 1711 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21, 1712 /* 1713 * Initial dialog token used by responder (0 if not specified), 1714 * unsigned 8 bit value. 1715 */ 1716 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22, 1717 /* 1718 * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS 1719 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if 1720 * AOA measurements are needed as part of an FTM session. 1721 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See 1722 * enum qca_wlan_vendor_attr_aoa_type. 1723 */ 1724 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23, 1725 /* 1726 * A bit mask (unsigned 32 bit value) of antenna arrays used 1727 * by indoor location measurements. Refers to the antenna 1728 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS. 1729 */ 1730 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24, 1731 /* 1732 * AOA measurement data. Its contents depends on the AOA measurement 1733 * type and antenna array mask: 1734 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values, 1735 * phase of the strongest CIR path for each antenna in the measured 1736 * array(s). 1737 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16 1738 * values, phase and amplitude of the strongest CIR path for each 1739 * antenna in the measured array(s). 1740 */ 1741 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25, 1742 /* 1743 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1744 * to specify the chain number (unsigned 32 bit value) to inquire 1745 * the corresponding antenna RSSI value */ 1746 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26, 1747 /* 1748 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1749 * to report the specific antenna RSSI value (unsigned 32 bit value) */ 1750 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27, 1751 /* Frequency in MHz, various uses. Unsigned 32 bit value */ 1752 QCA_WLAN_VENDOR_ATTR_FREQ = 28, 1753 /* 1754 * TSF timer value, unsigned 64 bit value. 1755 * May be returned by various commands. 1756 */ 1757 QCA_WLAN_VENDOR_ATTR_TSF = 29, 1758 /* 1759 * DMG RF sector index, unsigned 16 bit number. Valid values are 1760 * 0..127 for sector indices or 65535 as special value used to 1761 * unlock sector selection in 1762 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR. 1763 */ 1764 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30, 1765 /* 1766 * DMG RF sector type, unsigned 8 bit value. One of the values 1767 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type. 1768 */ 1769 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31, 1770 /* 1771 * Bitmask of DMG RF modules for which information is requested. Each 1772 * bit corresponds to an RF module with the same index as the bit 1773 * number. Unsigned 32 bit number but only low 8 bits can be set since 1774 * all DMG chips currently have up to 8 RF modules. 1775 */ 1776 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32, 1777 /* 1778 * Array of nested attributes where each entry is DMG RF sector 1779 * configuration for a single RF module. 1780 * Attributes for each entry are taken from enum 1781 * qca_wlan_vendor_attr_dmg_rf_sector_cfg. 1782 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG 1783 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG. 1784 */ 1785 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33, 1786 /* 1787 * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command 1788 * to report frame aggregation statistics to userspace. 1789 */ 1790 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34, 1791 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35, 1792 /* 1793 * Unsigned 8-bit value representing MBO transition reason code as 1794 * provided by the AP used by subcommand 1795 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is 1796 * specified by the userspace in the request to the driver. 1797 */ 1798 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36, 1799 /* 1800 * Array of nested attributes, BSSID and status code, used by subcommand 1801 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each 1802 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info. 1803 * The userspace space specifies the list/array of candidate BSSIDs in 1804 * the order of preference in the request. The driver specifies the 1805 * status code, for each BSSID in the list, in the response. The 1806 * acceptable candidates are listed in the order preferred by the 1807 * driver. 1808 */ 1809 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37, 1810 /* 1811 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 1812 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode. 1813 */ 1814 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38, 1815 /* 1816 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 1817 * to define the number of antennas to use for BRP. 1818 * different purpose in each ANT_LIMIT_MODE: 1819 * DISABLE - ignored 1820 * EFFECTIVE - upper limit to number of antennas to be used 1821 * FORCE - exact number of antennas to be used 1822 * unsigned 8 bit value 1823 */ 1824 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39, 1825 /* 1826 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1827 * to report the corresponding antenna index to the chain RSSI value 1828 */ 1829 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40, 1830 /* 1831 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1832 * to report the specific antenna EVM value (unsigned 32 bit value). 1833 * With a determinate group of antennas, the driver specifies the 1834 * EVM value for each antenna ID, and application extract them 1835 * in user space. 1836 */ 1837 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41, 1838 /* 1839 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report 1840 * wlan firmware current state. FW state is an unsigned 8 bit value, 1841 * one of the values in enum qca_wlan_vendor_attr_fw_state. 1842 */ 1843 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42, 1844 1845 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the 1846 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the 1847 * integer values of enum qca_set_band till QCA_SETBAND_2G are valid. 1848 * This attribute shall consider the bitmask combinations to define 1849 * the respective Band combinations and always takes precedence over 1850 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE. 1851 */ 1852 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43, 1853 1854 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES. 1855 * This field describes the maximum number of links supported by the 1856 * chip for MLO association. 1857 * This is an optional attribute. 1858 */ 1859 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_ASSOCIATION_COUNT = 44, 1860 1861 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES. 1862 * This field describes the maximum number of Simultaneous Transmit 1863 * and Receive (STR) links used in Multi-Link Operation. 1864 * The maximum number of STR links used can be different 1865 * from the maximum number of radios supported by the chip. 1866 * This is a static configuration of the chip. 1867 * This is an optional attribute. 1868 */ 1869 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_STR_LINK_COUNT = 45, 1870 1871 /* keep last */ 1872 QCA_WLAN_VENDOR_ATTR_AFTER_LAST, 1873 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1 1874 }; 1875 1876 enum qca_wlan_vendor_attr_extscan_config_params { 1877 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0, 1878 1879 /* Unsigned 32-bit value */ 1880 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1, 1881 1882 /* 1883 * Attributes for data used by 1884 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command. 1885 */ 1886 1887 /* Unsigned 32-bit value */ 1888 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND 1889 = 2, 1890 /* Unsigned 32-bit value */ 1891 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS 1892 = 3, 1893 1894 /* 1895 * Attributes for input params used by 1896 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command. 1897 */ 1898 1899 /* Unsigned 32-bit value; channel frequency */ 1900 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4, 1901 /* Unsigned 32-bit value; dwell time in ms. */ 1902 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5, 1903 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */ 1904 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6, 1905 /* Unsigned 8-bit value; channel class */ 1906 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7, 1907 1908 /* Unsigned 8-bit value; bucket index, 0 based */ 1909 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8, 1910 /* Unsigned 8-bit value; band. */ 1911 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9, 1912 /* Unsigned 32-bit value; desired period, in ms. */ 1913 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10, 1914 /* Unsigned 8-bit value; report events semantics. */ 1915 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11, 1916 /* 1917 * Unsigned 32-bit value. Followed by a nested array of 1918 * EXTSCAN_CHANNEL_SPEC_* attributes. 1919 */ 1920 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12, 1921 1922 /* 1923 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes. 1924 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 1925 */ 1926 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13, 1927 1928 /* Unsigned 32-bit value; base timer period in ms. */ 1929 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14, 1930 /* 1931 * Unsigned 32-bit value; number of APs to store in each scan in the 1932 * BSSID/RSSI history buffer (keep the highest RSSI APs). 1933 */ 1934 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15, 1935 /* 1936 * Unsigned 8-bit value; in %, when scan buffer is this much full, wake 1937 * up AP. 1938 */ 1939 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT 1940 = 16, 1941 1942 /* 1943 * Unsigned 8-bit value; number of scan bucket specs; followed by a 1944 * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size 1945 * of the array is determined by NUM_BUCKETS. 1946 */ 1947 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17, 1948 1949 /* 1950 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes. 1951 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS 1952 */ 1953 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18, 1954 1955 /* Unsigned 8-bit value */ 1956 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH 1957 = 19, 1958 /* Unsigned 32-bit value; maximum number of results to be returned. */ 1959 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX 1960 = 20, 1961 1962 /* An array of 6 x unsigned 8-bit value */ 1963 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21, 1964 /* Signed 32-bit value */ 1965 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22, 1966 /* Signed 32-bit value */ 1967 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23, 1968 /* Unsigned 32-bit value */ 1969 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24, 1970 1971 /* 1972 * Number of hotlist APs as unsigned 32-bit value, followed by a nested 1973 * array of AP_THRESHOLD_PARAM attributes and values. The size of the 1974 * array is determined by NUM_AP. 1975 */ 1976 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25, 1977 1978 /* 1979 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes. 1980 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 1981 */ 1982 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26, 1983 1984 /* Unsigned 32-bit value; number of samples for averaging RSSI. */ 1985 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE 1986 = 27, 1987 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 1988 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE 1989 = 28, 1990 /* Unsigned 32-bit value; number of APs breaching threshold. */ 1991 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29, 1992 /* 1993 * Unsigned 32-bit value; number of APs. Followed by an array of 1994 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP. 1995 */ 1996 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30, 1997 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 1998 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE 1999 = 31, 2000 /* 2001 * Unsigned 32-bit value. If max_period is non zero or different than 2002 * period, then this bucket is an exponential backoff bucket. 2003 */ 2004 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32, 2005 /* Unsigned 32-bit value. */ 2006 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33, 2007 /* 2008 * Unsigned 32-bit value. For exponential back off bucket, number of 2009 * scans to perform for a given period. 2010 */ 2011 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34, 2012 /* 2013 * Unsigned 8-bit value; in number of scans, wake up AP after these 2014 * many scans. 2015 */ 2016 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS 2017 = 35, 2018 2019 /* 2020 * Attributes for data used by 2021 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command. 2022 */ 2023 2024 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */ 2025 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE 2026 = 36, 2027 /* 2028 * Number of hotlist SSIDs as unsigned 32-bit value, followed by a 2029 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The 2030 * size of the array is determined by NUM_SSID. 2031 */ 2032 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37, 2033 /* 2034 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_* 2035 * attributes. 2036 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID 2037 */ 2038 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38, 2039 2040 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */ 2041 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39, 2042 /* Unsigned 8-bit value */ 2043 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40, 2044 /* Signed 32-bit value */ 2045 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41, 2046 /* Signed 32-bit value */ 2047 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42, 2048 /* Unsigned 32-bit value; a bitmask with additional extscan config flag. 2049 */ 2050 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43, 2051 2052 /* keep last */ 2053 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST, 2054 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX = 2055 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1, 2056 }; 2057 2058 enum qca_wlan_vendor_attr_extscan_results { 2059 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0, 2060 2061 /* 2062 * Unsigned 32-bit value; must match the request Id supplied by 2063 * Wi-Fi HAL in the corresponding subcmd NL msg. 2064 */ 2065 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1, 2066 2067 /* 2068 * Unsigned 32-bit value; used to indicate the status response from 2069 * firmware/driver for the vendor sub-command. 2070 */ 2071 QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2, 2072 2073 /* 2074 * EXTSCAN Valid Channels attributes */ 2075 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */ 2076 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3, 2077 /* 2078 * An array of NUM_CHANNELS x unsigned 32-bit value integers 2079 * representing channel numbers. 2080 */ 2081 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4, 2082 2083 /* EXTSCAN Capabilities attributes */ 2084 2085 /* Unsigned 32-bit value */ 2086 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5, 2087 /* Unsigned 32-bit value */ 2088 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6, 2089 /* Unsigned 32-bit value */ 2090 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN 2091 = 7, 2092 /* Unsigned 32-bit value */ 2093 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE 2094 = 8, 2095 /* Signed 32-bit value */ 2096 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD 2097 = 9, 2098 /* Unsigned 32-bit value */ 2099 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10, 2100 /* Unsigned 32-bit value */ 2101 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS 2102 = 11, 2103 /* Unsigned 32-bit value */ 2104 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES 2105 = 12, 2106 2107 /* 2108 * EXTSCAN Attributes used with 2109 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command. 2110 */ 2111 2112 /* Unsigned 32-bit value */ 2113 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13, 2114 2115 /* 2116 * EXTSCAN attributes used with 2117 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command. 2118 */ 2119 2120 /* 2121 * An array of NUM_RESULTS_AVAILABLE x 2122 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_* 2123 */ 2124 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14, 2125 2126 /* Unsigned 64-bit value; age of sample at the time of retrieval */ 2127 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15, 2128 /* 33 x unsigned 8-bit value; NULL terminated SSID */ 2129 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16, 2130 /* An array of 6 x unsigned 8-bit value */ 2131 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17, 2132 /* Unsigned 32-bit value; channel frequency in MHz */ 2133 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18, 2134 /* Signed 32-bit value */ 2135 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19, 2136 /* Unsigned 32-bit value */ 2137 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20, 2138 /* Unsigned 32-bit value */ 2139 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21, 2140 /* Unsigned 16-bit value */ 2141 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22, 2142 /* Unsigned 16-bit value */ 2143 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23, 2144 /* Unsigned 32-bit value; size of the IE DATA blob */ 2145 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24, 2146 /* 2147 * An array of IE_LENGTH x unsigned 8-bit value; blob of all the 2148 * information elements found in the beacon; this data should be a 2149 * packed list of wifi_information_element objects, one after the 2150 * other. 2151 */ 2152 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25, 2153 2154 /* 2155 * Unsigned 8-bit value; set by driver to indicate more scan results are 2156 * available. 2157 */ 2158 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26, 2159 2160 /* 2161 * EXTSCAN attributes for 2162 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command. 2163 */ 2164 /* Unsigned 8-bit value */ 2165 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27, 2166 /* Unsigned 32-bit value */ 2167 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28, 2168 2169 /* 2170 * EXTSCAN attributes for 2171 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command. 2172 */ 2173 /* 2174 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE 2175 * to indicate number of results. 2176 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the 2177 * list of results. 2178 */ 2179 2180 /* 2181 * EXTSCAN attributes for 2182 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command. 2183 */ 2184 /* An array of 6 x unsigned 8-bit value */ 2185 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29, 2186 /* Unsigned 32-bit value */ 2187 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL 2188 = 30, 2189 /* Unsigned 32-bit value. */ 2190 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI 2191 = 31, 2192 /* 2193 * A nested array of signed 32-bit RSSI values. Size of the array is 2194 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI. 2195 */ 2196 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST 2197 = 32, 2198 2199 /* 2200 * EXTSCAN attributes used with 2201 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command. 2202 */ 2203 /* 2204 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE 2205 * to indicate number of extscan cached results returned. 2206 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate 2207 * the list of extscan cached results. 2208 */ 2209 2210 /* 2211 * An array of NUM_RESULTS_AVAILABLE x 2212 * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_* 2213 */ 2214 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33, 2215 /* Unsigned 32-bit value; a unique identifier for the scan unit. */ 2216 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34, 2217 /* 2218 * Unsigned 32-bit value; a bitmask w/additional information about scan. 2219 */ 2220 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35, 2221 /* 2222 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE 2223 * to indicate number of wifi scan results/bssids retrieved by the scan. 2224 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the 2225 * list of wifi scan results returned for each cached result block. 2226 */ 2227 2228 /* 2229 * EXTSCAN attributes for 2230 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command. 2231 */ 2232 /* 2233 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for 2234 * number of results. 2235 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested 2236 * list of wifi scan results returned for each 2237 * wifi_passpoint_match_result block. 2238 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE. 2239 */ 2240 2241 /* 2242 * EXTSCAN attributes for 2243 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command. 2244 */ 2245 /* Unsigned 32-bit value */ 2246 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES 2247 = 36, 2248 /* 2249 * A nested array of 2250 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_* 2251 * attributes. Array size = 2252 * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES. 2253 */ 2254 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37, 2255 2256 /* Unsigned 32-bit value; network block id for the matched network */ 2257 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38, 2258 /* 2259 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested 2260 * list of wifi scan results returned for each 2261 * wifi_passpoint_match_result block. 2262 */ 2263 /* Unsigned 32-bit value */ 2264 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39, 2265 /* 2266 * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values; 2267 * ANQP data in the information_element format. 2268 */ 2269 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40, 2270 2271 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2272 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41, 2273 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2274 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42, 2275 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2276 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID 2277 = 43, 2278 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2279 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID 2280 = 44, 2281 2282 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45, 2283 QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46, 2284 2285 /* keep last */ 2286 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST, 2287 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX = 2288 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1, 2289 }; 2290 2291 /** 2292 * enum qca_vendor_interop_issues_ap_type - interop issues type 2293 * This enum defines the valid set of values of interop issues type. These 2294 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE. 2295 * 2296 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue 2297 * when the STA's Qpower feature is enabled. 2298 */ 2299 enum qca_vendor_interop_issues_ap_type { 2300 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0, 2301 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1, 2302 }; 2303 2304 /** 2305 * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues 2306 * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP. 2307 * 2308 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value 2309 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type 2310 * 32-bit unsigned value, The type defined in enum 2311 * qca_vendor_interop_issues_ap_type are used. 2312 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container 2313 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes, 2314 * it is present and mandatory for the command but is not used for 2315 * the event since only a single BSSID is reported in an event. 2316 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid 2317 * 6-byte MAC address. It is used within the nested 2318 * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case 2319 * and without such encapsulation in the event case. 2320 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value 2321 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value 2322 */ 2323 enum qca_vendor_attr_interop_issues_ap { 2324 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID, 2325 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE, 2326 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST, 2327 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID, 2328 /* keep last */ 2329 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST, 2330 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX = 2331 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1 2332 }; 2333 2334 #ifdef WLAN_FEATURE_LINK_LAYER_STATS 2335 2336 enum qca_wlan_vendor_attr_ll_stats_set { 2337 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0, 2338 /* Unsigned 32-bit value */ 2339 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1, 2340 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2, 2341 /* keep last */ 2342 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST, 2343 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX = 2344 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1, 2345 }; 2346 2347 /** 2348 * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS 2349 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK. 2350 * 2351 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics. 2352 * 2353 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within 2354 * radio statistics. 2355 * 2356 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel 2357 * statistics within radio statistics. 2358 * 2359 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within 2360 * radio statistics. 2361 * 2362 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics. 2363 * 2364 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics 2365 * within interface statistics. 2366 * 2367 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within 2368 * interface statistics. 2369 * 2370 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention 2371 * (min, max, avg) statistics within AC statistics. 2372 * 2373 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics 2374 * on this interface. 2375 * 2376 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer 2377 * statistics depending on the peer_mac. 2378 */ 2379 enum qca_wlan_ll_stats_clr_req_bitmap { 2380 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0), 2381 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1), 2382 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2), 2383 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3), 2384 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4), 2385 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5), 2386 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6), 2387 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7), 2388 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8), 2389 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9), 2390 }; 2391 2392 enum qca_wlan_vendor_attr_ll_stats_clr { 2393 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0, 2394 /* Unsigned 32bit bitmap for clearing statistics, specified 2395 * in the enum qca_wlan_ll_stats_clr_req_bitmap. 2396 */ 2397 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1, 2398 /* Unsigned 8 bit value: Request to stop statistics collection */ 2399 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2, 2400 2401 /* Unsigned 32 bit bitmap: Response from the driver 2402 * for the cleared statistics 2403 */ 2404 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3, 2405 /* Unsigned 8 bit value: Response from driver/firmware 2406 * for the stop request 2407 */ 2408 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4, 2409 /* keep last */ 2410 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST, 2411 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX = 2412 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1, 2413 }; 2414 2415 /** 2416 * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS 2417 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK. 2418 * 2419 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics. 2420 * 2421 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics. 2422 * 2423 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics. 2424 * 2425 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics. 2426 */ 2427 enum qca_wlan_ll_stats_get_req_bitmap { 2428 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0), 2429 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1), 2430 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2), 2431 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3), 2432 }; 2433 2434 enum qca_wlan_vendor_attr_ll_stats_get { 2435 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0, 2436 /* Unsigned 32 bit value provided by the caller issuing the GET stats 2437 * command. When reporting the stats results, the driver uses the same 2438 * value to indicate which GET request the results correspond to. 2439 */ 2440 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1, 2441 /* Unsigned 32 bit value - bit mask to identify what statistics are 2442 * requested for retrieval specified in the enum 2443 * qca_wlan_ll_stats_get_req_bitmap 2444 */ 2445 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2, 2446 /* keep last */ 2447 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST, 2448 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX = 2449 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1, 2450 }; 2451 2452 enum qca_wlan_vendor_attr_ll_stats_results { 2453 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0, 2454 2455 /* 2456 * For Multi Link Operation (MLO) connection, per-link statistics will 2457 * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and 2458 * cumulative statistics will be sent outside of 2459 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward 2460 * compatibility with legacy user space. Attributes which don't have 2461 * explicit documentation for MLO will be sent only outside of 2462 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values 2463 * don't depend on whether the connection is MLO capable or not, e.g., 2464 * radio and channel specific attributes. 2465 */ 2466 2467 /* Unsigned 32bit value. Used by the driver; must match the request id 2468 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command. 2469 */ 2470 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1, 2471 2472 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2473 * the link with the best RSSI outside 2474 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2475 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2476 */ 2477 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2, 2478 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2479 * the link with the best RSSI outside 2480 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2481 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2482 */ 2483 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3, 2484 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2485 * the link with the best RSSI outside 2486 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2487 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2488 */ 2489 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4, 2490 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2491 * the link with the best RSSI outside 2492 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2493 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2494 */ 2495 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5, 2496 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2497 * the link with the best RSSI outside 2498 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2499 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2500 */ 2501 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6, 2502 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2503 * the link with the best RSSI outside 2504 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2505 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2506 */ 2507 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7, 2508 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2509 * the link with the best RSSI outside 2510 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2511 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2512 */ 2513 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8, 2514 2515 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are 2516 * nested within the interface stats. 2517 */ 2518 2519 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc. 2520 * Type = enum wifi_interface_mode. 2521 */ 2522 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9, 2523 /* Interface MAC address. An array of 6 Unsigned int8 */ 2524 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10, 2525 /* Type = enum wifi_connection_state, e.g., DISCONNECTED, 2526 * AUTHENTICATING, etc. valid for STA, CLI only. 2527 */ 2528 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11, 2529 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE 2530 */ 2531 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12, 2532 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */ 2533 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13, 2534 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */ 2535 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14, 2536 /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD 2537 * address of the AP. An array of 6 unsigned 8 bit values 2538 */ 2539 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15, 2540 /* Country string advertised by AP. An array of 3 unsigned 8 bit 2541 * values. 2542 */ 2543 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16, 2544 /* Country string for this association. An array of 3 unsigned 8 bit 2545 * values. 2546 */ 2547 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17, 2548 2549 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could 2550 * be nested within the interface stats. 2551 * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* 2552 * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* 2553 * indicate the aggregate of all links outside 2554 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2555 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes 2556 * indicate value of the MLO link with the best RSSI outside 2557 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2558 * These attributes indicate the link specific value inside 2559 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2560 */ 2561 2562 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */ 2563 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18, 2564 /* Unsigned int 32 value corresponding to respective AC */ 2565 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19, 2566 /* Unsigned int 32 value corresponding to respective AC */ 2567 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20, 2568 /* Unsigned int 32 value corresponding to respective AC */ 2569 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21, 2570 /* Unsigned int 32 value corresponding to respective AC */ 2571 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22, 2572 /* Unsigned int 32 value corresponding to respective AC */ 2573 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23, 2574 /* Unsigned int 32 value corresponding to respective AC */ 2575 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24, 2576 /* Unsigned int 32 value corresponding to respective AC */ 2577 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25, 2578 /* Unsigned int 32 value corresponding to respective AC */ 2579 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26, 2580 /* Unsigned int 32 value corresponding to respective AC */ 2581 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27, 2582 /* Unsigned int 32 values corresponding to respective AC */ 2583 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28, 2584 /* Unsigned int 32 values corresponding to respective AC */ 2585 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29, 2586 /* Unsigned int 32 values corresponding to respective AC */ 2587 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30, 2588 /* Unsigned int 32 values corresponding to respective AC */ 2589 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31, 2590 /* Unsigned int 32 values corresponding to respective AC */ 2591 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32, 2592 /* Unsigned 32 bit value. Number of peers */ 2593 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33, 2594 2595 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are 2596 * nested within the interface stats. 2597 */ 2598 2599 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */ 2600 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34, 2601 /* MAC addr corresponding to respective peer. An array of 6 unsigned 2602 * 8 bit values. 2603 */ 2604 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35, 2605 /* Unsigned int 32 bit value representing capabilities corresponding 2606 * to respective peer. 2607 */ 2608 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36, 2609 /* Unsigned 32 bit value. Number of rates */ 2610 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37, 2611 2612 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 2613 * are nested within the rate stat. 2614 */ 2615 2616 /* Wi-Fi Rate - separate attributes defined for individual fields */ 2617 2618 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */ 2619 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38, 2620 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */ 2621 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39, 2622 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */ 2623 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40, 2624 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std 2625 * in the units of 0.5 Mbps HT/VHT it would be MCS index 2626 */ 2627 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41, 2628 2629 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */ 2630 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42, 2631 2632 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be 2633 * nested within the peer info stats. 2634 */ 2635 2636 /* Unsigned int 32 bit value. Number of successfully transmitted data 2637 * packets, i.e., with ACK received corresponding to the respective 2638 * rate. 2639 */ 2640 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43, 2641 /* Unsigned int 32 bit value. Number of received data packets 2642 * corresponding to the respective rate. 2643 */ 2644 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44, 2645 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK 2646 * received corresponding to the respective rate. 2647 */ 2648 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45, 2649 /* Unsigned int 32 bit value. Total number of data packet retries for 2650 * the respective rate. 2651 */ 2652 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46, 2653 /* Unsigned int 32 bit value. Total number of short data packet retries 2654 * for the respective rate. 2655 */ 2656 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47, 2657 /* Unsigned int 32 bit value. Total number of long data packet retries 2658 * for the respective rate. 2659 */ 2660 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48, 2661 2662 /* Unsigned 32 bit value. This is used to indicate radio ID of the radio 2663 * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is 2664 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used 2665 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID 2666 * of the MLO link. 2667 */ 2668 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49, 2669 /* Unsigned 32 bit value. Total number of msecs the radio is awake 2670 * accruing over time. 2671 */ 2672 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50, 2673 /* Unsigned 32 bit value. Total number of msecs the radio is 2674 * transmitting accruing over time. 2675 */ 2676 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51, 2677 /* Unsigned 32 bit value. Total number of msecs the radio is in active 2678 * receive accruing over time. 2679 */ 2680 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52, 2681 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2682 * to all scan accruing over time. 2683 */ 2684 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53, 2685 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2686 * to NAN accruing over time. 2687 */ 2688 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54, 2689 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2690 * to GSCAN accruing over time. 2691 */ 2692 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55, 2693 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2694 * to roam scan accruing over time. 2695 */ 2696 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56, 2697 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2698 * to PNO scan accruing over time. 2699 */ 2700 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57, 2701 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2702 * to Hotspot 2.0 scans and GAS exchange accruing over time. 2703 */ 2704 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58, 2705 /* Unsigned 32 bit value. Number of channels. */ 2706 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59, 2707 2708 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could 2709 * be nested within the channel stats. 2710 */ 2711 2712 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */ 2713 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60, 2714 /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to 2715 * indicate the primary frequency of the channel when 2716 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is 2717 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside 2718 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency 2719 * on which the MLO link is operating. 2720 */ 2721 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61, 2722 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */ 2723 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62, 2724 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */ 2725 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63, 2726 2727 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be 2728 * nested within the radio stats. 2729 */ 2730 2731 /* Unsigned int 32 bit value representing total number of msecs the 2732 * radio is awake on that channel accruing over time, corresponding to 2733 * the respective channel. 2734 */ 2735 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64, 2736 /* Unsigned int 32 bit value representing total number of msecs the CCA 2737 * register is busy accruing over time corresponding to the respective 2738 * channel. 2739 */ 2740 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65, 2741 2742 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66, 2743 2744 /* Signifies the nested list of channel attributes 2745 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* 2746 */ 2747 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67, 2748 2749 /* Signifies the nested list of peer info attributes 2750 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection, 2751 * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to 2752 * indicate on which link the peer is connected. 2753 */ 2754 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68, 2755 2756 /* Signifies the nested list of rate info attributes 2757 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 2758 */ 2759 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69, 2760 2761 /* Signifies the nested list of wmm info attributes 2762 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* 2763 */ 2764 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70, 2765 2766 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates 2767 * that more stats, e.g., peers or radio, are to follow in the next 2768 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event. 2769 * Otherwise, it is set to 0. 2770 */ 2771 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71, 2772 2773 /* Unsigned 64 bit value. For an MLO connection, indicates the value of 2774 * the link with the best RSSI outside 2775 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2776 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2777 */ 2778 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72, 2779 2780 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2781 * the link with the best RSSI outside 2782 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2783 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2784 */ 2785 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73, 2786 2787 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2788 * the link with the best RSSI outside 2789 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2790 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2791 */ 2792 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74, 2793 2794 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2795 * the link with the best RSSI outside 2796 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2797 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2798 */ 2799 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75, 2800 2801 /* Unsigned 32 bit value */ 2802 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76, 2803 2804 /* Unsigned 32 bit value */ 2805 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77, 2806 2807 /* Number of msecs the radio spent in transmitting for each power level 2808 */ 2809 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78, 2810 2811 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2812 * the link with the best RSSI outside 2813 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2814 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2815 */ 2816 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79, 2817 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2818 * the link with the best RSSI outside 2819 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2820 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2821 */ 2822 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80, 2823 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2824 * the link with the best RSSI outside 2825 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2826 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2827 */ 2828 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81, 2829 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2830 * the link with the best RSSI outside 2831 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2832 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2833 */ 2834 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82, 2835 2836 /* Unsigned int 32 value. 2837 * Pending MSDUs corresponding to respective AC. 2838 */ 2839 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83, 2840 2841 /* u32 value representing total time in milliseconds for which the radio 2842 * is transmitting on this channel. This attribute will be nested 2843 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO. 2844 */ 2845 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84, 2846 /* u32 value representing total time in milliseconds for which the radio 2847 * is receiving all 802.11 frames intended for this device on this 2848 * channel. This attribute will be nested within 2849 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO. 2850 */ 2851 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85, 2852 /* u8 value representing the channel load percentage. Possible values 2853 * are 0-100. 2854 */ 2855 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86, 2856 /* u8 value representing the time slicing duty cycle percentage. 2857 * Possible values are 0-100. For an MLO connection, indicates the value 2858 * of the link with the best RSSI outside 2859 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2860 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2861 */ 2862 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87, 2863 /* Unsigned 32 bit value. The number of Beacon frames which are received 2864 * from the associated AP and indicate buffered unicast frame(s) for us 2865 * in the TIM element. For an MLO connection, indicates the value of the 2866 * link with the best RSSI outside 2867 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2868 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2869 */ 2870 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88, 2871 /* Unsigned 32 bit value. The total number of Beacon frames received 2872 * from the associated AP that have wrongly indicated buffered unicast 2873 * traffic in the TIM element for us. 2874 * Below scenarios will be considered as wrong TIM element beacon: 2875 * 1) The related TIM element is set in the beacon for STA but STA 2876 * doesn’t receive any unicast data after this beacon. 2877 * 2) The related TIM element is still set in the beacon for STA 2878 * after STA has indicated power save exit by QoS Null Data frame. 2879 * For an MLO connection, indicates the value of the link with the best 2880 * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link 2881 * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2882 */ 2883 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89, 2884 2885 /* Signed 32 bit value. It represents the noise floor calibration value. 2886 * Possible values are -120~-50 dBm. For an MLO connection, indicates 2887 * the value of the link with the best RSSI outside 2888 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2889 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2890 */ 2891 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90, 2892 2893 /* Attribute used for padding for 64-bit alignment */ 2894 QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91, 2895 2896 /* Unsigned u8 value, link ID of an MLO link. Used inside nested 2897 * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the 2898 * link ID of the MLO link for which the statistics are embedded in the 2899 * nested attribute. Used inside nested attribute 2900 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected 2901 * link ID of the peer. 2902 */ 2903 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92, 2904 2905 /* A nested array of attributes for each MLO link, each containing 2906 * per-link statistics of a multi link connection. The attributes used 2907 * inside this nested attribute are defined in enum 2908 * qca_wlan_vendor_attr_ll_stats_results. 2909 * 2910 * For non-MLO connection, this attribute is not present and the 2911 * statistics will be sent outside this attribute (without nesting). 2912 * 2913 * For MLO connection, this attribute is present and also cumulative 2914 * statistics of all the links will be sent outside of this attribute 2915 * to be compatible with legacy user space. 2916 */ 2917 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93, 2918 2919 /* keep last */ 2920 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST, 2921 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX = 2922 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1, 2923 }; 2924 2925 enum qca_wlan_vendor_attr_ll_stats_type { 2926 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0, 2927 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1, 2928 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2, 2929 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3, 2930 2931 /* keep last */ 2932 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST, 2933 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX = 2934 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1, 2935 }; 2936 2937 #endif /* WLAN_FEATURE_LINK_LAYER_STATS */ 2938 2939 /** 2940 * enum qca_wlan_vendor_attr_get_supported_features - get supported feature 2941 * 2942 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value 2943 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value 2944 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last 2945 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value 2946 */ 2947 enum qca_wlan_vendor_attr_get_supported_features { 2948 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0, 2949 QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1, 2950 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST, 2951 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX = 2952 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1, 2953 }; 2954 2955 /** 2956 * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui 2957 * 2958 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value 2959 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit 2960 * value 2961 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last 2962 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value 2963 */ 2964 enum qca_wlan_vendor_attr_set_scanning_mac_oui { 2965 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0, 2966 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1, 2967 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST, 2968 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX = 2969 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1, 2970 }; 2971 2972 /** 2973 * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the 2974 * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take. 2975 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority 2976 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority 2977 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority 2978 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority 2979 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority 2980 */ 2981 enum qca_wlan_vendor_scan_priority { 2982 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0, 2983 QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1, 2984 QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2, 2985 QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3, 2986 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4, 2987 }; 2988 2989 /** 2990 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes 2991 * 2992 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan 2993 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes 2994 * with frequencies to be scanned (in MHz) 2995 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned 2996 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported 2997 * rates to be included 2998 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests 2999 * at non CCK rate in 2GHz band 3000 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags 3001 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the 3002 * driver for the specific scan request 3003 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan 3004 * request decoded as in enum scan_status 3005 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation 3006 * scan flag is set 3007 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with 3008 * randomisation 3009 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the 3010 * specific BSSID to scan for. 3011 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in 3012 * microseconds. This is a common value which applies across all 3013 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES. 3014 * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to 3015 * other scan requests. It is a u32 attribute and takes values from enum 3016 * qca_wlan_vendor_scan_priority. This is an optional attribute. 3017 * If this attribute is not configured, the driver shall use 3018 * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan. 3019 */ 3020 enum qca_wlan_vendor_attr_scan { 3021 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0, 3022 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1, 3023 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2, 3024 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3, 3025 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4, 3026 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5, 3027 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6, 3028 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7, 3029 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8, 3030 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9, 3031 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10, 3032 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11, 3033 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12, 3034 QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13, 3035 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST, 3036 QCA_WLAN_VENDOR_ATTR_SCAN_MAX = 3037 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1 3038 }; 3039 3040 /** 3041 * enum scan_status - Specifies the valid values the vendor scan attribute 3042 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take 3043 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with 3044 * new scan results 3045 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between 3046 */ 3047 enum scan_status { 3048 VENDOR_SCAN_STATUS_NEW_RESULTS, 3049 VENDOR_SCAN_STATUS_ABORTED, 3050 VENDOR_SCAN_STATUS_MAX, 3051 }; 3052 3053 /** 3054 * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix 3055 * 3056 * NL attributes for data used by 3057 * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command. 3058 * 3059 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value 3060 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX: 3061 * Unsigned 32-bit value 3062 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE: 3063 * Unsigned 32-bit value 3064 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An 3065 * array of SET_SIZE x Unsigned 32bit values representing concurrency 3066 * combinations 3067 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last 3068 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value 3069 */ 3070 enum qca_wlan_vendor_attr_get_concurrency_matrix { 3071 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0, 3072 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX 3073 = 1, 3074 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2, 3075 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3, 3076 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST, 3077 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX = 3078 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1, 3079 }; 3080 3081 /** 3082 * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag 3083 * 3084 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value 3085 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value 3086 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last 3087 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value 3088 */ 3089 enum qca_wlan_vendor_attr_set_no_dfs_flag { 3090 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0, 3091 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1, 3092 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST, 3093 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX = 3094 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1, 3095 }; 3096 3097 /** 3098 * enum qca_vendor_attr_wisa_cmd 3099 * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr 3100 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32) 3101 * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last 3102 * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value 3103 * WISA setup vendor commands 3104 */ 3105 enum qca_vendor_attr_wisa_cmd { 3106 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0, 3107 QCA_WLAN_VENDOR_ATTR_WISA_MODE, 3108 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST, 3109 QCA_WLAN_VENDOR_ATTR_WISA_MAX = 3110 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1 3111 }; 3112 3113 enum qca_roaming_policy { 3114 QCA_ROAMING_NOT_ALLOWED, 3115 QCA_ROAMING_ALLOWED_WITHIN_ESS, 3116 }; 3117 3118 /** 3119 * enum qca_roam_reason - Represents the reason codes for roaming. Used by 3120 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON. 3121 * 3122 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below 3123 * reasons. 3124 * 3125 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached 3126 * the configured threshold. 3127 * 3128 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured 3129 * beacon misses from the then connected AP. 3130 * 3131 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported 3132 * by the connected AP. 3133 * 3134 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a 3135 * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is 3136 * not poor. 3137 * 3138 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel 3139 * or environment being very noisy / congested. 3140 * 3141 * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request 3142 * from the user (user space). 3143 * 3144 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from 3145 * connected AP. 3146 * 3147 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization 3148 * breaching out the configured threshold. 3149 * 3150 * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS 3151 * transition request. 3152 * 3153 * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, 3154 * there is no data activity with the AP and the current rssi falls below a 3155 * certain threshold. 3156 * 3157 * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to 3158 * deauthentication or disassociation frames received from the connected AP. 3159 * 3160 * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic 3161 * scan that happens when there is no candidate AP found during the poor 3162 * RSSI scan trigger. 3163 * 3164 * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan 3165 * results obtained from an external scan (not aimed at roaming). 3166 * 3167 * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth 3168 * connection is established when the station is connected in 2.4 Ghz band. 3169 * 3170 * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame 3171 * failures to the connected AP. 3172 */ 3173 enum qca_roam_reason { 3174 QCA_ROAM_REASON_UNKNOWN, 3175 QCA_ROAM_REASON_PER, 3176 QCA_ROAM_REASON_BEACON_MISS, 3177 QCA_ROAM_REASON_POOR_RSSI, 3178 QCA_ROAM_REASON_BETTER_RSSI, 3179 QCA_ROAM_REASON_CONGESTION, 3180 QCA_ROAM_REASON_USER_TRIGGER, 3181 QCA_ROAM_REASON_BTM, 3182 QCA_ROAM_REASON_BSS_LOAD, 3183 QCA_ROAM_REASON_WTC, 3184 QCA_ROAM_REASON_IDLE, 3185 QCA_ROAM_REASON_DISCONNECTION, 3186 QCA_ROAM_REASON_PERIODIC_TIMER, 3187 QCA_ROAM_REASON_BACKGROUND_SCAN, 3188 QCA_ROAM_REASON_BT_ACTIVITY, 3189 QCA_ROAM_REASON_STA_KICKOUT, 3190 }; 3191 3192 /** 3193 * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming 3194 * 3195 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE 3196 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE 3197 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status 3198 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter 3199 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK 3200 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK 3201 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status 3202 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS: 3203 * Indicates the status of re-association requested by user space for 3204 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID. 3205 * Type u16. 3206 * Represents the status code from AP. Use 3207 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the 3208 * real status code for failures. 3209 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION: 3210 * This attribute indicates that the old association was maintained when 3211 * a re-association is requested by user space and that re-association 3212 * attempt fails (i.e., cannot connect to the requested BSS, but can 3213 * remain associated with the BSS with which the association was in 3214 * place when being requested to roam). Used along with 3215 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current 3216 * re-association status. Type flag. 3217 * This attribute is applicable only for re-association failure cases. 3218 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK 3219 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID 3220 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next 3221 * seq number 3222 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value 3223 * representing the reasons for the roaming. Defined by enum 3224 * qca_roam_reason. 3225 */ 3226 enum qca_wlan_vendor_attr_roam_auth { 3227 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0, 3228 /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address 3229 * of the roamed AP for MLO roaming. 3230 */ 3231 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID, 3232 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE, 3233 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE, 3234 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED, 3235 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR, 3236 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK, 3237 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK, 3238 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS, 3239 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS, 3240 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION, 3241 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK, 3242 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID, 3243 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM, 3244 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON, 3245 /* A nested attribute containing per-link information of all the links 3246 * of MLO connection done while roaming. The attributes used inside this 3247 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links. 3248 */ 3249 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15, 3250 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST, 3251 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX = 3252 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1 3253 }; 3254 3255 /** 3256 * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside 3257 * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS. 3258 * 3259 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link. 3260 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link. 3261 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link. 3262 */ 3263 enum qca_wlan_vendor_attr_mlo_links { 3264 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0, 3265 QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1, 3266 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2, 3267 QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3, 3268 3269 /* Keep last */ 3270 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST, 3271 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX = 3272 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1, 3273 }; 3274 3275 /** 3276 * enum qca_wlan_vendor_attr_wifi_config - wifi config 3277 * 3278 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value 3279 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM 3280 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor 3281 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time 3282 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last 3283 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value 3284 */ 3285 enum qca_wlan_vendor_attr_wifi_config { 3286 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0, 3287 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1, 3288 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2, 3289 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3, 3290 3291 /* keep last */ 3292 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST, 3293 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX = 3294 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1, 3295 }; 3296 3297 /** 3298 * enum qca_wlan_epno_type - the type of request to the EPNO command 3299 * @QCA_WLAN_EPNO: epno type request 3300 * @QCA_WLAN_PNO: pno type request 3301 */ 3302 enum qca_wlan_epno_type { 3303 QCA_WLAN_EPNO, 3304 QCA_WLAN_PNO 3305 }; 3306 3307 /** 3308 * enum qca_wlan_vendor_attr_pno_config_params - pno config params 3309 * 3310 * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value 3311 * 3312 * NL attributes for data used by 3313 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command. 3314 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM: 3315 * Unsigned 32-bit value; pno passpoint number of networks 3316 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY: 3317 * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_* 3318 * attributes. Array size = 3319 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM. 3320 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID: 3321 * Unsigned 32-bit value; network id 3322 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM: 3323 * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded 3324 * realm, 0 if unspecified. 3325 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID: 3326 * An array of 16 x Unsigned 32-bit value; roaming consortium ids 3327 * to match, 0 if unspecified. 3328 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN: 3329 * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if 3330 * unspecified. 3331 * 3332 * NL attributes for data used by 3333 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command. 3334 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS: 3335 * Unsigned 32-bit value; set pno number of networks 3336 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST: 3337 * Array of nested 3338 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_* 3339 * attributes. Array size = 3340 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS 3341 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID: 3342 * An array of 33 x Unsigned 8-bit value; NULL terminated SSID 3343 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD: 3344 * Signed 8-bit value; threshold for considering this SSID as found, 3345 * required granularity for this threshold is 4dBm to 8dBm 3346 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS: 3347 * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX 3348 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT: 3349 * Unsigned 8-bit value; auth bit field for matching WPA IE 3350 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE 3351 * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type 3352 *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST 3353 * Nested attribute to send the channel list 3354 *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL 3355 * Unsigned 32-bit value; indicates the Interval between PNO scan 3356 * cycles in msec 3357 *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI 3358 * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered 3359 *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI 3360 * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered 3361 * This attribute is obsolete now. 3362 *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX 3363 * Signed 32-bit value; the maximum score that a network 3364 * can have before bonuses 3365 *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS 3366 * Signed 32-bit value; only report when there is a network's 3367 * score this much higher han the current connection 3368 *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS 3369 * Signed 32-bit value; score bonus for all networks with 3370 * the same network flag 3371 *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS 3372 * Signed 32-bit value; score bonus for networks that are not open 3373 *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS 3374 * Signed 32-bit value; 5GHz RSSI score bonus applied to all 3375 * 5GHz networks 3376 *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID 3377 * Unsigned 32-bit value, representing the PNO Request ID 3378 * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last 3379 * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max 3380 */ 3381 enum qca_wlan_vendor_attr_pno_config_params { 3382 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0, 3383 3384 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1, 3385 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2, 3386 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3, 3387 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4, 3388 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5, 3389 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6, 3390 3391 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7, 3392 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8, 3393 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9, 3394 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10, 3395 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11, 3396 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12, 3397 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13, 3398 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14, 3399 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15, 3400 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16, 3401 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17, 3402 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18, 3403 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19, 3404 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20, 3405 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21, 3406 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22, 3407 3408 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23, 3409 /* keep last */ 3410 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST, 3411 QCA_WLAN_VENDOR_ATTR_PNO_MAX = 3412 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1, 3413 }; 3414 3415 /** 3416 * enum qca_scan_freq_list_type: Frequency list types 3417 * 3418 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list 3419 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as 3420 * a preferred frequency list for roaming. 3421 * 3422 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list 3423 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as 3424 * a specific frequency list for roaming. 3425 */ 3426 enum qca_scan_freq_list_type { 3427 QCA_PREFERRED_SCAN_FREQ_LIST = 1, 3428 QCA_SPECIFIC_SCAN_FREQ_LIST = 2, 3429 }; 3430 3431 /** 3432 * enum qca_roam_scan_scheme: scan scheme 3433 * 3434 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan. 3435 * Indicates the driver to not scan on a Roam Trigger scenario, but 3436 * Disconnect.e.g., On a BTM request from the AP driver/firmware shall 3437 * disconnect from the current connected AP by notifying a failure 3438 * code in the BTM response. 3439 * 3440 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to 3441 * trigger partial frequency scans. These frequencies are the ones learnt 3442 * or maintained by the driver based on the probability of finding the 3443 * BSSID's in the ESS for which the roaming is triggered. 3444 * 3445 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to 3446 * trigger the scan on all the valid frequencies to find the better 3447 * candidates to roam. 3448 */ 3449 enum qca_roam_scan_scheme { 3450 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0, 3451 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1, 3452 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2, 3453 }; 3454 3455 /** 3456 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme 3457 * 3458 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values. 3459 * List of frequencies in MHz to be considered for a roam scan. 3460 * 3461 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value. 3462 * Type of frequency list scheme being configured/gotten as defined by the 3463 * enum qca_scan_freq_list_type. 3464 */ 3465 enum qca_vendor_attr_scan_freq_list_scheme { 3466 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1, 3467 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2, 3468 3469 /* keep last */ 3470 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST, 3471 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX = 3472 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1, 3473 }; 3474 3475 /* 3476 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers 3477 * 3478 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on 3479 * a bad packet error rates (PER). 3480 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered 3481 * based on beacon misses from the connected AP. 3482 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered 3483 * due to poor RSSI of the connected AP. 3484 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered 3485 * upon finding a BSSID with a better RSSI than the connected BSSID. 3486 * Also, set if the roam has to be triggered due to the high RSSI of the 3487 * current connected AP (better than 3488 * QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET). Here the RSSI of 3489 * the current BSSID need not be poor. 3490 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered 3491 * by triggering a periodic scan to find a better AP to roam. 3492 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered 3493 * when the connected channel environment is too noisy/congested. 3494 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered 3495 * when BTM Request frame is received from the connected AP. 3496 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered 3497 * when the channel utilization is goes above the configured threshold. 3498 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered 3499 * based on the request from the user (space). 3500 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when 3501 * device receives Deauthentication/Disassociation frame from connected 3502 * AP. 3503 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the 3504 * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI 3505 * is determined to be a poor one. 3506 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered 3507 * based on continuous TX Data Frame failures to the connected AP. 3508 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered 3509 * based on the scan results obtained from an external scan (not 3510 * triggered to aim roaming) 3511 * 3512 * Set the corresponding roam trigger reason bit to consider it for roam 3513 * trigger. 3514 * Userspace can set multiple bits and send to the driver. The driver shall 3515 * consider all of them to trigger/initiate a roam scan. 3516 */ 3517 enum qca_vendor_roam_triggers { 3518 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0, 3519 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1, 3520 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2, 3521 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3, 3522 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4, 3523 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5, 3524 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6, 3525 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7, 3526 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8, 3527 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9, 3528 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10, 3529 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11, 3530 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12, 3531 }; 3532 3533 /* 3534 * enum qca_vendor_roam_fail_reasons: Defines the various roam 3535 * fail reasons. This enum value is used in 3536 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute. 3537 * 3538 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not 3539 * able to trigger the scan. 3540 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan. 3541 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam 3542 * scan. 3543 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host. 3544 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame. 3545 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error 3546 * status code. 3547 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received. 3548 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request 3549 * frame. 3550 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame 3551 * with error status code. 3552 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not 3553 * received. 3554 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan. 3555 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication 3556 * frame. 3557 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped 3558 * internally before transmission. 3559 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation 3560 * Request frame. 3561 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is 3562 * dropped internally. 3563 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and 3564 * times out. 3565 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame. 3566 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped 3567 * internally. 3568 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key 3569 * M2 frame. 3570 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received. 3571 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame. 3572 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped 3573 * internally. 3574 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4 3575 * frame. 3576 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not 3577 * started for final beacon miss case. 3578 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame 3579 * received from the AP during roaming handoff. 3580 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps 3581 * or host is suspended and gives the indication of the last roamed AP only 3582 * when the Apps is resumed. If the Apps is resumed while the roaming is in 3583 * progress, this ongoing roaming is aborted and the last roamed AP is 3584 * indicated to host. 3585 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID. 3586 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times 3587 * out. 3588 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails. 3589 * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the 3590 * current network conditions are fine. 3591 */ 3592 enum qca_vendor_roam_fail_reasons { 3593 QCA_ROAM_FAIL_REASON_NONE = 0, 3594 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1, 3595 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2, 3596 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3, 3597 QCA_ROAM_FAIL_REASON_HOST = 4, 3598 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5, 3599 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6, 3600 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7, 3601 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8, 3602 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9, 3603 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10, 3604 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11, 3605 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12, 3606 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13, 3607 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14, 3608 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15, 3609 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16, 3610 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17, 3611 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18, 3612 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19, 3613 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20, 3614 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21, 3615 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22, 3616 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23, 3617 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24, 3618 QCA_ROAM_FAIL_REASON_DISCONNECT = 25, 3619 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26, 3620 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27, 3621 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28, 3622 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29, 3623 QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30, 3624 }; 3625 3626 /* 3627 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam 3628 * invoke fail reasons. This enum value is used in 3629 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute. 3630 * 3631 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed 3632 * in roam invoke command. 3633 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not 3634 * enabled. 3635 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID 3636 * length is invalid. 3637 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already 3638 * in progress. 3639 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response 3640 * of the AP in the roam invoke command to firmware. This reason is sent by the 3641 * firmware when the given AP is configured to be ignored or SSID/security 3642 * does not match. 3643 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of 3644 * firmware internal reasons. 3645 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled. 3646 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke. 3647 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail. 3648 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid. 3649 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to. 3650 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed. 3651 */ 3652 enum qca_vendor_roam_invoke_fail_reasons { 3653 QCA_ROAM_INVOKE_STATUS_NONE = 0, 3654 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1, 3655 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2, 3656 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3, 3657 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4, 3658 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5, 3659 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6, 3660 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7, 3661 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8, 3662 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9, 3663 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10, 3664 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11, 3665 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12, 3666 3667 }; 3668 3669 /** 3670 * enum qca_vendor_attr_roam_candidate_selection_criteria: 3671 * 3672 * Each attribute carries a weightage in percentage (%). 3673 * 3674 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value. 3675 * Represents the weightage to be given for the RSSI selection 3676 * criteria among other parameters. 3677 * 3678 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value. 3679 * Represents the weightage to be given for the rate selection 3680 * criteria among other parameters. 3681 * 3682 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value. 3683 * Represents the weightage to be given for the band width selection 3684 * criteria among other parameters. 3685 * 3686 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value. 3687 * Represents the weightage to be given for the band selection 3688 * criteria among other parameters. 3689 * 3690 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value. 3691 * Represents the weightage to be given for the NSS selection 3692 * criteria among other parameters. 3693 * 3694 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value. 3695 * Represents the weightage to be given for the channel congestion 3696 * selection criteria among other parameters. 3697 * 3698 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value. 3699 * Represents the weightage to be given for the beamforming selection 3700 * criteria among other parameters. 3701 * 3702 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value. 3703 * Represents the weightage to be given for the OCE selection 3704 * criteria among other parameters. 3705 */ 3706 enum qca_vendor_attr_roam_candidate_selection_criteria { 3707 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1, 3708 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2, 3709 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3, 3710 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4, 3711 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5, 3712 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6, 3713 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7, 3714 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8, 3715 3716 /* keep last */ 3717 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST, 3718 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX = 3719 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1, 3720 }; 3721 3722 /** 3723 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration 3724 * The following attributes are used to set/get/clear the respective 3725 * configurations to/from the driver. 3726 * For the get, the attribute for the configuration to be queried shall 3727 * carry any of its acceptable values to the driver. In return, the driver 3728 * shall send the configured values within the same attribute to the user 3729 * space. 3730 * 3731 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value. 3732 * Signifies to enable/disable roam control in driver. 3733 * 1-enable, 0-disable 3734 * Enable: Mandates the driver to do the further roams using the 3735 * configuration parameters set through 3736 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. 3737 * Disable: Disables the driver/firmware roaming triggered through 3738 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is 3739 * expected to continue with the default configurations. 3740 * 3741 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value. 3742 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET. 3743 * Roam control status is obtained through this attribute. 3744 * 3745 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the 3746 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET 3747 * is to be cleared in the driver. 3748 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR 3749 * and shall be ignored if used with other sub commands. 3750 * If this attribute is specified along with subcmd 3751 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore 3752 * all other attributes, if there are any. 3753 * If this attribute is not specified when the subcmd 3754 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall 3755 * clear the data corresponding to the attributes specified. 3756 * 3757 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the 3758 * list of frequencies and its type, represented by 3759 * enum qca_vendor_attr_scan_freq_list_scheme. 3760 * Frequency list and its type are mandatory for this attribute to set 3761 * the frequencies. 3762 * Frequency type is mandatory for this attribute to get the frequencies 3763 * and the frequency list is obtained through 3764 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST. 3765 * Frequency list type is mandatory for this attribute to clear the 3766 * frequencies. 3767 * 3768 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value. 3769 * Carries the value of scan period in seconds to set. 3770 * The value of scan period is obtained with the same attribute for get. 3771 * Clears the scan period in the driver when specified with clear command. 3772 * Scan period is the idle time in seconds between each subsequent 3773 * channel scans. 3774 * 3775 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value. 3776 * Carries the value of full scan period in seconds to set. 3777 * The value of full scan period is obtained with the same attribute for 3778 * get. 3779 * Clears the full scan period in the driver when specified with clear 3780 * command. Full scan period is the idle period in seconds between two 3781 * successive full channel roam scans. 3782 * 3783 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value. 3784 * Carries a bitmap of the roam triggers specified in 3785 * enum qca_vendor_roam_triggers. 3786 * The driver shall enable roaming by enabling corresponding roam triggers 3787 * based on the trigger bits sent with this attribute. 3788 * If this attribute is not configured, the driver shall proceed with 3789 * default behavior. 3790 * The bitmap configured is obtained with the same attribute for get. 3791 * Clears the bitmap configured in driver when specified with clear 3792 * command. 3793 * 3794 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the 3795 * weightage in percentage (%) to be given for each selection criteria. 3796 * Different roam candidate selection criteria are represented by 3797 * enum qca_vendor_attr_roam_candidate_selection_criteria. 3798 * The driver shall select the roam candidate based on corresponding 3799 * candidate selection scores sent. 3800 * 3801 * An empty nested attribute is used to indicate that no specific 3802 * preference score/criteria is configured (i.e., to disable this mechanism 3803 * in the set case and to show that the mechanism is disabled in the get 3804 * case). 3805 * 3806 * Userspace can send multiple attributes out of this enum to the driver. 3807 * Since this attribute represents the weight/percentage of preference for 3808 * the respective selection criteria, it is preferred to configure 100% 3809 * total weightage. The value in each attribute or cumulative weight of the 3810 * values in all the nested attributes should not exceed 100%. The driver 3811 * shall reject such configuration. 3812 * 3813 * If the weights configured through this attribute are less than 100%, 3814 * the driver shall honor the weights (x%) passed for the corresponding 3815 * selection criteria and choose/distribute rest of the weight (100-x)% 3816 * for the other selection criteria, based on its internal logic. 3817 * 3818 * The selection criteria configured is obtained with the same 3819 * attribute for get. 3820 * 3821 * Clears the selection criteria configured in the driver when specified 3822 * with clear command. 3823 * 3824 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value. 3825 * Represents value of scan frequency scheme from 3826 * enum qca_roam_scan_scheme. 3827 * 3828 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm, 3829 * signifying the RSSI threshold of the current connected AP, indicating 3830 * the driver to trigger roam only when the current connected AP's RSSI 3831 * is lesser than this threshold. 3832 * 3833 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm, 3834 * signifying the RSSI threshold of the candidate AP, indicating 3835 * the driver to trigger roam only to the candidate AP with RSSI 3836 * better than this threshold. If RSSI thresholds for candidate APs found 3837 * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using 3838 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ, 3839 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or 3840 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values 3841 * will take precedence over the value configured using 3842 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute. 3843 * 3844 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the 3845 * user triggered reason code to be sent to the AP in response to AP's 3846 * request to trigger the roam if the roaming cannot be triggered. 3847 * Applies to all the scenarios of AP assisted roaming (e.g., BTM). 3848 * 3849 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value. 3850 * Carries a bitmap of the roam triggers specified in 3851 * enum qca_vendor_roam_triggers. 3852 * Represents the roam triggers for which the specific scan scheme from 3853 * enum qca_roam_scan_scheme has to be applied. 3854 * It's an optional attribute. If this attribute is not configured, but 3855 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme 3856 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for 3857 * all the roams. 3858 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and 3859 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the 3860 * driver shall proceed with the default behavior. 3861 * 3862 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value 3863 * in dBm, signifying the RSSI threshold of the candidate AP found in 3864 * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate 3865 * AP found in 2.4GHz band only if it's RSSI value is better than this 3866 * threshold. Optional attribute. If this attribute is not included, then 3867 * threshold value specified by the 3868 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 3869 * 3870 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in 3871 * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz 3872 * band. The driver/firmware shall trigger roaming to the candidate AP 3873 * found in 5GHz band only if it's RSSI value is better than this 3874 * threshold. Optional attribute. If this attribute is not included, then 3875 * threshold value specified by the 3876 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 3877 * 3878 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in 3879 * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz 3880 * band. The driver/firmware shall trigger roaming to the candidate AP 3881 * found in 6GHz band only if it's RSSI value is better than this 3882 * threshold. Optional attribute. If this attribute is not included, then 3883 * threshold value specified by the 3884 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 3885 * 3886 * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value. 3887 * Carries bitmask value of bits from &enum qca_set_band and represents 3888 * all the bands in which roaming is allowed. The configuration is valid 3889 * until next disconnection. If this attribute is not present, the 3890 * existing configuration shall be used. By default, roaming is allowed 3891 * on all bands supported by local device. When the value is set to 3892 * %QCA_SETBAND_AUTO, all supported bands shall be enabled. 3893 * 3894 * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps. 3895 * Optional parameter. RX link speed threshold to disable roaming. 3896 * If the current RX link speed is above the threshold, roaming is not 3897 * needed. If this attribute is not configured, or if it is set to 0, the 3898 * driver will not consider the RX link speed in the roaming decision. 3899 * 3900 * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds. 3901 * Optional parameter. This configuration delays hand-off (in msec) by the 3902 * specified duration to receive pending rx frames from current BSS. 3903 * 3904 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit 3905 * value. 3906 * During the roam scan, if there are no desired APs found in the partial 3907 * frequency list, an immediate full scan on all the supported frequencies 3908 * is initiated as a fallback. This flag controls the frequency list 3909 * creation for the full scan on the following lines. 3910 * 1 - Full scan to exclude the frequencies that were already scanned by 3911 * the previous partial scan. 3912 * 0 - Full scan to include all the supported frequencies irrespective of 3913 * the ones part of the earlier partial scan. 3914 * If this flag is not specified, a full scan shall include all the 3915 * supported frequencies irrespective of the ones part of an earlier 3916 * partial scan. 3917 * 3918 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit 3919 * value. 3920 * During the roam scan, if there are no desired APs found in the partial 3921 * frequency list, an immediate full scan on all the supported frequencies 3922 * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz 3923 * frequencies, including all PSC frequencies by default. This attribute 3924 * controls the inclusion of the 6 GHz PSC frequencies for the full scan 3925 * as following. 3926 * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the 3927 * prior discovery of any 6 GHz frequency support in the environment. 3928 * This discovery can happen through a prior RNR, 11k neighbor 3929 * request, 11v BTM request, host scan, etc. 3930 * 0 - Default behavior. Full scan to include all the supported 6 GHz 3931 * PSC frequencies regardless of whether 6 GHz BSSs have been 3932 * discovered. 3933 * The default behavior if this flag is not specified is to include all 3934 * the supported 6 GHz PSC frequencies in the roam full scan. 3935 * 3936 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET: Unsigned 8-bit value. 3937 * This attribute signifies the RSSI offset that is added to low RSSI 3938 * threshold (QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD) to imply 3939 * high RSSI threshold. STA is expected to trigger roam if the current 3940 * connected AP's RSSI gets above this high RSSI threshold. STA's roam 3941 * attempt on high RSSI threshold aims to find candidates from other 3942 * better Wi-Fi bands. E.g., STA would initially connect to a 2.4 GHz BSSID 3943 * and would migrate to 5/6 GHz when it comes closer to the AP (high RSSI 3944 * for 2.4 GHz BSS). 3945 */ 3946 enum qca_vendor_attr_roam_control { 3947 QCA_ATTR_ROAM_CONTROL_ENABLE = 1, 3948 QCA_ATTR_ROAM_CONTROL_STATUS = 2, 3949 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3, 3950 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4, 3951 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5, 3952 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6, 3953 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7, 3954 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8, 3955 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9, 3956 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10, 3957 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11, 3958 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12, 3959 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13, 3960 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14, 3961 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15, 3962 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16, 3963 QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17, 3964 QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24, 3965 QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25, 3966 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26, 3967 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27, 3968 QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET = 31, 3969 3970 /* keep last */ 3971 QCA_ATTR_ROAM_CONTROL_AFTER_LAST, 3972 QCA_ATTR_ROAM_CONTROL_MAX = 3973 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1, 3974 }; 3975 3976 /** 3977 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by 3978 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command. 3979 * 3980 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value. 3981 * Represents the different roam sub commands referred by 3982 * enum qca_wlan_vendor_roaming_subcmd. 3983 * 3984 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value. 3985 * Represents the Request ID for the specific set of commands. 3986 * This also helps to map specific set of commands to the respective 3987 * ID / client. e.g., helps to identify the user entity configuring the 3988 * Blacklist BSSID and accordingly clear the respective ones with the 3989 * matching ID. 3990 * 3991 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned 3992 * 32-bit value.Represents the number of whitelist SSIDs configured. 3993 * 3994 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute 3995 * to carry the list of Whitelist SSIDs. 3996 * 3997 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute, 3998 * 0..32 octets). Represents the white list SSID. Whitelist SSIDs 3999 * represent the list of SSIDs to which the firmware/driver can consider 4000 * to roam to. 4001 * 4002 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when 4003 * comparing with a 2.4GHz BSSID. They are not applied when comparing two 4004 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD - 4005 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS. 4006 * 4007 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit 4008 * value, RSSI threshold above which 5GHz RSSI is favored. 4009 * 4010 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit 4011 * value, RSSI threshold below which 5GHz RSSI is penalized. 4012 * 4013 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit 4014 * value, factor by which 5GHz RSSI is boosted. 4015 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor 4016 * 4017 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit 4018 * value, factor by which 5GHz RSSI is penalized. 4019 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor 4020 * 4021 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit 4022 * value, maximum boost that can be applied to a 5GHz RSSI. 4023 * 4024 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit 4025 * value, boost applied to current BSSID to ensure the currently 4026 * associated BSSID is favored so as to prevent ping-pong situations. 4027 * 4028 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit 4029 * value, RSSI below which "Alert" roam is enabled. 4030 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID 4031 * because the RSSI is low, or because many successive beacons have been 4032 * lost or other bad link conditions. 4033 * 4034 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit 4035 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where 4036 * firmware is hunting for a better BSSID or white listed SSID even though 4037 * the RSSI of the link is good. The parameters enabling the roaming are 4038 * configured through the PARAM_A_BAND_XX attrbutes. 4039 * 4040 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute, 4041 * represents the BSSIDs preferred over others while evaluating them 4042 * for the roaming. 4043 * 4044 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned 4045 * 32-bit value. Represents the number of preferred BSSIDs set. 4046 * 4047 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC 4048 * address representing the BSSID to be preferred. 4049 * 4050 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed 4051 * 32-bit value, representing the modifier to be applied to the RSSI of 4052 * the BSSID for the purpose of comparing it with other roam candidate. 4053 * 4054 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute, 4055 * represents the BSSIDs to get blacklisted for roaming. 4056 * 4057 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned 4058 * 32-bit value, represents the number of blacklisted BSSIDs. 4059 * 4060 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC 4061 * address representing the Blacklisted BSSID. 4062 * 4063 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute, 4064 * indicates this BSSID blacklist as a hint to the driver. The driver can 4065 * select this BSSID in the worst case (when no other BSSIDs are better). 4066 * 4067 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to 4068 * set/get/clear the roam control config as 4069 * defined @enum qca_vendor_attr_roam_control. 4070 * 4071 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last 4072 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max 4073 */ 4074 enum qca_wlan_vendor_attr_roaming_config_params { 4075 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0, 4076 4077 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1, 4078 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2, 4079 4080 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3, 4081 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4, 4082 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5, 4083 4084 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6, 4085 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7, 4086 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8, 4087 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9, 4088 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10, 4089 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11, 4090 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12, 4091 4092 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13, 4093 4094 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14, 4095 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15, 4096 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16, 4097 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17, 4098 4099 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18, 4100 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19, 4101 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20, 4102 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21, 4103 4104 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22, 4105 4106 /* keep last */ 4107 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST, 4108 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX = 4109 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1, 4110 }; 4111 4112 /** 4113 * enum qca_wlan_vendor_roaming_subcmd: Referred by 4114 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD. 4115 * 4116 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to 4117 * configure the white list SSIDs. These are configured through 4118 * the following attributes. 4119 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS, 4120 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST, 4121 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID 4122 * 4123 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to 4124 * configure the Roam params. These parameters are evaluated on the extscan 4125 * results. Refers the attributes PARAM_A_BAND_XX above to configure the 4126 * params. 4127 * 4128 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses 4129 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE 4130 * to enable/disable Lazy roam. 4131 * 4132 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID 4133 * preference. Contains the attribute 4134 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID 4135 * preference. 4136 * 4137 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params 4138 * 4139 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist 4140 * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to 4141 * set the same. 4142 * 4143 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the 4144 * roam control config to the driver with the attribute 4145 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 4146 * 4147 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the 4148 * roam control config from driver with the attribute 4149 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 4150 * For the get, the attribute for the configuration to be queried shall 4151 * carry any of its acceptable value to the driver. In return, the driver 4152 * shall send the configured values within the same attribute to the user 4153 * space. 4154 * 4155 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the 4156 * roam control config in the driver with the attribute 4157 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 4158 * The driver shall continue with its default roaming behavior when data 4159 * corresponding to an attribute is cleared. 4160 */ 4161 enum qca_wlan_vendor_roaming_subcmd { 4162 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1, 4163 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2, 4164 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3, 4165 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4, 4166 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5, 4167 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6, 4168 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7, 4169 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8, 4170 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9, 4171 }; 4172 4173 /** 4174 * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information 4175 * 4176 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value 4177 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version 4178 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version 4179 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index 4180 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last 4181 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max 4182 */ 4183 enum qca_wlan_vendor_attr_get_wifi_info { 4184 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0, 4185 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1, 4186 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2, 4187 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3, 4188 4189 /* KEEP LAST */ 4190 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST, 4191 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX = 4192 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1, 4193 }; 4194 4195 enum qca_wlan_vendor_attr_logger_results { 4196 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0, 4197 4198 /* 4199 * Unsigned 32-bit value; must match the request Id supplied by 4200 * Wi-Fi HAL in the corresponding subcmd NL msg. 4201 */ 4202 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1, 4203 4204 /* 4205 * Unsigned 32-bit value; used to indicate the size of memory 4206 * dump to be allocated. 4207 */ 4208 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2, 4209 4210 /* keep last */ 4211 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST, 4212 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX = 4213 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1, 4214 }; 4215 4216 /** 4217 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel. 4218 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS. 4219 */ 4220 enum qca_wlan_vendor_channel_prop_flags { 4221 /* Bits 0, 1, 2, and 3 are reserved */ 4222 4223 /* Turbo channel */ 4224 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4, 4225 /* CCK channel */ 4226 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5, 4227 /* OFDM channel */ 4228 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6, 4229 /* 2.4 GHz spectrum channel. */ 4230 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7, 4231 /* 5 GHz spectrum channel */ 4232 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8, 4233 /* Only passive scan allowed */ 4234 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9, 4235 /* Dynamic CCK-OFDM channel */ 4236 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10, 4237 /* GFSK channel (FHSS PHY) */ 4238 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11, 4239 /* Radar found on channel */ 4240 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12, 4241 /* 11a static turbo channel only */ 4242 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13, 4243 /* Half rate channel */ 4244 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14, 4245 /* Quarter rate channel */ 4246 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15, 4247 /* HT 20 channel */ 4248 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16, 4249 /* HT 40 with extension channel above */ 4250 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17, 4251 /* HT 40 with extension channel below */ 4252 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18, 4253 /* HT 40 intolerant */ 4254 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19, 4255 /* VHT 20 channel */ 4256 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20, 4257 /* VHT 40 with extension channel above */ 4258 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21, 4259 /* VHT 40 with extension channel below */ 4260 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22, 4261 /* VHT 80 channel */ 4262 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23, 4263 /* HT 40 intolerant mark bit for ACS use */ 4264 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24, 4265 /* Channel temporarily blocked due to noise */ 4266 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25, 4267 /* VHT 160 channel */ 4268 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26, 4269 /* VHT 80+80 channel */ 4270 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27, 4271 /* HE 20 channel */ 4272 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28, 4273 /* HE 40 with extension channel above */ 4274 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29, 4275 /* HE 40 with extension channel below */ 4276 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30, 4277 /* HE 40 intolerant */ 4278 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31, 4279 }; 4280 4281 /** 4282 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a 4283 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is 4284 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2. 4285 */ 4286 enum qca_wlan_vendor_channel_prop_flags_2 { 4287 /* HE 40 intolerant mark bit for ACS use */ 4288 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0, 4289 /* HE 80 channel */ 4290 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1, 4291 /* HE 160 channel */ 4292 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2, 4293 /* HE 80+80 channel */ 4294 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3, 4295 }; 4296 4297 /** 4298 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for 4299 * each channel. This is used by 4300 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT. 4301 */ 4302 enum qca_wlan_vendor_channel_prop_flags_ext { 4303 /* Radar found on channel */ 4304 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0, 4305 /* DFS required on channel */ 4306 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1, 4307 /* DFS required on channel for 2nd band of 80+80 */ 4308 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2, 4309 /* If channel has been checked for DFS */ 4310 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3, 4311 /* Excluded in 802.11d */ 4312 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4, 4313 /* Channel Switch Announcement received on this channel */ 4314 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5, 4315 /* Ad-hoc is not allowed */ 4316 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6, 4317 /* Station only channel */ 4318 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7, 4319 /* DFS radar history for slave device (STA mode) */ 4320 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8, 4321 /* DFS CAC valid for slave device (STA mode) */ 4322 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9, 4323 }; 4324 4325 /** 4326 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd 4327 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite 4328 * information to start/stop the NUD statistics collection. 4329 */ 4330 enum qca_attr_nud_stats_set { 4331 QCA_ATTR_NUD_STATS_SET_INVALID = 0, 4332 4333 /* 4334 * Flag to start/stop the NUD statistics collection. 4335 * Start - If included, Stop - If not included 4336 */ 4337 QCA_ATTR_NUD_STATS_SET_START = 1, 4338 /* IPv4 address of the default gateway (in network byte order) */ 4339 QCA_ATTR_NUD_STATS_GW_IPV4 = 2, 4340 /* 4341 * Represents the data packet type to be monitored. 4342 * Host driver tracks the stats corresponding to each data frame 4343 * represented by these flags. 4344 * These data packets are represented by 4345 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info. 4346 */ 4347 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3, 4348 /* keep last */ 4349 QCA_ATTR_NUD_STATS_SET_LAST, 4350 QCA_ATTR_NUD_STATS_SET_MAX = 4351 QCA_ATTR_NUD_STATS_SET_LAST - 1, 4352 }; 4353 4354 /** 4355 * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd 4356 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite 4357 * information to start / stop the NUD stats collection. 4358 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats 4359 * Bitmap to Flag to Start / Stop the NUD stats collection 4360 * Start - If included , Stop - If not included 4361 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address 4362 * IPv4 address of Default Gateway (in network byte order) 4363 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite 4364 * information to start / stop the NUD stats collection. 4365 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats 4366 * Flag to Start / Stop the NUD stats collection 4367 * Start - If included , Stop - If not included 4368 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address 4369 * IPv4 address of Default Gateway (in network byte order) 4370 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite 4371 * information to start / stop the NUD stats collection. 4372 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats 4373 * Flag to Start / Stop the NUD stats collection 4374 * Start - If included , Stop - If not included 4375 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address 4376 * IPv4 address of Default Gateway (in network byte order) 4377 */ 4378 enum qca_attr_connectivity_check_stats_set { 4379 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0, 4380 QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1, 4381 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2, 4382 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3, 4383 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4, 4384 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5, 4385 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6, 4386 /* keep last */ 4387 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST, 4388 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX = 4389 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1, 4390 }; 4391 4392 /** 4393 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various 4394 * data types for which the stats have to get collected. 4395 */ 4396 enum qca_wlan_vendor_connectivity_check_pkt_flags { 4397 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0, 4398 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1, 4399 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2, 4400 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3, 4401 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4, 4402 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get 4403 * to represent the stats of respective data type. 4404 */ 4405 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5, 4406 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6, 4407 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7, 4408 }; 4409 4410 enum qca_attr_connectivity_check_stats { 4411 QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0, 4412 /* Data packet type for which the stats are collected. 4413 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags 4414 */ 4415 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1, 4416 /* ID corresponding to the DNS frame for which the respective DNS stats 4417 * are monitored (u32). 4418 */ 4419 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2, 4420 /* source / destination port on which the respective proto stats are 4421 * collected (u32). 4422 */ 4423 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3, 4424 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4, 4425 /* IPv4/IPv6 address for which the destined data packets are 4426 * monitored. (in network byte order) 4427 */ 4428 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5, 4429 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6, 4430 /* Data packet Request count received from netdev */ 4431 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7, 4432 /* Data packet Request count sent to lower MAC from upper MAC */ 4433 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8, 4434 /* Data packet Request count received by lower MAC from upper MAC */ 4435 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9, 4436 /* Data packet Request count successfully transmitted by the device */ 4437 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10, 4438 /* Data packet Response count received by lower MAC */ 4439 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11, 4440 /* Data packet Response count received by upper MAC */ 4441 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12, 4442 /* Data packet Response count delivered to netdev */ 4443 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13, 4444 /* Data Packet Response count that are dropped out of order */ 4445 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14, 4446 4447 /* keep last */ 4448 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST, 4449 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX = 4450 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1, 4451 }; 4452 4453 /** 4454 * qca_attr_nud_stats_get: Attributes to vendor subcmd 4455 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite 4456 * NUD statistics collected when queried. 4457 */ 4458 enum qca_attr_nud_stats_get { 4459 QCA_ATTR_NUD_STATS_GET_INVALID = 0, 4460 /* ARP Request count from netdev */ 4461 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1, 4462 /* ARP Request count sent to lower MAC from upper MAC */ 4463 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2, 4464 /* ARP Request count received by lower MAC from upper MAC */ 4465 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3, 4466 /* ARP Request count successfully transmitted by the device */ 4467 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4, 4468 /* ARP Response count received by lower MAC */ 4469 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5, 4470 /* ARP Response count received by upper MAC */ 4471 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6, 4472 /* ARP Response count delivered to netdev */ 4473 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7, 4474 /* ARP Response count delivered to netdev */ 4475 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8, 4476 /* 4477 * Flag indicating if the station's link to the AP is active. 4478 * Active Link - If included, Inactive link - If not included 4479 */ 4480 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9, 4481 /* 4482 * Flag indicating if there is any duplicate address detected (DAD). 4483 * Yes - If detected, No - If not detected. 4484 */ 4485 QCA_ATTR_NUD_STATS_IS_DAD = 10, 4486 /* 4487 * List of Data types for which the stats are requested. 4488 * This list does not carry ARP stats as they are done by the 4489 * above attributes. Represented by enum qca_attr_nud_data_stats. 4490 */ 4491 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11, 4492 /* keep last */ 4493 QCA_ATTR_NUD_STATS_GET_LAST, 4494 QCA_ATTR_NUD_STATS_GET_MAX = 4495 QCA_ATTR_NUD_STATS_GET_LAST - 1, 4496 }; 4497 4498 enum qca_wlan_btm_candidate_status { 4499 QCA_STATUS_ACCEPT = 0, 4500 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1, 4501 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2, 4502 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3, 4503 QCA_STATUS_REJECT_LOW_RSSI = 4, 4504 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5, 4505 QCA_STATUS_REJECT_UNKNOWN = 6, 4506 }; 4507 4508 enum qca_wlan_vendor_attr_btm_candidate_info { 4509 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0, 4510 4511 /* 6-byte MAC address representing the BSSID of transition candidate */ 4512 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1, 4513 /* 4514 * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status 4515 * returned by the driver. It says whether the BSSID provided in 4516 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by 4517 * the driver, if not it specifies the reason for rejection. 4518 * Note that the user-space can overwrite the transition reject reason 4519 * codes provided by driver based on more information. 4520 */ 4521 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2, 4522 4523 /* keep last */ 4524 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST, 4525 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX = 4526 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1, 4527 }; 4528 4529 enum qca_attr_trace_level { 4530 QCA_ATTR_TRACE_LEVEL_INVALID = 0, 4531 /* 4532 * Nested array of the following attributes: 4533 * QCA_ATTR_TRACE_LEVEL_MODULE, 4534 * QCA_ATTR_TRACE_LEVEL_MASK. 4535 */ 4536 QCA_ATTR_TRACE_LEVEL_PARAM = 1, 4537 /* 4538 * Specific QCA host driver module. Please refer to the QCA host 4539 * driver implementation to get the specific module ID. 4540 */ 4541 QCA_ATTR_TRACE_LEVEL_MODULE = 2, 4542 /* Different trace level masks represented in the QCA host driver. */ 4543 QCA_ATTR_TRACE_LEVEL_MASK = 3, 4544 4545 /* keep last */ 4546 QCA_ATTR_TRACE_LEVEL_AFTER_LAST, 4547 QCA_ATTR_TRACE_LEVEL_MAX = 4548 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1, 4549 }; 4550 4551 /** 4552 * enum qca_wlan_vendor_attr_get_logger_features - value for logger 4553 * supported features 4554 * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid 4555 * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features 4556 * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum 4557 * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type 4558 * 4559 * enum values are used for NL attributes for data used by 4560 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command. 4561 */ 4562 enum qca_wlan_vendor_attr_get_logger_features { 4563 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0, 4564 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1, 4565 4566 /* keep last */ 4567 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST, 4568 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX = 4569 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1, 4570 }; 4571 4572 /** 4573 * enum qca_wlan_vendor_attr_link_properties - link properties 4574 * 4575 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value 4576 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to 4577 * specify the number of spatial streams negotiated 4578 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value 4579 * to specify negotiated rate flags i.e. ht, vht and channel width 4580 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to 4581 * specify the operating frequency 4582 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer 4583 * (STA / AP ) for the connected link. 4584 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a 4585 * &struct nl80211_sta_flag_update for the respective connected link. MAC 4586 * address of the peer represented by 4587 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR. 4588 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last 4589 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value 4590 */ 4591 enum qca_wlan_vendor_attr_link_properties { 4592 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0, 4593 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1, 4594 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2, 4595 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3, 4596 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4, 4597 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5, 4598 4599 /* KEEP LAST */ 4600 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST, 4601 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX = 4602 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1, 4603 }; 4604 4605 /** 4606 * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support 4607 * 4608 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid 4609 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload 4610 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum 4611 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type 4612 * 4613 * enum values are used for NL attributes for data used by 4614 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command. 4615 */ 4616 enum qca_wlan_vendor_attr_nd_offload { 4617 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0, 4618 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG, 4619 4620 /* Keep last */ 4621 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST, 4622 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX = 4623 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1, 4624 }; 4625 4626 /** 4627 * enum qca_wlan_vendor_features - Vendor device/driver feature flags 4628 * 4629 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key 4630 * management offload, a mechanism where the station's firmware 4631 * does the exchange with the AP to establish the temporal keys 4632 * after roaming, rather than having the user space wpa_supplicant do it. 4633 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic 4634 * band selection based on channel selection results. 4635 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports 4636 * simultaneous off-channel operations. 4637 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P 4638 * Listen offload; a mechanism where the station's firmware takes care of 4639 * responding to incoming Probe Request frames received from other P2P 4640 * Devices whilst in Listen state, rather than having the user space 4641 * wpa_supplicant do it. Information from received P2P requests are 4642 * forwarded from firmware to host whenever the host processor wakes up. 4643 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA 4644 * specific features. 4645 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific 4646 * features. 4647 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON 4648 * specific features only. If a Device sets this bit but not the 4649 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that 4650 * this Device may not support all OCE AP functionalities but can support 4651 * only OCE STA-CFON functionalities. 4652 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self 4653 * managed regulatory. 4654 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time). 4655 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE) 4656 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation 4657 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving 4658 * and applying thermal configuration through 4659 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and 4660 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from 4661 * userspace. 4662 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r. 4663 * With Adaptive 11r feature, access points advertise the vendor 4664 * specific IEs and MDE but do not include FT AKM in the RSNE. 4665 * The Adaptive 11r supported stations are expected to identify 4666 * such vendor specific IEs and connect to the AP in FT mode though 4667 * the profile is configured in non-FT mode. 4668 * The driver-based SME cases also need to have this support for 4669 * Adaptive 11r to handle the connection and roaming scenarios. 4670 * This flag indicates the support for the same to the user space. 4671 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports 4672 * concurrent network sessions on different Wi-Fi Bands. This feature 4673 * capability is attributed to the hardware's capability to support 4674 * the same (e.g., DBS). 4675 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the 4676 * responses for the respective TWT operations are asynchronous (separate) 4677 * event message) from the driver. If not specified, the responses are 4678 * synchronous (in vendor command reply) to the request. Each TWT 4679 * operation is specifically mentioned (against its respective) 4680 * documentation) to support either of these or both modes. 4681 * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates 4682 * that the driver requires add/del virtual interface path using the 4683 * generic nl80211 commands for NDP interface create/delete and to 4684 * register/unregister the netdev instead of creating/deleting the NDP 4685 * interface using the vendor commands 4686 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and 4687 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel 4688 * (5.12 version onward), interface creation/deletion is not allowed using 4689 * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK 4690 * during the register/unregister of netdev. Create and delete NDP 4691 * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE 4692 * commands respectively if the driver advertises this capability set. 4693 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in 4694 * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is 4695 * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored. 4696 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP 4697 * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then 4698 * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored. 4699 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in 4700 * station mode supports secure RTT measurement exchange. If 4701 * NL80211_EXT_FEATURE_SECURE_RTT is set, 4702 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored. 4703 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP 4704 * mode supports secure RTT measurement exchange. If 4705 * NL80211_EXT_FEATURE_SECURE_RTT is set, 4706 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored. 4707 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that 4708 * the device in station mode supports protection of range negotiation and 4709 * measurement management frames. If 4710 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then 4711 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored. 4712 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that 4713 * the device in AP mode supports protection of range negotiation and 4714 * measurement management frames. If 4715 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then 4716 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored. 4717 * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device 4718 * in AP mode supports configuring allowed frequency list for AP operation 4719 * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST. 4720 * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates 4721 * that the device supports enhanced audio experience over WLAN feature. 4722 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits 4723 */ 4724 enum qca_wlan_vendor_features { 4725 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0, 4726 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1, 4727 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2, 4728 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3, 4729 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4, 4730 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5, 4731 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6, 4732 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7, 4733 QCA_WLAN_VENDOR_FEATURE_TWT = 8, 4734 QCA_WLAN_VENDOR_FEATURE_11AX = 9, 4735 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10, 4736 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11, 4737 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12, 4738 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13, 4739 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14, 4740 QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15, 4741 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16, 4742 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17, 4743 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18, 4744 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19, 4745 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20, 4746 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21, 4747 QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22, 4748 QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23, 4749 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */ 4750 }; 4751 4752 /** 4753 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP 4754 * conditional channel switch 4755 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial 4756 * value 4757 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based 4758 * frequency list (an array of u32 values in host byte order) 4759 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the 4760 * conditional switch (u32)- 0: Success, Non-zero: Failure 4761 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last 4762 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max 4763 */ 4764 enum qca_wlan_vendor_attr_sap_conditional_chan_switch { 4765 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0, 4766 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1, 4767 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2, 4768 4769 /* Keep Last */ 4770 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST, 4771 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX = 4772 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1, 4773 }; 4774 4775 /** 4776 * enum wifi_logger_supported_features - values for supported logger features 4777 * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW 4778 * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics 4779 * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events 4780 * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver 4781 * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver 4782 * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health 4783 * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump 4784 * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate 4785 */ 4786 enum wifi_logger_supported_features { 4787 WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)), 4788 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)), 4789 WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)), 4790 WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)), 4791 WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)), 4792 WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)), 4793 WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)), 4794 WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)), 4795 WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8)) 4796 }; 4797 4798 /** 4799 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get 4800 * capabilities features 4801 */ 4802 enum qca_wlan_tdls_caps_features_supported { 4803 WIFI_TDLS_SUPPORT = (1 << (0)), 4804 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)), 4805 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)), 4806 4807 /* Indicates if the TDLS session can be formed with the peer using 4808 * higher bandwidth than the bandwidth of the AP path. 4809 */ 4810 WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)), 4811 }; 4812 4813 /** 4814 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with 4815 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. 4816 * 4817 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8). 4818 * Used with event to notify the primary channel number selected in ACS 4819 * operation. 4820 * Note: If both the driver and user-space application supports the 6 GHz band, 4821 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use 4822 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead. 4823 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL 4824 * is still used if either of the driver or user space application doesn't 4825 * support the 6 GHz band. 4826 * 4827 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8). 4828 * Used with event to notify the secondary channel number selected in ACS 4829 * operation. 4830 * Note: If both the driver and user-space application supports the 6 GHz band, 4831 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use 4832 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead. 4833 * To maintain backward compatibility, 4834 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of 4835 * the driver or user space application doesn't support 6 GHz band. 4836 * 4837 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8). 4838 * (a) Used with command to configure hw_mode from 4839 * enum qca_wlan_vendor_acs_hw_mode for ACS operation. 4840 * (b) Also used with event to notify the hw_mode of selected primary channel 4841 * in ACS operation. 4842 * 4843 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute. 4844 * Used with command to configure ACS operation for HT mode. 4845 * Disable (flag attribute not present) - HT disabled and 4846 * Enable (flag attribute present) - HT enabled. 4847 * 4848 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute. 4849 * Used with command to configure ACS operation for HT40 mode. 4850 * Disable (flag attribute not present) - HT40 disabled and 4851 * Enable (flag attribute present) - HT40 enabled. 4852 * 4853 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute. 4854 * Used with command to configure ACS operation for VHT mode. 4855 * Disable (flag attribute not present) - VHT disabled and 4856 * Enable (flag attribute present) - VHT enabled. 4857 * 4858 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and 4859 * mandatory with event. 4860 * If specified in command path, ACS operation is configured with the given 4861 * channel width (in MHz). 4862 * In event path, specifies the channel width of the primary channel selected. 4863 * 4864 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC. 4865 * Used with command to configure channel list using an array of 4866 * channel numbers (u8). 4867 * Note: If both the driver and user-space application supports the 6 GHz band, 4868 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas 4869 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional. 4870 * 4871 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8). 4872 * Used with event to notify the VHT segment 0 center channel number selected in 4873 * ACS operation. 4874 * Note: If both the driver and user-space application supports the 6 GHz band, 4875 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use 4876 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead. 4877 * To maintain backward compatibility, 4878 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of 4879 * the driver or user space application doesn't support the 6 GHz band. 4880 * 4881 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8). 4882 * Used with event to notify the VHT segment 1 center channel number selected in 4883 * ACS operation. 4884 * Note: If both the driver and user-space application supports the 6 GHz band, 4885 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use 4886 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead. 4887 * To maintain backward compatibility, 4888 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of 4889 * the driver or user space application doesn't support the 6 GHz band. 4890 * 4891 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC. 4892 * Used with command to configure the channel list using an array of channel 4893 * center frequencies in MHz (u32). 4894 * Note: If both the driver and user-space application supports the 6 GHz band, 4895 * the driver first parses the frequency list and if it fails to get a frequency 4896 * list, parses the channel list specified using 4897 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in 4898 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST). 4899 * 4900 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32). 4901 * Used with event to notify the primary channel center frequency (MHz) selected 4902 * in ACS operation. 4903 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4904 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL. 4905 * 4906 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32). 4907 * Used with event to notify the secondary channel center frequency (MHz) 4908 * selected in ACS operation. 4909 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4910 * includes this attribute along with 4911 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL. 4912 * 4913 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32). 4914 * Used with event to notify the VHT segment 0 center channel frequency (MHz) 4915 * selected in ACS operation. 4916 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4917 * includes this attribute along with 4918 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL. 4919 * 4920 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32). 4921 * Used with event to notify the VHT segment 1 center channel frequency (MHz) 4922 * selected in ACS operation. 4923 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4924 * includes this attribute along with 4925 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL. 4926 * 4927 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute. 4928 * Used with command to notify the driver of EDMG request for ACS 4929 * operation. 4930 * 4931 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8). 4932 * Used with event to notify the EDMG channel number selected in ACS 4933 * operation. 4934 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL 4935 * 4936 * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16). 4937 * Used with event to notify the puncture pattern selected in ACS operation. 4938 * Encoding for this attribute will follow the convention used in the Disabled 4939 * Subchannel Bitmap field of the EHT Operation IE. 4940 * 4941 * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute. 4942 * Used with command to configure ACS operation for EHT mode. 4943 * Disable (flag attribute not present) - EHT disabled and 4944 * Enable (flag attribute present) - EHT enabled. 4945 * 4946 * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32). 4947 * Used with command to configure how older scan can be considered for ACS 4948 * scoring. In case scan was performed on partial set of channels configured 4949 * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME 4950 * (in ms), then scan only remaining channels. 4951 */ 4952 enum qca_wlan_vendor_attr_acs_offload { 4953 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0, 4954 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1, 4955 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2, 4956 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3, 4957 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4, 4958 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5, 4959 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6, 4960 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7, 4961 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8, 4962 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9, 4963 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10, 4964 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11, 4965 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12, 4966 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13, 4967 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14, 4968 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15, 4969 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16, 4970 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17, 4971 QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18, 4972 QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19, 4973 QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20, 4974 4975 /* keep last */ 4976 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST, 4977 QCA_WLAN_VENDOR_ATTR_ACS_MAX = 4978 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1 4979 }; 4980 4981 /** 4982 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the 4983 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. 4984 * 4985 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode 4986 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode 4987 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode 4988 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode 4989 * @QCA_ACS_MODE_IEEE80211ANY: all modes 4990 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode 4991 */ 4992 enum qca_wlan_vendor_acs_hw_mode { 4993 QCA_ACS_MODE_IEEE80211B, 4994 QCA_ACS_MODE_IEEE80211G, 4995 QCA_ACS_MODE_IEEE80211A, 4996 QCA_ACS_MODE_IEEE80211AD, 4997 QCA_ACS_MODE_IEEE80211ANY, 4998 QCA_ACS_MODE_IEEE80211AX, 4999 }; 5000 5001 /** 5002 * enum qca_access_policy - access control policy 5003 * 5004 * Access control policy is applied on the configured IE 5005 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE). 5006 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY. 5007 * 5008 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match 5009 *» with the specific configuration (IE) set, i.e. allow all the 5010 *» connections which do not match the configuration. 5011 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match 5012 *» with the specific configuration (IE) set, i.e. deny all the 5013 *» connections which do not match the configuration. 5014 */ 5015 enum qca_access_policy { 5016 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED, 5017 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED, 5018 }; 5019 5020 /** 5021 * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values 5022 * 5023 * The valid values for the ignore assoc disallowed 5024 * 5025 * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed 5026 * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed 5027 * 5028 */ 5029 enum qca_ignore_assoc_disallowed { 5030 QCA_IGNORE_ASSOC_DISALLOWED_DISABLE, 5031 QCA_IGNORE_ASSOC_DISALLOWED_ENABLE 5032 }; 5033 5034 /* Attributes for data used by 5035 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and 5036 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands. 5037 */ 5038 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\ 5039 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES 5040 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\ 5041 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL 5042 #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\ 5043 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON 5044 enum qca_wlan_vendor_attr_config { 5045 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0, 5046 /* 5047 * Unsigned 32-bit value to set the DTIM period. 5048 * Whether the wifi chipset wakes at every dtim beacon or a multiple of 5049 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3 5050 * DTIM beacons. 5051 */ 5052 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1, 5053 /* 5054 * Unsigned 32-bit value to set the wifi_iface stats averaging factor 5055 * used to calculate statistics like average the TSF offset or average 5056 * number of frame leaked. 5057 * For instance, upon Beacon frame reception: 5058 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000 5059 * For instance, when evaluating leaky APs: 5060 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000 5061 */ 5062 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2, 5063 /* 5064 * Unsigned 32-bit value to configure guard time, i.e., when 5065 * implementing IEEE power management based on frame control PM bit, how 5066 * long the driver waits before shutting down the radio and after 5067 * receiving an ACK frame for a Data frame with PM bit set. 5068 */ 5069 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3, 5070 /* Unsigned 32-bit value to change the FTM capability dynamically */ 5071 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4, 5072 /* Unsigned 16-bit value to configure maximum TX rate dynamically */ 5073 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5, 5074 /* 5075 * Unsigned 32-bit value to configure the number of continuous 5076 * Beacon Miss which shall be used by the firmware to penalize 5077 * the RSSI. 5078 */ 5079 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6, 5080 /* 5081 * Unsigned 8-bit value to configure the channel avoidance indication 5082 * behavior. Firmware to send only one indication and ignore duplicate 5083 * indications when set to avoid multiple Apps wakeups. 5084 */ 5085 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7, 5086 /* 5087 * 8-bit unsigned value to configure the maximum TX MPDU for 5088 * aggregation. 5089 */ 5090 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8, 5091 /* 5092 * 8-bit unsigned value to configure the maximum RX MPDU for 5093 * aggregation. 5094 */ 5095 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9, 5096 /* 5097 * 8-bit unsigned value to configure the Non aggregate/11g sw 5098 * retry threshold (0 disable, 31 max). 5099 */ 5100 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10, 5101 /* 5102 * 8-bit unsigned value to configure the aggregate sw 5103 * retry threshold (0 disable, 31 max). 5104 */ 5105 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11, 5106 /* 5107 * 8-bit unsigned value to configure the MGMT frame 5108 * retry threshold (0 disable, 31 max). 5109 */ 5110 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12, 5111 /* 5112 * 8-bit unsigned value to configure the CTRL frame 5113 * retry threshold (0 disable, 31 max). 5114 */ 5115 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13, 5116 /* 5117 * 8-bit unsigned value to configure the propagation delay for 5118 * 2G/5G band (0~63, units in us) 5119 */ 5120 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14, 5121 /* 5122 * Unsigned 32-bit value to configure the number of unicast TX fail 5123 * packet count. The peer is disconnected once this threshold is 5124 * reached. 5125 */ 5126 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15, 5127 /* 5128 * Attribute used to set scan default IEs to the driver. 5129 * 5130 * These IEs can be used by scan operations that will be initiated by 5131 * the driver/firmware. 5132 * 5133 * For further scan requests coming to the driver, these IEs should be 5134 * merged with the IEs received along with scan request coming to the 5135 * driver. If a particular IE is present in the scan default IEs but not 5136 * present in the scan request, then that IE should be added to the IEs 5137 * sent in the Probe Request frames for that scan request. 5138 */ 5139 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16, 5140 /* Unsigned 32-bit attribute for generic commands */ 5141 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17, 5142 /* Unsigned 32-bit value attribute for generic commands */ 5143 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18, 5144 /* Unsigned 32-bit data attribute for generic command response */ 5145 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19, 5146 /* 5147 * Unsigned 32-bit length attribute for 5148 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 5149 */ 5150 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20, 5151 /* 5152 * Unsigned 32-bit flags attribute for 5153 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 5154 */ 5155 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21, 5156 /* 5157 * Unsigned 32-bit, defining the access policy. 5158 * See enum qca_access_policy. Used with 5159 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. 5160 */ 5161 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22, 5162 /* 5163 * Sets the list of full set of IEs for which a specific access policy 5164 * has to be applied. Used along with 5165 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access. 5166 * Zero length payload can be used to clear this access constraint. 5167 */ 5168 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23, 5169 /* 5170 * Unsigned 32-bit, specifies the interface index (netdev) for which the 5171 * corresponding configurations are applied. If the interface index is 5172 * not specified, the configurations are attributed to the respective 5173 * wiphy. 5174 */ 5175 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24, 5176 /* 5177 * 8-bit unsigned value to trigger QPower: 5178 * 1-Enable, 0-Disable 5179 */ 5180 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25, 5181 /* 5182 * 8-bit unsigned value to configure the driver and below layers to 5183 * ignore the assoc disallowed set by APs while connecting 5184 * 1-Ignore, 0-Don't ignore 5185 */ 5186 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26, 5187 /* 5188 * 32-bit unsigned value to trigger antenna diversity features: 5189 * 1-Enable, 0-Disable 5190 */ 5191 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27, 5192 /* 32-bit unsigned value to configure specific chain antenna */ 5193 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28, 5194 /* 5195 * 32-bit unsigned value to trigger cycle selftest 5196 * 1-Enable, 0-Disable 5197 */ 5198 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29, 5199 /* 5200 * 32-bit unsigned to configure the cycle time of selftest 5201 * the unit is micro-second 5202 */ 5203 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30, 5204 /* 32-bit unsigned value to set reorder timeout for AC_VO */ 5205 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31, 5206 /* 32-bit unsigned value to set reorder timeout for AC_VI */ 5207 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32, 5208 /* 32-bit unsigned value to set reorder timeout for AC_BE */ 5209 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33, 5210 /* 32-bit unsigned value to set reorder timeout for AC_BK */ 5211 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34, 5212 /* 6-byte MAC address to point out the specific peer */ 5213 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC = 35, 5214 /* Backward compatibility with the original name */ 5215 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 5216 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC, 5217 /* 32-bit unsigned value to set window size for specific peer */ 5218 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36, 5219 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */ 5220 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37, 5221 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */ 5222 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38, 5223 /* 5224 * 32-bit unsigned value to configure 5 or 10 MHz channel width for 5225 * station device while in disconnect state. The attribute use the 5226 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz, 5227 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or 5228 * 10 MHz channel width, the station will not connect to a BSS using 20 5229 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to 5230 * clear this constraint. 5231 */ 5232 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39, 5233 /* 5234 * 32-bit unsigned value to configure the propagation absolute delay 5235 * for 2G/5G band (units in us) 5236 */ 5237 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40, 5238 /* 32-bit unsigned value to set probe period */ 5239 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41, 5240 /* 32-bit unsigned value to set stay period */ 5241 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42, 5242 /* 32-bit unsigned value to set snr diff */ 5243 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43, 5244 /* 32-bit unsigned value to set probe dwell time */ 5245 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44, 5246 /* 32-bit unsigned value to set mgmt snr weight */ 5247 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45, 5248 /* 32-bit unsigned value to set data snr weight */ 5249 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46, 5250 /* 32-bit unsigned value to set ack snr weight */ 5251 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47, 5252 /* 5253 * 32-bit unsigned value to configure the listen interval. 5254 * This is in units of beacon intervals. This configuration alters 5255 * the negotiated listen interval with the AP during the connection. 5256 * It is highly recommended to configure a value less than or equal to 5257 * the one negotiated during the association. Configuring any greater 5258 * value can have adverse effects (frame loss, AP disassociating STA, 5259 * etc.). 5260 */ 5261 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48, 5262 /* 5263 * 8 bit unsigned value that is set on an AP/GO virtual interface to 5264 * disable operations that would cause the AP/GO to leave its operating 5265 * channel. 5266 * 5267 * This will restrict the scans to the AP/GO operating channel and the 5268 * channels of the other band, if DBS is supported.A STA/CLI interface 5269 * brought up after this setting is enabled, will be restricted to 5270 * connecting to devices only on the AP/GO interface's operating channel 5271 * or on the other band in DBS case. P2P supported channel list is 5272 * modified, to only include AP interface's operating-channel and the 5273 * channels of the other band if DBS is supported. 5274 * 5275 * These restrictions are only applicable as long as the AP/GO interface 5276 * is alive. If the AP/GO interface is brought down then this 5277 * setting/restriction is forgotten. 5278 * 5279 * If this variable is set on an AP/GO interface while a multi-channel 5280 * concurrent session is active, it has no effect on the operation of 5281 * the current interfaces, other than restricting the scan to the AP/GO 5282 * operating channel and the other band channels if DBS is supported. 5283 * However, if the STA is brought down and restarted then the new STA 5284 * connection will either be formed on the AP/GO channel or on the 5285 * other band in a DBS case. This is because of the scan being 5286 * restricted on these channels as mentioned above. 5287 * 5288 * 1-Disable offchannel operations, 0-Enable offchannel operations. 5289 */ 5290 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49, 5291 5292 /* 5293 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload) 5294 * on an interface. 5295 * 1 - Enable , 0 - Disable. 5296 */ 5297 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50, 5298 5299 /* 5300 * 8 bit unsigned value to globally enable/disable scan 5301 * 1 - Enable, 0 - Disable. 5302 */ 5303 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51, 5304 5305 /* 8-bit unsigned value to set the total beacon miss count */ 5306 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52, 5307 5308 /* 5309 * Unsigned 32-bit value to configure the number of continuous 5310 * Beacon Miss which shall be used by the firmware to penalize 5311 * the RSSI for BTC. 5312 */ 5313 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53, 5314 5315 /* 5316 * 8-bit unsigned value to configure the driver and below layers to 5317 * enable/disable all fils features. 5318 * 0-enable, 1-disable 5319 */ 5320 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54, 5321 5322 /* 16-bit unsigned value to configure the level of WLAN latency 5323 * module. See enum qca_wlan_vendor_attr_config_latency_level. 5324 */ 5325 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55, 5326 5327 /* 5328 * 8-bit unsigned value indicating the driver to use the RSNE as-is from 5329 * the connect interface. Exclusively used for the scenarios where the 5330 * device is used as a test bed device with special functionality and 5331 * not recommended for production. This helps driver to not validate the 5332 * RSNE passed from user space and thus allow arbitrary IE data to be 5333 * used for testing purposes. 5334 * 1-enable, 0-disable. 5335 * Applications set/reset this configuration. If not reset, this 5336 * parameter remains in use until the driver is unloaded. 5337 */ 5338 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56, 5339 5340 /* 5341 * 8-bit unsigned value to trigger green Tx power saving. 5342 * 1-Enable, 0-Disable 5343 */ 5344 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57, 5345 5346 /* 5347 * Attribute to configure disconnect IEs to the driver. 5348 * This carries an array of unsigned 8-bit characters. 5349 * 5350 * If this is configured, driver shall fill the IEs in disassoc/deauth 5351 * frame. 5352 * These IEs are expected to be considered only for the next 5353 * immediate disconnection (disassoc/deauth frame) originated by 5354 * the DUT, irrespective of the entity (user space/driver/firmware) 5355 * triggering the disconnection. 5356 * The host drivers are not expected to use the IEs set through 5357 * this interface for further disconnections after the first immediate 5358 * disconnection initiated post the configuration. 5359 * If the IEs are also updated through cfg80211 interface (after the 5360 * enhancement to cfg80211_disconnect), host driver is expected to 5361 * take the union of IEs from both of these interfaces and send in 5362 * further disassoc/deauth frames. 5363 */ 5364 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58, 5365 5366 /* 8-bit unsigned value for ELNA bypass. 5367 * 0 - Disable eLNA bypass. 5368 * 1 - Enable eLNA bypass. 5369 * 2 - Reset eLNA bypass configuration, the driver should 5370 * revert to the default configuration of eLNA bypass. 5371 */ 5372 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59, 5373 5374 /* 8-bit unsigned value. This attribute enables/disables the host driver 5375 * to send the Beacon Report response with failure reason for the 5376 * scenarios where STA cannot honor the Beacon report request from AP. 5377 * 1-Enable, 0-Disable. 5378 */ 5379 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60, 5380 5381 /* 8-bit unsigned value. This attribute enables/disables the host driver 5382 * to send roam reason information in the reassociation request to the 5383 * AP. 1-Enable, 0-Disable. 5384 */ 5385 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61, 5386 5387 /* 32-bit unsigned value to configure different PHY modes to the 5388 * driver/firmware. The possible values are defined in 5389 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to 5390 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting 5391 * the driver. 5392 */ 5393 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62, 5394 5395 /* 8-bit unsigned value to configure the maximum supported channel width 5396 * for STA mode. If this value is configured when STA is in connected 5397 * state, it should not exceed the negotiated channel width. If it is 5398 * configured when STA is in disconnected state, the configured value 5399 * will take effect for the next immediate connection. 5400 * This configuration can be sent inside 5401 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum 5402 * supported channel width per-MLO link. 5403 * 5404 * This uses values defined in enum nl80211_chan_width. 5405 */ 5406 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63, 5407 5408 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment. 5409 * This attribute is only applicable for STA mode. When dynamic 5410 * bandwidth adjustment is disabled, STA will use static channel width 5411 * the value of which is negotiated during connection. 5412 * 1-enable (default), 0-disable 5413 */ 5414 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64, 5415 5416 /* 8-bit unsigned value to configure the maximum number of subframes of 5417 * TX MSDU for aggregation. Possible values are 0-31. When set to 0, 5418 * it is decided by hardware. 5419 */ 5420 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65, 5421 5422 /* 8-bit unsigned value to configure the maximum number of subframes of 5423 * RX MSDU for aggregation. Possible values are 0-31. When set to 0, 5424 * it is decided by hardware. 5425 */ 5426 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66, 5427 5428 /* 8-bit unsigned value. This attribute is used to dynamically 5429 * enable/disable the LDPC capability of the device. When configured in 5430 * the disconnected state, the updated configuration will be considered 5431 * for the immediately following connection attempt. If this 5432 * configuration is modified while the device is in the connected state, 5433 * the LDPC TX will be updated with this configuration immediately, 5434 * while the LDPC RX configuration update will take place starting from 5435 * the subsequent association attempt. 5436 * 1-Enable, 0-Disable. 5437 */ 5438 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67, 5439 5440 /* 8-bit unsigned value. This attribute is used to dynamically 5441 * enable/disable the TX STBC capability of the device. When configured 5442 * in the disconnected state, the updated configuration will be 5443 * considered for the immediately following connection attempt. If the 5444 * connection is formed with TX STBC enabled and if this configuration 5445 * is disabled during that association, the TX will be impacted 5446 * immediately. Further connection attempts will disable TX STBC. 5447 * However, enabling the TX STBC for a connected session with disabled 5448 * capability is not allowed and will fail. 5449 * 1-Enable, 0-Disable. 5450 */ 5451 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68, 5452 5453 /* 8-bit unsigned value. This attribute is used to dynamically 5454 * enable/disable the RX STBC capability of the device. When configured 5455 * in the disconnected state, the updated configuration will be 5456 * considered for the immediately following connection attempt. If the 5457 * configuration is modified in the connected state, there will be no 5458 * impact for the current association, but further connection attempts 5459 * will use the updated configuration. 5460 * 1-Enable, 0-Disable. 5461 */ 5462 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69, 5463 5464 /* 8-bit unsigned value. This attribute is used to dynamically configure 5465 * the number of spatial streams. When configured in the disconnected 5466 * state, the updated configuration will be considered for the 5467 * immediately following connection attempt. If the NSS is updated after 5468 * the connection, the updated NSS value is notified to the peer using 5469 * the Operating Mode Notification/Spatial Multiplexing Power Save 5470 * frame. The updated NSS value after the connection shall not be 5471 * greater than the one negotiated during the connection. Any such 5472 * higher value configuration shall be returned with a failure. 5473 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done 5474 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and 5475 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to 5476 * configure the asymmetric NSS configuration (such as 1X2). 5477 */ 5478 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70, 5479 5480 /* 8-bit unsigned value to configure Optimized Power Management mode: 5481 * Modes are defined by enum qca_wlan_vendor_opm_mode. 5482 * 5483 * This attribute shall be configured along with 5484 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and 5485 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes 5486 * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED. 5487 */ 5488 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71, 5489 5490 /* 8-bit unsigned value. This attribute takes the QOS/access category 5491 * value represented by the enum qca_wlan_ac_type and expects the driver 5492 * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL 5493 * is invalid for this attribute. This will override the DSCP value 5494 * configured in the frame with the intention to only upgrade the QOS. 5495 * That said, it is not intended to downgrade the QOS for the frames. 5496 * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs 5497 * to disable. 5498 * 5499 * If only UDP frames of BE or BK access category needs to be upgraded 5500 * without changing the access category of VO or VI UDP frames, refer to 5501 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK. 5502 * 5503 * This attribute is not recommended to be used as it blindly forces all 5504 * UDP packets to a higher access category which could impact the 5505 * traffic pattern of all apps using UDP and can cause unknown behavior. 5506 */ 5507 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72, 5508 5509 /* 8-bit unsigned value. This attribute is used to dynamically configure 5510 * the number of chains to be used for transmitting data. This 5511 * configuration is allowed only when in connected state and will be 5512 * effective until disconnected. The driver rejects this configuration 5513 * if the number of spatial streams being used in the current connection 5514 * cannot be supported by this configuration. 5515 */ 5516 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73, 5517 5518 /* 8-bit unsigned value. This attribute is used to dynamically configure 5519 * the number of chains to be used for receiving data. This 5520 * configuration is allowed only when in connected state and will be 5521 * effective until disconnected. The driver rejects this configuration 5522 * if the number of spatial streams being used in the current connection 5523 * cannot be supported by this configuration. 5524 */ 5525 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74, 5526 5527 /* 8-bit unsigned value to configure ANI setting type. 5528 * See &enum qca_wlan_ani_setting for possible values. 5529 */ 5530 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75, 5531 /* 32-bit signed value to configure ANI level. This is used when 5532 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED. 5533 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO 5534 * is invalid, the driver will return a failure. 5535 */ 5536 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76, 5537 5538 /* 8-bit unsigned value. This attribute is used to dynamically configure 5539 * the number of spatial streams used for transmitting the data. When 5540 * configured in the disconnected state, the configured value will 5541 * be considered for the following connection attempt. 5542 * If the NSS is updated after the connection, the updated NSS value 5543 * is notified to the peer using the Operating Mode Notification/Spatial 5544 * Multiplexing Power Save frame. 5545 * The TX NSS value configured after the connection shall not be greater 5546 * than the value negotiated during the connection. Any such higher 5547 * value configuration shall be treated as invalid configuration by 5548 * the driver. This attribute shall be configured along with 5549 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric 5550 * configuration (such as 2X2 or 1X1) or the asymmetric 5551 * configuration (such as 1X2). 5552 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along 5553 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver 5554 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS. 5555 */ 5556 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77, 5557 5558 /* 8-bit unsigned value. This attribute is used to dynamically configure 5559 * the number of spatial streams used for receiving the data. When 5560 * configured in the disconnected state, the configured value will 5561 * be considered for the following connection attempt. 5562 * If the NSS is updated after the connection, the updated NSS value 5563 * is notified to the peer using the Operating Mode Notification/Spatial 5564 * Multiplexing Power Save frame. 5565 * The RX NSS value configured after the connection shall not be greater 5566 * than the value negotiated during the connection. Any such higher 5567 * value configuration shall be treated as invalid configuration by 5568 * the driver. This attribute shall be configured along with 5569 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric 5570 * configuration (such as 2X2 or 1X1) or the asymmetric 5571 * configuration (such as 1X2). 5572 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along 5573 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver 5574 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS. 5575 */ 5576 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78, 5577 5578 /* 5579 * 8-bit unsigned value. This attribute, when set, indicates whether the 5580 * specified interface is the primary STA interface when there are more 5581 * than one STA interfaces concurrently active. 5582 * 5583 * This configuration helps the firmware/hardware to support certain 5584 * features (e.g., roaming) on this primary interface, if the same 5585 * cannot be supported on the concurrent STA interfaces simultaneously. 5586 * 5587 * This configuration is only applicable for a single STA interface on 5588 * a device and gives the priority for it only over other concurrent STA 5589 * interfaces. 5590 * 5591 * If the device is a multi wiphy/soc, this configuration applies to a 5592 * single STA interface across the wiphys. 5593 * 5594 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA) 5595 */ 5596 QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79, 5597 5598 /* 5599 * 8-bit unsigned value. This attribute can be used to configure the 5600 * driver to enable/disable FT-over-DS feature. Possible values for 5601 * this attribute are 1-Enable and 0-Disable. 5602 */ 5603 QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80, 5604 5605 /* 5606 * 8-bit unsigned value. This attribute can be used to configure the 5607 * firmware to enable/disable ARP/NS offload feature. Possible values 5608 * for this attribute are 0-Disable and 1-Enable. 5609 * 5610 * This attribute is only applicable for STA/P2P-Client interface, 5611 * and is optional, default behavior is APR/NS offload Enable. 5612 * 5613 * This attribute can be set in disconncted and connected state, and 5614 * will restore to default behavior if interface is closed. 5615 */ 5616 QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81, 5617 5618 /* 5619 * 8-bit unsigned value. This attribute can be used to configure the 5620 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values 5621 * for this attribute are defined in the enum qca_dbam_config. 5622 */ 5623 QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83, 5624 5625 /* 8-bit unsigned value. This attribute takes the QoS/access category 5626 * value represented by the enum qca_wlan_ac_type and expects the driver 5627 * to upgrade the UDP frames of BE or BK access category to this access 5628 * category. This attribute will not modify UDP frames of VO or VI 5629 * access category. The value of QCA_WLAN_AC_ALL is invalid for this 5630 * attribute. 5631 * 5632 * This will override the DSCP value configured in the frame with the 5633 * intention to only upgrade the access category. That said, it is not 5634 * intended to downgrade the access category for the frames. 5635 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be 5636 * disabled, as BK is of the lowest priority and an upgrade to it does 5637 * not result in any changes for the frames. 5638 * 5639 * This attribute behavior is similar to 5640 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that 5641 * only UDP frames of BE or BK access category are upgraded and not 5642 * UDP frames of VI or VO access category. 5643 * 5644 * This attribute is not recommended to be used as it blindly forces all 5645 * UDP packets of BE or BK access category to a higher access category 5646 * which could impact the traffic pattern of all apps using UDP and can 5647 * cause unknown behavior. 5648 */ 5649 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84, 5650 5651 /* 8-bit unsigned value to configure the driver to enable/disable the 5652 * periodic sounding for Tx beamformer functionality. The default 5653 * behavior uses algorithm to do sounding based on packet stats. 5654 * 5655 * 0 - Default behavior. 5656 * 1 - Enable the periodic sounding for Tx beamformer. 5657 * This attribute is used for testing purposes. 5658 */ 5659 QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85, 5660 5661 /* 8-bit unsigned value, whenever wifi calling (wfc) begin or end, 5662 * Userspace sends this information to driver/firmware to configure 5663 * wfc state. Driver/Firmware uses this information to 5664 * optimize power savings, rate adaption, roaming, etc. 5665 * 5666 * 1 - wfc is on. 5667 * 0 - wfc is off. 5668 */ 5669 QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86, 5670 5671 /* 8-bit unsigned value to configure the driver to enable/disable the 5672 * EHT EML capability in management frame EHT capabilities. 5673 * 1 - Enable, 0 - Disable. 5674 */ 5675 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87, 5676 5677 /* 8-bit unsigned value to configure the driver with EHT MLO max 5678 * simultaneous links to be used for MLO connection. 5679 * The range of the value is 0 to 14. 5680 */ 5681 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88, 5682 5683 /* 8-bit unsigned value to configure the driver with EHT MLO maximum 5684 * number of links to be used for MLO connection. 5685 * The range of the value is 1 to 16. 5686 */ 5687 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89, 5688 5689 /* 8-bit unsigned value to configure the driver with EHT MLO mode. 5690 * Uses enum qca_wlan_eht_mlo_mode values. 5691 */ 5692 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90, 5693 5694 /* Nested attribute with frequencies in u32 attributes to configure a 5695 * list of allowed 20 MHz channel center frequencies in MHz for AP 5696 * operation. Whenever performing a channel selection operation, the 5697 * driver shall generate a new list based on this provided list by 5698 * filtering out channels that cannot be used at that time due to 5699 * regulatory or other constraints. The resulting list is used as the 5700 * list of all allowed channels, i.e., operation on any channel that is 5701 * not included is not allowed, whenever performing operations like ACS 5702 * and DFS. 5703 * 5704 * Userspace shall configure this before starting the AP and the 5705 * configuration is valid only from the next BSS start and until the 5706 * BSS is stopped. The driver shall clear this configuration when the 5707 * AP is stopped and fall back to the default behavior for subsequent 5708 * AP operation. 5709 * 5710 * The default behavior when this configuration is not applicable is the 5711 * driver can choose any of the channels supported by the hardware 5712 * except the channels that cannot be used due to regulatory or other 5713 * constraints. 5714 * 5715 * The driver shall reject this configuration if done after the AP is 5716 * started. This attribute can be used to specify user's choice of 5717 * frequencies and static puncture channel list, etc. 5718 */ 5719 QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91, 5720 5721 /* Nested attribute to indicate EHT MLO links to be forced active. 5722 * It contains link MAC address attributes. These nested attributes are 5723 * of the type NL80211_ATTR_MAC and are used to force enabling of the 5724 * MLO links corresponding to the indicated link MAC addresses. 5725 * Subsequently, the links corresponding to the link MAC addresses that 5726 * are not indicated are forced inactive. 5727 */ 5728 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92, 5729 5730 /* 8-bit unsigned value to configure EMLSR mode entry or exit. 5731 * Uses enum qca_wlan_emlsr_mode values. 5732 */ 5733 QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93, 5734 5735 /* 8-bit unsigned value. This attribute is used to dynamically 5736 * enable/suspend trigger based UL MU transmission. 5737 * This is supported in STA mode and the device sends Operating 5738 * Mode Indication to inform the change as described in 5739 * IEEE Std 802.11ax-2021, 26.9. 5740 * 5741 * This attribute can be configured when the STA is associated 5742 * to an AP and the configuration is maintained until the current 5743 * association terminates. 5744 * 5745 * By default all UL MU transmissions are enabled. 5746 * 5747 * Uses enum qca_ul_mu_config values. 5748 */ 5749 QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95, 5750 5751 /* 8-bit unsigned value. Optionally specified along with 5752 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected 5753 * state. This configuration is applicable only for the current 5754 * connection. This configuration not allowed in disconnected state. 5755 * This configuration can be sent inside 5756 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum 5757 * supported channel width update type per-MLO link. 5758 * 5759 * valid values: 5760 * 0 - The maximum allowed bandwidth change is applicable for both Tx 5761 * and Rx paths. The driver shall conduct OMI operation as defined 5762 * in 26.9 (Operating mode indication) or OMN operation as 5763 * defined in 11.40 (Notification of operating mode 5764 * changes) in IEEE P802.11-REVme/D2.0 with AP to indicate the 5765 * change in the maximum allowed operating bandwidth. 5766 * 1 - Limit the change in maximum allowed bandwidth only to Tx path. 5767 * In this case the driver doesn't need to conduct OMI/OMN 5768 * operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is 5769 * expected to be less than the current connection maximum 5770 * negotiated bandwidth. 5771 * For example: Negotiated maximum bandwidth is 160 MHz and the new 5772 * maximum bandwidth configured is 80 MHz, now the driver limits 5773 * the maximum bandwidth to 80 MHz only in the Tx path. 5774 */ 5775 QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96, 5776 5777 /* 8-bit unsigned value to set EPCS (Emergency Preparedness 5778 * Communications Service) feature capability 5779 * 1 - Enable, 0 - Disable. 5780 * 5781 * This configuration is used for testing purposes. 5782 */ 5783 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97, 5784 5785 /* 8-bit unsigned value to enable/disable EPCS priority access 5786 * 1 - Enable, 0 - Disable. 5787 * The EPCS priority access shall be enabled only when EPCS feature 5788 * capability is also enabled (see 5789 * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY). 5790 * 5791 * This configuration is used for testing purposes. 5792 */ 5793 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98, 5794 5795 /* 8-bit unsigned value. Used to specify the MLO link ID of a link 5796 * that is being configured. This attribute must be included in each 5797 * record nested inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS, and 5798 * may be included without nesting to indicate the link that is the 5799 * target of other configuration attributes. 5800 */ 5801 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99, 5802 5803 /* Array of nested links each identified by 5804 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in 5805 * enum qca_wlan_vendor_attr_config, explicit documentation shall be 5806 * added for the attributes in enum qca_wlan_vendor_attr_config to 5807 * support per-MLO link configuration through 5808 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS. 5809 * 5810 * Userspace can configure a single link or multiple links with this 5811 * attribute by nesting the corresponding configuration attributes and 5812 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link. 5813 * 5814 * Userspace can fetch the configuration attribute values for a single 5815 * link or multiple links with this attribute by nesting the 5816 * corresponding configuration attributes and 5817 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link. 5818 * 5819 * For STA interface, this attribute is applicable only in connected 5820 * state when the current connection is MLO capable. The valid values of 5821 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the 5822 * connected AP MLD links. 5823 * 5824 * For AP interface, this configuration applicable only after adding 5825 * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the 5826 * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link 5827 * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to 5828 * the AP interface. 5829 */ 5830 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100, 5831 5832 /* 16-bit unsigned value to configure power save inactivity timeout in 5833 * milliseconds. 5834 * 5835 * STA enters into power save mode (PM=1) after TX/RX inactivity of time 5836 * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO. 5837 * 5838 * This attribute shall be configured along with 5839 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when 5840 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT 5841 * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode. 5842 */ 5843 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101, 5844 5845 /* 16-bit unsigned value to configure speculative wake interval in 5846 * milliseconds. 5847 * 5848 * STA speculatively wakes up to look for buffered data by AP at 5849 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after 5850 * entering into power save. If configured zero, STA wakes up at 5851 * upcoming DTIM beacon. 5852 * 5853 * This attribute shall be configured along with 5854 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and 5855 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT 5856 * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode. 5857 */ 5858 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102, 5859 5860 /* 5861 * 16-bit unsigned value to configure TX max A-MPDU count. 5862 * 5863 * For STA interface, this attribute is applicable only in connected 5864 * state, peer MAC address is not required to be provided. 5865 * 5866 * For AP interface, this attribute is applicable only in started 5867 * state and one of the associated peer STAs must be specified with 5868 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. If this is for an ML 5869 * association, the peer MAC address provided is the link address of 5870 * the non-AP MLD. 5871 * 5872 * This attribute runtime configures the TX maximum aggregation size. 5873 * The value must be in range of 1 to BA window size for the specific 5874 * peer. 5875 */ 5876 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_AMPDU_CNT = 103, 5877 5878 /* 5879 * 8-bit unsigned value to configure TID-to-link mapping negotiation 5880 * type. 5881 * Uses enum qca_wlan_ttlm_negotiation_support values. 5882 * 5883 * This value applies to the complete AP/non-AP MLD interface, and the 5884 * MLD advertises it within the Basic Multi-Link element in the 5885 * association frames. If a new value is configured during an active 5886 * connection, it will take effect in the subsequent associations and 5887 * is not reset during disconnection. 5888 * 5889 * This attribute is used for testing purposes. 5890 */ 5891 QCA_WLAN_VENDOR_ATTR_CONFIG_TTLM_NEGOTIATION_SUPPORT = 104, 5892 5893 /* 8-bit unsigned value 5894 * 5895 * This attribute configures a traffic shaping mode 5896 * applied during coex scenarios. 5897 * By default all coex traffic shaping modes are enabled, 5898 * i.e., shape WLAN traffic based on coex traffic pattern and priority. 5899 * To shape traffic, STA may enter in power save mode 5900 * and AP may send CTS-to-self frame. 5901 * 5902 * Uses enum qca_coex_traffic_shaping_mode values. 5903 */ 5904 QCA_WLAN_VENDOR_ATTR_CONFIG_COEX_TRAFFIC_SHAPING_MODE = 105, 5905 5906 /* 8-bit unsigned value to configure BTM support. 5907 * 5908 * The attribute is applicable only for STA interface. Uses enum 5909 * qca_wlan_btm_support values. This configuration is not allowed in 5910 * connected state. 5911 */ 5912 QCA_WLAN_VENDOR_ATTR_CONFIG_BTM_SUPPORT = 107, 5913 5914 /* 16-bit unsigned value to configure client's keep-alive interval in 5915 * seconds. The driver will reduce the keep-alive interval to this 5916 * configured value if the AP advertises BSS maximum idle period and if 5917 * that BSS max idle period is larger than this configured value. If the 5918 * AP does not advertise a maximum value, the configured value will be 5919 * used as a keep-alive period for unprotected frames. 5920 * 5921 * This configuration is applicable only during the STA's current 5922 * association. 5923 */ 5924 QCA_WLAN_VENDOR_ATTR_CONFIG_KEEP_ALIVE_INTERVAL = 108, 5925 5926 /* keep last */ 5927 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST, 5928 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX = 5929 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1, 5930 }; 5931 5932 /** 5933 * enum qca_ul_mu_config - UL MU configuration 5934 * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended 5935 * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled 5936 */ 5937 enum qca_ul_mu_config { 5938 QCA_UL_MU_SUSPEND = 0, 5939 QCA_UL_MU_ENABLE = 1, 5940 }; 5941 5942 /** 5943 * enum qca_dbam_config - Specifies DBAM config mode 5944 * @QCA_DBAM_DISABLE: Firmware disables DBAM 5945 * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when 5946 * internal criteria are met. 5947 * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully. 5948 */ 5949 enum qca_dbam_config { 5950 QCA_DBAM_DISABLE = 0, 5951 QCA_DBAM_ENABLE = 1, 5952 QCA_DBAM_FORCE_ENABLE = 2, 5953 }; 5954 5955 /** 5956 * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting 5957 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute 5958 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID 5959 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level 5960 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag 5961 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value 5962 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value 5963 */ 5964 enum qca_wlan_vendor_attr_wifi_logger_start { 5965 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0, 5966 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1, 5967 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2, 5968 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3, 5969 /* keep last */ 5970 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST, 5971 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX = 5972 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1, 5973 }; 5974 5975 /* 5976 * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data 5977 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute 5978 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID 5979 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value 5980 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value 5981 */ 5982 enum qca_wlan_vendor_attr_wifi_logger_get_ring_data { 5983 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0, 5984 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1, 5985 /* keep last */ 5986 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST, 5987 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX = 5988 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1, 5989 }; 5990 5991 #ifdef WLAN_FEATURE_OFFLOAD_PACKETS 5992 /** 5993 * enum wlan_offloaded_packets_control - control commands 5994 * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets 5995 * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets 5996 * 5997 */ 5998 enum wlan_offloaded_packets_control { 5999 WLAN_START_OFFLOADED_PACKETS = 1, 6000 WLAN_STOP_OFFLOADED_PACKETS = 2 6001 }; 6002 6003 /** 6004 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication 6005 * 6006 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to 6007 * the offloaded data. 6008 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded 6009 * data. 6010 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload 6011 * indication. 6012 */ 6013 enum qca_wlan_vendor_attr_data_offload_ind { 6014 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0, 6015 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION, 6016 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL, 6017 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT, 6018 6019 /* keep last */ 6020 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST, 6021 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX = 6022 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1 6023 }; 6024 6025 /** 6026 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command 6027 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS. 6028 */ 6029 enum qca_wlan_vendor_attr_offloaded_packets { 6030 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0, 6031 /* Takes valid value from the enum 6032 * qca_wlan_offloaded_packets_sending_control 6033 * Unsigned 32-bit value 6034 */ 6035 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL, 6036 /* Unsigned 32-bit value */ 6037 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID, 6038 /* array of u8 len: Max packet size */ 6039 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA, 6040 /* 6-byte MAC address used to represent source MAC address */ 6041 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR, 6042 /* 6-byte MAC address used to represent destination MAC address */ 6043 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR, 6044 /* Unsigned 32-bit value, in milli seconds */ 6045 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD, 6046 /* This optional unsigned 16-bit attribute is used for specifying 6047 * ethernet protocol type. If not specified ethertype defaults to IPv4. 6048 */ 6049 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE, 6050 6051 /* keep last */ 6052 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST, 6053 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX = 6054 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1, 6055 }; 6056 6057 #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */ 6058 6059 /** 6060 * enum qca_wlan_rssi_monitoring_control - rssi control commands 6061 * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid 6062 * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start 6063 * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop 6064 */ 6065 enum qca_wlan_rssi_monitoring_control { 6066 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0, 6067 QCA_WLAN_RSSI_MONITORING_START, 6068 QCA_WLAN_RSSI_MONITORING_STOP, 6069 }; 6070 6071 /** 6072 * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring 6073 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid 6074 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control 6075 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi 6076 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi 6077 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid 6078 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi 6079 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last 6080 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max 6081 */ 6082 enum qca_wlan_vendor_attr_rssi_monitoring { 6083 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0, 6084 6085 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL, 6086 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID, 6087 6088 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI, 6089 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI, 6090 6091 /* attributes to be used/received in callback */ 6092 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID, 6093 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI, 6094 6095 /* keep last */ 6096 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST, 6097 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX = 6098 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1, 6099 }; 6100 6101 /** 6102 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command 6103 * QCA_NL80211_VENDOR_SUBCMD_NDP. 6104 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID 6105 * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd 6106 * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID: 6107 * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info 6108 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz 6109 * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC 6110 * address 6111 * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being 6112 * created 6113 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use 6114 * NCS_SK_TYPE/PMK/SCID instead 6115 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS 6116 * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info 6117 * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id 6118 * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids 6119 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response 6120 * code: accept/reject 6121 * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address 6122 * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by 6123 * driver 6124 * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by 6125 * driver 6126 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration 6127 * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type 6128 * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO 6129 * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the 6130 * PMKID 6131 * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase 6132 * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name 6133 * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule 6134 * update: 6135 * BIT_0: NSS Update 6136 * BIT_1: Channel list update 6137 * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss 6138 * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL 6139 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH: 6140 * 0:20 MHz, 6141 * 1:40 MHz, 6142 * 2:80 MHz, 6143 * 3:160 MHz 6144 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width 6145 * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array 6146 * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating 6147 * transport port used by NDP. 6148 * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating 6149 * protocol used by NDP and assigned by the Internet Assigned Numbers Authority 6150 * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml 6151 * @QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if 6152 * NDP remote peer supports NAN NDPE. 1:support 0:not support 6153 * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2 6154 * Service Id is the first 48 bits of the SHA-256 hash of the Service Name. 6155 * A lower-case representation of the Service Name shall be used to 6156 * calculate the Service ID. 6157 * Array of u8: length is 6 bytes 6158 * This attribute is used and optional for ndp indication. 6159 * @QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES: Unsigned 8-bit value for Cipher 6160 * Suite 6161 * This attribute is used and optional in ndp request, ndp response, ndp 6162 * indication, and ndp confirm. 6163 * This attribute is used to indicate the Capabilities field of Cipher Suite 6164 * Information attribute (CSIA) of NDP frames as defined in Wi-Fi Aware 6165 * Specification v4.0, 9.5.21.2, Table 122. 6166 * Firmware can accept or ignore any of the capability bits. 6167 * @QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED: Indicate if the GTK protection is 6168 * required for NDP. NLA_FLAG attribute. 6169 * This attribute can be used in ndp request, ndp response, ndp indication, and 6170 * ndp confirm. 6171 * GTK protection required is indicated in the NDPE attribute of NAN action 6172 * frame (NAF) during NDP negotiation as defined in Wi-Fi Aware Specification 6173 * v4.0, 9.5.16.2. 6174 * If the device and peer supports GTKSA and if GTK protection required bit is 6175 * set in NDPE IE, devices will share GTK to each other in SKDA of Data Path 6176 * Security Confirm and Data Path Security Install frames of NDP negotiation to 6177 * send and receive protected group addressed data frames from each other. 6178 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute 6179 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type 6180 */ 6181 enum qca_wlan_vendor_attr_ndp_params { 6182 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0, 6183 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1, 6184 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2, 6185 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3, 6186 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4, 6187 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5, 6188 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6, 6189 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7, 6190 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8, 6191 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9, 6192 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10, 6193 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11, 6194 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12, 6195 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13, 6196 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14, 6197 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15, 6198 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16, 6199 QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17, 6200 QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18, 6201 QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19, 6202 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20, 6203 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21, 6204 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22, 6205 QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23, 6206 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24, 6207 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25, 6208 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26, 6209 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27, 6210 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28, 6211 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29, 6212 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30, 6213 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31, 6214 QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32, 6215 QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33, 6216 6217 /* keep last */ 6218 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST, 6219 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX = 6220 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1, 6221 }; 6222 6223 /** 6224 * enum qca_wlan_ndp_sub_cmd - NDP sub commands types for 6225 * QCA_NL80211_VENDOR_SUBCMD_NDP. 6226 * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value 6227 * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN 6228 * data path interface. 6229 * This command was initially designed to both create and start a NAN 6230 * data path interface. However, changes to Linux 5.12 no longer allow 6231 * interface creation via vendor commands. When the driver advertises 6232 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI 6233 * userspace must explicitly first create the interface using 6234 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command 6235 * to start the interface. 6236 * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN 6237 * data path interface. 6238 * This command was initially designed to both stop and delete a NAN 6239 * data path interface. However, changes to Linux 5.12 no longer allow 6240 * interface deletion via vendor commands. When the driver advertises 6241 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI 6242 * userspace must explicitly delete the interface using 6243 * NL80211_CMD_DEL_INTERFACE after calling this command. 6244 * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above 6245 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session 6246 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above 6247 * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end 6248 * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above 6249 * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request 6250 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete 6251 * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request 6252 * being received 6253 * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule 6254 * update 6255 */ 6256 enum qca_wlan_ndp_sub_cmd { 6257 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0, 6258 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1, 6259 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2, 6260 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3, 6261 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4, 6262 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5, 6263 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6, 6264 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7, 6265 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8, 6266 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9, 6267 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10, 6268 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11, 6269 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12 6270 }; 6271 6272 /** 6273 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel 6274 * information. These attributes are sent as part of 6275 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following 6276 * attributes correspond to a single channel. 6277 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16) 6278 * with flags specified in qca_wlan_vendor_channel_prop_flags_ext. 6279 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16) 6280 * with flags specified in qca_wlan_vendor_channel_prop_flags_ext. 6281 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency 6282 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum 6283 * regulatory transmission power 6284 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum 6285 * transmission power 6286 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum 6287 * transmission power 6288 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory 6289 * class id 6290 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum 6291 * antenna gain in dbm 6292 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0 6293 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1 6294 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0 6295 * center frequency in MHz. 6296 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht 6297 * segment 0 in center freq in MHz. (this is the legacy alias) 6298 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1 6299 * center frequency in MHz. 6300 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht 6301 * segment 1 in center freq in MHz. (this is the legacy alias) 6302 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits 6303 * flag indicating the AP power modes supported by the channel, as given by 6304 * enum qca_wlan_vendor_external_acs_chan_power_level. 6305 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested 6306 * attributes for each power mode. It takes attr as defined in enum 6307 * qca_wlan_vendor_external_acs_event_chan_power_info_attr. 6308 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1: 6309 * This indicates the overlapping 320 MHz center frequency in MHz, if the 6310 * given primary channel supports more than one 320 MHz channel bonding. 6311 * 6312 */ 6313 enum qca_wlan_vendor_external_acs_event_chan_info_attr { 6314 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0, 6315 6316 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1, 6317 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2, 6318 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3, 6319 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4, 6320 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5, 6321 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6, 6322 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7, 6323 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8, 6324 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9, 6325 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10, 6326 /* 6327 * A bitmask (u32) with flags specified in 6328 * enum qca_wlan_vendor_channel_prop_flags_2. 6329 */ 6330 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11, 6331 6332 /* 6333 * Segment 0 in MHz (u32). 6334 * 6335 * For 20/40/80 MHz bandwidth, this indicates the channel center 6336 * frequency index for the 20/40/80 MHz operating channel. 6337 * For 160 MHz bandwidth, this indicates the channel center 6338 * frequency of the primary 80 MHz channel. 6339 * For 320 MHz bandwidth, indicates the channel center frequency 6340 * of the primary 160 MHz channel. 6341 * 6342 * To maintain backward compatibility, 6343 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 6344 * is also maintained. 6345 */ 6346 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12, 6347 /* Legacy alias for the Segment 0 attribute. 6348 * 6349 * VHT segment 0 in MHz (u32) and the attribute is mandatory. 6350 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes 6351 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 6352 * along with 6353 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0. 6354 * 6355 * If both the driver and user-space application supports the 6 GHz 6356 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 6357 * is deprecated and 6358 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 6359 * should be used. 6360 * 6361 * To maintain backward compatibility, 6362 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 6363 * is still used if either of the driver or user space application 6364 * doesn't support the 6 GHz band. 6365 */ 6366 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 6367 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0, 6368 6369 /* 6370 * Segment 1 in MHz (u32). 6371 * 6372 * For 20/40/80 MHz bandwidth, this is set to 0. 6373 * For 160 MHz bandwidth, indicates the channel center frequency of the 6374 * 160 MHz channel. 6375 * For 320 MHz bandwidth, indicates the channel center frequency of the 6376 * 320 MHz channel. 6377 * 6378 * To maintain backward compatibility, 6379 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 6380 * is also maintained. 6381 */ 6382 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13, 6383 /* Legacy alias for the Segment 1 attribute. 6384 * 6385 * VHT segment 1 in MHz (u32) and the attribute is mandatory. 6386 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes 6387 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 6388 * along with 6389 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1. 6390 * 6391 * If both the driver and user-space application supports the 6 GHz 6392 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 6393 * is deprecated and 6394 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 6395 * should be considered. 6396 * 6397 * To maintain backward compatibility, 6398 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 6399 * is still used if either of the driver or user space application 6400 * doesn't support the 6 GHz band. 6401 */ 6402 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 6403 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1, 6404 /* 6405 * 16-bit attribute of bits indicating the AP power modes supported by 6406 * the channel (u16). 6407 * Note: Currently, only 3 bits are used in the attribute and each bit 6408 * corresponds to the power mode mentioned in enum 6409 * qca_wlan_vendor_external_acs_chan_power_level and a given bit is 6410 * set if the associated mode is supported. 6411 */ 6412 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES 6413 = 14, 6414 /* Array of nested attributes for each power mode. It takes attr as 6415 * defined in enum 6416 * qca_wlan_vendor_external_acs_event_chan_power_info_attr. 6417 */ 6418 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15, 6419 /* 6420 * This indicates the overlapping 320 MHz center frequency in MHz 6421 * (u32), if the given primary channel supports more than one 6422 * 320 MHz channel bonding. 6423 * 6424 * Example: 6425 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0 6426 * center frequency (primary 160 MHz) is 6185 MHz and there can be two 6427 * possible segment 2 frequencies for this (320 MHz center 6428 * frequencies): 6429 * 6430 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding 6431 * from frequency 5945 MHz - 6265 MHz 6432 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding 6433 * from frequency 6105 MHz - 6425 MHz 6434 * 6435 * In this case, 6436 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will 6437 * return 6185 MHz. 6438 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will 6439 * return 6105 MHz. 6440 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1 6441 * will return 6265 MHz. 6442 */ 6443 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1 6444 = 16, 6445 6446 /* keep last */ 6447 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST, 6448 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX = 6449 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1, 6450 }; 6451 6452 /** 6453 * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid 6454 * values that the vendor external ACS channel power attribute 6455 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can 6456 * take. 6457 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode 6458 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode 6459 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode 6460 */ 6461 enum qca_wlan_vendor_external_acs_chan_power_level { 6462 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0, 6463 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1, 6464 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2, 6465 }; 6466 6467 /** 6468 * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested 6469 * attributes for power mode type and power values corresponding to that. 6470 * These attributes are sent as part of 6471 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR. 6472 */ 6473 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr { 6474 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0, 6475 /* 6476 * Power mode (u8) takes the values defined in enum 6477 * qca_wlan_vendor_external_acs_chan_power_mode 6478 */ 6479 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE 6480 = 1, 6481 /* 6482 * Indicates if power value is a PSD/EIRP value (flag). If flag is 6483 * present, it indicates a PSD value. 6484 */ 6485 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2, 6486 /* 6487 * Power value (u32) PSD/EIRP as indicated by 6488 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG, 6489 * for power mode corresponding to the 6490 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE. 6491 * Units for PSD - dBm/MHz 6492 * Units for EIRP - dBm 6493 */ 6494 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE 6495 = 3, 6496 /* keep last */ 6497 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST, 6498 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX = 6499 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1, 6500 }; 6501 6502 /** 6503 * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command 6504 * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host 6505 * driver. 6506 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to 6507 * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why 6508 * ACS need to be started 6509 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does 6510 * driver supports spectral scanning or not 6511 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is 6512 * offloaded to firmware. 6513 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver 6514 * provides additional channel capability as part of scan operation. 6515 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate 6516 * interface status is UP 6517 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of 6518 * interface. It takes one of nl80211_iftype values. 6519 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound 6520 * of chan width. ACS logic should try to get a channel with specified width 6521 * if not found then look for lower values. 6522 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands 6523 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as 6524 * a/b/g/n/ac. 6525 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list 6526 * among which ACS should choose best frequency. 6527 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the 6528 * driver which will have <channel(u8), weight(u8)> format as array of 6529 * nested values. 6530 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute 6531 * for each channel. It takes attr as defined in 6532 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as 6533 * PCL mandatory, PCL preferred, etc.It uses values defined in enum 6534 * qca_wlan_vendor_attr_external_acs_policy. 6535 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF 6536 * Operating Parameter (RROP) availability information (u16). It uses values 6537 * defined in enum qca_wlan_vendor_attr_rropavail_info. 6538 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to 6539 * indicate if driver supports 6 GHz AFC trigger for External ACS. 6540 */ 6541 enum qca_wlan_vendor_attr_external_acs_event { 6542 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0, 6543 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1, 6544 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2, 6545 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3, 6546 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4, 6547 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5, 6548 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6, 6549 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7, 6550 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8, 6551 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9, 6552 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10, 6553 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11, 6554 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12, 6555 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13, 6556 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14, 6557 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15, 6558 6559 /* keep last */ 6560 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST, 6561 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX = 6562 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1, 6563 }; 6564 6565 enum qca_iface_type { 6566 QCA_IFACE_TYPE_STA, 6567 QCA_IFACE_TYPE_AP, 6568 QCA_IFACE_TYPE_P2P_CLIENT, 6569 QCA_IFACE_TYPE_P2P_GO, 6570 QCA_IFACE_TYPE_IBSS, 6571 QCA_IFACE_TYPE_TDLS, 6572 }; 6573 6574 /** 6575 * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command 6576 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and 6577 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST. 6578 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value 6579 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number 6580 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight 6581 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency 6582 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask 6583 */ 6584 enum qca_wlan_vendor_attr_pcl_config { 6585 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0, 6586 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1, 6587 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2, 6588 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3, 6589 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4, 6590 }; 6591 6592 enum qca_set_band { 6593 QCA_SETBAND_AUTO = 0, 6594 QCA_SETBAND_5G = BIT(0), 6595 QCA_SETBAND_2G = BIT(1), 6596 QCA_SETBAND_6G = BIT(2), 6597 }; 6598 6599 /** 6600 * enum set_reset_packet_filter - set packet filter control commands 6601 * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter 6602 * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter 6603 * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data 6604 * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data 6605 * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter 6606 * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter 6607 */ 6608 enum set_reset_packet_filter { 6609 QCA_WLAN_SET_PACKET_FILTER = 1, 6610 QCA_WLAN_GET_PACKET_FILTER = 2, 6611 QCA_WLAN_WRITE_PACKET_FILTER = 3, 6612 QCA_WLAN_READ_PACKET_FILTER = 4, 6613 QCA_WLAN_ENABLE_PACKET_FILTER = 5, 6614 QCA_WLAN_DISABLE_PACKET_FILTER = 6, 6615 }; 6616 6617 /** 6618 * enum qca_wlan_vendor_attr_packet_filter - APF control commands 6619 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid 6620 * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID 6621 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version 6622 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length 6623 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset 6624 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions 6625 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program 6626 * section in packet filter buffer 6627 */ 6628 enum qca_wlan_vendor_attr_packet_filter { 6629 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0, 6630 QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER, 6631 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION, 6632 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID, 6633 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE, 6634 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET, 6635 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM, 6636 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH, 6637 6638 /* keep last */ 6639 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST, 6640 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX = 6641 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1, 6642 }; 6643 6644 /** 6645 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor 6646 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS. 6647 */ 6648 enum qca_wlan_vendor_attr_wake_stats { 6649 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0, 6650 /* Unsigned 32-bit value indicating the total count of wake event */ 6651 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE, 6652 /* Array of individual wake count, each index representing wake reason 6653 */ 6654 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR, 6655 /* Unsigned 32-bit value representing wake count array */ 6656 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ, 6657 /* Unsigned 32-bit total wake count value of driver/fw */ 6658 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE, 6659 /* Array of wake stats of driver/fw */ 6660 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR, 6661 /* Unsigned 32-bit total wake count value of driver/fw */ 6662 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ, 6663 /* Unsigned 32-bit total wake count value of packets received */ 6664 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE, 6665 /* Unsigned 32-bit wake count value unicast packets received */ 6666 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT, 6667 /* Unsigned 32-bit wake count value multicast packets received */ 6668 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT, 6669 /* Unsigned 32-bit wake count value broadcast packets received */ 6670 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT, 6671 /* Unsigned 32-bit wake count value of ICMP packets */ 6672 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT, 6673 /* Unsigned 32-bit wake count value of ICMP6 packets */ 6674 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT, 6675 /* Unsigned 32-bit value ICMP6 router advertisement */ 6676 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA, 6677 /* Unsigned 32-bit value ICMP6 neighbor advertisement */ 6678 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA, 6679 /* Unsigned 32-bit value ICMP6 neighbor solicitation */ 6680 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS, 6681 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */ 6682 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT, 6683 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */ 6684 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT, 6685 /* Unsigned 32-bit wake count value of receive side multicast */ 6686 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT, 6687 /* Unsigned 32-bit wake count value of a given RSSI breach */ 6688 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT, 6689 /* Unsigned 32-bit wake count value of low RSSI */ 6690 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT, 6691 /* Unsigned 32-bit value GSCAN count */ 6692 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT, 6693 /* Unsigned 32-bit value PNO complete count */ 6694 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT, 6695 /* Unsigned 32-bit value PNO match count */ 6696 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT, 6697 /* keep last */ 6698 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST, 6699 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX = 6700 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1, 6701 }; 6702 6703 /** 6704 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels 6705 * configured by userspace to the driver/firmware. The values will be 6706 * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute. 6707 * The driver/firmware takes necessary actions requested by userspace 6708 * such as throttling wifi tx etc. in order to mitigate high temperature. 6709 * 6710 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions. 6711 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly. 6712 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately. 6713 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely. 6714 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached. 6715 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached. 6716 */ 6717 enum qca_wlan_vendor_thermal_level { 6718 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0, 6719 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1, 6720 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2, 6721 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3, 6722 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4, 6723 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5, 6724 }; 6725 6726 /** 6727 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set 6728 * cmd value. Used for NL attributes for data used by 6729 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 6730 */ 6731 enum qca_wlan_vendor_attr_thermal_cmd { 6732 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0, 6733 /* The value of command, driver will implement different operations 6734 * according to this value. It uses values defined in 6735 * enum qca_wlan_vendor_attr_thermal_cmd_type. 6736 * u32 attribute. 6737 */ 6738 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1, 6739 /* Userspace uses this attribute to configure thermal level to the 6740 * driver/firmware, or get thermal level from the driver/firmware. 6741 * Used in request or response, u32 attribute, 6742 * possible values are defined in enum qca_wlan_vendor_thermal_level. 6743 */ 6744 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2, 6745 /* Userspace uses this attribute to configure the time in which the 6746 * driver/firmware should complete applying settings it received from 6747 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL 6748 * command type. Used in request, u32 attribute, value is in 6749 * milliseconds. A value of zero indicates to apply the settings 6750 * immediately. The driver/firmware can delay applying the configured 6751 * thermal settings within the time specified in this attribute if 6752 * there is any critical ongoing operation. 6753 */ 6754 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3, 6755 /* Nested attribute, driver/firmware uses this attribute to report 6756 * thermal stats of different thermal levels to userspace when requested 6757 * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command 6758 * type. This attribute contains nested array of records of thermal 6759 * statistics of multiple levels. The attributes used inside this nested 6760 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats. 6761 */ 6762 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4, 6763 6764 /* keep last */ 6765 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST, 6766 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX = 6767 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1 6768 }; 6769 6770 /** 6771 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for 6772 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd 6773 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the 6774 * thermal command types sent to driver. 6775 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to 6776 * get thermal shutdown configuration parameters for display. Parameters 6777 * responded from driver are defined in 6778 * enum qca_wlan_vendor_attr_get_thermal_params_rsp. 6779 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to 6780 * get temperature. Host should respond with a temperature data. It is defined 6781 * in enum qca_wlan_vendor_attr_thermal_get_temperature. 6782 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal 6783 * suspend action. 6784 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal 6785 * resume action. 6786 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to 6787 * the driver/firmware. 6788 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current 6789 * thermal level from the driver/firmware. The driver should respond with a 6790 * thermal level defined in enum qca_wlan_vendor_thermal_level. 6791 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the 6792 * current thermal stats from the driver/firmware. The driver should respond 6793 * with stats of all thermal levels encapsulated in attribute 6794 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS. 6795 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear 6796 * the current thermal stats all thermal levels maintained in the 6797 * driver/firmware and start counting from zero again. 6798 */ 6799 enum qca_wlan_vendor_attr_thermal_cmd_type { 6800 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS, 6801 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE, 6802 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND, 6803 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME, 6804 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL, 6805 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL, 6806 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS, 6807 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS, 6808 }; 6809 6810 /** 6811 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes 6812 * to get chip temperature by user. 6813 * enum values are used for NL attributes for data used by 6814 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used 6815 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 6816 */ 6817 enum qca_wlan_vendor_attr_thermal_get_temperature { 6818 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0, 6819 /* Temperature value (degree Celsius) from driver. 6820 * u32 attribute. 6821 */ 6822 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA, 6823 6824 /* keep last */ 6825 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST, 6826 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX = 6827 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1, 6828 }; 6829 6830 /** 6831 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to 6832 * report thermal events from driver to user space. 6833 * enum values are used for NL attributes for data used by 6834 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command. 6835 */ 6836 enum qca_wlan_vendor_attr_thermal_event { 6837 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0, 6838 /* Temperature value (degree Celsius) from driver. 6839 * u32 attribute. 6840 */ 6841 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE, 6842 /* Indication of resume completion from power save mode. 6843 * NLA_FLAG attribute. 6844 */ 6845 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE, 6846 /* Thermal level from the driver. 6847 * u32 attribute. Possible values are defined in 6848 * enum qca_wlan_vendor_thermal_level. 6849 */ 6850 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3, 6851 6852 /* keep last */ 6853 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST, 6854 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX = 6855 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1, 6856 }; 6857 6858 /** 6859 * enum qca_vendor_element_id - QCA Vendor Specific element types 6860 * 6861 * These values are used to identify QCA Vendor Specific elements. The 6862 * payload of the element starts with the three octet OUI (OUI_QCA) and 6863 * is followed by a single octet type which is defined by this enum. 6864 * 6865 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list. 6866 * This element can be used to specify preference order for supported 6867 * channels. The channels in this list are in preference order (the first 6868 * one has the highest preference) and are described as a pair of 6869 * (global) Operating Class and Channel Number (each one octet) fields. 6870 * 6871 * This extends the standard P2P functionality by providing option to have 6872 * more than one preferred operating channel. When this element is present, 6873 * it replaces the preference indicated in the Operating Channel attribute. 6874 * For supporting other implementations, the Operating Channel attribute is 6875 * expected to be used with the highest preference channel. Similarly, all 6876 * the channels included in this Preferred channel list element are 6877 * expected to be included in the Channel List attribute. 6878 * 6879 * This vendor element may be included in GO Negotiation Request, P2P 6880 * Invitation Request, and Provision Discovery Request frames. 6881 * 6882 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element. 6883 * This element can be used for pre-standard publication testing of HE 6884 * before P802.11ax draft assigns the element ID. The payload of this 6885 * vendor specific element is defined by the latest P802.11ax draft. 6886 * Please note that the draft is still work in progress and this element 6887 * payload is subject to change. 6888 * 6889 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element. 6890 * This element can be used for pre-standard publication testing of HE 6891 * before P802.11ax draft assigns the element ID. The payload of this 6892 * vendor specific element is defined by the latest P802.11ax draft. 6893 * Please note that the draft is still work in progress and this element 6894 * payload is subject to change. 6895 * 6896 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set 6897 * element). 6898 * This element can be used for pre-standard publication testing of HE 6899 * before P802.11ax draft assigns the element ID extension. The payload of 6900 * this vendor specific element is defined by the latest P802.11ax draft 6901 * (not including the Element ID Extension field). Please note that the 6902 * draft is still work in progress and this element payload is subject to 6903 * change. 6904 * 6905 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element. 6906 * This element can be used for pre-standard publication testing of HE 6907 * before P802.11ax draft assigns the element ID extension. The payload of 6908 * this vendor specific element is defined by the latest P802.11ax draft 6909 * (not including the Element ID Extension field). Please note that the 6910 * draft is still work in progress and this element payload is subject to 6911 * change. 6912 * 6913 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element. 6914 * This element can be used for pre-standard publication testing of HE 6915 * before P802.11ax draft assigns the element ID extension. The payload of 6916 * this vendor specific element is defined by the latest P802.11ax draft 6917 * (not including the Element ID Extension field). Please note that the 6918 * draft is still work in progress and this element payload is subject to 6919 * change. 6920 */ 6921 enum qca_vendor_element_id { 6922 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0, 6923 QCA_VENDOR_ELEM_HE_CAPAB = 1, 6924 QCA_VENDOR_ELEM_HE_OPER = 2, 6925 QCA_VENDOR_ELEM_RAPS = 3, 6926 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4, 6927 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5, 6928 }; 6929 6930 /** 6931 * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture 6932 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32) 6933 * Specify the TSF command. Possible values are defined in 6934 * &enum qca_tsf_cmd. 6935 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64) 6936 * This attribute contains TSF timer value. This attribute is only available 6937 * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response. 6938 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64) 6939 * This attribute contains SOC timer value at TSF capture. This attribute is 6940 * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response. 6941 * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32) 6942 * This attribute is used to provide TSF sync interval and only applicable when 6943 * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the 6944 * driver will use the default value. Time unit is in milliseconds. 6945 */ 6946 enum qca_vendor_attr_tsf_cmd { 6947 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0, 6948 QCA_WLAN_VENDOR_ATTR_TSF_CMD, 6949 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE, 6950 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE, 6951 QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL, 6952 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST, 6953 QCA_WLAN_VENDOR_ATTR_TSF_MAX = 6954 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1 6955 }; 6956 6957 /** 6958 * enum qca_tsf_cmd: TSF driver commands 6959 * @QCA_TSF_CAPTURE: Initiate TSF Capture 6960 * @QCA_TSF_GET: Get TSF capture value 6961 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value 6962 * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target 6963 * will automatically send TSF report to the host. To query 6964 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be 6965 * initiated first. 6966 * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target 6967 * will not automatically send TSF report to the host. If 6968 * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and 6969 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this 6970 * operation needs to be initiated. 6971 * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically 6972 * fetches TSF and host time mapping from the firmware with interval configured 6973 * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the 6974 * interval value is not provided the driver will use the default value. The 6975 * userspace can query the TSF and host time mapping via the %QCA_TSF_GET 6976 * command. 6977 * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature. 6978 */ 6979 enum qca_tsf_cmd { 6980 QCA_TSF_CAPTURE, 6981 QCA_TSF_GET, 6982 QCA_TSF_SYNC_GET, 6983 QCA_TSF_AUTO_REPORT_ENABLE, 6984 QCA_TSF_AUTO_REPORT_DISABLE, 6985 QCA_TSF_SYNC_START, 6986 QCA_TSF_SYNC_STOP, 6987 }; 6988 6989 /** 6990 * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list 6991 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value 6992 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type 6993 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list 6994 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight 6995 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last 6996 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max 6997 */ 6998 enum qca_vendor_attr_get_preferred_freq_list { 6999 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID, 7000 /* A 32-unsigned value; the interface type/mode for which the preferred 7001 * frequency list is requested (see enum qca_iface_type for possible 7002 * values); used in both south- and north-bound. 7003 */ 7004 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE, 7005 /* An array of 32-unsigned values; values are frequency (MHz); used 7006 * in north-bound only. 7007 */ 7008 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST, 7009 /* An array of nested values as per enum 7010 * qca_wlan_vendor_attr_pcl_config attribute. 7011 * Each element contains frequency (MHz), weight, and flag 7012 * bit mask indicating how the frequency should be used in P2P 7013 * negotiation. 7014 */ 7015 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL, 7016 /* keep last */ 7017 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST, 7018 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX = 7019 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1 7020 }; 7021 7022 /** 7023 * enum qca_vendor_attr_probable_oper_channel - channel hint 7024 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value 7025 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type 7026 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value 7027 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last 7028 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max 7029 */ 7030 enum qca_vendor_attr_probable_oper_channel { 7031 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID, 7032 /* 32-bit unsigned value; indicates the connection/iface type likely to 7033 * come on this channel (see enum qca_iface_type). 7034 */ 7035 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE, 7036 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */ 7037 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ, 7038 /* keep last */ 7039 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST, 7040 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX = 7041 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1 7042 }; 7043 7044 /** 7045 * enum qca_wlan_vendor_attr_gw_param_config - gateway param config 7046 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid 7047 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr 7048 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr 7049 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr 7050 */ 7051 enum qca_wlan_vendor_attr_gw_param_config { 7052 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0, 7053 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR, 7054 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR, 7055 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR, 7056 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST, 7057 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX = 7058 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1, 7059 }; 7060 7061 /** 7062 * enum drv_dbs_capability - DBS capability 7063 * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled 7064 * @DRV_DBS_CAPABILITY_1X1: 1x1 7065 * @DRV_DBS_CAPABILITY_2X2: 2x2 7066 */ 7067 enum drv_dbs_capability { 7068 DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */ 7069 DRV_DBS_CAPABILITY_1X1, 7070 DRV_DBS_CAPABILITY_2X2, 7071 }; 7072 7073 /** 7074 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease 7075 * 7076 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB. 7077 */ 7078 enum qca_vendor_attr_txpower_decr_db { 7079 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID, 7080 /* 7081 * 8-bit unsigned value to indicate the reduction of TX power in dB for 7082 * a virtual interface. 7083 */ 7084 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB, 7085 /* keep last */ 7086 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST, 7087 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX = 7088 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1 7089 }; 7090 7091 /** 7092 * enum qca_vendor_attr_ota_test - Enable OTA test 7093 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value 7094 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test 7095 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last 7096 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max 7097 */ 7098 enum qca_vendor_attr_ota_test { 7099 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID, 7100 /* 8-bit unsigned value to indicate if OTA test is enabled */ 7101 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE, 7102 /* keep last */ 7103 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST, 7104 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX = 7105 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1 7106 }; 7107 7108 /** enum qca_vendor_attr_txpower_scale - vendor sub commands index 7109 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value 7110 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value 7111 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value 7112 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value 7113 */ 7114 enum qca_vendor_attr_txpower_scale { 7115 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID, 7116 /* 8-bit unsigned value to indicate the scaling of tx power */ 7117 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE, 7118 /* keep last */ 7119 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST, 7120 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX = 7121 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1 7122 }; 7123 7124 /** 7125 * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index 7126 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value 7127 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value 7128 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value 7129 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value 7130 */ 7131 enum qca_vendor_attr_txpower_scale_decr_db { 7132 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID, 7133 /* 8-bit unsigned value to indicate the scaling of tx power */ 7134 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB, 7135 /* keep last */ 7136 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST, 7137 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX = 7138 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1 7139 }; 7140 7141 /** 7142 * enum dfs_mode - state of DFS mode 7143 * @DFS_MODE_NONE: DFS mode attribute is none 7144 * @DFS_MODE_ENABLE: DFS mode is enabled 7145 * @DFS_MODE_DISABLE: DFS mode is disabled 7146 * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning 7147 */ 7148 enum dfs_mode { 7149 DFS_MODE_NONE, 7150 DFS_MODE_ENABLE, 7151 DFS_MODE_DISABLE, 7152 DFS_MODE_DEPRIORITIZE 7153 }; 7154 7155 /** 7156 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes 7157 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY. 7158 * 7159 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8) 7160 * DFS mode for ACS operation from enum qca_acs_dfs_mode. 7161 * 7162 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8) 7163 * channel number hint for ACS operation, if valid channel is specified then 7164 * ACS operation gives priority to this channel. 7165 * Note: If both the driver and user space application supports the 6 GHz band, 7166 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT 7167 * should be used. 7168 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT 7169 * is still used if either of the driver or user space application doesn't 7170 * support the 6 GHz band. 7171 * 7172 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32). 7173 * Channel center frequency (MHz) hint for ACS operation, if a valid center 7174 * frequency is specified, ACS operation gives priority to this channel. 7175 */ 7176 enum qca_wlan_vendor_attr_acs_config { 7177 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0, 7178 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1, 7179 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2, 7180 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3, 7181 7182 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST, 7183 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX = 7184 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1, 7185 }; 7186 7187 /** 7188 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability 7189 */ 7190 enum qca_wlan_vendor_attr_get_hw_capability { 7191 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID, 7192 /* 7193 * Antenna isolation 7194 * An attribute used in the response. 7195 * The content of this attribute is encoded in a byte array. Each byte 7196 * value is an antenna isolation value. The array length is the number 7197 * of antennas. 7198 */ 7199 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION, 7200 /* 7201 * Request HW capability 7202 * An attribute used in the request. 7203 * The content of this attribute is a u32 array for one or more of 7204 * hardware capabilities (attribute IDs) that are being requested. Each 7205 * u32 value has a value from this 7206 * enum qca_wlan_vendor_attr_get_hw_capability 7207 * identifying which capabilities are requested. 7208 */ 7209 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY, 7210 7211 /* keep last */ 7212 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST, 7213 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX = 7214 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1, 7215 }; 7216 7217 /** 7218 * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config - 7219 * config params for sta roam policy 7220 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid 7221 * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels 7222 * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL: 7223 * If sta should skip unsafe channels or not in scanning 7224 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST: 7225 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute 7226 */ 7227 enum qca_wlan_vendor_attr_sta_connect_roam_policy_config { 7228 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0, 7229 QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE, 7230 QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL, 7231 7232 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST, 7233 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX = 7234 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1, 7235 }; 7236 7237 /* Attributes for FTM commands and events */ 7238 7239 /** 7240 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities 7241 * 7242 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See 7243 * enum qca_wlan_vendor_attr_loc_capa_flags. 7244 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number 7245 * of measurement sessions that can run concurrently. 7246 * Default is one session (no session concurrency). 7247 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique 7248 * peers that are supported in running sessions. For example, 7249 * if the value is 8 and maximum number of sessions is 2, you can 7250 * have one session with 8 unique peers, or 2 sessions with 4 unique 7251 * peers each, and so on. 7252 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number 7253 * of bursts per peer, as an exponent (2^value). Default is 0, 7254 * meaning no multi-burst support. 7255 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number 7256 * of measurement exchanges allowed in a single burst. 7257 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement 7258 * types. A bit mask (unsigned 32 bit value), each bit corresponds 7259 * to an AOA type as defined by enum qca_vendor_attr_aoa_type. 7260 */ 7261 enum qca_wlan_vendor_attr_loc_capa { 7262 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID, 7263 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS, 7264 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS, 7265 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS, 7266 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP, 7267 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST, 7268 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES, 7269 /* keep last */ 7270 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST, 7271 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX = 7272 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1, 7273 }; 7274 7275 /** 7276 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags 7277 * 7278 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver 7279 * can be configured as an FTM responder (for example, an AP that 7280 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 7281 * will be supported if set. 7282 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver 7283 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION 7284 * will be supported if set. 7285 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder 7286 * supports immediate (ASAP) response. 7287 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone 7288 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS. 7289 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports 7290 * requesting AOA measurements as part of an FTM session. 7291 */ 7292 enum qca_wlan_vendor_attr_loc_capa_flags { 7293 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0, 7294 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1, 7295 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2, 7296 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3, 7297 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4, 7298 }; 7299 7300 /** 7301 * enum qca_wlan_ani_setting - ANI setting type 7302 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level 7303 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter 7304 */ 7305 enum qca_wlan_ani_setting { 7306 QCA_WLAN_ANI_SETTING_AUTO = 0, 7307 QCA_WLAN_ANI_SETTING_FIXED = 1, 7308 }; 7309 7310 /** 7311 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration 7312 * 7313 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8) 7314 * Channel number on which Access Point should restart. 7315 * Note: If both the driver and user space application supports the 6 GHz band, 7316 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY 7317 * should be used. 7318 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL 7319 * is still used if either of the driver or user space application doesn't 7320 * support the 6 GHz band. 7321 * 7322 * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required 7323 * Nested attribute to hold list of center frequencies on which AP is 7324 * expected to operate. This is irrespective of ACS configuration. 7325 * This list is a priority based one and is looked for before the AP is 7326 * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC) 7327 * co-exist in the system. 7328 * 7329 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32) 7330 * Channel center frequency (MHz) on which the access point should restart. 7331 */ 7332 enum qca_wlan_vendor_attr_sap_config { 7333 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0, 7334 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1, 7335 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2, 7336 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3, 7337 7338 /* Keep last */ 7339 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST, 7340 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX = 7341 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1, 7342 }; 7343 7344 /** 7345 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about 7346 * a single peer in a measurement session. 7347 * 7348 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer. 7349 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related 7350 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags. 7351 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of 7352 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0 7353 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for 7354 * list of supported attributes. 7355 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for 7356 * secure measurement. 7357 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA 7358 * measurement every <value> bursts. If 0 or not specified, 7359 * AOA measurements will be disabled for this peer. 7360 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where 7361 * the measurement frames are exchanged. Optional; if not 7362 * specified, try to locate the peer in the kernel scan 7363 * results cache and use frequency from there. 7364 */ 7365 enum qca_wlan_vendor_attr_ftm_peer_info { 7366 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID, 7367 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR, 7368 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS, 7369 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS, 7370 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID, 7371 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD, 7372 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ, 7373 /* keep last */ 7374 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST, 7375 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX = 7376 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1, 7377 }; 7378 7379 /** 7380 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags, 7381 * per-peer 7382 * 7383 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request 7384 * immediate (ASAP) response from peer. 7385 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request 7386 * LCI report from peer. The LCI report includes the absolute 7387 * location of the peer in "official" coordinates (similar to GPS). 7388 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information. 7389 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request 7390 * Location civic report from peer. The LCR includes the location 7391 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0, 7392 * 11.24.6.7 for more information. 7393 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set, 7394 * request a secure measurement. 7395 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided. 7396 */ 7397 enum qca_wlan_vendor_attr_ftm_peer_meas_flags { 7398 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0, 7399 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1, 7400 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2, 7401 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3, 7402 }; 7403 7404 /** 7405 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters 7406 * 7407 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements 7408 * to perform in a single burst. 7409 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to 7410 * perform, specified as an exponent (2^value). 7411 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst 7412 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. 7413 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts, 7414 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must 7415 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION. 7416 */ 7417 enum qca_wlan_vendor_attr_ftm_meas_param { 7418 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID, 7419 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST, 7420 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP, 7421 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION, 7422 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD, 7423 /* keep last */ 7424 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST, 7425 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX = 7426 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1, 7427 }; 7428 7429 /** 7430 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results 7431 * 7432 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported 7433 * peer. 7434 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement 7435 * request for this peer. 7436 * See enum qca_wlan_vendor_attr_ftm_peer_result_status. 7437 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related 7438 * to measurement results for this peer. 7439 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags. 7440 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when 7441 * request failed and peer requested not to send an additional request 7442 * for this number of seconds. 7443 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received 7444 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 7445 * 9.4.2.22.10. 7446 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when 7447 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 7448 * 9.4.2.22.13. 7449 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer 7450 * overridden some measurement request parameters. See 7451 * enum qca_wlan_vendor_attr_ftm_meas_param. 7452 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement 7453 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT. 7454 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement 7455 * results. Each entry is a nested attribute defined 7456 * by enum qca_wlan_vendor_attr_ftm_meas. 7457 */ 7458 enum qca_wlan_vendor_attr_ftm_peer_result { 7459 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID, 7460 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR, 7461 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS, 7462 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS, 7463 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS, 7464 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI, 7465 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR, 7466 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS, 7467 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS, 7468 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS, 7469 /* keep last */ 7470 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST, 7471 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX = 7472 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1, 7473 }; 7474 7475 /** 7476 * enum qca_wlan_vendor_attr_ftm_peer_result_status 7477 * 7478 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results 7479 * will be provided. Peer may have overridden some measurement parameters, 7480 * in which case overridden parameters will be report by 7481 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute. 7482 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable 7483 * of performing the measurement request. No more results will be sent 7484 * for this peer in this session. 7485 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request 7486 * failed, and requested not to send an additional request for number 7487 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS 7488 * attribute. 7489 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation 7490 * failed. Request was not sent over the air. 7491 */ 7492 enum qca_wlan_vendor_attr_ftm_peer_result_status { 7493 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK, 7494 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE, 7495 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED, 7496 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID, 7497 }; 7498 7499 /** 7500 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags 7501 * for measurement result, per-peer 7502 * 7503 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set, 7504 * measurement completed for this peer. No more results will be reported 7505 * for this peer in this session. 7506 */ 7507 enum qca_wlan_vendor_attr_ftm_peer_result_flags { 7508 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0, 7509 }; 7510 7511 /** 7512 * enum qca_vendor_attr_loc_session_status: Session completion status code 7513 * 7514 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed 7515 * successfully. 7516 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted 7517 * by request. 7518 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request 7519 * was invalid and was not started. 7520 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error 7521 * and did not complete normally (for example out of resources). 7522 */ 7523 enum qca_vendor_attr_loc_session_status { 7524 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK, 7525 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED, 7526 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID, 7527 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED, 7528 }; 7529 7530 /** 7531 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data 7532 * 7533 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as 7534 * recorded by responder, in picoseconds. 7535 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 7536 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at 7537 * initiator, in picoseconds. 7538 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 7539 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by 7540 * initiator, in picoseconds. 7541 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 7542 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at 7543 * responder, in picoseconds. 7544 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 7545 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded 7546 * during this measurement exchange. Optional and will be provided if 7547 * the hardware can measure it. 7548 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by 7549 * responder. Not always provided. 7550 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 7551 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by 7552 * responder. Not always provided. 7553 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 7554 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by 7555 * initiator. Not always provided. 7556 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 7557 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by 7558 * initiator. Not always provided. 7559 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 7560 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding. 7561 */ 7562 enum qca_wlan_vendor_attr_ftm_meas { 7563 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID, 7564 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1, 7565 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2, 7566 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3, 7567 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4, 7568 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI, 7569 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR, 7570 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR, 7571 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR, 7572 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR, 7573 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD, 7574 /* keep last */ 7575 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST, 7576 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX = 7577 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1, 7578 }; 7579 7580 /** 7581 * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index 7582 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value 7583 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL: 7584 * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one 7585 * of the social channels. 7586 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period 7587 * A 32-bit unsigned value; the P2P listen offload period (ms). 7588 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL: 7589 * A 32-bit unsigned value; the P2P listen interval duration (ms). 7590 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT: 7591 * A 32-bit unsigned value; number of interval times the Firmware needs 7592 * to run the offloaded P2P listen operation before it stops. 7593 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types 7594 * An array of unsigned 8-bit characters; vendor information elements. 7595 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs 7596 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW 7597 * A 32-bit unsigned value; a control flag to indicate whether listen 7598 * results need to be flushed to wpa_supplicant. 7599 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason 7600 * A 8-bit unsigned value; reason code for P2P listen offload stop 7601 * event. 7602 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value 7603 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value 7604 */ 7605 enum qca_wlan_vendor_attr_p2p_listen_offload { 7606 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0, 7607 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL, 7608 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD, 7609 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL, 7610 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT, 7611 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES, 7612 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE, 7613 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG, 7614 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON, 7615 /* keep last */ 7616 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST, 7617 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX = 7618 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1 7619 }; 7620 7621 /** 7622 * enum qca_wlan_vendor_drv_info - WLAN driver info 7623 * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid 7624 * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info 7625 * between Firmware & Host. 7626 */ 7627 enum qca_wlan_vendor_drv_info { 7628 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0, 7629 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE, 7630 7631 /* keep last */ 7632 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST, 7633 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX = 7634 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1, 7635 }; 7636 7637 /** 7638 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type 7639 * 7640 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest 7641 * CIR (channel impulse response) path for each antenna. 7642 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude 7643 * of the strongest CIR path for each antenna. 7644 */ 7645 enum qca_wlan_vendor_attr_aoa_type { 7646 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE, 7647 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP, 7648 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX 7649 }; 7650 7651 /** 7652 * enum qca_wlan_vendor_attr_encryption_test - Attributes to 7653 * validate encryption engine 7654 * 7655 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute. 7656 * This will be included if the request is for decryption; if not included, 7657 * the request is treated as a request for encryption by default. 7658 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value 7659 * indicating the key cipher suite. Takes same values as 7660 * NL80211_ATTR_KEY_CIPHER. 7661 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value 7662 * Key Id to be used for encryption 7663 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values. 7664 * Key (TK) to be used for encryption/decryption 7665 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values. 7666 * Packet number to be specified for encryption/decryption 7667 * 6 bytes for TKIP/CCMP/GCMP. 7668 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values 7669 * representing the 802.11 packet (header + payload + FCS) that 7670 * needs to be encrypted/decrypted. 7671 * Encrypted/decrypted response from the driver will also be sent 7672 * to userspace with the same attribute. 7673 */ 7674 enum qca_wlan_vendor_attr_encryption_test { 7675 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0, 7676 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION, 7677 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER, 7678 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID, 7679 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK, 7680 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN, 7681 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA, 7682 7683 /* keep last */ 7684 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST, 7685 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX = 7686 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1 7687 }; 7688 7689 /** 7690 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of 7691 * sector for DMG RF sector operations. 7692 * 7693 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector 7694 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector 7695 */ 7696 enum qca_wlan_vendor_attr_dmg_rf_sector_type { 7697 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX, 7698 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX, 7699 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX 7700 }; 7701 7702 /** 7703 * enum qca_wlan_vendor_attr_fw_state - State of firmware 7704 * 7705 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state 7706 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active 7707 */ 7708 enum qca_wlan_vendor_attr_fw_state { 7709 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR, 7710 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE, 7711 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX 7712 }; 7713 7714 /** 7715 * BRP antenna limit mode 7716 * 7717 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force 7718 * antenna limit, BRP will be performed as usual. 7719 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal 7720 * antennas limit. the hardware may use less antennas than the 7721 * maximum limit. 7722 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will 7723 * use exactly the specified number of antennas for BRP. 7724 */ 7725 enum qca_wlan_vendor_attr_brp_ant_limit_mode { 7726 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE, 7727 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE, 7728 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE, 7729 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX 7730 }; 7731 7732 /** 7733 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for 7734 * DMG RF sector configuration for a single RF module. 7735 * The values are defined in a compact way which closely matches 7736 * the way it is stored in HW registers. 7737 * The configuration provides values for 32 antennas and 8 distribution 7738 * amplifiers, and together describes the characteristics of the RF 7739 * sector - such as a beam in some direction with some gain. 7740 * 7741 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index 7742 * of RF module for this configuration. 7743 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge 7744 * amplifier gain index. Unsigned 32 bit number containing 7745 * bits for all 32 antennas. 7746 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge 7747 * amplifier gain index. Unsigned 32 bit number containing 7748 * bits for all 32 antennas. 7749 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge 7750 * amplifier gain index. Unsigned 32 bit number containing 7751 * bits for all 32 antennas. 7752 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values 7753 * for first 16 antennas, 2 bits per antenna. 7754 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values 7755 * for last 16 antennas, 2 bits per antenna. 7756 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains 7757 * DTYPE values (3 bits) for each distribution amplifier, followed 7758 * by X16 switch bits for each distribution amplifier. There are 7759 * total of 8 distribution amplifiers. 7760 */ 7761 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg { 7762 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0, 7763 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1, 7764 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2, 7765 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3, 7766 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4, 7767 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5, 7768 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6, 7769 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7, 7770 7771 /* keep last */ 7772 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST, 7773 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX = 7774 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1 7775 }; 7776 7777 /** 7778 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for 7779 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver. 7780 * 7781 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger 7782 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode 7783 * represents the different TDLS trigger modes. 7784 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within 7785 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number 7786 * of packets shall meet the criteria for implicit TDLS setup. 7787 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx 7788 * packets within a duration. 7789 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate 7790 * a TDLS setup. 7791 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate 7792 * a TDLS Discovery to the Peer. 7793 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of 7794 * discovery attempts to know the TDLS capability of the peer. A peer is 7795 * marked as TDLS not capable if there is no response for all the attempts. 7796 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32) 7797 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD 7798 * number of TX / RX frames meet the criteria for TDLS teardown. 7799 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number 7800 * (u32) of Tx/Rx packets within a duration 7801 * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link 7802 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold 7803 * corresponding to the RSSI of the peer below which a TDLS 7804 * setup is triggered. 7805 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold 7806 * corresponding to the RSSI of the peer above which 7807 * a TDLS teardown is triggered. 7808 */ 7809 enum qca_wlan_vendor_attr_tdls_configuration { 7810 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0, 7811 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1, 7812 7813 /* Attributes configuring the TDLS Implicit Trigger */ 7814 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2, 7815 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3, 7816 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4, 7817 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5, 7818 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6, 7819 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7, 7820 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8, 7821 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9, 7822 7823 /* keep last */ 7824 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST, 7825 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX = 7826 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1 7827 }; 7828 7829 /** 7830 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in 7831 * the driver. 7832 * 7833 * The following are the different values for 7834 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE. 7835 * 7836 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to 7837 * initiate/teardown the TDLS connection to a respective peer comes 7838 * from the user space. wpa_supplicant provides the commands 7839 * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this. 7840 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS 7841 * setup/teardown to the eligible peer once the configured criteria 7842 * (such as TX/RX threshold, RSSI) is met. The attributes 7843 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to 7844 * the different configuration criteria for the TDLS trigger from the 7845 * host driver. 7846 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger 7847 * the TDLS setup / teardown through the implicit mode, only to the 7848 * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1, 7849 * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands). 7850 * External mode works on top of the implicit mode, thus the host Driver 7851 * is expected to be configured in TDLS Implicit mode too to operate in 7852 * External mode. Configuring External mode alone without Implicit 7853 * mode is invalid. 7854 * 7855 * All the above implementations work as expected only when the host driver 7856 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - 7857 * representing that the TDLS message exchange is not internal to the host 7858 * driver, but depends on wpa_supplicant to do the message exchange. 7859 */ 7860 enum qca_wlan_vendor_tdls_trigger_mode { 7861 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0, 7862 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1, 7863 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2, 7864 }; 7865 7866 /** 7867 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits 7868 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0 7869 * that is hard-coded in the Board Data File (BDF). 7870 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1 7871 * that is hard-coded in the Board Data File (BDF). 7872 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2 7873 * that is hard-coded in the Board Data File (BDF). 7874 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3 7875 * that is hard-coded in the Board Data File (BDF). 7876 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4 7877 * that is hard-coded in the Board Data File (BDF). 7878 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any 7879 * source of SAR power limits, thereby disabling the SAR power 7880 * limit feature. 7881 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power 7882 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 7883 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power 7884 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 7885 * 7886 * This enumerates the valid set of values that may be supplied for 7887 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of 7888 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in 7889 * the response to an instance of the 7890 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 7891 */ 7892 enum qca_vendor_attr_sar_limits_selections { 7893 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0, 7894 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1, 7895 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2, 7896 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3, 7897 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4, 7898 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5, 7899 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6, 7900 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7, 7901 }; 7902 7903 /** 7904 * enum qca_vendor_attr_sar_limits_spec_modulations - 7905 * SAR limits specification modulation 7906 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK - 7907 * CCK modulation 7908 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM - 7909 * OFDM modulation 7910 * 7911 * This enumerates the valid set of values that may be supplied for 7912 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an 7913 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an 7914 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor 7915 * command or in the response to an instance of the 7916 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 7917 */ 7918 enum qca_vendor_attr_sar_limits_spec_modulations { 7919 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0, 7920 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1, 7921 }; 7922 7923 /** 7924 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits 7925 * 7926 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to 7927 * select which SAR power limit table should be used. Valid 7928 * values are enumerated in enum 7929 * %qca_vendor_attr_sar_limits_selections. The existing SAR 7930 * power limit selection is unchanged if this attribute is not 7931 * present. 7932 * 7933 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value 7934 * which specifies the number of SAR power limit specifications 7935 * which will follow. 7936 * 7937 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power 7938 * limit specifications. The number of specifications is 7939 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each 7940 * specification contains a set of 7941 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A 7942 * specification is uniquely identified by the attributes 7943 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND, 7944 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and 7945 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always 7946 * contains as a payload the attribute 7947 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT. 7948 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX. 7949 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or 7950 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is 7951 * needed based upon the value of 7952 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE. 7953 * 7954 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to 7955 * indicate for which band this specification applies. Valid 7956 * values are enumerated in enum %nl80211_band (although not all 7957 * bands may be supported by a given device). If the attribute is 7958 * not supplied then the specification will be applied to all 7959 * supported bands. 7960 * 7961 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value 7962 * to indicate for which antenna chain this specification 7963 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the 7964 * attribute is not supplied then the specification will be 7965 * applied to all chains. 7966 * 7967 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32) 7968 * value to indicate for which modulation scheme this 7969 * specification applies. Valid values are enumerated in enum 7970 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute 7971 * is not supplied then the specification will be applied to all 7972 * modulation schemes. 7973 * 7974 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32) 7975 * value to specify the actual power limit value in units of 0.5 7976 * dBm (i.e., a value of 11 represents 5.5 dBm). 7977 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 7978 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER. 7979 * 7980 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32) 7981 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles. 7982 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 7983 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0. 7984 * 7985 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS 7986 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS. 7987 */ 7988 enum qca_vendor_attr_sar_limits { 7989 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0, 7990 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1, 7991 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2, 7992 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3, 7993 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4, 7994 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5, 7995 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6, 7996 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7, 7997 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8, 7998 7999 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST, 8000 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX = 8001 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1 8002 }; 8003 8004 /** 8005 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring 8006 * offload which is an extension for LL_STATS. 8007 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms. 8008 * If MAC counters do not exceed the threshold, FW will report monitored 8009 * link layer counters periodically as this setting. The first report is 8010 * always triggered by this timer. 8011 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99). 8012 * For each MAC layer counter, FW holds two copies. One is the current value. 8013 * The other is the last report. Once a current counter's increment is larger 8014 * than the threshold, FW will indicate that counter to host even if the 8015 * monitoring timer does not expire. 8016 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change 8017 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU 8018 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same 8019 * failure code. 8020 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code 8021 * 1: TX packet discarded 8022 * 2: No ACK 8023 * 3: Postpone 8024 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address 8025 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state 8026 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold. 8027 * Threshold for all monitored parameters. If per counter dedicated threshold 8028 * is not enabled, this threshold will take effect. 8029 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this 8030 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0. 8031 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID 8032 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID 8033 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters 8034 * Bit0: TX counter unit in MSDU 8035 * Bit1: TX counter unit in MPDU 8036 * Bit2: TX counter unit in PPDU 8037 * Bit3: TX counter unit in byte 8038 * Bit4: Dropped MSDUs 8039 * Bit5: Dropped Bytes 8040 * Bit6: MPDU retry counter 8041 * Bit7: MPDU failure counter 8042 * Bit8: PPDU failure counter 8043 * Bit9: MPDU aggregation counter 8044 * Bit10: MCS counter for ACKed MPDUs 8045 * Bit11: MCS counter for Failed MPDUs 8046 * Bit12: TX Delay counter 8047 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters 8048 * Bit0: MAC RX counter unit in MPDU 8049 * Bit1: MAC RX counter unit in byte 8050 * Bit2: PHY RX counter unit in PPDU 8051 * Bit3: PHY RX counter unit in byte 8052 * Bit4: Disorder counter 8053 * Bit5: Retry counter 8054 * Bit6: Duplication counter 8055 * Bit7: Discard counter 8056 * Bit8: MPDU aggregation size counter 8057 * Bit9: MCS counter 8058 * Bit10: Peer STA power state change (wake to sleep) counter 8059 * Bit11: Peer STA power save counter, total time in PS mode 8060 * Bit12: Probe request counter 8061 * Bit13: Other management frames counter 8062 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA 8063 * Bit0: Idle time 8064 * Bit1: TX time 8065 * Bit2: time RX in current bss 8066 * Bit3: Out of current bss time 8067 * Bit4: Wireless medium busy time 8068 * Bit5: RX in bad condition time 8069 * Bit6: TX in bad condition time 8070 * Bit7: time wlan card not available 8071 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal 8072 * Bit0: Per channel SNR counter 8073 * Bit1: Per channel noise floor counter 8074 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers 8075 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels 8076 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats 8077 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats 8078 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats 8079 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs 8080 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs 8081 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs 8082 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data 8083 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets 8084 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped 8085 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK 8086 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed 8087 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed 8088 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM: 8089 * aggregation stats buffer length 8090 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats 8091 * buffer for ACKed MPDUs. 8092 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats 8093 * buffer for failed MPDUs. 8094 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE: 8095 * length of delay stats array. 8096 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats 8097 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs 8098 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs 8099 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats 8100 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received 8101 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received 8102 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received 8103 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received 8104 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost 8105 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets 8106 * flagged as retransmissions 8107 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets 8108 * flagged as duplicated 8109 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX 8110 * packets discarded 8111 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation 8112 * stats buffer. 8113 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs 8114 * stats buffer. 8115 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer 8116 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer 8117 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep 8118 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time 8119 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe 8120 * requests received 8121 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt 8122 * frames received 8123 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time 8124 * there is no TX, nor RX, nor interference. 8125 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time 8126 * transmitting packets. 8127 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time 8128 * for receiving. 8129 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time 8130 * interference detected. 8131 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time 8132 * receiving packets with errors. 8133 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time 8134 * TX no-ACK. 8135 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time 8136 * the chip is unable to work in normal conditions. 8137 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time 8138 * receiving packets in current BSS. 8139 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time 8140 * receiving packets not in current BSS. 8141 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas 8142 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL: 8143 * This is a container for per antenna signal stats. 8144 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value 8145 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value 8146 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon 8147 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon 8148 */ 8149 enum qca_wlan_vendor_attr_ll_stats_ext { 8150 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0, 8151 8152 /* Attributes for configurations */ 8153 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD, 8154 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD, 8155 8156 /* Peer STA power state change */ 8157 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG, 8158 8159 /* TX failure event */ 8160 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID, 8161 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU, 8162 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS, 8163 8164 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE, 8165 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS, 8166 8167 /* MAC counters */ 8168 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL, 8169 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE, 8170 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID, 8171 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID, 8172 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP, 8173 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP, 8174 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP, 8175 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP, 8176 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM, 8177 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM, 8178 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS, 8179 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER, 8180 8181 /* Sub-attributes for PEER_AC_TX */ 8182 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU, 8183 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU, 8184 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU, 8185 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES, 8186 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP, 8187 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES, 8188 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY, 8189 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK, 8190 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK, 8191 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM, 8192 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM, 8193 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM, 8194 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR, 8195 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS, 8196 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS, 8197 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE, 8198 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY, 8199 8200 /* Sub-attributes for PEER_AC_RX */ 8201 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU, 8202 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES, 8203 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU, 8204 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES, 8205 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST, 8206 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY, 8207 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP, 8208 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD, 8209 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM, 8210 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM, 8211 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS, 8212 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR, 8213 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES, 8214 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION, 8215 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ, 8216 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT, 8217 8218 /* Sub-attributes for CCA_BSS */ 8219 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME, 8220 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME, 8221 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME, 8222 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY, 8223 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD, 8224 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD, 8225 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL, 8226 8227 /* sub-attribute for BSS_RX_TIME */ 8228 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME, 8229 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME, 8230 8231 /* Sub-attributes for PEER_SIGNAL */ 8232 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM, 8233 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL, 8234 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR, 8235 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF, 8236 8237 /* Sub-attributes for IFACE_BSS */ 8238 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON, 8239 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON, 8240 8241 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST, 8242 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX = 8243 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1 8244 }; 8245 8246 /** 8247 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd 8248 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels 8249 * in priority order as decided after ACS operation in userspace. 8250 * 8251 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8). 8252 * One of reason code from enum qca_wlan_vendor_acs_select_reason. 8253 * 8254 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required 8255 * Array of nested values for each channel with following attributes: 8256 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, 8257 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, 8258 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, 8259 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, 8260 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 8261 * Note: If both the driver and user-space application supports the 6 GHz band, 8262 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use 8263 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST. 8264 * To maintain backward compatibility, 8265 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST 8266 * is still used if either of the driver or user space application doesn't 8267 * support the 6 GHz band. 8268 * 8269 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8). 8270 * Primary channel number 8271 * Note: If both the driver and user-space application supports the 6 GHz band, 8272 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use 8273 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY. 8274 * To maintain backward compatibility, 8275 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY 8276 * is still used if either of the driver or user space application doesn't 8277 * support the 6 GHz band. 8278 * 8279 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8). 8280 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths. 8281 * Note: If both the driver and user-space application supports the 6 GHz band, 8282 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use 8283 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY. 8284 * To maintain backward compatibility, 8285 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY 8286 * is still used if either of the driver or user space application 8287 * doesn't support the 6 GHz band. 8288 * 8289 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8). 8290 * VHT seg0 channel number 8291 * Note: If both the driver and user-space application supports the 6 GHz band, 8292 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use 8293 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0. 8294 * To maintain backward compatibility, 8295 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 8296 * is still used if either of the driver or user space application 8297 * doesn't support the 6 GHz band. 8298 * 8299 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8). 8300 * VHT seg1 channel number 8301 * Note: If both the driver and user-space application supports the 6 GHz band, 8302 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use 8303 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1. 8304 * To maintain backward compatibility, 8305 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 8306 * is still used if either of the driver or user space application 8307 * doesn't support the 6 GHz band. 8308 * 8309 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8). 8310 * Takes one of enum nl80211_chan_width values. 8311 * 8312 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required 8313 * Array of nested values for each channel with following attributes: 8314 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32), 8315 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32), 8316 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32), 8317 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32), 8318 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 8319 * Note: If user-space application has no support of the 6 GHz band, this 8320 * attribute is optional. 8321 * 8322 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32) 8323 * Primary channel frequency in MHz 8324 * Note: If user-space application has no support of the 6 GHz band, this 8325 * attribute is optional. 8326 * 8327 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32) 8328 * Secondary channel frequency in MHz used for HT 40 MHz channels. 8329 * Note: If user-space application has no support of the 6 GHz band, this 8330 * attribute is optional. 8331 * 8332 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32) 8333 * VHT seg0 channel frequency in MHz 8334 * Note: If user-space application has no support of the 6GHz band, this 8335 * attribute is optional. 8336 * 8337 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32) 8338 * VHT seg1 channel frequency in MHz 8339 * Note: If user-space application has no support of the 6 GHz band, this 8340 * attribute is optional. 8341 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16) 8342 * Puncture Bitmap for selected primary channel. Optional if no support 8343 * for EHT (IEEE 802.11be). Encoding for this attribute follows the 8344 * convention used in the Disabled Subchannel Bitmap field of the EHT Operation 8345 * element. 8346 */ 8347 enum qca_wlan_vendor_attr_external_acs_channels { 8348 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0, 8349 8350 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason 8351 */ 8352 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1, 8353 8354 /* Array of nested values for each channel with following attributes: 8355 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND, 8356 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, 8357 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, 8358 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, 8359 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, 8360 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 8361 */ 8362 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2, 8363 /* This (u8) will hold values of one of enum nl80211_bands */ 8364 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3, 8365 /* Primary channel (u8) */ 8366 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4, 8367 /* Secondary channel (u8) used for HT 40 MHz channels */ 8368 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5, 8369 /* VHT seg0 channel (u8) */ 8370 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6, 8371 /* VHT seg1 channel (u8) */ 8372 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7, 8373 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */ 8374 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8, 8375 8376 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9, 8377 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10, 8378 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11, 8379 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12, 8380 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13, 8381 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14, 8382 8383 /* keep last */ 8384 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST, 8385 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX = 8386 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1 8387 }; 8388 8389 /** 8390 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why 8391 * the ACS has to be triggered. These values are used by 8392 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and 8393 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON 8394 */ 8395 enum qca_wlan_vendor_acs_select_reason { 8396 /* Represents the reason that the ACS triggered during the AP start */ 8397 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT, 8398 /* Represents the reason that DFS found with the current channel */ 8399 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS, 8400 /* Represents the reason that LTE co-exist in the current band. */ 8401 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX, 8402 /* Represents the reason that generic, uncategorized interference has 8403 * been found in the current channel. 8404 */ 8405 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE, 8406 /* Represents the reason that excessive 802.11 interference has been 8407 * found in the current channel. 8408 */ 8409 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE, 8410 /* Represents the reason that generic Continuous Wave (CW) interference 8411 * has been found in the current channel. 8412 */ 8413 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE, 8414 /* Represents the reason that Microwave Oven (MWO) interference has been 8415 * found in the current channel. 8416 */ 8417 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE, 8418 /* Represents the reason that generic Frequency-Hopping Spread Spectrum 8419 * (FHSS) interference has been found in the current channel. This may 8420 * include 802.11 waveforms. 8421 */ 8422 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE, 8423 /* Represents the reason that non-802.11 generic Frequency-Hopping 8424 * Spread Spectrum (FHSS) interference has been found in the current 8425 * channel. 8426 */ 8427 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE, 8428 /* Represents the reason that generic Wideband (WB) interference has 8429 * been found in the current channel. This may include 802.11 waveforms. 8430 */ 8431 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE, 8432 /* Represents the reason that non-802.11 generic Wideband (WB) 8433 * interference has been found in the current channel. 8434 */ 8435 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE, 8436 /* Represents the reason that Jammer interference has been found in the 8437 * current channel. 8438 */ 8439 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE, 8440 /* Represents the reason that ACS triggered by AFC */ 8441 QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER, 8442 }; 8443 8444 /** 8445 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration 8446 * 8447 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32) 8448 * value to specify the gpio command, please refer to enum qca_gpio_cmd_type 8449 * to get the available value that this item can use. 8450 * 8451 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32) 8452 * value to specify the gpio number. 8453 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8454 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT. 8455 * 8456 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32) 8457 * value to specify the gpio output level, please refer to enum qca_gpio_value 8458 * to get the available value that this item can use. 8459 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8460 * %QCA_WLAN_VENDOR_GPIO_OUTPUT. 8461 * 8462 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32) 8463 * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type 8464 * to get the available value that this item can use. 8465 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8466 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 8467 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 8468 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 8469 * attribute is present. 8470 * 8471 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32) 8472 * value to specify the gpio interrupt mode, please refer to enum 8473 * qca_gpio_interrupt_mode to get the available value that this item can use. 8474 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8475 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 8476 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 8477 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 8478 * attribute is present. 8479 * 8480 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32) 8481 * value to specify the gpio direction, please refer to enum qca_gpio_direction 8482 * to get the available value that this item can use. 8483 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8484 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 8485 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 8486 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 8487 * attribute is present. 8488 * 8489 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32) 8490 * Value to specify the mux config. Meaning of a given value is dependent 8491 * on the target chipset and gpio pin. Must be of the range 0-15. 8492 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8493 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0. 8494 * 8495 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32) 8496 * Value to specify the drive, Refer to enum qca_gpio_drive. 8497 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8498 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0). 8499 * 8500 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag) 8501 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8502 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all 8503 * other parameters for the given GPIO will be obtained from internal 8504 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be 8505 * specified to indicate the GPIO pin being configured. 8506 */ 8507 enum qca_wlan_gpio_attr { 8508 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0, 8509 /* Unsigned 32-bit attribute for GPIO command */ 8510 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1, 8511 /* Unsigned 32-bit attribute for GPIO PIN number to configure */ 8512 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2, 8513 /* Unsigned 32-bit attribute for GPIO value to configure */ 8514 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3, 8515 /* Unsigned 32-bit attribute for GPIO pull type */ 8516 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4, 8517 /* Unsigned 32-bit attribute for GPIO interrupt mode */ 8518 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5, 8519 /* Unsigned 32-bit attribute for GPIO direction to configure */ 8520 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6, 8521 /* Unsigned 32-bit attribute for GPIO mux config */ 8522 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7, 8523 /* Unsigned 32-bit attribute for GPIO drive */ 8524 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8, 8525 /* Flag attribute for using internal gpio configuration */ 8526 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9, 8527 8528 /* keep last */ 8529 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST, 8530 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX = 8531 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1, 8532 }; 8533 8534 /** 8535 * enum gpio_cmd_type - GPIO configuration command type 8536 * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info 8537 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level 8538 */ 8539 enum qca_gpio_cmd_type { 8540 QCA_WLAN_VENDOR_GPIO_CONFIG = 0, 8541 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1, 8542 }; 8543 8544 /** 8545 * enum qca_gpio_pull_type - GPIO pull type 8546 * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none 8547 * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up 8548 * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down 8549 */ 8550 enum qca_gpio_pull_type { 8551 QCA_WLAN_GPIO_PULL_NONE = 0, 8552 QCA_WLAN_GPIO_PULL_UP = 1, 8553 QCA_WLAN_GPIO_PULL_DOWN = 2, 8554 QCA_WLAN_GPIO_PULL_MAX, 8555 }; 8556 8557 /** 8558 * enum qca_gpio_direction - GPIO direction 8559 * @QCA_WLAN_GPIO_INPUT: set gpio as input mode 8560 * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode 8561 * @QCA_WLAN_GPIO_VALUE_MAX: invalid value 8562 */ 8563 enum qca_gpio_direction { 8564 QCA_WLAN_GPIO_INPUT = 0, 8565 QCA_WLAN_GPIO_OUTPUT = 1, 8566 QCA_WLAN_GPIO_DIR_MAX, 8567 }; 8568 8569 /** 8570 * enum qca_gpio_value - GPIO Value 8571 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low 8572 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high 8573 * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value 8574 */ 8575 enum qca_gpio_value { 8576 QCA_WLAN_GPIO_LEVEL_LOW = 0, 8577 QCA_WLAN_GPIO_LEVEL_HIGH = 1, 8578 QCA_WLAN_GPIO_LEVEL_MAX, 8579 }; 8580 8581 /** 8582 * enum gpio_interrupt_mode - GPIO interrupt mode 8583 * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger 8584 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger 8585 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger 8586 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger 8587 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger 8588 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger 8589 * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value 8590 */ 8591 enum qca_gpio_interrupt_mode { 8592 QCA_WLAN_GPIO_INTMODE_DISABLE = 0, 8593 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1, 8594 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2, 8595 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3, 8596 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4, 8597 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5, 8598 QCA_WLAN_GPIO_INTMODE_MAX, 8599 }; 8600 8601 /** 8602 * enum gpio_drive - GPIO drive 8603 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA 8604 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA 8605 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA 8606 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA 8607 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA 8608 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA 8609 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA 8610 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA 8611 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive 8612 */ 8613 enum qca_gpio_drive { 8614 QCA_WLAN_GPIO_DRIVE_2MA = 0, 8615 QCA_WLAN_GPIO_DRIVE_4MA = 1, 8616 QCA_WLAN_GPIO_DRIVE_6MA = 2, 8617 QCA_WLAN_GPIO_DRIVE_8MA = 3, 8618 QCA_WLAN_GPIO_DRIVE_10MA = 4, 8619 QCA_WLAN_GPIO_DRIVE_12MA = 5, 8620 QCA_WLAN_GPIO_DRIVE_14MA = 6, 8621 QCA_WLAN_GPIO_DRIVE_16MA = 7, 8622 QCA_WLAN_GPIO_DRIVE_MAX, 8623 }; 8624 8625 /** 8626 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting 8627 * MSDUQ depth threshold per peer per tid in the target 8628 * 8629 * Associated Vendor Command: 8630 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH 8631 */ 8632 enum qca_wlan_set_qdepth_thresh_attr { 8633 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0, 8634 /* 6-byte MAC address */ 8635 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR, 8636 /* Unsigned 32-bit attribute for holding the TID */ 8637 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID, 8638 /* Unsigned 32-bit attribute for holding the update mask 8639 * bit 0 - Update high priority msdu qdepth threshold 8640 * bit 1 - Update low priority msdu qdepth threshold 8641 * bit 2 - Update UDP msdu qdepth threshold 8642 * bit 3 - Update Non UDP msdu qdepth threshold 8643 * rest of bits are reserved 8644 */ 8645 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK, 8646 /* Unsigned 32-bit attribute for holding the threshold value */ 8647 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE, 8648 8649 /* keep last */ 8650 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST, 8651 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX = 8652 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1, 8653 }; 8654 8655 /** 8656 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for 8657 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd 8658 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the 8659 * external ACS policies to select the channels w.r.t. the PCL weights. 8660 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and 8661 * their PCL weights.) 8662 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to 8663 * select a channel with non-zero PCL weight. 8664 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a 8665 * channel with non-zero PCL weight. 8666 * 8667 */ 8668 enum qca_wlan_vendor_attr_external_acs_policy { 8669 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED, 8670 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY, 8671 }; 8672 8673 /** 8674 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters 8675 */ 8676 enum qca_wlan_vendor_attr_spectral_scan { 8677 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0, 8678 /* 8679 * Number of times the chip enters spectral scan mode before 8680 * deactivating spectral scans. When set to 0, chip will enter spectral 8681 * scan mode continuously. u32 attribute. 8682 */ 8683 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1, 8684 /* 8685 * Spectral scan period. Period increment resolution is 256*Tclk, 8686 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute. 8687 */ 8688 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2, 8689 /* Spectral scan priority. u32 attribute. */ 8690 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3, 8691 /* Number of FFT data points to compute. u32 attribute. */ 8692 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4, 8693 /* 8694 * Enable targeted gain change before starting the spectral scan FFT. 8695 * u32 attribute. 8696 */ 8697 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5, 8698 /* Restart a queued spectral scan. u32 attribute. */ 8699 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6, 8700 /* 8701 * Noise floor reference number for the calculation of bin power. 8702 * u32 attribute. 8703 */ 8704 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7, 8705 /* 8706 * Disallow spectral scan triggers after TX/RX packets by setting 8707 * this delay value to roughly SIFS time period or greater. 8708 * u32 attribute. 8709 */ 8710 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8, 8711 /* 8712 * Number of strong bins (inclusive) per sub-channel, below 8713 * which a signal is declared a narrow band tone. u32 attribute. 8714 */ 8715 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9, 8716 /* 8717 * Specify the threshold over which a bin is declared strong (for 8718 * scan bandwidth analysis). u32 attribute. 8719 */ 8720 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10, 8721 /* Spectral scan report mode. u32 attribute. */ 8722 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11, 8723 /* 8724 * RSSI report mode, if the ADC RSSI is below 8725 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR, 8726 * then FFTs will not trigger, but timestamps and summaries get 8727 * reported. u32 attribute. 8728 */ 8729 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12, 8730 /* 8731 * ADC RSSI must be greater than or equal to this threshold (signed dB) 8732 * to ensure spectral scan reporting with normal error code. 8733 * u32 attribute. 8734 */ 8735 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13, 8736 /* 8737 * Format of frequency bin magnitude for spectral scan triggered FFTs: 8738 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)). 8739 * u32 attribute. 8740 */ 8741 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14, 8742 /* 8743 * Format of FFT report to software for spectral scan triggered FFTs. 8744 * 0: No FFT report (only spectral scan summary report) 8745 * 1: 2-dword summary of metrics for each completed FFT + spectral scan 8746 * report 8747 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled 8748 * bins (in-band) per FFT + spectral scan summary report 8749 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled 8750 * bins (all) per FFT + spectral scan summary report 8751 * u32 attribute. 8752 */ 8753 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15, 8754 /* 8755 * Number of LSBs to shift out in order to scale the FFT bins. 8756 * u32 attribute. 8757 */ 8758 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16, 8759 /* 8760 * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes 8761 * in dBm power. u32 attribute. 8762 */ 8763 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17, 8764 /* 8765 * Per chain enable mask to select input ADC for search FFT. 8766 * u32 attribute. 8767 */ 8768 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18, 8769 /* 8770 * An unsigned 64-bit integer provided by host driver to identify the 8771 * spectral scan request. This attribute is included in the scan 8772 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START 8773 * and used as an attribute in 8774 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the 8775 * specific scan to be stopped. 8776 */ 8777 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19, 8778 /* Skip interval for FFT reports. u32 attribute */ 8779 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20, 8780 /* Set to report only one set of FFT results. 8781 * u32 attribute. 8782 */ 8783 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21, 8784 /* Debug level for spectral module in driver. 8785 * 0 : Verbosity level 0 8786 * 1 : Verbosity level 1 8787 * 2 : Verbosity level 2 8788 * 3 : Matched filterID display 8789 * 4 : One time dump of FFT report 8790 * u32 attribute. 8791 */ 8792 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22, 8793 /* Type of spectral scan request. u32 attribute. 8794 * It uses values defined in enum 8795 * qca_wlan_vendor_attr_spectral_scan_request_type. 8796 */ 8797 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23, 8798 /* This specifies the frequency span over which spectral 8799 * scan would be carried out. Its value depends on the 8800 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and 8801 * the relation is as follows. 8802 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL 8803 * Not applicable. Spectral scan would happen in the 8804 * operating span. 8805 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE 8806 * Center frequency (in MHz) of the span of interest or 8807 * for convenience, center frequency (in MHz) of any channel 8808 * in the span of interest. For 80+80 MHz agile spectral scan 8809 * request it represents center frequency (in MHz) of the primary 8810 * 80 MHz span or for convenience, center frequency (in MHz) of any 8811 * channel in the primary 80 MHz span. If agile spectral scan is 8812 * initiated without setting a valid frequency it returns the 8813 * error code 8814 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED). 8815 * u32 attribute. 8816 */ 8817 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24, 8818 /* Spectral scan mode. u32 attribute. 8819 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. 8820 * If this attribute is not present, it is assumed to be 8821 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL). 8822 */ 8823 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25, 8824 /* Spectral scan error code. u32 attribute. 8825 * It uses values defined in enum 8826 * qca_wlan_vendor_spectral_scan_error_code. 8827 * This attribute is included only in failure scenarios. 8828 */ 8829 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26, 8830 /* 8-bit unsigned value to enable/disable debug of the 8831 * Spectral DMA ring. 8832 * 1-enable, 0-disable 8833 */ 8834 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27, 8835 /* 8-bit unsigned value to enable/disable debug of the 8836 * Spectral DMA buffers. 8837 * 1-enable, 0-disable 8838 */ 8839 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28, 8840 /* This specifies the frequency span over which spectral scan would be 8841 * carried out. Its value depends on the value of 8842 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as 8843 * follows. 8844 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL 8845 * Not applicable. Spectral scan would happen in the operating span. 8846 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE 8847 * This attribute is applicable only for agile spectral scan 8848 * requests in 80+80 MHz mode. It represents center frequency (in 8849 * MHz) of the secondary 80 MHz span or for convenience, center 8850 * frequency (in MHz) of any channel in the secondary 80 MHz span. 8851 * u32 attribute. 8852 */ 8853 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29, 8854 /* This attribute specifies the bandwidth to be used for Spectral scan 8855 * operation. This is an u8 attribute and uses the values in enum 8856 * nl80211_chan_width. This is an optional attribute. 8857 * If this attribute is not populated, the driver should configure the 8858 * Spectral scan bandwidth to the maximum value supported by the target 8859 * for the current operating bandwidth. 8860 */ 8861 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30, 8862 /* Spectral FFT recapture flag attribute, to enable/disable FFT 8863 * recapture. Recapture can only be enabled for Scan period greater 8864 * than 52us. 8865 * If this attribute is enabled, re-triggers will be enabled in uCode 8866 * when AGC gain changes. 8867 */ 8868 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31, 8869 8870 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST, 8871 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX = 8872 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1, 8873 }; 8874 8875 /** 8876 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command 8877 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS. 8878 */ 8879 enum qca_wlan_vendor_attr_spectral_diag_stats { 8880 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0, 8881 /* Number of spectral TLV signature mismatches. 8882 * u64 attribute. 8883 */ 8884 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1, 8885 /* Number of spectral phyerror events with insufficient length when 8886 * parsing for secondary 80 search FFT report. u64 attribute. 8887 */ 8888 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2, 8889 /* Number of spectral phyerror events without secondary 80 8890 * search FFT report. u64 attribute. 8891 */ 8892 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3, 8893 /* Number of spectral phyerror events with vht operation segment 1 id 8894 * mismatches in search fft report. u64 attribute. 8895 */ 8896 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4, 8897 /* Number of spectral phyerror events with vht operation segment 2 id 8898 * mismatches in search fft report. u64 attribute. 8899 */ 8900 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5, 8901 8902 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST, 8903 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX = 8904 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1, 8905 }; 8906 8907 /** 8908 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command 8909 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. 8910 */ 8911 enum qca_wlan_vendor_attr_spectral_cap { 8912 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0, 8913 /* Flag attribute to indicate phydiag capability */ 8914 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1, 8915 /* Flag attribute to indicate radar detection capability */ 8916 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2, 8917 /* Flag attribute to indicate spectral capability */ 8918 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3, 8919 /* Flag attribute to indicate advanced spectral capability */ 8920 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4, 8921 /* Spectral hardware generation. u32 attribute. 8922 * It uses values defined in enum 8923 * qca_wlan_vendor_spectral_scan_cap_hw_gen. 8924 */ 8925 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5, 8926 /* Spectral bin scaling formula ID. u16 attribute. 8927 * It uses values defined in enum 8928 * qca_wlan_vendor_spectral_scan_cap_formula_id. 8929 */ 8930 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6, 8931 /* Spectral bin scaling param - low level offset. 8932 * s16 attribute. 8933 */ 8934 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7, 8935 /* Spectral bin scaling param - high level offset. 8936 * s16 attribute. 8937 */ 8938 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8, 8939 /* Spectral bin scaling param - RSSI threshold. 8940 * s16 attribute. 8941 */ 8942 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9, 8943 /* Spectral bin scaling param - default AGC max gain. 8944 * u8 attribute. 8945 */ 8946 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10, 8947 /* Flag attribute to indicate agile spectral scan capability 8948 * for 20/40/80 MHz modes. 8949 */ 8950 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11, 8951 /* Flag attribute to indicate agile spectral scan capability 8952 * for 160 MHz mode. 8953 */ 8954 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12, 8955 /* Flag attribute to indicate agile spectral scan capability 8956 * for 80+80 MHz mode. 8957 */ 8958 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13, 8959 /* Number of spectral detectors used for scan in 20 MHz. 8960 * u32 attribute. 8961 */ 8962 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14, 8963 /* Number of spectral detectors used for scan in 40 MHz. 8964 * u32 attribute. 8965 */ 8966 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15, 8967 /* Number of spectral detectors used for scan in 80 MHz. 8968 * u32 attribute. 8969 */ 8970 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16, 8971 /* Number of spectral detectors used for scan in 160 MHz. 8972 * u32 attribute. 8973 */ 8974 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17, 8975 /* Number of spectral detectors used for scan in 80+80 MHz. 8976 * u32 attribute. 8977 */ 8978 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18, 8979 /* Flag attribute to indicate agile spectral scan capability 8980 * for 320 MHz mode. 8981 */ 8982 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19, 8983 /* Number of spectral detectors used for scan in 320 MHz. 8984 * u32 attribute. 8985 */ 8986 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20, 8987 8988 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST, 8989 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX = 8990 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1, 8991 }; 8992 8993 /** 8994 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command 8995 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. 8996 */ 8997 enum qca_wlan_vendor_attr_spectral_scan_status { 8998 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0, 8999 /* Flag attribute to indicate whether spectral scan is enabled */ 9000 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1, 9001 /* Flag attribute to indicate whether spectral scan is in progress*/ 9002 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2, 9003 /* Spectral scan mode. u32 attribute. 9004 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. 9005 * If this attribute is not present, normal mode 9006 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be 9007 * requested. 9008 */ 9009 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3, 9010 9011 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST, 9012 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX = 9013 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1, 9014 }; 9015 9016 /** 9017 * enum qca_wlan_vendor_attr_config_latency_level - Level for 9018 * wlan latency module. 9019 * 9020 * There will be various of Wi-Fi functionality like scan/roaming/adaptive 9021 * power saving which would causing data exchange out of service, this 9022 * would be a big impact on latency. For latency sensitive applications over 9023 * Wi-Fi are intolerant to such operations and thus would configure them 9024 * to meet their respective needs. It is well understood by such applications 9025 * that altering the default behavior would degrade the Wi-Fi functionality 9026 * w.r.t the above pointed WLAN operations. 9027 * 9028 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL: 9029 * Default WLAN operation level which throughput orientated. 9030 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR: 9031 * Use XR level to benefit XR (extended reality) application to achieve 9032 * latency and power by via constraint scan/roaming/adaptive PS. 9033 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW: 9034 * Use low latency level to benefit application like concurrent 9035 * downloading or video streaming via constraint scan/adaptive PS. 9036 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW: 9037 * Use ultra low latency level to benefit for gaming/voice 9038 * application via constraint scan/roaming/adaptive PS. 9039 */ 9040 enum qca_wlan_vendor_attr_config_latency_level { 9041 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0, 9042 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1, 9043 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2, 9044 /* legacy name */ 9045 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 9046 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR, 9047 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3, 9048 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4, 9049 9050 /* keep last */ 9051 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST, 9052 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX = 9053 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1, 9054 }; 9055 9056 /** 9057 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for 9058 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd 9059 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the 9060 * spectral scan request types. 9061 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to 9062 * set the spectral parameters and start scan. 9063 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to 9064 * only set the spectral parameters. 9065 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to 9066 * only start the spectral scan. 9067 */ 9068 enum qca_wlan_vendor_attr_spectral_scan_request_type { 9069 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG, 9070 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN, 9071 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG, 9072 }; 9073 9074 /** 9075 * qca_wlan_vendor_spectral_scan_mode: Attribute values for 9076 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd 9077 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and 9078 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd 9079 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the 9080 * spectral scan modes. 9081 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan: 9082 * spectral scan in the current operating span. 9083 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan: 9084 * spectral scan in the configured agile span. 9085 */ 9086 enum qca_wlan_vendor_spectral_scan_mode { 9087 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0, 9088 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1, 9089 }; 9090 9091 /** 9092 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for 9093 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd 9094 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. 9095 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value 9096 * of a parameter is not supported. 9097 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan 9098 * mode is not supported. 9099 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter 9100 * has invalid value. 9101 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter 9102 * is not initialized. 9103 */ 9104 enum qca_wlan_vendor_spectral_scan_error_code { 9105 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0, 9106 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1, 9107 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2, 9108 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3, 9109 }; 9110 9111 /** 9112 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for 9113 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd 9114 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the 9115 * spectral hardware generation. 9116 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1 9117 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2 9118 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3 9119 */ 9120 enum qca_wlan_vendor_spectral_scan_cap_hw_gen { 9121 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0, 9122 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1, 9123 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2, 9124 }; 9125 9126 /** 9127 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for 9128 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd 9129 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the 9130 * Spectral bin scaling formula ID. 9131 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling 9132 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain 9133 * and RSSI threshold based formula. 9134 */ 9135 enum qca_wlan_vendor_spectral_scan_cap_formula_id { 9136 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0, 9137 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1, 9138 }; 9139 9140 /** 9141 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative 9142 * RF Operating Parameter (RROP) information is available, and if so, at which 9143 * point in the application-driver interaction sequence it can be retrieved by 9144 * the application from the driver. This point may vary by architecture and 9145 * other factors. This is a u16 value. 9146 */ 9147 enum qca_wlan_vendor_attr_rropavail_info { 9148 /* RROP information is unavailable. */ 9149 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE, 9150 /* RROP information is available and the application can retrieve the 9151 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS 9152 * event from the driver. 9153 */ 9154 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START, 9155 /* RROP information is available only after a vendor specific scan 9156 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has 9157 * successfully completed. The application can retrieve the information 9158 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from 9159 * the driver. 9160 */ 9161 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END, 9162 }; 9163 9164 /** 9165 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific 9166 * Representative RF Operating Parameter (RROP) information. It is sent for the 9167 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is 9168 * intended for use by external Auto Channel Selection applications. It provides 9169 * guidance values for some RF parameters that are used by the system during 9170 * operation. These values could vary by channel, band, radio, and so on. 9171 */ 9172 enum qca_wlan_vendor_attr_rrop_info { 9173 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0, 9174 9175 /* Representative Tx Power List (RTPL) which has an array of nested 9176 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst. 9177 */ 9178 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1, 9179 9180 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST, 9181 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX = 9182 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1 9183 }; 9184 9185 /** 9186 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list 9187 * entry instances in the Representative Tx Power List (RTPL). It provides 9188 * simplified power values intended for helping external Auto channel Selection 9189 * applications compare potential Tx power performance between channels, other 9190 * operating conditions remaining identical. These values are not necessarily 9191 * the actual Tx power values that will be used by the system. They are also not 9192 * necessarily the max or average values that will be used. Instead, they are 9193 * relative, summarized keys for algorithmic use computed by the driver or 9194 * underlying firmware considering a number of vendor specific factors. 9195 */ 9196 enum qca_wlan_vendor_attr_rtplinst { 9197 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0, 9198 9199 /* Primary channel number (u8). 9200 * Note: If both the driver and user space application support the 9201 * 6 GHz band, this attribute is deprecated and 9202 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To 9203 * maintain backward compatibility, 9204 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the 9205 * driver or user space application or both do not support the 6 GHz 9206 * band. 9207 */ 9208 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1, 9209 /* Representative Tx power in dBm (s32) with emphasis on throughput. */ 9210 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2, 9211 /* Representative Tx power in dBm (s32) with emphasis on range. */ 9212 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3, 9213 /* Primary channel center frequency (u32) in MHz */ 9214 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4, 9215 9216 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST, 9217 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX = 9218 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1, 9219 }; 9220 9221 /** 9222 * enum qca_wlan_vendor_attr_mac - Used by the vendor command 9223 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 9224 * 9225 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an 9226 * array of nested values as per attributes in 9227 * enum qca_wlan_vendor_attr_mac_mode_info. 9228 */ 9229 enum qca_wlan_vendor_attr_mac { 9230 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0, 9231 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1, 9232 9233 /* keep last */ 9234 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST, 9235 QCA_WLAN_VENDOR_ATTR_MAC_MAX = 9236 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1, 9237 }; 9238 9239 /** 9240 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected 9241 * WiFi netdev interface on a respective MAC. Used by the attribute 9242 * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO. 9243 * 9244 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32). 9245 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of 9246 * the connected Wi-Fi interface(u32). 9247 */ 9248 enum qca_wlan_vendor_attr_mac_iface_info { 9249 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0, 9250 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1, 9251 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2, 9252 9253 /* keep last */ 9254 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST, 9255 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX = 9256 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1, 9257 }; 9258 9259 /** 9260 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information. 9261 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the 9262 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 9263 * 9264 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the 9265 * MAC (u32) 9266 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC 9267 * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described 9268 * in enum nl80211_band. 9269 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev 9270 * interfaces associated with this MAC. Represented by enum 9271 * qca_wlan_vendor_attr_mac_iface_info. 9272 */ 9273 enum qca_wlan_vendor_attr_mac_info { 9274 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0, 9275 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1, 9276 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2, 9277 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3, 9278 9279 /* keep last */ 9280 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST, 9281 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX = 9282 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1, 9283 9284 }; 9285 9286 /** 9287 * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes 9288 * to get thermal status from driver/firmware. 9289 * enum values are used for NL attributes encapsulated inside 9290 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute. 9291 * 9292 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature 9293 * of a thermal level in Celsius. u32 size. 9294 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature 9295 * of a thermal level in Celsius. u32 size. 9296 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each 9297 * thermal level in milliseconds. u32 size. 9298 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number 9299 * of times the temperature crossed into the temperature range defined by the 9300 * thermal level from both higher and lower directions. u32 size. 9301 */ 9302 enum qca_wlan_vendor_attr_thermal_stats { 9303 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0, 9304 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE, 9305 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE, 9306 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME, 9307 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER, 9308 9309 /* keep last */ 9310 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST, 9311 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX = 9312 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1, 9313 }; 9314 9315 /** 9316 * enum he_fragmentation_val - HE fragmentation support values 9317 * Indicates level of dynamic fragmentation that is supported by 9318 * a STA as a recipient. 9319 * HE fragmentation values are defined as per 11ax spec and are used in 9320 * HE capability IE to advertise the support. These values are validated 9321 * in the driver to check the device capability and advertised in the HE 9322 * capability element. 9323 * 9324 * @HE_FRAG_DISABLE: no support for dynamic fragmentation 9325 * @HE_FRAG_LEVEL1: support for dynamic fragments that are 9326 * contained within an MPDU or S-MPDU, no support for dynamic fragments 9327 * within an A-MPDU that is not an S-MPDU. 9328 * @HE_FRAG_LEVEL2: support for dynamic fragments that are 9329 * contained within an MPDU or S-MPDU and support for up to one dynamic 9330 * fragment for each MSDU, each A-MSDU if supported by the recipient, and 9331 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an 9332 * MPDU or S-MPDU. 9333 * @HE_FRAG_LEVEL3: support for dynamic fragments that are 9334 * contained within an MPDU or S-MPDU and support for multiple dynamic 9335 * fragments for each MSDU and for each A-MSDU if supported by the 9336 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic 9337 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU. 9338 */ 9339 enum he_fragmentation_val { 9340 HE_FRAG_DISABLE, 9341 HE_FRAG_LEVEL1, 9342 HE_FRAG_LEVEL2, 9343 HE_FRAG_LEVEL3, 9344 }; 9345 9346 /** 9347 * enum he_mcs_config - HE MCS support configuration 9348 * 9349 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth. 9350 * These values are used in driver to configure the HE MCS map to advertise 9351 * Tx/Rx MCS map in HE capability and these values are applied for all the 9352 * streams supported by the device. To configure MCS for different bandwidths, 9353 * vendor command needs to be sent using this attribute with appropriate value. 9354 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS 9355 * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS 9356 * for HE_160_MCS0_11 send this command using HE MCS config attribute with 9357 * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11; 9358 * 9359 * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7 9360 * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9 9361 * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11 9362 * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7 9363 * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9 9364 * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11 9365 * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7 9366 * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9 9367 * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11 9368 */ 9369 enum he_mcs_config { 9370 HE_80_MCS0_7 = 0, 9371 HE_80_MCS0_9 = 1, 9372 HE_80_MCS0_11 = 2, 9373 HE_160_MCS0_7 = 4, 9374 HE_160_MCS0_9 = 5, 9375 HE_160_MCS0_11 = 6, 9376 HE_80p80_MCS0_7 = 8, 9377 HE_80p80_MCS0_9 = 9, 9378 HE_80p80_MCS0_11 = 10, 9379 }; 9380 9381 /** 9382 * enum qca_wlan_ba_session_config - BA session configuration 9383 * 9384 * Indicates the configuration values for BA session configuration attribute. 9385 * 9386 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration. 9387 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID. 9388 */ 9389 enum qca_wlan_ba_session_config { 9390 QCA_WLAN_ADD_BA = 1, 9391 QCA_WLAN_DELETE_BA = 2, 9392 }; 9393 9394 /** 9395 * enum qca_wlan_ac_type - access category type 9396 * 9397 * Indicates the access category type value. 9398 * 9399 * @QCA_WLAN_AC_BE: BE access category 9400 * @QCA_WLAN_AC_BK: BK access category 9401 * @QCA_WLAN_AC_VI: VI access category 9402 * @QCA_WLAN_AC_VO: VO access category 9403 * @QCA_WLAN_AC_ALL: All ACs 9404 */ 9405 enum qca_wlan_ac_type { 9406 QCA_WLAN_AC_BE = 0, 9407 QCA_WLAN_AC_BK = 1, 9408 QCA_WLAN_AC_VI = 2, 9409 QCA_WLAN_AC_VO = 3, 9410 QCA_WLAN_AC_ALL = 4, 9411 }; 9412 9413 /** 9414 * enum qca_wlan_he_ltf_cfg - HE LTF configuration 9415 * 9416 * Indicates the HE LTF configuration value. 9417 * 9418 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to 9419 * the mandatory HE-LTF based on the GI setting 9420 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF 9421 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF 9422 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF 9423 */ 9424 enum qca_wlan_he_ltf_cfg { 9425 QCA_WLAN_HE_LTF_AUTO = 0, 9426 QCA_WLAN_HE_LTF_1X = 1, 9427 QCA_WLAN_HE_LTF_2X = 2, 9428 QCA_WLAN_HE_LTF_4X = 3, 9429 }; 9430 9431 /** 9432 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration 9433 * 9434 * Indicates the HE trigger frame MAC padding duration value. 9435 * 9436 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to 9437 * process the trigger frame. 9438 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for 9439 * trigger frame. 9440 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for 9441 * trigger frame. 9442 */ 9443 enum qca_wlan_he_mac_padding_dur { 9444 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0, 9445 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1, 9446 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2, 9447 }; 9448 9449 /** 9450 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration 9451 * 9452 * Indicates the HE Operating mode control channel width setting value. 9453 * 9454 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz 9455 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz 9456 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz 9457 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz 9458 */ 9459 enum qca_wlan_he_om_ctrl_ch_bw { 9460 QCA_WLAN_HE_OM_CTRL_BW_20M = 0, 9461 QCA_WLAN_HE_OM_CTRL_BW_40M = 1, 9462 QCA_WLAN_HE_OM_CTRL_BW_80M = 2, 9463 QCA_WLAN_HE_OM_CTRL_BW_160M = 3, 9464 }; 9465 9466 /** 9467 * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration 9468 * 9469 * Indicates the frame types to use for keep alive data. 9470 * 9471 * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive. 9472 * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive. 9473 * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive. 9474 */ 9475 enum qca_wlan_keep_alive_data_type { 9476 QCA_WLAN_KEEP_ALIVE_DEFAULT = 0, 9477 QCA_WLAN_KEEP_ALIVE_DATA = 1, 9478 QCA_WLAN_KEEP_ALIVE_MGMT = 2, 9479 }; 9480 9481 /** 9482 * enum eht_mcs_config - EHT MCS support configuration 9483 * 9484 * Configures the EHT Tx/Rx MCS map in EHT Capability element. 9485 * These values are used in the driver to configure the EHT MCS map to advertise 9486 * Tx/Rx MCS map in EHT capability and these values are applied for all the 9487 * streams supported by the device. 9488 * @EHT_MCS0_7: EHT MCS 0 to 7 support 9489 * @EHT_MCS0_9: EHT MCS 0 to 9 support 9490 * @EHT_MCS0_11: EHT MCS 0 to 11 support 9491 * @EHT_MCS0_13: EHT MCS 0 to 13 support 9492 */ 9493 enum eht_mcs_config { 9494 EHT_MCS0_7 = 0, 9495 EHT_MCS0_9 = 1, 9496 EHT_MCS0_11 = 2, 9497 EHT_MCS0_13 = 3, 9498 }; 9499 9500 /** 9501 * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration. 9502 * @QCA_WLAN_EHT_MODE_INVALID: Invalid. 9503 * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode 9504 * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode. 9505 * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive 9506 * multi-link multi radio mode. 9507 * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive 9508 * multi-link multi radio mode. 9509 */ 9510 enum qca_wlan_eht_mlo_mode { 9511 QCA_WLAN_EHT_MODE_INVALID = 0, 9512 QCA_WLAN_EHT_MLSR = 1, 9513 QCA_WLAN_EHT_EMLSR = 2, 9514 QCA_WLAN_EHT_NON_STR_MLMR = 3, 9515 QCA_WLAN_EHT_STR_MLMR = 4, 9516 }; 9517 9518 /** 9519 * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration 9520 * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode 9521 * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode 9522 */ 9523 enum qca_wlan_emlsr_mode { 9524 QCA_WLAN_EMLSR_MODE_ENTER = 0, 9525 QCA_WLAN_EMLSR_MODE_EXIT = 1, 9526 }; 9527 9528 /** 9529 * enum qca_wlan_ttlm_negotiation_support: TID-To-Link Mapping Negotiation 9530 * support 9531 * @QCA_WLAN_TTLM_DISABLE: TTLM disabled 9532 * @QCA_WLAN_TTLM_SAME_LINK_SET: Mapping of all TIDs to the same link set, 9533 * both DL and UL 9534 * @QCA_WLAN_TTLM_SAME_DIFF_LINK_SET: Mapping of each TID to the same or 9535 * different link set 9536 */ 9537 enum qca_wlan_ttlm_negotiation_support { 9538 QCA_WLAN_TTLM_DISABLE = 0, 9539 QCA_WLAN_TTLM_SAME_LINK_SET = 1, 9540 QCA_WLAN_TTLM_SAME_DIFF_LINK_SET = 2, 9541 }; 9542 9543 /** 9544 * enum qca_coex_traffic_shaping_mode: Coex traffic shaping mode 9545 * @QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE: Coex policies disabled 9546 * @QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE: All coex policies enabled 9547 */ 9548 enum qca_coex_traffic_shaping_mode { 9549 QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE = 0, 9550 QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE = 1, 9551 }; 9552 9553 /** 9554 * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and 9555 * EHT operating mode control transmit request. These attributes are 9556 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and 9557 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 9558 * 9559 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value 9560 * indicates the maximum number of spatial streams, NSS, that the STA 9561 * supports in reception for PPDU bandwidths less than or equal to 80 MHz 9562 * and is set to NSS - 1. 9563 * 9564 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value 9565 * indicates the operating channel width supported by the STA for both 9566 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values. 9567 * 9568 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value 9569 * indicates the all trigger based UL MU operations by the STA. 9570 * 0 - UL MU operations are enabled by the STA. 9571 * 1 - All triggered UL MU transmissions are suspended by the STA. 9572 * 9573 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value 9574 * indicates the maximum number of space-time streams, NSTS, that 9575 * the STA supports in transmission and is set to NSTS - 1. 9576 * 9577 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value 9578 * combined with the UL MU Disable subfield and the recipient's setting 9579 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC 9580 * capabilities to determine which HE TB PPDUs are possible by the 9581 * STA to transmit. 9582 * 0 - UL MU data operations are enabled by the STA. 9583 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable 9584 * bit is not set, else UL MU Tx is suspended. 9585 * 9586 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM 9587 * Control subfield combined with the Rx NSS subfield in the OM Control subfield 9588 * indicates NSS - 1, where NSS is the maximum number of spatial streams that 9589 * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz. 9590 * 9591 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates 9592 * 320 MHz operating channel width supported by the EHT STA for both reception 9593 * and transmission. 9594 * 9595 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM 9596 * Control subfield combined with the Tx NSTS subfield in OM Control subfield 9597 * indicates NSTS - 1, where NSTS is the maximum number of space-time streams 9598 * that the STA supports in transmission for PPDU bandwidths less than or equal 9599 * to 80 MHz. 9600 */ 9601 enum qca_wlan_vendor_attr_omi_tx { 9602 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0, 9603 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1, 9604 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2, 9605 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3, 9606 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4, 9607 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5, 9608 QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6, 9609 QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7, 9610 QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8, 9611 9612 /* keep last */ 9613 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST, 9614 QCA_WLAN_VENDOR_ATTR_OMI_MAX = 9615 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1, 9616 }; 9617 9618 /* deprecated legacy names */ 9619 #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \ 9620 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX 9621 #define qca_wlan_vendor_attr_he_omi_tx \ 9622 qca_wlan_vendor_attr_omi_tx 9623 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \ 9624 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST 9625 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \ 9626 QCA_WLAN_VENDOR_ATTR_OMI_MAX 9627 9628 /** 9629 * enum qca_wlan_vendor_phy_mode - Different PHY modes 9630 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE. 9631 * 9632 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect 9633 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect 9634 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect 9635 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM 9636 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK 9637 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM 9638 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz 9639 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20 9640 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1) 9641 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1) 9642 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40 9643 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20 9644 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1) 9645 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1) 9646 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40 9647 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20 9648 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1) 9649 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1) 9650 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40 9651 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80 9652 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80 9653 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160 9654 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20 9655 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40 9656 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1) 9657 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1) 9658 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80 9659 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80 9660 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160 9661 */ 9662 enum qca_wlan_vendor_phy_mode { 9663 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0, 9664 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1, 9665 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2, 9666 QCA_WLAN_VENDOR_PHY_MODE_11A = 3, 9667 QCA_WLAN_VENDOR_PHY_MODE_11B = 4, 9668 QCA_WLAN_VENDOR_PHY_MODE_11G = 5, 9669 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6, 9670 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7, 9671 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8, 9672 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9, 9673 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10, 9674 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11, 9675 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12, 9676 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13, 9677 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14, 9678 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15, 9679 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16, 9680 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17, 9681 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18, 9682 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19, 9683 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20, 9684 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21, 9685 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22, 9686 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23, 9687 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24, 9688 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25, 9689 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26, 9690 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27, 9691 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28, 9692 }; 9693 9694 /* Attributes for data used by 9695 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION 9696 */ 9697 enum qca_wlan_vendor_attr_wifi_test_config { 9698 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0, 9699 /* 8-bit unsigned value to configure the driver to enable/disable 9700 * WMM feature. This attribute is used to configure testbed device. 9701 * 1-enable, 0-disable 9702 */ 9703 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1, 9704 9705 /* 8-bit unsigned value to configure the driver to accept/reject 9706 * the addba request from peer. This attribute is used to configure 9707 * the testbed device. 9708 * 1-accept addba, 0-reject addba 9709 */ 9710 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2, 9711 9712 /* 8-bit unsigned value to configure the driver to send or not to 9713 * send the addba request to peer. 9714 * This attribute is used to configure the testbed device. 9715 * 1-send addba, 0-do not send addba 9716 */ 9717 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3, 9718 9719 /* 8-bit unsigned value to indicate the HE fragmentation support. 9720 * Uses enum he_fragmentation_val values. 9721 * This attribute is used to configure the testbed device to 9722 * allow the advertised hardware capabilities to be downgraded 9723 * for testing purposes. 9724 */ 9725 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4, 9726 9727 /* 8-bit unsigned value to indicate the HE MCS support. 9728 * Uses enum he_mcs_config values. 9729 * This attribute is used to configure the testbed device to 9730 * allow the advertised hardware capabilities to be downgraded 9731 * for testing purposes. 9732 */ 9733 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5, 9734 9735 /* 8-bit unsigned value to configure the driver to allow or not to 9736 * allow the connection with WEP/TKIP in HT/VHT/HE modes. 9737 * This attribute is used to configure the testbed device. 9738 * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip 9739 */ 9740 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6, 9741 9742 /* 8-bit unsigned value to configure the driver to add a 9743 * new BA session or delete the existing BA session for 9744 * given TID. ADDBA command uses the buffer size and tid 9745 * configuration if user specifies the values else default 9746 * value for buffer size is used for all tids if the tid 9747 * also not specified. For DEL_BA command TID value is 9748 * required to process the command. 9749 * Uses enum qca_wlan_ba_session_config values. 9750 * This attribute is used to configure the testbed device. 9751 */ 9752 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7, 9753 9754 /* 16-bit unsigned value to configure the buffer size in addba 9755 * request and response frames. 9756 * This attribute is used to configure the testbed device. 9757 * The range of the value is 0 to 256. 9758 */ 9759 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8, 9760 9761 /* 8-bit unsigned value to configure the buffer size in addba 9762 * request and response frames. 9763 * This attribute is used to configure the testbed device. 9764 */ 9765 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9, 9766 9767 /* 8-bit unsigned value to configure the no ack policy. 9768 * To configure no ack policy, access category value 9769 * is required to process the command. 9770 * This attribute is used to configure the testbed device. 9771 * 1 - enable no ack, 0 - disable no ack 9772 */ 9773 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10, 9774 9775 /* 8-bit unsigned value to configure the AC for no ack policy 9776 * This attribute is used to configure the testbed device. 9777 * uses the enum qca_wlan_ac_type values 9778 */ 9779 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11, 9780 9781 /* 8-bit unsigned value to configure the HE LTF 9782 * This attribute is used to configure the testbed device. 9783 * Uses the enum qca_wlan_he_ltf_cfg values. 9784 */ 9785 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12, 9786 9787 /* 8-bit unsigned value to configure the tx beamformee. 9788 * This attribute is used to configure the testbed device. 9789 * 1 - enable, 0 - disable. 9790 */ 9791 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13, 9792 9793 /* 8-bit unsigned value to configure the tx beamformee number of 9794 * space-time streams. 9795 * This attribute is used to configure the testbed device. 9796 * The range of the value is 0 to 8 9797 */ 9798 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14, 9799 9800 /* 8-bit unsigned value to configure the MU EDCA params for given AC 9801 * This attribute is used to configure the testbed device. 9802 * Uses the enum qca_wlan_ac_type values. 9803 */ 9804 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15, 9805 9806 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC 9807 * To configure MU EDCA AIFSN value, MU EDCA access category value 9808 * is required to process the command. 9809 * This attribute is used to configure the testbed device. 9810 */ 9811 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16, 9812 9813 /* 8-bit unsigned value to configure the MU EDCA ECW min value for 9814 * given AC. 9815 * To configure MU EDCA ECW min value, MU EDCA access category value 9816 * is required to process the command. 9817 * This attribute is used to configure the testbed device. 9818 */ 9819 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17, 9820 9821 /* 8-bit unsigned value to configure the MU EDCA ECW max value for 9822 * given AC. 9823 * To configure MU EDCA ECW max value, MU EDCA access category value 9824 * is required to process the command. 9825 * This attribute is used to configure the testbed device. 9826 */ 9827 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18, 9828 9829 /* 8-bit unsigned value to configure the MU EDCA timer for given AC 9830 * To configure MU EDCA timer value, MU EDCA access category value 9831 * is required to process the command. 9832 * This attribute is used to configure the testbed device. 9833 */ 9834 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19, 9835 9836 /* 8-bit unsigned value to configure the HE trigger frame MAC padding 9837 * duration. 9838 * This attribute is used to configure the testbed device. 9839 * Uses the enum qca_wlan_he_mac_padding_dur values. 9840 */ 9841 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20, 9842 9843 /* 8-bit unsigned value to override the MU EDCA params to defaults 9844 * regardless of the AP beacon MU EDCA params. If it is enabled use 9845 * the default values else use the MU EDCA params from AP beacon. 9846 * This attribute is used to configure the testbed device. 9847 * 1 - enable override, 0 - disable. 9848 */ 9849 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21, 9850 9851 /* 8-bit unsigned value to configure the support for receiving 9852 * an MPDU that contains an operating mode control subfield. 9853 * This attribute is used to configure the testbed device. 9854 * 1-enable, 0-disable. 9855 */ 9856 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22, 9857 9858 /* Nested attribute values required to setup the TWT session. 9859 * enum qca_wlan_vendor_attr_twt_setup provides the necessary 9860 * information to set up the session. It contains broadcast flags, 9861 * set_up flags, trigger value, flow type, flow ID, wake interval 9862 * exponent, protection, target wake time, wake duration, wake interval 9863 * mantissa. These nested attributes are used to setup a host triggered 9864 * TWT session. 9865 */ 9866 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23, 9867 9868 /* This nested attribute is used to terminate the current TWT session. 9869 * It does not currently carry any attributes. 9870 */ 9871 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24, 9872 9873 /* This nested attribute is used to suspend the current TWT session. 9874 * It does not currently carry any attributes. 9875 */ 9876 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25, 9877 9878 /* Nested attribute values to indicate the request for resume. 9879 * This attribute is used to resume the TWT session. 9880 * enum qca_wlan_vendor_attr_twt_resume provides the necessary 9881 * parameters required to resume the TWT session. 9882 */ 9883 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26, 9884 9885 /* 8-bit unsigned value to set the HE operating mode control 9886 * (OM CTRL) Channel Width subfield. 9887 * The Channel Width subfield indicates the operating channel width 9888 * supported by the STA for both reception and transmission. 9889 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values. 9890 * This setting is cleared with the 9891 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 9892 * flag attribute to reset defaults. 9893 * This attribute is used to configure the testbed device. 9894 */ 9895 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27, 9896 9897 /* 8-bit unsigned value to configure the number of spatial 9898 * streams in HE operating mode control field. 9899 * This setting is cleared with the 9900 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 9901 * flag attribute to reset defaults. 9902 * This attribute is used to configure the testbed device. 9903 */ 9904 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28, 9905 9906 /* Flag attribute to configure the UL MU disable bit in 9907 * HE operating mode control field. 9908 * This setting is cleared with the 9909 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 9910 * flag attribute to reset defaults. 9911 * This attribute is used to configure the testbed device. 9912 */ 9913 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29, 9914 9915 /* Flag attribute to clear the previously set HE operating mode 9916 * control field configuration. 9917 * This attribute is used to configure the testbed device to reset 9918 * defaults to clear any previously set HE operating mode control 9919 * field configuration. 9920 */ 9921 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30, 9922 9923 /* 8-bit unsigned value to configure HE single user PPDU 9924 * transmission. By default this setting is disabled and it 9925 * is disabled in the reset defaults of the device configuration. 9926 * This attribute is used to configure the testbed device. 9927 * 1-enable, 0-disable 9928 */ 9929 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31, 9930 9931 /* 8-bit unsigned value to configure action frame transmission 9932 * in HE trigger based PPDU transmission. 9933 * By default this setting is disabled and it is disabled in 9934 * the reset defaults of the device configuration. 9935 * This attribute is used to configure the testbed device. 9936 * 1-enable, 0-disable 9937 */ 9938 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32, 9939 9940 /* Nested attribute to indicate HE operating mode control field 9941 * transmission. It contains operating mode control field Nss, 9942 * channel bandwidth, Tx Nsts and UL MU disable attributes. 9943 * These nested attributes are used to send HE operating mode control 9944 * with configured values. 9945 * Uses the enum qca_wlan_vendor_attr_omi_tx attributes. 9946 * This attribute is used to configure the testbed device. 9947 */ 9948 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33, 9949 9950 /* 8-bit unsigned value to configure +HTC_HE support to indicate the 9951 * support for the reception of a frame that carries an HE variant 9952 * HT Control field. 9953 * This attribute is used to configure the testbed device. 9954 * 1-enable, 0-disable 9955 */ 9956 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34, 9957 9958 /* 8-bit unsigned value to configure VHT support in 2.4G band. 9959 * This attribute is used to configure the testbed device. 9960 * 1-enable, 0-disable 9961 */ 9962 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35, 9963 9964 /* 8-bit unsigned value to configure HE testbed defaults. 9965 * This attribute is used to configure the testbed device. 9966 * 1-set the device HE capabilities to testbed defaults. 9967 * 0-reset the device HE capabilities to supported config. 9968 */ 9969 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36, 9970 9971 /* 8-bit unsigned value to configure twt request support. 9972 * This attribute is used to configure the testbed device. 9973 * 1-enable, 0-disable. 9974 */ 9975 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37, 9976 9977 /* 8-bit unsigned value to configure protection for Management 9978 * frames when PMF is enabled for the association. 9979 * This attribute is used to configure the testbed device. 9980 * 0-use the correct key, 1-use an incorrect key, 2-disable protection. 9981 */ 9982 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38, 9983 9984 /* Flag attribute to inject Disassociation frame to the connected AP. 9985 * This attribute is used to configure the testbed device. 9986 */ 9987 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39, 9988 9989 /* 8-bit unsigned value to configure an override for the RSNXE Used 9990 * subfield in the MIC control field of the FTE in FT Reassociation 9991 * Request frame. 9992 * 0 - Default behavior, 1 - override with 1, 2 - override with 0. 9993 * This attribute is used to configure the testbed device. 9994 * This attribute can be configured when STA is in disconnected or 9995 * associated state and the configuration is valid until the next 9996 * disconnection. 9997 */ 9998 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40, 9999 10000 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel 10001 * Switch Announcement) when STA is in connected state. 10002 * 0 - Default behavior, 1 - Ignore CSA. 10003 * This attribute is used to configure the testbed device. 10004 * This attribute can be configured when STA is in disconnected or 10005 * associated state and the configuration is valid until the next 10006 * disconnection. 10007 */ 10008 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41, 10009 10010 /* Nested attribute values required to configure OCI (Operating Channel 10011 * Information). Attributes defined in enum 10012 * qca_wlan_vendor_attr_oci_override are nested within this attribute. 10013 * This attribute is used to configure the testbed device. 10014 * This attribute can be configured when STA is in disconnected or 10015 * associated state and the configuration is valid until the next 10016 * disconnection. 10017 */ 10018 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42, 10019 10020 /* 8-bit unsigned value to configure the driver/firmware to ignore SA 10021 * Query timeout. If this configuration is enabled STA shall not send 10022 * Deauthentication frmae when SA Query times out (mainly, after a 10023 * channel switch when OCV is enabled). 10024 * 0 - Default behavior, 1 - Ignore SA Query timeout. 10025 * This attribute is used to configure the testbed device. 10026 * This attribute can be configured only when STA is in associated state 10027 * and the configuration is valid until the disconnection. 10028 */ 10029 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43, 10030 10031 /* 8-bit unsigned value to configure the driver/firmware to start or 10032 * stop transmitting FILS discovery frames. 10033 * 0 - Stop transmitting FILS discovery frames 10034 * 1 - Start transmitting FILS discovery frames 10035 * This attribute is used to configure the testbed device. 10036 * This attribute can be configured only in AP mode and the 10037 * configuration is valid until AP restart. 10038 */ 10039 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44, 10040 10041 /* 8-bit unsigned value to configure the driver/firmware to enable or 10042 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities 10043 * information field. 10044 * 0 - Disable full bandwidth UL MU-MIMO subfield 10045 * 1 - Enable full bandwidth UL MU-MIMO subfield 10046 * This attribute is used to configure the testbed device. 10047 */ 10048 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45, 10049 10050 /* 16-bit unsigned value to configure the driver with a specific BSS 10051 * max idle period to advertise in the BSS Max Idle Period element 10052 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames. 10053 * This attribute is used to configure the testbed device. 10054 */ 10055 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46, 10056 10057 /* 8-bit unsigned value to configure the driver to use only RU 242 tone 10058 * for data transmission. 10059 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx. 10060 * This attribute is used to configure the testbed device. 10061 */ 10062 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47, 10063 10064 /* 8-bit unsigned value to configure the driver to disable data and 10065 * management response frame transmission to test the BSS max idle 10066 * feature. 10067 * 0 - Default behavior, 1 - Disable data and management response Tx. 10068 * This attribute is used to configure the testbed device. 10069 */ 10070 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48, 10071 10072 /* 8-bit unsigned value to configure the driver/firmware to enable or 10073 * disable Punctured Preamble Rx subfield in the HE PHY capabilities 10074 * information field. 10075 * 0 - Disable Punctured Preamble Rx subfield 10076 * 1 - Enable Punctured Preamble Rx subfield 10077 * This attribute is used to configure the testbed device. 10078 */ 10079 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49, 10080 10081 /* 8-bit unsigned value to configure the driver to ignore the SAE H2E 10082 * requirement mismatch for 6 GHz connection. 10083 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch. 10084 * This attribute is used to configure the testbed device. 10085 */ 10086 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50, 10087 10088 /* 8-bit unsigned value to configure the driver to allow 6 GHz 10089 * connection with all security modes. 10090 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security 10091 * modes. 10092 * This attribute is used for testing purposes. 10093 */ 10094 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51, 10095 10096 /* 8-bit unsigned value to configure the driver to transmit data with 10097 * ER SU PPDU type. 10098 * 10099 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX. 10100 * This attribute is used for testing purposes. 10101 */ 10102 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52, 10103 10104 /* 8-bit unsigned value to configure the driver to use Data or 10105 * Management frame type for keep alive data. 10106 * Uses enum qca_wlan_keep_alive_data_type values. 10107 * 10108 * This attribute is used for testing purposes. 10109 */ 10110 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53, 10111 10112 /* 8-bit unsigned value to configure the driver to use scan request 10113 * BSSID value in Probe Request frame RA(A1) during the scan. The 10114 * driver saves this configuration and applies this setting to all user 10115 * space scan requests until the setting is cleared. If this 10116 * configuration is set, the driver uses the BSSID value from the scan 10117 * request to set the RA(A1) in the Probe Request frames during the 10118 * scan. 10119 * 10120 * 0 - Default behavior uses the broadcast RA in Probe Request frames. 10121 * 1 - Uses the scan request BSSID in RA in Probe Request frames. 10122 * This attribute is used for testing purposes. 10123 */ 10124 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54, 10125 10126 /* 8-bit unsigned value to configure the driver to enable/disable the 10127 * BSS max idle period support. 10128 * 10129 * 0 - Disable the BSS max idle support. 10130 * 1 - Enable the BSS max idle support. 10131 * This attribute is used for testing purposes. 10132 */ 10133 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55, 10134 10135 /* 8-bit unsigned value to configure the driver/firmware to enable or 10136 * disable Rx control frame to MultiBSS subfield in the HE MAC 10137 * capabilities information field. 10138 * 0 - Disable Rx control frame to MultiBSS subfield 10139 * 1 - Enable Rx control frame to MultiBSS subfield 10140 * This attribute is used to configure the testbed device. 10141 */ 10142 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56, 10143 10144 /* 8-bit unsigned value to configure the driver/firmware to enable or 10145 * disable Broadcast TWT support subfield in the HE MAC capabilities 10146 * information field. 10147 * 0 - Disable Broadcast TWT support subfield 10148 * 1 - Enable Broadcast TWT support subfield 10149 * This attribute is used to configure the testbed device. 10150 */ 10151 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57, 10152 10153 /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR 10154 * mode for 802.11be MLO capable devices. If the attribute is set to 1, 10155 * and if the FW supports this capability too, then the STA host 10156 * advertises this capability to AP over assoc request frame. This 10157 * attribute will not have any effect on legacy devices with no 802.11be 10158 * support. 10159 * 0 - Default behavior 10160 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode 10161 * This attribute is used to configure the testbed device. 10162 */ 10163 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58, 10164 10165 /* 8-bit unsigned value to configure the driver to enable/disable the 10166 * periodic sounding for Tx beamformer functionality. The default 10167 * behavior uses algorithm to do sounding based on packet stats. 10168 * 10169 * 0 - Default behavior. 10170 * 1 - Enable the periodic sounding for Tx beamformer. 10171 * This attribute is used for testing purposes. 10172 */ 10173 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59, 10174 10175 /* 8-bit unsigned value to configure beamformee SS EHT capability 10176 * to indicate the maximum number of spatial streams that the STA 10177 * can receive in an EHT sounding NDP for <= 80 MHz bandwidth. 10178 * The range of the value is 3 to 7. 10179 * This attribute is used to configure the testbed device. 10180 */ 10181 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60, 10182 10183 /* 8-bit unsigned value to configure beamformee SS EHT capability 10184 * to indicate the maximum number of spatial streams that the STA 10185 * can receive in an EHT sounding NDP for 160 MHz bandwidth. 10186 * The range of the value is 3 to 7. 10187 * This attribute is used to configure the testbed device. 10188 */ 10189 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61, 10190 10191 /* 8-bit unsigned value to configure beamformee SS EHT capability 10192 * to indicate the maximum number of spatial streams that the STA 10193 * can receive in an EHT sounding NDP for 320 MHz bandwidth. 10194 * The range of the value is 3 to 7. 10195 * This attribute is used to configure the testbed device. 10196 */ 10197 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62, 10198 10199 /* 8-bit unsigned value to configure the driver to exclude station 10200 * profile in Probe Request frame Multi-Link element. 10201 * 0 - Default behavior, sends the Probe Request frame with station 10202 * profile data included in the Multi-Link element. 10203 * 1 - Exclude station profile in Probe Request frame Multi-Link 10204 * element. 10205 * This attribute is used to configure the testbed device. 10206 */ 10207 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63, 10208 10209 /* 8-bit unsigned value to configure EHT testbed defaults. 10210 * This attribute is used to configure the testbed device. 10211 * 1 - Set the device EHT capabilities to testbed defaults. 10212 * 0 - Reset the device EHT capabilities to supported config. 10213 */ 10214 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64, 10215 10216 /* 8-bit unsigned value to indicate the EHT MCS support. 10217 * Uses enum eht_mcs_config values. 10218 * This attribute is used to configure the testbed device to 10219 * allow the advertised hardware capabilities to be downgraded 10220 * for testing purposes. 10221 */ 10222 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65, 10223 10224 /* 8-bit unsigned value to configure EHT TB Sounding Feedback 10225 * Rate Limit capability. 10226 * This attribute is used to configure the testbed device. 10227 * 0 - Indicates no maximum supported data rate limitation. 10228 * 1 - Indicates the maximum supported data rate is the lower of 10229 * the 1500 Mb/s and the maximum supported data rate. 10230 */ 10231 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66, 10232 10233 /* 8-bit unsigned value to configure the support for receiving an MPDU 10234 * that contains an EHT operating mode control subfield. 10235 * This attribute is used to configure the testbed device. 10236 * 1-enable, 0-disable. 10237 */ 10238 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67, 10239 10240 /* 8-bit unsigned value to configure the driver with EMLSR padding delay 10241 * subfield value. 10242 * 10243 * 0 - 0 us 10244 * 1 - 32 us 10245 * 2 - 64 us 10246 * 3 - 128 us 10247 * 4 - 256 us 10248 * 5-255 - Reserved 10249 * 10250 * This attribute is used for testing purposes. 10251 */ 10252 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68, 10253 10254 /* 10255 * 8-bit unsigned value to indicate the firmware to force the active MLO 10256 * links to power save mode for the configured number of beacon periods. 10257 * This allows the firmware to suspend STA links for X beacon periods 10258 * and remain asleep even if the AP advertises TIM as opposed to regular 10259 * power save mode where STA links wake up if the AP indicates that it 10260 * has buffered data to send. 10261 * This attribute is used to configure the testbed device. 10262 */ 10263 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69, 10264 10265 /* 10266 * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode 10267 * to enable simultaneous transmission of PPDUs on all active links. 10268 * 0 - Default behavior 10269 * 1 - Enter STR mode for simultaneous data transmission on all links 10270 */ 10271 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70, 10272 10273 /* Nested attribute to indicate EHT MLO links on which powersave to be 10274 * enabled. It contains link ID attributes. These nested attributes are 10275 * of the type u8 and are used to enable the powersave on associated 10276 * MLO links corresponding to the link IDs provided in the command. 10277 * This attribute is used to configure the testbed device. 10278 */ 10279 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_LINK_POWER_SAVE = 71, 10280 10281 /* 8-bit unsigned value to configure the MLD ID of the BSS whose link 10282 * info is requested in the ML Probe Request frame. In the MLO-MBSSID 10283 * testcase, STA can request information of non-Tx BSS through Tx BSS 10284 * by configuring non-Tx BSS MLD ID within the ML probe request that 10285 * is transmitted via host initiated scan request. 10286 * 10287 * This attribute is used for testing purposes. 10288 */ 10289 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MLD_ID_ML_PROBE_REQ = 72, 10290 10291 /* keep last */ 10292 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST, 10293 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX = 10294 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1, 10295 }; 10296 10297 /** 10298 * enum qca_wlan_twt_operation - Operation of the config TWT request 10299 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION. 10300 * The response for the respective operations can be either synchronous or 10301 * asynchronous (wherever specified). If synchronous, the response to this 10302 * operation is obtained in the corresponding vendor command reply to the user 10303 * space. For the asynchronous case the response is obtained as an event with 10304 * the same operation type. 10305 * 10306 * Drivers shall support either of these modes but not both simultaneously. 10307 * This support for asynchronous mode is advertised through the flag 10308 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised, 10309 * the driver shall support synchronous mode. 10310 * 10311 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured 10312 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10313 * qca_wlan_vendor_attr_twt_setup. Depending upon the 10314 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a 10315 * synchronous or asynchronous operation. 10316 * 10317 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are 10318 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10319 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation. 10320 * 10321 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are 10322 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10323 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup. 10324 * This terminate can either get triggered by the user space or can as well be 10325 * a notification from the firmware if it initiates a terminate. 10326 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, 10327 * the request from user space can either be a synchronous or asynchronous 10328 * operation. 10329 * 10330 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are 10331 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10332 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup. 10333 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, 10334 * this is either a synchronous or asynchronous operation. 10335 * 10336 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are 10337 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10338 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup. 10339 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE 10340 * request. 10341 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT 10342 * capability, this is either a synchronous or asynchronous operation. 10343 * 10344 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a 10345 * combination of suspend and resume in a single request. Required parameters 10346 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the 10347 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is 10348 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT 10349 * capability, this is either a synchronous or asynchronous operation. 10350 * 10351 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information. 10352 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT 10353 * session is setup. It's a synchronous operation. 10354 * 10355 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information. 10356 * Valid only after the TWT session is setup. It's a synchronous operation. 10357 * 10358 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its 10359 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous 10360 * operation. 10361 * 10362 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is 10363 * ready for a new TWT session setup after it issued a twt teardown. 10364 * 10365 * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required 10366 * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer 10367 * the enum qca_wlan_vendor_attr_twt_set_param. 10368 * 10369 * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT 10370 * related information for example TWT required bit in AP capabilities etc. 10371 * The reason for the notification is sent using 10372 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS. 10373 */ 10374 enum qca_wlan_twt_operation { 10375 QCA_WLAN_TWT_SET = 0, 10376 QCA_WLAN_TWT_GET = 1, 10377 QCA_WLAN_TWT_TERMINATE = 2, 10378 QCA_WLAN_TWT_SUSPEND = 3, 10379 QCA_WLAN_TWT_RESUME = 4, 10380 QCA_WLAN_TWT_NUDGE = 5, 10381 QCA_WLAN_TWT_GET_STATS = 6, 10382 QCA_WLAN_TWT_CLEAR_STATS = 7, 10383 QCA_WLAN_TWT_GET_CAPABILITIES = 8, 10384 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9, 10385 QCA_WLAN_TWT_SET_PARAM = 10, 10386 QCA_WLAN_TWT_NOTIFY = 11, 10387 }; 10388 10389 /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by 10390 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT 10391 * 10392 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: 10393 * u8 attribute. Specify the TWT operation of this request. Possible values 10394 * are defined in enum qca_wlan_twt_operation. The parameters for the 10395 * respective operation is specified through 10396 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. 10397 * 10398 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the 10399 * parameters configured for TWT. These parameters are represented by 10400 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume, 10401 * enum qca_wlan_vendor_attr_twt_set_param or 10402 * enum qca_wlan_vendor_attr_twt_stats based on the operation. 10403 * 10404 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when 10405 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY. 10406 * The values used by this attribute are defined in 10407 * enum qca_wlan_vendor_twt_status. 10408 */ 10409 enum qca_wlan_vendor_attr_config_twt { 10410 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0, 10411 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1, 10412 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2, 10413 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3, 10414 10415 /* keep last */ 10416 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST, 10417 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX = 10418 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1, 10419 }; 10420 10421 /** 10422 * qca_wlan_twt_setup_state: Represents the TWT session states. 10423 * 10424 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established. 10425 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active. 10426 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state. 10427 */ 10428 enum qca_wlan_twt_setup_state { 10429 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0, 10430 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1, 10431 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2, 10432 }; 10433 10434 /** 10435 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for 10436 * TWT (Target Wake Time) setup request. These attributes are sent as part of 10437 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and 10438 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by 10439 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10440 * 10441 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute. 10442 * Disable (flag attribute not present) - Individual TWT 10443 * Enable (flag attribute present) - Broadcast TWT. 10444 * Individual means the session is between the STA and the AP. 10445 * This session is established using a separate negotiation between 10446 * STA and AP. 10447 * Broadcast means the session is across multiple STAs and an AP. The 10448 * configuration parameters are announced in Beacon frames by the AP. 10449 * This is used in 10450 * 1. TWT SET Request and Response 10451 * 2. TWT GET Response 10452 * 10453 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8). 10454 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to 10455 * specify the TWT request type. This is used in TWT SET operation. 10456 * 10457 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute 10458 * Enable (flag attribute present) - TWT with trigger support. 10459 * Disable (flag attribute not present) - TWT without trigger support. 10460 * Trigger means the AP will send the trigger frame to allow STA to send data. 10461 * Without trigger, the STA will wait for the MU EDCA timer before 10462 * transmitting the data. 10463 * This is used in 10464 * 1. TWT SET Request and Response 10465 * 2. TWT GET Response 10466 * 10467 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8) 10468 * 0 - Announced TWT - In this mode, STA may skip few service periods to 10469 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS 10470 * NULL frame to AP. 10471 * 1 - Unannounced TWT - The STA will wakeup during every SP. 10472 * This is a required parameter for 10473 * 1. TWT SET Request and Response 10474 * 2. TWT GET Response 10475 * 10476 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8) 10477 * Flow ID is the unique identifier for each TWT session. 10478 * If not provided then dialog ID will be set to zero. 10479 * This is an optional parameter for 10480 * 1. TWT SET Request and Response 10481 * 2. TWT GET Request and Response 10482 * 3. TWT TERMINATE Request and Response 10483 * 4. TWT SUSPEND Request and Response 10484 * Flow Id values from 0 to 254 represent a single TWT session 10485 * Flow ID value of 255 represents all twt sessions for the following 10486 * 1. TWT TERMINATE Request and Response 10487 * 2. TWT SUSPEND Request and Response 10488 * 4. TWT CLEAR STATISTICS request 10489 * 5. TWT GET STATISTICS request and response 10490 * If an invalid dialog id is provided, status 10491 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 10492 * 10493 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8) 10494 * This attribute (exp) is used along with the mantissa to derive the 10495 * wake interval using the following formula: 10496 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis 10497 * Wake interval is the interval between 2 successive SP. 10498 * This is a required parameter for 10499 * 1. TWT SET Request and Response 10500 * 2. TWT GET Response 10501 * 10502 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute 10503 * Enable (flag attribute present) - Protection required. 10504 * Disable (flag attribute not present) - Protection not required. 10505 * If protection is enabled, then the AP will use protection 10506 * mechanism using RTS/CTS to self to reserve the airtime. 10507 * This is used in 10508 * 1. TWT SET Request and Response 10509 * 2. TWT GET Response 10510 * 10511 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32) 10512 * This attribute is used as the SP offset which is the offset from 10513 * TSF after which the wake happens. The units are in microseconds. If 10514 * this attribute is not provided, then the value will be set to zero. 10515 * This is an optional parameter for 10516 * 1. TWT SET Request and Response 10517 * 2. TWT GET Response 10518 * 10519 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32) 10520 * This is the duration of the service period. This is specified as 10521 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF. 10522 * This is a required parameter for 10523 * 1. TWT SET Request and Response 10524 * 2. TWT GET Response 10525 * 10526 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32) 10527 * This attribute is used to configure wake interval mantissa. 10528 * The units are in TU. 10529 * This is a required parameter for 10530 * 1. TWT SET Request and Response 10531 * 2. TWT GET Response 10532 * 10533 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8) 10534 * This field is applicable for TWT response only. 10535 * This contains status values in enum qca_wlan_vendor_twt_status 10536 * and is passed to the userspace. This is used in TWT SET operation. 10537 * This is a required parameter for 10538 * 1. TWT SET Response 10539 * 2. TWT TERMINATE Response 10540 * 3. TWT SUSPEND Response 10541 * 4. TWT RESUME Response 10542 * 5. TWT NUDGE Response 10543 * 10544 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8) 10545 * This field is applicable for TWT response only. 10546 * This field contains response type from the TWT responder and is 10547 * passed to the userspace. The values for this field are defined in 10548 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET 10549 * response. 10550 * 10551 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64) 10552 * In TWT setup command this field contains absolute TSF that will 10553 * be used by TWT requester during setup. 10554 * In TWT response this field contains absolute TSF value of the 10555 * wake time received from the TWT responder and is passed to 10556 * the userspace. 10557 * This is an optional parameter for 10558 * 1. TWT SET Request 10559 * This is a required parameter for 10560 * 1. TWT SET Response 10561 * 2. TWT GET Response 10562 * 10563 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute. 10564 * Enable (flag attribute present) - Indicates that the TWT responder 10565 * supports reception of TWT information frame from the TWT requestor. 10566 * Disable (flag attribute not present) - Indicates that the responder 10567 * doesn't support reception of TWT information frame from requestor. 10568 * This is used in 10569 * 1. TWT SET Response 10570 * 2. TWT GET Response 10571 * 10572 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address 10573 * Represents the MAC address of the peer for which the TWT session 10574 * is being configured. This is used in AP mode to represent the respective 10575 * client 10576 * In AP mode, this is a required parameter in response for 10577 * 1. TWT SET 10578 * 2. TWT GET 10579 * 3. TWT TERMINATE 10580 * 4. TWT SUSPEND 10581 * In STA mode, this is an optional parameter in request and response for 10582 * the above four TWT operations. 10583 * In AP mode, this is a required parameter in request for 10584 * 1. TWT GET 10585 * 2. TWT TERMINATE 10586 * 10587 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32) 10588 * Minimum tolerance limit of wake interval parameter in microseconds. 10589 * 10590 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32) 10591 * Maximum tolerance limit of wake interval parameter in microseconds. 10592 * 10593 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32) 10594 * Minimum tolerance limit of wake duration parameter in microseconds. 10595 * 10596 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32) 10597 * Maximum tolerance limit of wake duration parameter in microseconds. 10598 * 10599 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32) 10600 * TWT state for the given dialog id. The values for this are represented 10601 * by enum qca_wlan_twt_setup_state. 10602 * This is obtained through TWT GET operation. 10603 * 10604 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32) 10605 * This attribute is used to configure wake interval mantissa. 10606 * The unit is microseconds. This attribute, when specified, takes 10607 * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA. 10608 * This parameter is used for 10609 * 1. TWT SET Request and Response 10610 * 2. TWT GET Response 10611 * 10612 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8) 10613 * This attribute is used to configure Broadcast TWT ID. 10614 * The Broadcast TWT ID indicates a specific Broadcast TWT for which the 10615 * transmitting STA is providing TWT parameters. The allowed values are 0 to 31. 10616 * This parameter is used for 10617 * 1. TWT SET Request 10618 * 2. TWT TERMINATE Request 10619 * 10620 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8) 10621 * This attribute is used to configure Broadcast TWT recommendation. 10622 * The Broadcast TWT Recommendation subfield contains a value that indicates 10623 * recommendations on the types of frames that are transmitted by TWT 10624 * scheduled STAs and scheduling AP during the broadcast TWT SP. 10625 * The allowed values are 0 - 3. 10626 * This parameter is used for 10627 * 1. TWT SET Request 10628 * 10629 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8) 10630 * This attribute is used to configure Broadcast TWT Persistence. 10631 * The Broadcast TWT Persistence subfield indicates the number of 10632 * TBTTs during which the Broadcast TWT SPs corresponding to this 10633 * broadcast TWT Parameter set are present. The number of beacon intervals 10634 * during which the Broadcast TWT SPs are present is equal to the value in the 10635 * Broadcast TWT Persistence subfield plus 1 except that the value 255 10636 * indicates that the Broadcast TWT SPs are present until explicitly terminated. 10637 * This parameter is used for 10638 * 1. TWT SET Request 10639 * 10640 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8) 10641 * This attribute contains the value of the Responder PM Mode subfield (0 or 1) 10642 * from TWT response frame. 10643 * This parameter is used for 10644 * 1. TWT SET Response 10645 * 2. TWT GET Response 10646 * 10647 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32) 10648 * This attribute is used to configure the announce timeout value (in us) in 10649 * firmware. This timeout value is only applicable for announced TWT. If 10650 * timeout value is non-zero then firmware waits upto timeout value to use 10651 * data frame as announcement frame. If timeout value is 0 then firmware sends 10652 * explicit QoS NULL frame as announcement frame on SP start. Default value in 10653 * firmware is 0. 10654 * This parameter is used for 10655 * 1. TWT SET Request 10656 */ 10657 enum qca_wlan_vendor_attr_twt_setup { 10658 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0, 10659 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1, 10660 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2, 10661 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3, 10662 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4, 10663 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5, 10664 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6, 10665 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7, 10666 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8, 10667 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9, 10668 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10, 10669 10670 /* TWT Response only attributes */ 10671 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11, 10672 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12, 10673 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13, 10674 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14, 10675 10676 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15, 10677 10678 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16, 10679 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17, 10680 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18, 10681 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19, 10682 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20, 10683 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21, 10684 10685 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22, 10686 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23, 10687 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24, 10688 10689 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25, 10690 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26, 10691 10692 /* keep last */ 10693 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST, 10694 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX = 10695 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1, 10696 }; 10697 10698 /** 10699 * enum qca_wlan_vendor_twt_status - Represents the status of the requested 10700 * TWT operation 10701 * 10702 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed 10703 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled 10704 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used 10705 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy 10706 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist 10707 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state 10708 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters 10709 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready 10710 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted 10711 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the 10712 * request/response frame 10713 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response 10714 * frame 10715 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request 10716 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an 10717 * unknown reason 10718 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in 10719 * suspend state 10720 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to 10721 * invalid IE in the received TWT frame 10722 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from 10723 * the responder are not in the specified range 10724 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT 10725 * session due to request from the responder. Used on the TWT_TERMINATE 10726 * notification from the firmware. 10727 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT 10728 * session due to roaming. Used on the TWT_TERMINATE notification from the 10729 * firmware. 10730 * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the 10731 * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel) 10732 * Concurrency). Used on the TWT_TERMINATE notification from the firmware. 10733 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup 10734 * request due to roaming in progress. 10735 * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT 10736 * setup request due to channel switch in progress. 10737 * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup 10738 * request due to scan in progress. 10739 * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to 10740 * terminate an existing TWT session on power save exit request from userspace. 10741 * Used on the TWT_TERMINATE notification from the driver/firmware. 10742 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT 10743 * required bit in its capabilities. 10744 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared 10745 * the TWT required bit(1->0) in its capabilities. 10746 */ 10747 enum qca_wlan_vendor_twt_status { 10748 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0, 10749 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1, 10750 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2, 10751 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3, 10752 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4, 10753 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5, 10754 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6, 10755 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7, 10756 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8, 10757 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9, 10758 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10, 10759 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11, 10760 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12, 10761 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13, 10762 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14, 10763 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15, 10764 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16, 10765 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17, 10766 QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18, 10767 QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19, 10768 QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20, 10769 QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21, 10770 QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22, 10771 QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23, 10772 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24, 10773 }; 10774 10775 /** 10776 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for 10777 * TWT (Target Wake Time) resume request. These attributes are sent as part of 10778 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and 10779 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by 10780 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10781 * 10782 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8) 10783 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32) 10784 * These attributes are used as the SP offset which is the offset from TSF after 10785 * which the wake happens. The units are in microseconds. Please note that 10786 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data. 10787 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation 10788 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value 10789 * will be set to zero. 10790 * 10791 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32) 10792 * This attribute represents the next TWT subfield size. 10793 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits, 10794 * and 4 for 64 bits. 10795 * 10796 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8). 10797 * Flow ID is the unique identifier for each TWT session. This attribute 10798 * represents the respective TWT session to resume. 10799 * Flow Id values from 0 to 254 represent a single TWT session 10800 * Flow ID value of 255 represents all TWT sessions. 10801 * If an invalid dialog id is provided, status 10802 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 10803 * 10804 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address 10805 * Represents the MAC address of the peer to which TWT Resume is 10806 * being sent. This is used in AP mode to represent the respective 10807 * client and is a required parameter. In STA mode, this is an optional 10808 * parameter 10809 * 10810 */ 10811 enum qca_wlan_vendor_attr_twt_resume { 10812 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0, 10813 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1, 10814 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2, 10815 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3, 10816 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4, 10817 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5, 10818 10819 /* keep last */ 10820 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST, 10821 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX = 10822 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1, 10823 }; 10824 10825 /** 10826 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for 10827 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend 10828 * and resume in a single request. These attributes are sent as part of 10829 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10830 * 10831 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8) 10832 * Flow ID is the unique identifier for each TWT session. This attribute 10833 * represents the respective TWT session to suspend and resume. 10834 * 10835 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8) 10836 * Flow ID is the unique identifier for each TWT session. This attribute 10837 * represents the respective TWT session to suspend and resume. 10838 * Flow Id values from 0 to 254 represent a single TWT session 10839 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request 10840 * and response. 10841 * If an invalid dialog id is provided, status 10842 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 10843 * 10844 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32) 10845 * This attribute is used as the SP offset which is the offset from 10846 * TSF after which the wake happens. The units are in microseconds. 10847 * 10848 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32) 10849 * This attribute represents the next TWT subfield size. 10850 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits, 10851 * and 4 for 64 bits. 10852 * 10853 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address 10854 * Represents the MAC address of the peer to which TWT Suspend and Resume is 10855 * being sent. This is used in AP mode to represent the respective 10856 * client and is a required parameter. In STA mode, this is an optional 10857 * parameter. 10858 * 10859 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64) 10860 * This field contains absolute TSF value of the time at which twt 10861 * sesion will be resumed. 10862 * 10863 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32) 10864 * This field will be used when device supports Flexible TWT. 10865 * This field contains an offset value by which to shift the starting time 10866 * of the next service period. The value of offset can be negative or positive. 10867 * If provided, this attribute will override 10868 * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds. 10869 */ 10870 enum qca_wlan_vendor_attr_twt_nudge { 10871 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0, 10872 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1, 10873 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2, 10874 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3, 10875 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4, 10876 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5, 10877 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6, 10878 10879 /* keep last */ 10880 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST, 10881 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX = 10882 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1, 10883 }; 10884 10885 /** 10886 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for 10887 * TWT (Target Wake Time) get statistics and clear statistics request. 10888 * These attributes are sent as part of 10889 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10890 * 10891 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8) 10892 * Flow ID is the unique identifier for each TWT session. This attribute 10893 * represents the respective TWT session for get and clear TWT statistics. 10894 * Flow Id values from 0 to 254 represent a single TWT session 10895 * Flow ID value of 255 represents all TWT sessions in 10896 * 1) TWT GET STATISTICS request and response 10897 * 2) TWT CLEAR STATISTICS request 10898 * 10899 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address 10900 * Represents the MAC address of the peer for which TWT Statistics 10901 * is required. 10902 * In AP mode this is used to represent the respective 10903 * client and is a required parameter for 10904 * 1) TWT GET STATISTICS request and response 10905 * 2) TWT CLEAR STATISTICS request and response 10906 * In STA mode, this is an optional parameter. 10907 * 10908 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32) 10909 * This is the duration of the service period in microseconds. 10910 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10911 * 10912 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32) 10913 * Average of actual wake duration observed so far. Unit is microseconds. 10914 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10915 * 10916 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32) 10917 * Number of TWT service period elapsed so far. 10918 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10919 * 10920 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32) 10921 * This is the minimum value of wake duration observed across 10922 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is 10923 * microseconds. 10924 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10925 * 10926 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32) 10927 * This is the maximum value of wake duration observed across 10928 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is 10929 * microseconds. 10930 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10931 * 10932 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32) 10933 * Average number of MPDU's transmitted successfully across 10934 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10935 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10936 * 10937 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32) 10938 * Average number of MPDU's received successfully across 10939 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10940 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10941 * 10942 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32) 10943 * Average number of bytes transmitted successfully across 10944 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10945 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10946 * 10947 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32) 10948 * Average number of bytes received successfully across 10949 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10950 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10951 * 10952 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32) 10953 * Status of the TWT GET STATISTICS request. 10954 * This contains status values in enum qca_wlan_vendor_twt_status 10955 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10956 */ 10957 enum qca_wlan_vendor_attr_twt_stats { 10958 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0, 10959 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1, 10960 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2, 10961 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3, 10962 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4, 10963 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5, 10964 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6, 10965 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7, 10966 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8, 10967 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9, 10968 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10, 10969 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11, 10970 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12, 10971 10972 /* keep last */ 10973 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST, 10974 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX = 10975 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1, 10976 }; 10977 10978 /** 10979 * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities 10980 * supported by the device and peer. 10981 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES 10982 * 10983 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by 10984 * TWT non-scheduling STA. This capability is advertised in the HE 10985 * capability/Extended capabilities information element in the 10986 * Association request frame by the device. 10987 * 10988 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised 10989 * by the TWT scheduling AP. This capability is advertised in the extended 10990 * capabilities/HE capabilities information element. 10991 * 10992 * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support 10993 * for the broadcast TWT functionality. On responder side, this indicates 10994 * support for the role of broadcast TWT scheduling functionality. This 10995 * capability is advertised in the HE capabilities information element. 10996 * 10997 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule. 10998 * This capability is advertised in the HE capabilities information element. 10999 * 11000 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate 11001 * that it mandates the associated HE STAs to support TWT. This capability is 11002 * advertised by AP in the HE Operation Parameters field of the HE operation 11003 * information element. 11004 */ 11005 enum qca_wlan_twt_capa { 11006 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0), 11007 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1), 11008 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2), 11009 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3), 11010 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4), 11011 11012 }; 11013 11014 /** 11015 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT 11016 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT 11017 * operation. 11018 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address 11019 * Represents the MAC address of the peer for which the TWT capabilities 11020 * are being queried. This is used in AP mode to represent the respective 11021 * client. In STA mode, this is an optional parameter. 11022 * 11023 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16). 11024 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in 11025 * enum qca_wlan_twt_capa. 11026 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16). 11027 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in 11028 * enum qca_wlan_twt_capa. 11029 */ 11030 enum qca_wlan_vendor_attr_twt_capability { 11031 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0, 11032 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1, 11033 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2, 11034 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3, 11035 11036 /* keep last */ 11037 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST, 11038 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX = 11039 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1, 11040 }; 11041 11042 /** 11043 * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for 11044 * TWT (Target Wake Time) related parameters. It is used when 11045 * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM. 11046 * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 11047 * 11048 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8) 11049 * This attribute configures AC parameters to be used for all TWT 11050 * sessions in AP mode. 11051 * Uses the enum qca_wlan_ac_type values. 11052 */ 11053 enum qca_wlan_vendor_attr_twt_set_param { 11054 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0, 11055 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1, 11056 11057 /* keep last */ 11058 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST, 11059 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX = 11060 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1, 11061 }; 11062 11063 /** 11064 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by 11065 * the TWT responder 11066 * 11067 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT 11068 * parameters that are different from TWT requesting STA suggested 11069 * or demanded TWT parameters 11070 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT 11071 * parameters that are different from TWT requesting STA TWT suggested 11072 * or demanded parameters 11073 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT 11074 * setup 11075 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT 11076 * setup. 11077 */ 11078 enum qca_wlan_vendor_twt_setup_resp_type { 11079 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1, 11080 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2, 11081 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3, 11082 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4, 11083 }; 11084 11085 /** 11086 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8) 11087 * Represents the setup type being requested for TWT. 11088 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT 11089 * parameters but relying on AP to fill the parameters during the negotiation. 11090 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested 11091 * values which the AP may accept or AP may provide alternative parameters 11092 * which the STA may accept. 11093 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any 11094 * alternate parameters than the requested ones. 11095 */ 11096 enum qca_wlan_vendor_twt_setup_req_type { 11097 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1, 11098 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2, 11099 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3, 11100 }; 11101 11102 /** 11103 * enum qca_wlan_throughput_level - Current throughput level 11104 * 11105 * Indicates the current level of throughput calculated by driver. The driver 11106 * may choose different thresholds to decide whether the throughput level is 11107 * low or medium or high based on variety of parameters like physical link 11108 * capacity of current connection, number of pakcets being dispatched per 11109 * second etc. The throughput level events might not be consistent with the 11110 * actual current throughput value being observed. 11111 * 11112 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput 11113 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput 11114 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput 11115 */ 11116 enum qca_wlan_throughput_level { 11117 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0, 11118 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1, 11119 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2, 11120 }; 11121 11122 /** 11123 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to 11124 * report throughput changes from driver to user space. enum values are used 11125 * for NL attributes sent with 11126 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command. 11127 */ 11128 enum qca_wlan_vendor_attr_throughput_change { 11129 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0, 11130 /* 11131 * Indicates the direction of throughput in which the change is being 11132 * reported. u8 attribute. Value is 0 for TX and 1 for RX. 11133 */ 11134 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1, 11135 11136 /* 11137 * Indicates the newly observed throughput level. 11138 * qca_wlan_throughput_level describes the possible range of values. 11139 * u8 attribute. 11140 */ 11141 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2, 11142 11143 /* 11144 * Indicates the driver's guidance on the new value to be set to 11145 * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver 11146 * may optionally include this attribute. 11147 */ 11148 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3, 11149 11150 /* 11151 * Indicates the driver's guidance on the new value to be set to 11152 * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible 11153 * values are from -31 to 31. Driver may optionally include this 11154 * attribute. 11155 */ 11156 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4, 11157 11158 /* 11159 * Indicates the driver's guidance on the new value to be set to 11160 * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may 11161 * optionally include this attribute. 11162 */ 11163 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5, 11164 11165 /* keep last */ 11166 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST, 11167 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX = 11168 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1, 11169 }; 11170 11171 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute 11172 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command 11173 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 11174 */ 11175 enum qca_wlan_nan_ext_subcmd_type { 11176 /* Subcmd of type NAN Enable Request */ 11177 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1, 11178 /* Subcmd of type NAN Disable Request */ 11179 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2, 11180 }; 11181 11182 /** 11183 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command 11184 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 11185 */ 11186 enum qca_wlan_vendor_attr_nan_params { 11187 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0, 11188 /* Carries NAN command for firmware component. Every vendor command 11189 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a 11190 * payload containing the NAN command. NLA_BINARY attribute. 11191 */ 11192 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1, 11193 /* Indicates the type of NAN command sent with 11194 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type 11195 * describes the possible range of values. This attribute is mandatory 11196 * if the command being issued is either 11197 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or 11198 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute. 11199 */ 11200 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2, 11201 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz 11202 * band. This attribute is mandatory when command type is 11203 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute. 11204 */ 11205 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3, 11206 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz 11207 * band. This attribute is optional and should be included when command 11208 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery 11209 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute. 11210 */ 11211 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4, 11212 11213 /* keep last */ 11214 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST, 11215 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX = 11216 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1 11217 }; 11218 11219 /** 11220 * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data 11221 * transport modes and is used by attribute 11222 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command 11223 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG. 11224 * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data. 11225 * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR 11226 * data. The data shall be encapsulated within 11227 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command 11228 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event. 11229 */ 11230 enum qca_wlan_vendor_cfr_data_transport_modes { 11231 QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0, 11232 QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1, 11233 }; 11234 11235 /** 11236 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by 11237 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor 11238 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG. 11239 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame. 11240 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame 11241 * with phase 11242 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame 11243 */ 11244 enum qca_wlan_vendor_cfr_method { 11245 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0, 11246 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1, 11247 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2, 11248 }; 11249 11250 /** 11251 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by 11252 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE. 11253 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames. 11254 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames. 11255 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames. 11256 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which 11257 * is provided by one or more of below attributes: 11258 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA 11259 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA 11260 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK 11261 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK 11262 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER 11263 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER 11264 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER 11265 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets. 11266 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames. 11267 */ 11268 enum qca_wlan_vendor_cfr_capture_type { 11269 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0, 11270 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1, 11271 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2, 11272 QCA_WLAN_VENDOR_CFR_TA_RA = 3, 11273 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4, 11274 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5, 11275 }; 11276 11277 /** 11278 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command 11279 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer 11280 * Channel Frequency Response capture parameters and enable periodic CFR 11281 * capture. 11282 * 11283 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address) 11284 * MAC address of peer. This is for CFR version 1 only. 11285 * 11286 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag) 11287 * Enable peer CFR Capture. This attribute is mandatory to 11288 * enable peer CFR capture. If this attribute is not present, 11289 * peer CFR capture is disabled. 11290 * 11291 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8) 11292 * BW of measurement, attribute uses the values in enum nl80211_chan_width 11293 * Supported values: 20, 40, 80, 80+80, 160. 11294 * Note that all targets may not support all bandwidths. 11295 * This attribute is mandatory for version 1 if attribute 11296 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 11297 * 11298 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32) 11299 * Periodicity of CFR measurement in msec. 11300 * Periodicity should be a multiple of Base timer. 11301 * Current Base timer value supported is 10 msecs (default). 11302 * 0 for one shot capture. 11303 * This attribute is mandatory for version 1 if attribute 11304 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 11305 * 11306 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8) 11307 * Method used to capture Channel Frequency Response. 11308 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method. 11309 * This attribute is mandatory for version 1 if attribute 11310 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 11311 * 11312 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag) 11313 * Enable periodic CFR capture. 11314 * This attribute is mandatory for version 1 to enable Periodic CFR capture. 11315 * If this attribute is not present, periodic CFR capture is disabled. 11316 * 11317 * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8) 11318 * Value is 1 or 2 since there are two versions of CFR capture. Two versions 11319 * can't be enabled at same time. This attribute is mandatory if target 11320 * support both versions and use one of them. 11321 * 11322 * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32) 11323 * This attribute is mandatory for version 2 if 11324 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used. 11325 * Bits 15:0 Bit fields indicating which group to be enabled. 11326 * Bits 31:16 Reserved for future use. 11327 * 11328 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32) 11329 * CFR capture duration in microsecond. This attribute is mandatory for 11330 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used. 11331 * 11332 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32) 11333 * CFR capture interval in microsecond. This attribute is mandatory for 11334 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used. 11335 * 11336 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32) 11337 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type. 11338 * This attribute is mandatory for version 2. 11339 * 11340 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64) 11341 * Bit fields indicating which user in the current UL MU 11342 * transmissions are enabled for CFR capture. Bits 36 to 0 indicating 11343 * user indexes for 37 users in a UL MU transmission. If bit 0 is set, 11344 * then the CFR capture will happen for user index 0 in the current 11345 * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU 11346 * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use. 11347 * This is for CFR version 2 only. 11348 * 11349 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32) 11350 * Indicates the number of consecutive Rx packets to be skipped 11351 * before CFR capture is enabled again. 11352 * This is for CFR version 2 only. 11353 * 11354 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing 11355 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes. 11356 * 11357 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing 11358 * the following GROUP attributes: 11359 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER, 11360 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA, 11361 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA, 11362 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK, 11363 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK, 11364 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS, 11365 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW, 11366 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER, 11367 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER, 11368 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER 11369 * 11370 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32) 11371 * Target support multiple groups for some configurations. Group number could be 11372 * any value between 0 and 15. This is for CFR version 2 only. 11373 * 11374 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address) 11375 * Transmitter address which is used to filter packets, this MAC address takes 11376 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. 11377 * This is for CFR version 2 only. 11378 * 11379 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address) 11380 * Receiver address which is used to filter packets, this MAC address takes 11381 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. 11382 * This is for CFR version 2 only. 11383 * 11384 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address) 11385 * Mask of transmitter address which is used to filter packets. 11386 * This is for CFR version 2 only. 11387 * 11388 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address) 11389 * Mask of receiver address which is used to filter packets. 11390 * This is for CFR version 2 only. 11391 * 11392 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32) 11393 * Indicates packets with a specific NSS will be filtered for CFR capture. 11394 * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will 11395 * be done for packets matching the NSS specified within this bitmask. 11396 * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS: 11397 * bit 0 : NSS 1 11398 * bit 1 : NSS 2 11399 * ... 11400 * bit 7 : NSS 8 11401 * 11402 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32) 11403 * Indicates packets with a specific BW will be filtered for CFR capture. 11404 * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture 11405 * will be done for packets matching the bandwidths specified within this 11406 * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth 11407 * numerated in enum nl80211_band (although not all bands may be supported 11408 * by a given device). 11409 * 11410 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32) 11411 * Management packets matching the subtype filter categories will be 11412 * filtered in by MAC for CFR capture. This is a bitmask, in which each bit 11413 * represents the corresponding mgmt subtype value as per 11414 * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields. 11415 * For example, beacon frame control type is 8, its value is 1<<8 = 0x100. 11416 * This is for CFR version 2 only 11417 * 11418 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32) 11419 * Control packets matching the subtype filter categories will be 11420 * filtered in by MAC for CFR capture. This is a bitmask, in which each bit 11421 * represents the corresponding control subtype value as per 11422 * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields. 11423 * This is for CFR version 2 only. 11424 * 11425 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32) 11426 * Data packets matching the subtype filter categories will be 11427 * filtered in by MAC for CFR capture. This is a bitmask, in which each bit 11428 * represents the corresponding data subtype value as per 11429 * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields. 11430 * This is for CFR version 2 only. 11431 * 11432 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8) 11433 * Userspace can use this attribute to specify the driver about which transport 11434 * mode shall be used by the driver to send CFR data to userspace. Uses values 11435 * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is 11436 * not present, driver shall choose the default transport mechanism which is 11437 * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS. 11438 * 11439 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32) 11440 * Userspace can use this attribute to specify the nl port id of the application 11441 * which receives the CFR data and processes it further so that the drivers can 11442 * unicast the NL events to a specific application. Optionally included when 11443 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to 11444 * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers 11445 * shall multicast the netlink events when this attribute is not included. 11446 * 11447 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY). 11448 * This attribute will be used by the driver to encapsulate and send CFR data 11449 * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an 11450 * asynchronous event when the driver is configured to send CFR data using NL 11451 * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS 11452 * 11453 */ 11454 enum qca_wlan_vendor_peer_cfr_capture_attr { 11455 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0, 11456 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1, 11457 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2, 11458 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3, 11459 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4, 11460 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5, 11461 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6, 11462 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7, 11463 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8, 11464 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9, 11465 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10, 11466 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11, 11467 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12, 11468 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13, 11469 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14, 11470 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15, 11471 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16, 11472 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17, 11473 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18, 11474 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19, 11475 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20, 11476 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21, 11477 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22, 11478 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23, 11479 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24, 11480 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25, 11481 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26, 11482 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27, 11483 QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28, 11484 11485 /* Keep last */ 11486 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST, 11487 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX = 11488 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1, 11489 }; 11490 11491 /** 11492 * enum qca_coex_config_profiles - This enum defines different types of 11493 * traffic streams that can be prioritized one over the other during coex 11494 * scenarios. 11495 * The types defined in this enum are categorized in the below manner. 11496 * 0 - 31 values corresponds to WLAN 11497 * 32 - 63 values corresponds to BT 11498 * 64 - 95 values corresponds to Zigbee 11499 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA 11500 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA 11501 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA 11502 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA 11503 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA 11504 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP 11505 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP 11506 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP 11507 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP 11508 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP 11509 * @QCA_BT_A2DP: Prioritize BT A2DP 11510 * @QCA_BT_BLE: Prioritize BT BLE 11511 * @QCA_BT_SCO: Prioritize BT SCO 11512 * @QCA_ZB_LOW: Prioritize Zigbee Low 11513 * @QCA_ZB_HIGH: Prioritize Zigbee High 11514 */ 11515 enum qca_coex_config_profiles { 11516 /* 0 - 31 corresponds to WLAN */ 11517 QCA_WIFI_STA_DISCOVERY = 0, 11518 QCA_WIFI_STA_CONNECTION = 1, 11519 QCA_WIFI_STA_CLASS_3_MGMT = 2, 11520 QCA_WIFI_STA_DATA = 3, 11521 QCA_WIFI_STA_ALL = 4, 11522 QCA_WIFI_SAP_DISCOVERY = 5, 11523 QCA_WIFI_SAP_CONNECTION = 6, 11524 QCA_WIFI_SAP_CLASS_3_MGMT = 7, 11525 QCA_WIFI_SAP_DATA = 8, 11526 QCA_WIFI_SAP_ALL = 9, 11527 QCA_WIFI_CASE_MAX = 31, 11528 /* 32 - 63 corresponds to BT */ 11529 QCA_BT_A2DP = 32, 11530 QCA_BT_BLE = 33, 11531 QCA_BT_SCO = 34, 11532 QCA_BT_CASE_MAX = 63, 11533 /* 64 - 95 corresponds to Zigbee */ 11534 QCA_ZB_LOW = 64, 11535 QCA_ZB_HIGH = 65, 11536 QCA_ZB_CASE_MAX = 95, 11537 /* 0xff is default value if the u8 profile value is not set. */ 11538 QCA_PROFILE_DEFAULT_VALUE = 255 11539 }; 11540 11541 /** 11542 * enum qca_vendor_attr_coex_config_types - Coex configurations types. 11543 * This enum defines the valid set of values of coex configuration types. These 11544 * values may used by attribute 11545 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE. 11546 * 11547 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the 11548 * weights to default values. 11549 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config 11550 * weights with configurability value. 11551 */ 11552 enum qca_vendor_attr_coex_config_types { 11553 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0, 11554 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1, 11555 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2, 11556 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX 11557 }; 11558 11559 /** 11560 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config 11561 * attributes 11562 * Attributes for data used by 11563 * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG 11564 * 11565 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute. 11566 * Indicate config type. 11567 * the config types are 32-bit values from qca_vendor_attr_coex_config_types 11568 * 11569 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute. 11570 * Indicate the Priority 1 profiles. 11571 * the profiles are 8-bit values from enum qca_coex_config_profiles 11572 * In same priority level, maximum to 4 profiles can be set here. 11573 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute. 11574 * Indicate the Priority 2 profiles. 11575 * the profiles are 8-bit values from enum qca_coex_config_profiles 11576 * In same priority level, maximum to 4 profiles can be set here. 11577 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute. 11578 * Indicate the Priority 3 profiles. 11579 * the profiles are 8-bit values from enum qca_coex_config_profiles 11580 * In same priority level, maximum to 4 profiles can be set here. 11581 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute. 11582 * Indicate the Priority 4 profiles. 11583 * the profiles are 8-bit values from enum qca_coex_config_profiles 11584 * In same priority level, maximum to 4 profiles can be set here. 11585 * NOTE: 11586 * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority 11587 * arrangement: 11588 * 1: In the same u32 attribute(priority x), the profiles enum values own 11589 * same priority level. 11590 * 2: 0xff is default value if the u8 profile value is not set. 11591 * 3: max to 4 rules/profiles in same priority level. 11592 * 4: max to 4 priority level (priority 1 - priority 4) 11593 * 5: one priority level only supports one scenario from WLAN/BT/ZB, 11594 * hybrid rules not support. 11595 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will 11596 * remain blank to reset all parameters. 11597 * For example: 11598 * 11599 * If the attributes as follow: 11600 * priority 1: 11601 * ------------------------------------ 11602 * | 0xff | 0 | 1 | 2 | 11603 * ------------------------------------ 11604 * priority 2: 11605 * ------------------------------------- 11606 * | 0xff | 0xff | 0xff | 32 | 11607 * ------------------------------------- 11608 * priority 3: 11609 * ------------------------------------- 11610 * | 0xff | 0xff | 0xff | 65 | 11611 * ------------------------------------- 11612 * then it means: 11613 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION 11614 * owns same priority level. 11615 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION 11616 * has priority over BT_A2DP and ZB_HIGH. 11617 * 3: BT_A2DP has priority over ZB_HIGH. 11618 */ 11619 11620 enum qca_vendor_attr_coex_config_three_way { 11621 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0, 11622 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1, 11623 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2, 11624 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3, 11625 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4, 11626 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5, 11627 11628 /* Keep last */ 11629 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST, 11630 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX = 11631 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1, 11632 }; 11633 11634 /** 11635 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type 11636 * This enum defines the valid set of values of peer stats cache types. These 11637 * values are used by attribute 11638 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID. 11639 * 11640 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics. 11641 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics. 11642 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn 11643 * statistics 11644 */ 11645 enum qca_vendor_attr_peer_stats_cache_type { 11646 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0, 11647 11648 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS, 11649 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS, 11650 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS, 11651 }; 11652 11653 /** 11654 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines 11655 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH 11656 * Attributes are required to flush peer rate statistics from driver to 11657 * user application. 11658 * 11659 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute 11660 * Indicate peer stats cache type. 11661 * The statistics types are 32-bit values from 11662 * qca_vendor_attr_peer_stats_cache_type 11663 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array 11664 * of size 6, representing peer mac address. 11665 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute 11666 * containing buffer of statistics to send event to application layer entity. 11667 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute 11668 * representing cookie for peer unique session. 11669 */ 11670 enum qca_wlan_vendor_attr_peer_stats_cache_params { 11671 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0, 11672 11673 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1, 11674 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2, 11675 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3, 11676 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4, 11677 11678 /* Keep last */ 11679 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST, 11680 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX = 11681 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1 11682 }; 11683 11684 /** 11685 * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee. 11686 * this enum defines all the possible state of zigbee, which can be 11687 * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE. 11688 * 11689 * @ZIGBEE_IDLE: zigbee in idle state 11690 * @ZIGBEE_FORM_NETWORK: zibee forming network 11691 * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network 11692 * @ZIGBEE_JOIN: zigbee joining network 11693 * @ZIGBEE_NETWORK_UP: zigbee network is up 11694 * @ZIGBEE_HMI: zigbee in HMI mode 11695 */ 11696 enum qca_mpta_helper_attr_zigbee_state { 11697 ZIGBEE_IDLE = 0, 11698 ZIGBEE_FORM_NETWORK = 1, 11699 ZIGBEE_WAIT_JOIN = 2, 11700 ZIGBEE_JOIN = 3, 11701 ZIGBEE_NETWORK_UP = 4, 11702 ZIGBEE_HMI = 5, 11703 }; 11704 11705 /** 11706 * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by 11707 * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG. 11708 */ 11709 enum qca_mpta_helper_vendor_attr { 11710 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0, 11711 /* Optional attribute used to update zigbee state. 11712 * enum qca_mpta_helper_attr_zigbee_state. 11713 * NLA_U32 attribute. 11714 */ 11715 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1, 11716 /* Optional attribute used to configure wlan duration for Shape-OCS 11717 * during interrupt. 11718 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION. 11719 * Value range 0 ~ 300 (ms). 11720 * NLA_U32 attribute. 11721 */ 11722 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2, 11723 /* Optional attribute used to configure non wlan duration for Shape-OCS 11724 * during interrupt. 11725 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION. 11726 * Value range 0 ~ 300 (ms). 11727 * NLA_U32 attribute. 11728 */ 11729 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3, 11730 /* Optional attribute used to configure wlan duration for Shape-OCS 11731 * monitor period. 11732 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION. 11733 * Value range 0 ~ 300 (ms) 11734 * NLA_U32 attribute 11735 */ 11736 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4, 11737 /* Optional attribute used to configure non wlan duration for Shape-OCS 11738 * monitor period. 11739 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION. 11740 * Value range 0 ~ 300 (ms) 11741 * NLA_U32 attribute 11742 */ 11743 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5, 11744 /* Optional attribute used to configure ocs interrupt duration. 11745 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION. 11746 * Value range 1000 ~ 20000 (ms) 11747 * NLA_U32 attribute 11748 */ 11749 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6, 11750 /* Optional attribute used to configure ocs monitor duration. 11751 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION. 11752 * Value range 1000 ~ 20000 (ms) 11753 * NLA_U32 attribute 11754 */ 11755 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7, 11756 /* Optional attribute used to notify wlan FW current zigbee channel. 11757 * Value range 11 ~ 26 11758 * NLA_U32 attribute 11759 */ 11760 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8, 11761 /* Optional attribute used to configure wlan mute duration. 11762 * Value range 0 ~ 400 (ms) 11763 * NLA_U32 attribute 11764 */ 11765 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9, 11766 11767 /* keep last */ 11768 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST, 11769 QCA_MPTA_HELPER_VENDOR_ATTR_MAX = 11770 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1 11771 }; 11772 11773 /** 11774 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of 11775 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be 11776 * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE. 11777 * 11778 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver 11779 * to request the driver to start reporting Beacon frames. 11780 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver 11781 * to request the driver to stop reporting Beacon frames. 11782 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to 11783 * userspace to report received Beacon frames. 11784 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace 11785 * to indicate that the driver is going to pause reporting Beacon frames. 11786 */ 11787 enum qca_wlan_vendor_beacon_reporting_op_types { 11788 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0, 11789 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1, 11790 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2, 11791 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3, 11792 }; 11793 11794 /** 11795 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different 11796 * types of reasons for which the driver is pausing reporting Beacon frames. 11797 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON. 11798 * 11799 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified 11800 * reasons. 11801 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the 11802 * driver/firmware is starting a scan. 11803 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the 11804 * driver/firmware disconnects from the ESS and indicates the disconnection to 11805 * userspace (non-seamless roaming case). This reason code will be used by the 11806 * driver/firmware to indicate stopping of beacon report events. Userspace 11807 * will need to start beacon reporting again (if desired) by sending vendor 11808 * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with 11809 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to 11810 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is 11811 * completed. 11812 */ 11813 enum qca_wlan_vendor_beacon_reporting_pause_reasons { 11814 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0, 11815 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1, 11816 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2, 11817 }; 11818 11819 /* 11820 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used 11821 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING. 11822 */ 11823 enum qca_wlan_vendor_attr_beacon_reporting_params { 11824 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0, 11825 /* Specifies the type of operation that the vendor command/event is 11826 * intended for. Possible values for this attribute are defined in 11827 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute. 11828 */ 11829 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1, 11830 /* Optionally set by userspace to request the driver to report Beacon 11831 * frames using asynchronous vendor events when the 11832 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11833 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. 11834 * If this flag is not set, the driver will only update Beacon frames 11835 * in cfg80211 scan cache but not send any vendor events. 11836 */ 11837 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2, 11838 /* Optionally used by userspace to request the driver/firmware to 11839 * report Beacon frames periodically when the 11840 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11841 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. 11842 * u32 attribute, indicates the period of Beacon frames to be reported 11843 * and in the units of beacon interval. 11844 * If this attribute is missing in the command, then the default value 11845 * of 1 will be assumed by driver, i.e., to report every Beacon frame. 11846 * Zero is an invalid value. 11847 * If a valid value is received for this attribute, the driver will 11848 * update the cfg80211 scan cache periodically as per the value 11849 * received in this attribute in addition to updating the cfg80211 scan 11850 * cache when there is significant change in Beacon frame IEs. 11851 */ 11852 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3, 11853 /* Used by the driver to encapsulate the SSID when the 11854 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11855 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11856 * u8 array with a maximum size of 32. 11857 * 11858 * When generating beacon report from non-MBSSID Beacon frame, the SSID 11859 * will be taken from the SSID element of the received Beacon frame. 11860 * 11861 * When generating beacon report from Multiple BSSID Beacon frame and 11862 * if the BSSID of the current connected BSS matches the BSSID of the 11863 * transmitting BSS, the SSID will be taken from the SSID element of 11864 * the received Beacon frame. 11865 * 11866 * When generating beacon report from Multiple BSSID Beacon frame and 11867 * if the BSSID of the current connected BSS matches the BSSID of one 11868 * of the* nontransmitting BSSs, the SSID will be taken from the SSID 11869 * field included in the nontransmitted BSS profile whose derived BSSI 11870 * is same as the BSSID of the current connected BSS. When there is no 11871 * nontransmitted BSS profile whose derived BSSID is same as the BSSID 11872 * of current connected* BSS, this attribute will not be present. 11873 */ 11874 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4, 11875 /* Used by the driver to encapsulate the BSSID of the AP to which STA 11876 * is currently connected to when the 11877 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11878 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a 11879 * fixed size of 6 bytes. 11880 * 11881 * When generating beacon report from a Multiple BSSID beacon and the 11882 * current connected BSSID matches one of the nontransmitted BSSIDs in 11883 * a Multiple BSSID set, this BSSID will be that particular 11884 * nontransmitted BSSID and not the transmitted BSSID (i.e., the 11885 * transmitting address of the Beacon frame). 11886 */ 11887 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5, 11888 /* Used by the driver to encapsulate the frequency in MHz on which 11889 * the Beacon frame was received when the 11890 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is 11891 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11892 * u32 attribute. 11893 */ 11894 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6, 11895 /* Used by the driver to encapsulate the Beacon interval 11896 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11897 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11898 * u16 attribute. The value will be copied from the Beacon frame and 11899 * the units are TUs. 11900 */ 11901 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7, 11902 /* Used by the driver to encapsulate the Timestamp field from the 11903 * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE 11904 * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11905 * u64 attribute. 11906 */ 11907 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8, 11908 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this 11909 * Beacon frame is received in the driver when the 11910 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11911 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in 11912 * the units of nanoseconds. This value is expected to have accuracy of 11913 * about 10 ms. 11914 */ 11915 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9, 11916 /* Used by the driver to encapsulate the IEs of the Beacon frame from 11917 * which this event is generated when the 11918 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11919 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array. 11920 */ 11921 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10, 11922 /* Used by the driver to specify the reason for the driver/firmware to 11923 * pause sending beacons to userspace when the 11924 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11925 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are 11926 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32 11927 * attribute. 11928 */ 11929 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11, 11930 /* Used by the driver to specify whether the driver will automatically 11931 * resume reporting beacon events to userspace later (for example after 11932 * the ongoing off-channel activity is completed etc.) when the 11933 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11934 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute. 11935 */ 11936 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12, 11937 /* Optionally set by userspace to request the driver not to resume 11938 * beacon reporting after a pause is completed, when the 11939 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11940 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. 11941 * If this flag is set, the driver will not resume beacon reporting 11942 * after any pause in beacon reporting is completed. Userspace has to 11943 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order 11944 * to initiate beacon reporting again. If this flag is set in the recent 11945 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the 11946 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any) 11947 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be 11948 * set by the driver. Setting this flag until and unless there is a 11949 * specific need is not recommended as there is a chance of some beacons 11950 * received after pause command and next start command being not 11951 * reported. 11952 */ 11953 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13, 11954 11955 /* Keep last */ 11956 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST, 11957 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX = 11958 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1 11959 }; 11960 11961 /** 11962 * enum qca_vendor_oem_device_type - Represents the target device in firmware. 11963 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO. 11964 * 11965 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for 11966 * a virtual device. 11967 * 11968 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for 11969 * a physical device. 11970 */ 11971 enum qca_vendor_oem_device_type { 11972 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0, 11973 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1, 11974 }; 11975 11976 /* 11977 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command 11978 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA. 11979 * 11980 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is 11981 * used to set/query the data to/from the firmware. On query, the same 11982 * attribute is used to carry the respective data in the reply sent by the 11983 * driver to userspace. The request to set/query the data and the format of the 11984 * respective data from the firmware are embedded in the attribute. The 11985 * maximum size of the attribute payload is 1024 bytes. 11986 * 11987 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed 11988 * based on this field. This optional attribute is included to specify whether 11989 * the device type is a virtual device or a physical device for the command. 11990 * This attribute can be omitted for a virtual device (default) command. 11991 * This u8 attribute is used to carry information for the device type using 11992 * values defined by enum qca_vendor_oem_device_type. 11993 * 11994 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED 11995 * attribute when the data is queried from the firmware. 11996 * 11997 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute 11998 * is set when the userspace queries data from the firmware. This attribute 11999 * should not be set when userspace sets the OEM data to the firmware. 12000 */ 12001 enum qca_wlan_vendor_attr_oem_data_params { 12002 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0, 12003 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1, 12004 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2, 12005 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3, 12006 12007 /* keep last */ 12008 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST, 12009 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX = 12010 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1 12011 }; 12012 12013 /** 12014 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be 12015 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT. 12016 * 12017 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required 12018 * Nested attribute containing multiple ranges with following attributes: 12019 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START, 12020 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and 12021 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM. 12022 * 12023 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32) 12024 * Starting center frequency in MHz. 12025 * 12026 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32) 12027 * Ending center frequency in MHz. 12028 * 12029 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM: 12030 * s32 attribute, optional. It is a per frequency range attribute. 12031 * The maximum TX power limit from user space is to be applied on an 12032 * unrestricted interface for corresponding frequency range. It is also 12033 * possible that the actual TX power may be even lower than this cap due to 12034 * other considerations such as regulatory compliance, SAR, etc. In absence of 12035 * this attribute the driver shall follow current behavior which means 12036 * interface (SAP/P2P) function can keep operating on an unsafe channel with TX 12037 * power derived by the driver based on regulatory/SAR during interface up. 12038 * 12039 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK: 12040 * u32 attribute, optional. Indicates all the interface types which are 12041 * restricted for all frequency ranges provided in 12042 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and 12043 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END. 12044 * This attribute encapsulates bitmasks of interface types defined in 12045 * enum nl80211_iftype. If an interface is marked as restricted the driver must 12046 * move to a safe channel and if no safe channel is available the driver shall 12047 * terminate that interface functionality. In absence of this attribute, 12048 * interface (SAP/P2P) can still continue operating on an unsafe channel with 12049 * TX power limit derived from either 12050 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on 12051 * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM 12052 * is not provided. 12053 */ 12054 enum qca_wlan_vendor_attr_avoid_frequency_ext { 12055 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0, 12056 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1, 12057 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2, 12058 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3, 12059 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4, 12060 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5, 12061 12062 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST, 12063 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX = 12064 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1 12065 }; 12066 12067 /* 12068 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command 12069 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE. 12070 */ 12071 enum qca_wlan_vendor_attr_add_sta_node_params { 12072 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0, 12073 /* 6 byte MAC address of STA */ 12074 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1, 12075 /* Authentication algorithm used by the station of size u16; 12076 * defined in enum nl80211_auth_type. 12077 */ 12078 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2, 12079 12080 /* 12081 * This flag attribute is set if the node being added is an 12082 * MLD STA node. 12083 */ 12084 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_IS_ML = 3, 12085 12086 /* keep last */ 12087 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST, 12088 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX = 12089 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1 12090 }; 12091 12092 /** 12093 * enum qca_btc_chain_mode - Specifies BT coex chain mode. 12094 * This enum defines the valid set of values of BT coex chain mode. 12095 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of 12096 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. 12097 * 12098 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared. 12099 * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are 12100 * separated, hybrid mode. 12101 * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are 12102 * separated, fixed FDD mode. 12103 */ 12104 enum qca_btc_chain_mode { 12105 QCA_BTC_CHAIN_SHARED = 0, 12106 QCA_BTC_CHAIN_SEPARATED_HYBRID = 1, 12107 QCA_BTC_CHAIN_SEPARATED_FDD = 2, 12108 }; 12109 12110 /* deprecated legacy name */ 12111 #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID 12112 12113 /** 12114 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex 12115 * chain mode. 12116 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. 12117 * 12118 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute. 12119 * Indicates the BT coex chain mode, are 32-bit values from 12120 * enum qca_btc_chain_mode. This attribute is mandatory. 12121 * 12122 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute. 12123 * If set, vdev should be restarted when BT coex chain mode is updated. 12124 * This attribute is optional. 12125 */ 12126 enum qca_vendor_attr_btc_chain_mode { 12127 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0, 12128 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1, 12129 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2, 12130 12131 /* Keep last */ 12132 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST, 12133 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX = 12134 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1, 12135 }; 12136 12137 /** 12138 * enum qca_vendor_wlan_sta_flags - Station feature flags 12139 * Bits will be set to 1 if the corresponding features are enabled. 12140 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station 12141 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled 12142 for the station 12143 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled 12144 for the station 12145 */ 12146 enum qca_vendor_wlan_sta_flags { 12147 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0), 12148 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1), 12149 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2), 12150 }; 12151 12152 /** 12153 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval 12154 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval 12155 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval 12156 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE 12157 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE 12158 */ 12159 enum qca_vendor_wlan_sta_guard_interval { 12160 QCA_VENDOR_WLAN_STA_GI_800_NS = 0, 12161 QCA_VENDOR_WLAN_STA_GI_400_NS = 1, 12162 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2, 12163 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3, 12164 }; 12165 12166 /** 12167 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes 12168 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command. 12169 * 12170 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC: 12171 * Required attribute in request for AP mode only, 6-byte MAC address, 12172 * corresponding to the station's MAC address for which information is 12173 * requested. For STA mode this is not required as the info always correspond 12174 * to the self STA and the current/last association. 12175 * 12176 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS: 12177 * Optionally used in response, u32 attribute, contains a bitmap of different 12178 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only. 12179 * 12180 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL: 12181 * Optionally used in response, u32 attribute, possible values are defined in 12182 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only. 12183 * Guard interval used by the station. 12184 * 12185 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT: 12186 * Optionally used in response, u32 attribute, used in AP mode only. 12187 * Value indicates the number of data frames received from station with retry 12188 * bit set to 1 in FC. 12189 * 12190 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT: 12191 * Optionally used in response, u32 attribute, used in AP mode only. 12192 * Counter for number of data frames with broadcast or multicast address in 12193 * the destination address received from the station. 12194 * 12195 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED: 12196 * Optionally used in response, u32 attribute, used in both STA and AP modes. 12197 * Value indicates the number of data frames successfully transmitted only 12198 * after retrying the packets and for which the TX status has been updated 12199 * back to host from target. 12200 * 12201 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED: 12202 * Optionally used in response, u32 attribute, used in both STA and AP mode. 12203 * Value indicates the number of data frames not transmitted successfully even 12204 * after retrying the packets for the number of times equal to the total number 12205 * of retries allowed for that packet and for which the TX status has been 12206 * updated back to host from target. 12207 * 12208 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL: 12209 * Optionally used in response, u32 attribute, used in AP mode only. 12210 * Counter in the target for the number of data frames successfully transmitted 12211 * to the station. 12212 * 12213 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY: 12214 * Optionally used in response, u32 attribute, used in AP mode only. 12215 * Value indicates the number of data frames successfully transmitted only 12216 * after retrying the packets. 12217 * 12218 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED: 12219 * Optionally used in response, u32 attribute, used in both STA & AP mode. 12220 * Value indicates the number of data frames not transmitted successfully even 12221 * after retrying the packets for the number of times equal to the total number 12222 * of retries allowed for that packet. 12223 * 12224 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in 12225 * the STA mode only. Represent the number of probe requests sent by the STA 12226 * while attempting to roam on missing certain number of beacons from the 12227 * connected AP. If queried in the disconnected state, this represents the 12228 * count for the last connected state. 12229 * 12230 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in 12231 * the STA mode. Represent the number of probe responses received by the station 12232 * while attempting to roam on missing certain number of beacons from the 12233 * connected AP. When queried in the disconnected state, this represents the 12234 * count when in last connected state. 12235 * 12236 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the 12237 * STA mode only. Represents the total number of frames sent out by STA 12238 * including Data, ACK, RTS, CTS, Control Management. This data is maintained 12239 * only for the connect session. Represents the count of last connected session, 12240 * when queried in the disconnected state. 12241 * 12242 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode. 12243 * Total number of RTS sent out by the STA. This data is maintained per connect 12244 * session. Represents the count of last connected session, when queried in the 12245 * disconnected state. 12246 * 12247 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the 12248 * STA mode.Represent the number of RTS transmission failure that reach retry 12249 * limit. This data is maintained per connect session. Represents the count of 12250 * last connected session, when queried in the disconnected state. 12251 * 12252 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in 12253 * the STA mode. Represent the total number of non aggregated frames transmitted 12254 * by the STA. This data is maintained per connect session. Represents the count 12255 * of last connected session, when queried in the disconnected state. 12256 * 12257 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the 12258 * STA mode. Represent the total number of aggregated frames transmitted by the 12259 * STA. This data is maintained per connect session. Represents the count of 12260 * last connected session, when queried in the disconnected state. 12261 * 12262 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in 12263 * the STA mode. Represents the number of received frames with a good PLCP. This 12264 * data is maintained per connect session. Represents the count of last 12265 * connected session, when queried in the disconnected state. 12266 * 12267 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32, 12268 * used in the STA mode. Represents the number of occasions that no valid 12269 * delimiter is detected by A-MPDU parser. This data is maintained per connect 12270 * session. Represents the count of last connected session, when queried in the 12271 * disconnected state. 12272 * 12273 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the 12274 * STA mode. Represents the number of frames for which CRC check failed in the 12275 * MAC. This data is maintained per connect session. Represents the count of 12276 * last connected session, when queried in the disconnected state. 12277 * 12278 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the 12279 * STA mode. Represents the number of unicast ACKs received with good FCS. This 12280 * data is maintained per connect session. Represents the count of last 12281 * connected session, when queried in the disconnected state. 12282 * 12283 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA 12284 * mode. Represents the number of received Block Acks. This data is maintained 12285 * per connect session. Represents the count of last connected session, when 12286 * queried in the disconnected state. 12287 * 12288 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA 12289 * mode. Represents the number of beacons received from the connected BSS. This 12290 * data is maintained per connect session. Represents the count of last 12291 * connected session, when queried in the disconnected state. 12292 * 12293 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the 12294 * STA mode. Represents the number of beacons received by the other BSS when in 12295 * connected state (through the probes done by the STA). This data is maintained 12296 * per connect session. Represents the count of last connected session, when 12297 * queried in the disconnected state. 12298 * 12299 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in 12300 * the STA mode. Represents the number of received DATA frames with good FCS and 12301 * matching Receiver Address when in connected state. This data is maintained 12302 * per connect session. Represents the count of last connected session, when 12303 * queried in the disconnected state. 12304 * 12305 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the 12306 * STA mode. Represents the number of RX Data multicast frames dropped by the HW 12307 * when in the connected state. This data is maintained per connect session. 12308 * Represents the count of last connected session, when queried in the 12309 * disconnected state. 12310 * 12311 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the 12312 * STA mode. This represents the target power in dBm for the transmissions done 12313 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per 12314 * connect session. Represents the count of last connected session, when 12315 * queried in the disconnected state. 12316 * 12317 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the 12318 * STA mode. This represents the Target power in dBm for transmissions done to 12319 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect 12320 * session. Represents the count of last connected session, when queried in the 12321 * disconnected state. 12322 * 12323 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the 12324 * STA mode. This represents the Target power in dBm for transmissions done to 12325 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session. 12326 * Represents the count of last connected session, when queried in the 12327 * disconnected state. 12328 * 12329 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the 12330 * STA mode. This represents the Target power in dBm for transmissions done to 12331 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect 12332 * session. Represents the count of last connected session, when queried in 12333 * the disconnected state. 12334 * 12335 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the 12336 * STA mode. This represents the Target power in dBm for for transmissions done 12337 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session. 12338 * Represents the count of last connected session, when queried in the 12339 * disconnected state. 12340 * 12341 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used 12342 * in the STA mode. This represents the Nested attribute representing the 12343 * overflow counts of each receive buffer allocated to the hardware during the 12344 * STA's connection. The number of hw buffers might vary for each WLAN 12345 * solution and hence this attribute represents the nested array of all such 12346 * HW buffer count. This data is maintained per connect session. Represents 12347 * the count of last connected session, when queried in the disconnected state. 12348 * 12349 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm) 12350 * allowed as per the regulatory requirements for the current or last connected 12351 * session. Used in the STA mode. 12352 * 12353 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power 12354 * (dBm) used by the station in its latest unicast frame while communicating 12355 * to the AP in the connected state. When queried in the disconnected state, 12356 * this represents the TX power used by the STA with last AP communication 12357 * when in connected state. 12358 * 12359 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity 12360 * level used to adjust the RX sensitivity. Represents the current ANI level 12361 * when queried in the connected state. When queried in the disconnected 12362 * state, this corresponds to the latest ANI level at the instance of 12363 * disconnection. 12364 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode 12365 * only. This represents the number of group addressed robust management frames 12366 * received from this station with an invalid MIC or a missing MME when PMF is 12367 * enabled. 12368 * 12369 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode 12370 * only. This represents the number of group addressed robust management frames 12371 * received from this station with the packet number less than or equal to the 12372 * last received packet number when PMF is enabled. 12373 * 12374 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA 12375 * mode only. This represents the number of Beacon frames received from this 12376 * station with an invalid MIC or a missing MME when beacon protection is 12377 * enabled. 12378 * 12379 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode 12380 * only. This represents number of Beacon frames received from this station with 12381 * the packet number less than or equal to the last received packet number when 12382 * beacon protection is enabled. 12383 * 12384 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in 12385 * STA mode only. Driver uses this attribute to populate the connection failure 12386 * reason codes and the values are defined in 12387 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send 12388 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving 12389 * connection failure from driver. The driver shall not include this attribute 12390 * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no 12391 * connection failure observed in the last attempted connection. 12392 * 12393 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps) 12394 * used by the station in its last TX frame while communicating to the AP in the 12395 * connected state. When queried in the disconnected state, this represents the 12396 * rate used by the STA in the last TX frame to the AP when it was connected. 12397 * This attribute is used for STA mode only. 12398 * 12399 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only. 12400 * This represents the rate index used by the STA for the last TX frame to the 12401 * AP. When queried in the disconnected state, this gives the last RIX used by 12402 * the STA in the last TX frame to the AP when it was connected. 12403 * 12404 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA 12405 * mode only. This represents the number of times the STA TSF goes out of sync 12406 * from the AP after the connection. If queried in the disconnected state, this 12407 * gives the count of TSF out of sync for the last connection. 12408 * 12409 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA 12410 * mode only. This represents the roam trigger reason for the last roaming 12411 * attempted by the firmware. This can be queried either in connected state or 12412 * disconnected state. Each bit of this attribute represents the different 12413 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers. 12414 * 12415 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode 12416 * only. This represents the roam fail reason for the last failed roaming 12417 * attempt by the firmware. Different roam failure reason codes are specified 12418 * in enum qca_vendor_roam_fail_reasons. This can be queried either in 12419 * connected state or disconnected state. 12420 * 12421 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in 12422 * STA mode only. This represents the roam invoke fail reason for the last 12423 * failed roam invoke. Different roam invoke failure reason codes 12424 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be 12425 * queried either in connected state or disconnected state. 12426 * 12427 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only. 12428 * This represents the average congestion duration of uplink frames in MAC 12429 * queue in unit of ms. This can be queried either in connected state or 12430 * disconnected state. 12431 * 12432 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested 12433 * attribute, used in AP mode. This represents the MPDU packet count per MCS 12434 * rate value of TX packets. Every index of this nested attribute corresponds 12435 * to MCS index, for example Index 0 represents MCS0 TX rate. This can be 12436 * queried in connected state. 12437 * 12438 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested 12439 * attribute, used in AP mode. This represents the MPDU packet count per MCS 12440 * rate value of RX packets. Every index of this nested attribute corresponds 12441 * to MCS index, for example Index 0 represents MCS0 RX rate. This can be 12442 * queried in connected state. 12443 */ 12444 enum qca_wlan_vendor_attr_get_sta_info { 12445 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0, 12446 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1, 12447 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2, 12448 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3, 12449 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4, 12450 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5, 12451 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6, 12452 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7, 12453 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8, 12454 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9, 12455 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10, 12456 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11, 12457 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12, 12458 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13, 12459 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14, 12460 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15, 12461 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16, 12462 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17, 12463 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18, 12464 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19, 12465 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20, 12466 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21, 12467 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22, 12468 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23, 12469 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24, 12470 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25, 12471 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26, 12472 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27, 12473 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28, 12474 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29, 12475 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30, 12476 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31, 12477 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32, 12478 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33, 12479 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34, 12480 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35, 12481 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39, 12482 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40, 12483 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41, 12484 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42, 12485 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43, 12486 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44, 12487 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45, 12488 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46, 12489 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47, 12490 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48, 12491 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49, 12492 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50, 12493 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51, 12494 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52, 12495 12496 /* keep last */ 12497 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST, 12498 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX = 12499 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1, 12500 }; 12501 12502 /** 12503 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes. 12504 * Used when the driver triggers the STA to disconnect from the AP. 12505 * 12506 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the 12507 * disconnection with the AP due to unspecified reasons. 12508 * 12509 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the 12510 * disconnection with the AP due to a roaming failure. This roaming is triggered 12511 * internally (host driver/firmware). 12512 * 12513 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from 12514 * the AP when the user/external triggered roaming fails. 12515 * 12516 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used 12517 * by the host driver whenever gateway reachability failure is detected and the 12518 * driver disconnects with AP. 12519 * 12520 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from 12521 * the AP on a channel switch announcement from it with an unsupported channel. 12522 * 12523 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start 12524 * with indoor channels disabled and if the STA is connected on one of these 12525 * disabled channels, the host driver disconnected the STA with this reason 12526 * code. 12527 * 12528 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an 12529 * explicit request from the user to disable the current operating channel. 12530 * 12531 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to 12532 * the internal host driver/firmware recovery. 12533 * 12534 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on 12535 * a timeout for the key installations from the user space. 12536 * 12537 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the 12538 * STA on a band change request from the user space to a different band from the 12539 * current operation channel/band. 12540 * 12541 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an 12542 * interface down trigger from the user space. 12543 * 12544 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the 12545 * STA on getting continuous transmission failures for multiple Data frames. 12546 * 12547 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive 12548 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection 12549 * represents inactivity from AP on such transmissions. 12550 12551 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on 12552 * disconnection when SA Query times out (AP does not respond to SA Query). 12553 * 12554 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the 12555 * STA on missing the beacons continuously from the AP. 12556 * 12557 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not 12558 * able to move to the channel mentioned by the AP in CSA. 12559 * 12560 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection. 12561 */ 12562 enum qca_disconnect_reason_codes { 12563 QCA_DISCONNECT_REASON_UNSPECIFIED = 0, 12564 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1, 12565 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2, 12566 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3, 12567 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4, 12568 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5, 12569 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6, 12570 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7, 12571 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8, 12572 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9, 12573 QCA_DISCONNECT_REASON_IFACE_DOWN = 10, 12574 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11, 12575 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12, 12576 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13, 12577 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14, 12578 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15, 12579 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16, 12580 }; 12581 12582 /** 12583 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes 12584 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command. 12585 * 12586 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute. 12587 * This attribute represents the driver specific reason codes (local 12588 * driver/firmware initiated reasons for disconnection) defined 12589 * in enum qca_disconnect_reason_codes. 12590 */ 12591 enum qca_wlan_vendor_attr_driver_disconnect_reason { 12592 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0, 12593 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1, 12594 12595 /* keep last */ 12596 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST, 12597 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX = 12598 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1, 12599 }; 12600 12601 /** 12602 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request 12603 * 12604 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION. 12605 */ 12606 enum qca_wlan_tspec_operation { 12607 QCA_WLAN_TSPEC_ADD = 0, 12608 QCA_WLAN_TSPEC_DEL = 1, 12609 QCA_WLAN_TSPEC_GET = 2, 12610 }; 12611 12612 /** 12613 * enum qca_wlan_tspec_direction - Direction in TSPEC 12614 * As what is defined in IEEE Std 802.11-2016, Table 9-139. 12615 * 12616 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION. 12617 */ 12618 enum qca_wlan_tspec_direction { 12619 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0, 12620 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1, 12621 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2, 12622 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3, 12623 }; 12624 12625 /** 12626 * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC 12627 * As what is defined in IEEE Std 802.11-2016, Table 9-141. 12628 * 12629 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY. 12630 */ 12631 enum qca_wlan_tspec_ack_policy { 12632 QCA_WLAN_TSPEC_NORMAL_ACK = 0, 12633 QCA_WLAN_TSPEC_NO_ACK = 1, 12634 /* Reserved */ 12635 QCA_WLAN_TSPEC_BLOCK_ACK = 3, 12636 }; 12637 12638 /** 12639 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes 12640 * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command. 12641 * 12642 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION: 12643 * u8 attribute. Specify the TSPEC operation of this request. Possible values 12644 * are defined in enum qca_wlan_tspec_operation. 12645 * Mandatory attribute for all kinds of config TSPEC requests. 12646 * 12647 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID: 12648 * u8 attribute. TS ID. Possible values are 0-7. 12649 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL, 12650 * QCA_WLAN_TSPEC_GET. A mandatory attribute. 12651 * 12652 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION: 12653 * u8 attribute. Direction of data carried by the TS. Possible values are 12654 * defined in enum qca_wlan_tspec_direction. 12655 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12656 * 12657 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD: 12658 * Flag attribute. Indicate whether APSD is enabled for the traffic associated 12659 * with the TS. set - enabled, not set - disabled. 12660 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12661 * 12662 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY: 12663 * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs 12664 * belonging to this TS. Possible values are 0-7. 12665 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12666 * 12667 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY: 12668 * u8 attribute. Indicate whether MAC acknowledgements are required for 12669 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements. 12670 * Possible values are defined in enum qca_wlan_tspec_ack_policy. 12671 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12672 * 12673 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE: 12674 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs 12675 * belonging to this TS. 12676 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12677 * 12678 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE: 12679 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs 12680 * belonging to this TS. 12681 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12682 * 12683 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL: 12684 * u32 attribute. Specify the minimum interval in microseconds between the 12685 * start of two successive SPs. 12686 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12687 * 12688 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL: 12689 * u32 attribute. Specify the maximum interval in microseconds between the 12690 * start of two successive SPs. 12691 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12692 * 12693 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL: 12694 * u32 attribute. Specify the minimum interval in microseconds that can elapse 12695 * without arrival or transfer of an MPDU belonging to the TS before this TS 12696 * is deleted by the MAC entity at the HC. 12697 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12698 * 12699 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL: 12700 * u32 attribute. Specify the minimum interval in microseconds that can elapse 12701 * without arrival or transfer of an MSDU belonging to the TS before the 12702 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of 12703 * 0xFFFFFFFF disables the suspension interval. The value of the suspension 12704 * interval is always less than or equal to the inactivity interval. 12705 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12706 * 12707 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE: 12708 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC 12709 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the 12710 * bounds of this TSPEC. 12711 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12712 * 12713 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE: 12714 * u32 attribute. Indicate the average data rate in bps specified at the MAC 12715 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the 12716 * bounds of this TSPEC. 12717 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12718 * 12719 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE: 12720 * u32 attribute. Indicate the maximum allowable data rate in bps specified at 12721 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within 12722 * the bounds of this TSPEC. 12723 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12724 * 12725 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE: 12726 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs 12727 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A 12728 * value of 0 indicates that there are no bursts. 12729 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12730 * 12731 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE: 12732 * u32 attribute. Indicate the minimum PHY rate in bps for transport of 12733 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC. 12734 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12735 * 12736 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE: 12737 * u16 attribute. Specify the excess allocation of time (and bandwidth) over 12738 * and above the stated application rates required to transport an MSDU/A-MSDU 12739 * belonging to the TS in this TSPEC. 12740 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12741 */ 12742 enum qca_wlan_vendor_attr_config_tspec { 12743 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0, 12744 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1, 12745 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2, 12746 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3, 12747 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4, 12748 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5, 12749 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6, 12750 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7, 12751 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8, 12752 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9, 12753 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10, 12754 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11, 12755 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12, 12756 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13, 12757 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14, 12758 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15, 12759 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16, 12760 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17, 12761 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18, 12762 12763 /* keep last */ 12764 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST, 12765 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX = 12766 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1, 12767 }; 12768 12769 /** 12770 * enum qca_wlan_medium_assess_type - Type of medium assess request 12771 * 12772 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE. 12773 */ 12774 enum qca_wlan_medium_assess_type { 12775 QCA_WLAN_MEDIUM_ASSESS_CCA = 0, 12776 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1, 12777 }; 12778 12779 /** 12780 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by 12781 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command. 12782 * 12783 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE: 12784 * u8 attribute. Mandatory in all kinds of medium assess requests/responses. 12785 * Specify the type of medium assess request and indicate its type in response. 12786 * Possible values are defined in enum qca_wlan_medium_assess_type. 12787 * 12788 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD: 12789 * u32 attribute. Mandatory in CCA request. 12790 * Specify the assessment period in terms of seconds. Assessment result will be 12791 * sent as the response to the CCA request after the assessment period. 12792 * 12793 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT: 12794 * u32 attribute. Mandatory in response to CCA request. 12795 * Total timer tick count of the assessment cycle. 12796 * 12797 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT: 12798 * u32 attribute. Mandatory in response to CCA request. 12799 * Timer tick count of idle time in the assessment cycle. 12800 * 12801 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT: 12802 * u32 attribute. Mandatory in response to CCA request. 12803 * Timer tick count of Intra BSS traffic RX time in the assessment cycle. 12804 * 12805 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT: 12806 * u32 attribute. Mandatory in response to CCA request. 12807 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle. 12808 * 12809 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI: 12810 * s32 attribute. Mandatory in response to CCA request. 12811 * Maximum RSSI of Intra BSS traffic in the assessment cycle. 12812 * 12813 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI: 12814 * s32 attribute. Mandatory in response to CCA request. 12815 * Minimum RSSI of Intra BSS traffic in the assessment cycle. 12816 * 12817 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE: 12818 * u8 attribute. Mandatory in congestion report request. 12819 * 1-enable 0-disable. 12820 * 12821 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD: 12822 * u8 attribute. Mandatory in congestion report enable request and will be 12823 * ignored if present in congestion report disable request. Possible values are 12824 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type 12825 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if 12826 * congestion percentage reaches the configured threshold. 12827 * 12828 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL: 12829 * u8 attribute. Optional in congestion report enable request and will be 12830 * ignored if present in congestion report disable request. 12831 * Specify the interval of congestion report event in terms of seconds. Possible 12832 * values are 1-255. Default value 1 will be used if this attribute is omitted 12833 * or using invalid values. 12834 * 12835 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE: 12836 * u8 attribute. Mandatory in congestion report event. 12837 * Indicate the actual congestion percentage. Possible values are 0-100. 12838 */ 12839 enum qca_wlan_vendor_attr_medium_assess { 12840 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0, 12841 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1, 12842 12843 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2, 12844 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3, 12845 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4, 12846 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5, 12847 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6, 12848 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7, 12849 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8, 12850 12851 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9, 12852 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10, 12853 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11, 12854 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12, 12855 12856 /* keep last */ 12857 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST, 12858 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX = 12859 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1, 12860 }; 12861 12862 /** 12863 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes 12864 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command. 12865 * 12866 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL: 12867 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1 12868 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV, 12869 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events. 12870 * 12871 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT: 12872 * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event. 12873 * 12874 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID: 12875 * u8 attribute, required. indicates group id of Tx VDEV 12876 * 12877 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO: 12878 * Nested attribute. This attribute shall be used by the driver to send 12879 * group information. The attributes defined in enum 12880 * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info 12881 * are nested in this attribute. 12882 */ 12883 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status { 12884 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0, 12885 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1, 12886 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2, 12887 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3, 12888 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4, 12889 12890 /* keep last */ 12891 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST, 12892 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX = 12893 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1, 12894 }; 12895 12896 /** 12897 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used 12898 * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute. 12899 * 12900 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX: 12901 * u32 attribute, required. contains interface index. 12902 * 12903 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS: 12904 * u8 attribute, required. 0 - means vdev is in down state. 12905 * 1- means vdev is in up state. 12906 */ 12907 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info { 12908 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0, 12909 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1, 12910 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2, 12911 12912 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST, 12913 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX = 12914 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1, 12915 }; 12916 12917 /** 12918 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type 12919 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame 12920 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame 12921 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request 12922 * frame 12923 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation 12924 * Request frame. 12925 */ 12926 enum qca_wlan_vendor_oci_override_frame_type { 12927 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1, 12928 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2, 12929 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3, 12930 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4, 12931 }; 12932 12933 /** 12934 * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies 12935 * 12936 * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary 12937 * STA interface has to be given while selecting the connection policies 12938 * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface. 12939 * An interface is set as primary through the attribute 12940 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not 12941 * applicable if the primary interface has not been set earlier. 12942 * 12943 * The intention is not to downgrade the primary STA performance, such as: 12944 * - Do not reduce the number of TX/RX chains of primary connection. 12945 * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of 12946 * chains. 12947 * - If using MCC, should set the MCC duty cycle of the primary connection to 12948 * be higher than the secondary connection. 12949 * 12950 * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the 12951 * subsequent STA connection shall be chosen to balance with the existing 12952 * concurrent STA's performance. 12953 * Such as 12954 * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware 12955 * capability. 12956 * - If using MCC, set the MCC duty cycle of the primary connection to be equal 12957 * to the secondary. 12958 * - Prefer BSSID candidates which will help provide the best "overall" 12959 * performance for all the STA connections. 12960 */ 12961 enum qca_wlan_concurrent_sta_policy_config { 12962 QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0, 12963 QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1, 12964 }; 12965 12966 /** 12967 * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies 12968 * 12969 * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP 12970 * interface. 12971 * 12972 * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies 12973 * to meet gaming audio latency requirements. 12974 * 12975 * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface 12976 * concurrencies to meet lossless audio streaming requirements. 12977 * 12978 * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet 12979 * XR (eXtended Reality) requirements. 12980 */ 12981 enum qca_wlan_concurrent_ap_policy_config { 12982 QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0, 12983 QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1, 12984 QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2, 12985 QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3, 12986 }; 12987 12988 /** 12989 * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes 12990 * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command. 12991 * 12992 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG: 12993 * u8 attribute. Configures the concurrent STA policy configuration. 12994 * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config. 12995 12996 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG: 12997 * u8 attribute. Configures the concurrent AP policy configuration. 12998 * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config. 12999 */ 13000 enum qca_wlan_vendor_attr_concurrent_policy { 13001 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0, 13002 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1, 13003 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2, 13004 13005 /* keep last */ 13006 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST, 13007 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX = 13008 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1, 13009 13010 }; 13011 13012 /* Compatibility defines for previously used enum 13013 * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used 13014 * in any new implementation. 13015 */ 13016 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \ 13017 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG 13018 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \ 13019 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX 13020 #define qca_wlan_vendor_attr_concurrent_sta_policy \ 13021 qca_wlan_vendor_attr_concurrent_policy 13022 13023 /** 13024 * enum qca_sta_connect_fail_reason_codes - Defines values carried 13025 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor 13026 * attribute. 13027 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received 13028 * for unicast probe request. 13029 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request. 13030 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for 13031 * ath request. 13032 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not 13033 * received from AP. 13034 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc 13035 * request. 13036 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for 13037 * assoc request. 13038 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not 13039 * received from AP. 13040 */ 13041 enum qca_sta_connect_fail_reason_codes { 13042 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1, 13043 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2, 13044 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3, 13045 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4, 13046 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5, 13047 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6, 13048 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7, 13049 }; 13050 13051 /** 13052 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for 13053 * OCI override request. These attributes are used inside nested attribute 13054 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command 13055 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 13056 * 13057 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8. 13058 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this 13059 * attribute to specify the frame type in which the OCI is to be overridden. 13060 * 13061 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32) 13062 * OCI frequency (in MHz) to override in the specified frame type. 13063 */ 13064 enum qca_wlan_vendor_attr_oci_override { 13065 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0, 13066 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1, 13067 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2, 13068 13069 /* keep last */ 13070 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST, 13071 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX = 13072 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1, 13073 }; 13074 13075 /** 13076 * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different 13077 * filters defined in this enum are used in attribute 13078 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK. 13079 * 13080 * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver 13081 * shall filter the channels which are not usable because of coexistence with 13082 * cellular radio. 13083 * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver 13084 * shall filter the channels which are not usable because of existing active 13085 * interfaces in the driver and will result in Multi Channel Concurrency, etc. 13086 * 13087 */ 13088 enum qca_wlan_vendor_usable_channels_filter { 13089 QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0, 13090 QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1, 13091 }; 13092 13093 /** 13094 * enum qca_wlan_vendor_attr_chan_info - Attributes used inside 13095 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute. 13096 * 13097 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ: 13098 * u32 attribute, required. Indicates the center frequency of the primary 13099 * channel in MHz. 13100 * 13101 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ: 13102 * u32 attribute. Indicates the center frequency of the primary segment of the 13103 * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz, 13104 * 160 MHz, and 320 MHz channels. 13105 * 13106 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ: 13107 * u32 attribute. Indicates the center frequency of the secondary segment of 13108 * 80+80 channel in MHz. This attribute is required only when 13109 * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80. 13110 * 13111 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH: 13112 * u32 attribute, required. Indicates the bandwidth of the channel, possible 13113 * values are defined in enum nl80211_chan_width. 13114 * 13115 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK: 13116 * u32 attribute, required. Indicates all the interface types for which this 13117 * channel is usable. This attribute encapsulates bitmasks of interface types 13118 * defined in enum nl80211_iftype. 13119 * 13120 */ 13121 enum qca_wlan_vendor_attr_chan_info { 13122 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0, 13123 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1, 13124 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2, 13125 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3, 13126 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4, 13127 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5, 13128 13129 /* keep last */ 13130 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST, 13131 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX = 13132 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1, 13133 }; 13134 13135 /** 13136 * enum qca_wlan_vendor_attr_usable_channels - Attributes used by 13137 * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command. 13138 * 13139 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK: 13140 * u32 attribute. Indicates the bands from which the channels should be reported 13141 * in response. This attribute encapsulates bit masks of bands defined in enum 13142 * nl80211_band. Optional attribute, if not present in the request the driver 13143 * shall return channels from all supported bands. 13144 * 13145 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK: 13146 * u32 attribute. Indicates all the interface types for which the usable 13147 * channels information is requested. This attribute encapsulates bitmasks of 13148 * interface types defined in enum nl80211_iftype. Optional attribute, if not 13149 * present in the request the driver shall send information of all supported 13150 * interface modes. 13151 * 13152 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK: 13153 * u32 attribute. This attribute carries information of all filters that shall 13154 * be applied while populating usable channels information by the driver. This 13155 * attribute carries bit masks of different filters defined in enum 13156 * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present 13157 * in the request the driver shall send information of channels without applying 13158 * any of the filters that can be configured through this attribute. 13159 * 13160 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO: 13161 * Nested attribute. This attribute shall be used by the driver to send 13162 * usability information of each channel. The attributes defined in enum 13163 * qca_wlan_vendor_attr_chan_info are used inside this attribute. 13164 */ 13165 enum qca_wlan_vendor_attr_usable_channels { 13166 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0, 13167 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1, 13168 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2, 13169 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3, 13170 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4, 13171 13172 /* keep last */ 13173 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST, 13174 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX = 13175 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1, 13176 }; 13177 13178 /** 13179 * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command 13180 * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history. 13181 * 13182 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry 13183 * the list of radar history entries. 13184 * Each entry contains freq, timestamp, and radar signal detect flag. 13185 * The driver shall add an entry when CAC has finished, or radar signal 13186 * has been detected post AP beaconing. The driver shall maintain at least 13187 * 8 entries in order to save CAC result for a 160 MHz channel. 13188 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute. 13189 * Channel frequency in MHz. 13190 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds. 13191 * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC 13192 * or radar detection. 13193 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute. 13194 * This flag indicates radar signal has been detected. 13195 */ 13196 enum qca_wlan_vendor_attr_radar_history { 13197 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0, 13198 13199 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1, 13200 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2, 13201 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3, 13202 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4, 13203 13204 /* keep last */ 13205 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST, 13206 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX = 13207 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1, 13208 }; 13209 13210 /** 13211 * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type 13212 * 13213 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the 13214 * target exited MCC state and cleared the quota information. In the 13215 * command it clears MCC quota setting and restores adaptive scheduling. 13216 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and 13217 * will not be changed. 13218 * This quota type is present in command/event. 13219 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic 13220 * and the target may change the quota based on the data activity. 13221 * This quota type is only present in event. 13222 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized 13223 * by the target for low latency. 13224 * This quota type is only present in command. 13225 */ 13226 enum qca_wlan_vendor_mcc_quota_type { 13227 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0, 13228 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1, 13229 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2, 13230 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3, 13231 }; 13232 13233 /** 13234 * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event 13235 * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel 13236 * quota information or as a command to set the required MCC quota for an 13237 * interface. 13238 * 13239 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute. 13240 * The type is defined in enum qca_wlan_vendor_mcc_quota_type. 13241 * In a command this specifies the MCC quota type to be set for the interface. 13242 * In an event this provides the current quota type in force. 13243 * This is required in a command and an event. 13244 * 13245 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry 13246 * the list of channel quota entries. 13247 * In an event each entry contains the frequency and respective time quota for 13248 * all the MCC interfaces. 13249 * In a command it specifies the interface index and respective time quota. 13250 * In a command only one entry (ifindex, quota pair) may be specified. 13251 * 13252 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute. 13253 * Channel frequency in MHz. This is present only in an event. 13254 * 13255 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute. 13256 * Channel time quota expressed as percentage. 13257 * This is present in an event and a command. 13258 * In an command, the user shall specify the quota to be allocated for the 13259 * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX. 13260 * In an event this provides the existing quota for the channel. 13261 * 13262 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute. 13263 * Specifies the interface index (netdev) for which the corresponding 13264 * configurations are applied. This is required in a command only. Only one 13265 * interface index may be specified. If not specified, the configuration is 13266 * rejected. 13267 * 13268 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE 13269 * 8-bit unsigned value to enable/disable Multi-Channel Concurrency 13270 * low latency mode. The firmware will do optimization for low 13271 * latency in Multi-Channel concurrency state if enabled. And all existing 13272 * user quota setting will be overwritten by the target. 13273 * 0 - disable(default), 1 - enable. 13274 * It is only present in a command with quota type of 13275 * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY. 13276 */ 13277 enum qca_wlan_vendor_attr_mcc_quota { 13278 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0, 13279 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1, 13280 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2, 13281 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3, 13282 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4, 13283 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5, 13284 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6, 13285 13286 /* keep last */ 13287 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST, 13288 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX = 13289 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1, 13290 }; 13291 13292 /** 13293 * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values 13294 * are used by the attribute 13295 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON. 13296 * 13297 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target 13298 * invoke roam. 13299 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable 13300 * detection failed when the roam trigger. 13301 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space. 13302 */ 13303 13304 enum qca_wlan_roam_stats_invoke_reason { 13305 QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0, 13306 QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1, 13307 QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2, 13308 }; 13309 13310 /** 13311 * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These 13312 * values are used by the attribute 13313 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON. 13314 * 13315 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when 13316 * roam by kickout. 13317 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam 13318 * trigger by kickout. 13319 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when 13320 * roam trigger by kickout. 13321 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when 13322 * roam trigger by kickout. 13323 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has 13324 * disappeared, and all TX is failing when roam trigger by kickout. 13325 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process 13326 * timeout when roam trigger by kickout. 13327 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected 13328 * peer has roamed to a repeater. 13329 */ 13330 enum qca_wlan_roam_stats_tx_failures_reason { 13331 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0, 13332 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1, 13333 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2, 13334 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3, 13335 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4, 13336 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5, 13337 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6, 13338 }; 13339 13340 /** 13341 * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values 13342 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON. 13343 * 13344 * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the 13345 * detailed reason for roam scan being aborted. 13346 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not 13347 * started due to high data RSSI during LOW-RSSI roaming. 13348 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not 13349 * started due to good link speed during LOW-RSSI roaming. 13350 * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started 13351 * due to high data RSSI during background roaming. 13352 * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not 13353 * started due to high beacon RSSI during background roaming 13354 */ 13355 enum qca_wlan_roam_stats_abort_reason { 13356 QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0, 13357 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1, 13358 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2, 13359 QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3, 13360 QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4, 13361 }; 13362 13363 /** 13364 * enum qca_wlan_roam_stats_scan_type - Roam scan type define. 13365 * These values are used by the attribute 13366 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE. 13367 * 13368 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan 13369 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan 13370 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered. 13371 * This is generally used in BTM events to indicate BTM frame exchange logs. 13372 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan 13373 * from 2.4 GHz to 5 GHz or 6 GHz 13374 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from 13375 * 5 GHz to 6 GHz 13376 */ 13377 enum qca_wlan_roam_stats_scan_type { 13378 QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0, 13379 QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1, 13380 QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2, 13381 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3, 13382 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4, 13383 }; 13384 13385 /** 13386 * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type. 13387 * These values are used by the attribute 13388 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE. 13389 * 13390 * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the 13391 * detailed roam scan type. 13392 * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam. 13393 * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam. 13394 */ 13395 enum qca_wlan_roam_stats_scan_dwell_type { 13396 QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0, 13397 QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1, 13398 QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2, 13399 }; 13400 13401 /** 13402 * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside 13403 * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute. 13404 */ 13405 enum qca_wlan_vendor_attr_roam_stats_scan_chan_info { 13406 /* 32-bit unsigned value to indicate center frequency of the primary 13407 * channel in MHz for each roam scan channel. 13408 */ 13409 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1, 13410 /* 8-bit unsigned value to indicate channel scan type for each 13411 * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type. 13412 */ 13413 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2, 13414 /* 32-bit unsigned value to indicate maximum scan time in milliseconds 13415 * for each roam scan channel. 13416 */ 13417 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3, 13418 13419 /* keep last */ 13420 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST, 13421 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX = 13422 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1, 13423 }; 13424 13425 /** 13426 * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values 13427 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE. 13428 * 13429 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP: Authentication Response frame 13430 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP: Reassociation Response frame 13431 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame 13432 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame 13433 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame 13434 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame 13435 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame 13436 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame 13437 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ: Authentication Request frame 13438 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ: Reassociation Request frame 13439 */ 13440 enum qca_wlan_roam_stats_frame_subtype { 13441 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP = 1, 13442 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP = 2, 13443 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3, 13444 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4, 13445 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5, 13446 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6, 13447 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7, 13448 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8, 13449 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ = 9, 13450 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ = 10, 13451 }; 13452 13453 /* Compatibility defines for previously used names. 13454 * These values should not be used in any new implementation. 13455 */ 13456 #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH \ 13457 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP 13458 #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC \ 13459 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP 13460 13461 /** 13462 * enum roam_frame_status - Specifies the valid values the vendor roam frame 13463 * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take. 13464 * 13465 * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was 13466 * sent or received successfully. 13467 * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or 13468 * receiving failed. 13469 */ 13470 enum qca_wlan_roam_stats_frame_status { 13471 QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0, 13472 QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1, 13473 }; 13474 13475 /** 13476 * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the 13477 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute. 13478 */ 13479 enum qca_wlan_vendor_attr_roam_stats_frame_info { 13480 /* 8-bit unsigned value to indicate the frame subtype during 13481 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype. 13482 */ 13483 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1, 13484 /* 8-bit unsigned value to indicate the frame is successful or failed 13485 * during roaming, one of the values in 13486 * qca_wlan_roam_stats_frame_status. 13487 */ 13488 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2, 13489 /* 64-bit unsigned value to indicate the timestamp for frame of 13490 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4 13491 * when sent or received during roaming, timestamp in milliseconds 13492 * from system boot. 13493 */ 13494 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3, 13495 /* This attribute indicates a 6-byte MAC address representing 13496 * the BSSID of the AP. 13497 * For non-MLO scenario, it indicates the AP BSSID. 13498 * For MLO scenario, it indicates the AP BSSID which may be the primary 13499 * link BSSID or a nonprimary link BSSID. 13500 */ 13501 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_BSSID = 5, 13502 13503 13504 /* keep last */ 13505 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST, 13506 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX = 13507 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1, 13508 }; 13509 13510 /** 13511 * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute 13512 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO. 13513 */ 13514 enum qca_wlan_vendor_attr_roam_stats_info { 13515 /* 64-bit unsigned value to indicate the timestamp when roam was 13516 * triggered by the firmware, timestamp in milliseconds from system 13517 * boot. 13518 */ 13519 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1, 13520 /* 32-bit unsigned value to indicate the roam trigger reason for the 13521 * last roaming attempted by the firmware. This can be queried either 13522 * in a connected state or disconnected state. The values of this 13523 * attribute represent the roam trigger reason codes, which 13524 * are defined in enum qca_roam_reason. 13525 */ 13526 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2, 13527 /* 8-bit unsigned value to indicate percentage of packets for which 13528 * the RX rate is lower than the RX rate threshold in total RX packets, 13529 * used for roaming trigger by per. 13530 */ 13531 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3, 13532 /* 8-bit unsigned value to indicate percentage of packets for which 13533 * the TX rate is lower than TX rate threshold in total TX packets, 13534 * used for roaming trigger by per. 13535 */ 13536 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4, 13537 /* 32-bit unsigned value to indicate final beacon miss count for 13538 * trigger reason of beacon miss. 13539 */ 13540 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5, 13541 /* 32-bit unsigned value to indicate consecutive beacon miss count 13542 * for trigger reason of beacon miss. 13543 */ 13544 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6, 13545 /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger 13546 * reason of beacon miss, 0 - success, 1 - fail. 13547 * If QOS-NULL TX status is successful, beacon miss final count and 13548 * consecutive beacon miss count will be reset to zero, and roam will 13549 * not be triggered. If QOS-NULL TX status is failed, beacon miss final 13550 * count and consecutive beacon miss count continue to calculate until 13551 * roaming trigger by beacon miss. 13552 */ 13553 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7, 13554 /* 8-bit signed value to indicate connected AP RSSI in dBm 13555 * for trigger reason of poor RSSI. 13556 */ 13557 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8, 13558 /* 8-bit signed value to indicate RSSI threshold value in dBm 13559 * for trigger reason of poor RSSI. 13560 */ 13561 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9, 13562 /* 8-bit unsigned value to indicate RX link speed status 13563 * for trigger reason of poor RSSI, 0 - good link speed, 13564 * 1 - bad link speed. 13565 */ 13566 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10, 13567 /* 8-bit signed value to indicate connected AP RSSI in dBm 13568 * for trigger reason of better RSSI. 13569 */ 13570 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11, 13571 /* 8-bit signed value to indicate RSSI threshold value in dBm 13572 * for trigger reason of better RSSI. 13573 */ 13574 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12, 13575 /* 32-bit unsigned value to indicate RX throughput in bytes per second 13576 * for trigger reason of congestion. 13577 */ 13578 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13, 13579 /* 32-bit unsigned value to indicate TX throughput in bytes per second 13580 * for trigger reason of congestion. 13581 */ 13582 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14, 13583 /* 8-bit unsigned value to indicate roamable AP count 13584 * for trigger reason of congestion. 13585 */ 13586 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15, 13587 /* 8-bit unsigned value to indicate invoke reason, one of the values 13588 * defined in qca_wlan_roam_stats_invoke_reason. 13589 */ 13590 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16, 13591 /* 8-bit unsigned value to indicate request mode for trigger reason 13592 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9. 13593 */ 13594 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17, 13595 /* 32-bit unsigned value to indicate disassociate time in milliseconds 13596 * for trigger reason of BTM. 13597 */ 13598 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18, 13599 /* 32-bit unsigned value to indicate preferred candidate list valid 13600 * interval in milliseconds for trigger reason of BTM. 13601 */ 13602 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19, 13603 /* 8-bit unsigned value to indicate the number of preferred 13604 * candidates for trigger reason of BTM. 13605 */ 13606 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20, 13607 /* 8-bit unsigned value to indicate response status for trigger 13608 * reason of BTM, values are defined in IEEE Std 802.11-2020, 13609 * Table 9-428 (BTM status code definitions). 13610 */ 13611 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21, 13612 /* 32-bit unsigned value to indicate BSS termination timeout value 13613 * in milliseconds for trigger reason of BTM. 13614 */ 13615 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22, 13616 /* 32-bit unsigned value to indicate MBO associate retry timeout 13617 * value in milliseconds for trigger reason of BTM. 13618 */ 13619 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23, 13620 /* 8-bit unsigned value to indicate dialog token number 13621 * for trigger reason of BTM. 13622 */ 13623 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24, 13624 /* 8-bit unsigned value to indicate percentage of connected AP 13625 * channel congestion utilization for trigger reason of BSS load. 13626 */ 13627 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25, 13628 /* 8-bit unsigned value to indicate disconnection type 13629 * for trigger reason of disconnection. 1 - Deauthentication, 13630 * 2 - Disassociation. 13631 */ 13632 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26, 13633 /* 16-bit unsigned value to indicate deauthentication or disassociation 13634 * reason for trigger reason of disconnection, values are defined 13635 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes). 13636 */ 13637 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27, 13638 /* 32-bit unsigned value to indicate milliseconds of roam scan 13639 * periodicity when needing to roam to find a better AP for trigger 13640 * reason of periodic timer. 13641 */ 13642 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28, 13643 /* 8-bit signed value to indicate connected AP RSSI in dBm for 13644 * trigger reason of background scan. 13645 */ 13646 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29, 13647 /* 8-bit signed value to indicate data RSSI in dBm for trigger reason 13648 * of background scan. 13649 */ 13650 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30, 13651 /* 8-bit signed value to indicate data RSSI threshold in dBm 13652 * for trigger reason of background scan. 13653 */ 13654 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31, 13655 /* 32-bit unsigned value to indicate consecutive TX failure threshold 13656 * for trigger reason of TX failures. 13657 */ 13658 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32, 13659 /* 8-bit unsigned value to indicate TX failure reason for trigger 13660 * reason of TX failures, one of the values defined in 13661 * qca_wlan_roam_stats_tx_failures_reason. 13662 */ 13663 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33, 13664 /* 8-bit unsigned value to indicate detail abort reason. One of the 13665 * values in enum qca_wlan_roam_stats_abort_reason. 13666 */ 13667 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34, 13668 /* 8-bit signed value to indicate data RSSI in dBm when aborting the 13669 * roam scan. 13670 */ 13671 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35, 13672 /* 8-bit signed value to indicate data RSSI threshold in dBm when 13673 * aborting the roam scan. 13674 */ 13675 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36, 13676 /* 8-bit unsigned value to indicate data RSSI threshold in RX link 13677 * speed status when aborting the roam scan. 13678 * 0 - good link speed, 1 - bad link speed 13679 */ 13680 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37, 13681 /* 8-bit unsigned value to indicate roaming scan type. 13682 * One of the values in enum qca_wlan_roam_stats_scan_type. 13683 */ 13684 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38, 13685 /* 8-bit unsigned value to indicate roaming result, used in STA mode 13686 * only. 13687 * 0-Roaming is successful, 1-Roaming is failed 13688 */ 13689 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39, 13690 /* 8-bit unsigned value to indicate the roam fail reason for the 13691 * last failed roaming attempt by the firmware. Different roam failure 13692 * reason codes are specified in enum qca_vendor_roam_fail_reasons. 13693 * This can be queried either in connected state or disconnected state. 13694 */ 13695 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40, 13696 /* Nested attribute. Indicate roam scan info for each channel, the 13697 * attributes defined in enum 13698 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside 13699 * this attribute. 13700 */ 13701 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41, 13702 /* 32-bit unsigned value to indicate total scan time during roam scan 13703 * all channels, time in milliseconds. 13704 */ 13705 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42, 13706 /* Nested attribute. This attribute shall be used by the driver to 13707 * send roam information of each subtype. The attributes defined in 13708 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside 13709 * this attribute. 13710 */ 13711 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43, 13712 /* 6-byte MAC address used by the driver to send roam stats information 13713 * of the original AP BSSID. The original AP is the connected AP before 13714 * roam happens, regardless of the roam resulting in success or failure. 13715 * This attribute is only present when 13716 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of 13717 * 0 (success) or 1 (failure). 13718 * For non-MLO scenario, it indicates the original connected AP BSSID. 13719 * For MLO scenario, it indicates the original BSSID of the link 13720 * for which the reassociation occurred during the roam. 13721 */ 13722 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45, 13723 /* 6-byte MAC address used by the driver to send roam stats information 13724 * of the roam candidate AP BSSID when roam failed. This is only present 13725 * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of 13726 * 1 (failure). If the firmware updates more than one candidate AP BSSID 13727 * to the driver, the driver only fills the last candidate AP BSSID and 13728 * reports it to user space. 13729 * For non-MLO scenario, it indicates the last candidate AP BSSID. 13730 * For MLO scenario, it indicates the AP BSSID which may be the primary 13731 * link BSSID or a nonprimary link BSSID. 13732 */ 13733 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46, 13734 /* 6-byte MAC address used by the driver to send roam stats information 13735 * of the roamed AP BSSID when roam succeeds. This is only present when 13736 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of 13737 * 0 (success). 13738 * For non-MLO scenario, it indicates the new AP BSSID to which has 13739 * been successfully roamed. 13740 * For MLO scenario, it indicates the new AP BSSID of the link on 13741 * which the reassociation occurred during the roam. 13742 */ 13743 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47, 13744 13745 /* keep last */ 13746 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST, 13747 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX = 13748 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1, 13749 }; 13750 13751 /** 13752 * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to 13753 * report cached roam info from the driver to user space, enum values are used 13754 * for netlink attributes sent with the 13755 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command. 13756 */ 13757 enum qca_wlan_vendor_attr_roam_cached_stats { 13758 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0, 13759 /* Nested attribute, this attribute contains nested array roam info 13760 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info. 13761 */ 13762 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1, 13763 13764 /* keep last */ 13765 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST, 13766 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX = 13767 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1, 13768 }; 13769 13770 /** 13771 * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for 13772 * radio configurations present in each radio combination. 13773 * 13774 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates 13775 * the band info in the radio configuration. Uses the enum qca_set_band values. 13776 * 13777 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates 13778 * the number of antennas info in the radio configuration. 13779 */ 13780 enum qca_wlan_vendor_attr_supported_radio_cfg { 13781 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0, 13782 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1, 13783 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2, 13784 13785 /* keep last */ 13786 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST, 13787 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX = 13788 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1, 13789 }; 13790 13791 /** 13792 * enum qca_wlan_vendor_attr_radio_combination - Attributes for 13793 * radio combinations supported by the device. 13794 * 13795 * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute 13796 * provides the radio configurations present in the radio combination. 13797 * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes. 13798 * This attribute provides the values for radio combination matrix. 13799 * For standalone config, the number of config values is one and the config 13800 * carries the band and antenna information for standalone configuration. For 13801 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode 13802 * configuration the number of config values is two and the config carries the 13803 * band and antenna information for each simultaneous radio. 13804 */ 13805 enum qca_wlan_vendor_attr_radio_combination { 13806 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0, 13807 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1, 13808 13809 /* keep last */ 13810 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST, 13811 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX = 13812 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1, 13813 }; 13814 13815 /** 13816 * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by 13817 * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX 13818 * 13819 * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute 13820 * provides the radio combinations supported by the device. 13821 * Uses the enum qca_wlan_vendor_attr_radio_combination attributes. 13822 * For example, in the radio combination matrix for a device which has two 13823 * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is 13824 * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio 13825 * combinations is 5 and the radio combinations are 13826 * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz 13827 * {{5 GHz 2X2}}, //Standalone 5 GHz 13828 * {{6 GHz 2X2}}, //Standalone 6 GHz 13829 * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS 13830 * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS 13831 * The band and antenna info together as nested data provides one radio config. 13832 * Standalone configuration has one config with band and antenna nested data. 13833 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration 13834 * have two nested band and antenna info data. 13835 */ 13836 enum qca_wlan_vendor_attr_radio_combination_matrix { 13837 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0, 13838 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1, 13839 13840 /* keep last */ 13841 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST, 13842 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX = 13843 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1, 13844 }; 13845 13846 /** 13847 * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by 13848 * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command. 13849 * 13850 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag) 13851 * Enable mDNS offload. This attribute is mandatory to enable 13852 * mDNS offload feature. If this attribute is not present, mDNS offload 13853 * is disabled. 13854 * 13855 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing 13856 * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This 13857 * attribute is mandatory when enabling the feature, and not required when 13858 * disabling the feature. 13859 * 13860 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing 13861 * the following attributes: 13862 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN 13863 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT 13864 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD 13865 * 13866 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute. 13867 * It consists of a hostname and ".local" as the domain name. The character 13868 * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes. 13869 * It is used to compare the domain the in the "QU" query. Only 1 FQDN is 13870 * supported per vdev. 13871 * For example: myphone.local 13872 * 13873 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required 13874 * u16 attribute. It specifies the total number of resource records present 13875 * in the answer section of the answer payload. This attribute is needed by the 13876 * firmware to populate the mDNS response frame for mNDS queries without having 13877 * to parse the answer payload. 13878 * 13879 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob 13880 * attribute sent by the mdnsResponder from userspace. It contains resource 13881 * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This 13882 * payload is passed down to firmware and is transmitted in response to 13883 * mDNS queries. 13884 * The maximum size of the answer payload supported is 512 bytes. 13885 */ 13886 enum qca_wlan_vendor_attr_mdns_offload { 13887 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0, 13888 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1, 13889 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2, 13890 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3, 13891 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4, 13892 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5, 13893 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6, 13894 13895 /* keep last */ 13896 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST, 13897 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX = 13898 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1, 13899 }; 13900 13901 /** 13902 * enum qca_vendor_attr_diag_event_type - Attributes used by 13903 * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute. 13904 * 13905 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from 13906 * driver/firmware during Connection request from Userspace. Uses the 13907 * following attributes of enum qca_wlan_vendor_attr_diag: 13908 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13909 * QCA_WLAN_VENDOR_ATTR_DIAG_SSID, 13910 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13911 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT, 13912 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 13913 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT, 13914 * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE, 13915 * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE, 13916 * QCA_WLAN_VENDOR_ATTR_DIAG_AKM, 13917 * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO, 13918 * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE, 13919 * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE, 13920 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13921 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13922 * 13923 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from 13924 * driver/firmware when a connection is failed. Uses the 13925 * following attributes of enum qca_wlan_vendor_attr_diag: 13926 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13927 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13928 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 13929 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13930 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 13931 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13932 * 13933 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from 13934 * driver/firmware during Authentication request from a device. Uses the 13935 * following attributes of enum qca_wlan_vendor_attr_diag: 13936 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13937 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13938 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13939 * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO, 13940 * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE, 13941 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13942 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 13943 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 13944 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13945 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13946 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13947 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13948 * 13949 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from 13950 * driver/firmware when device receives an authentication response. Uses the 13951 * following attributes of enum qca_wlan_vendor_attr_diag: 13952 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13953 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13954 * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO, 13955 * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE, 13956 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13957 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 13958 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13959 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13960 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13961 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13962 * 13963 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from 13964 * driver/firmware when device sends an association request. Uses the 13965 * following attributes of enum qca_wlan_vendor_attr_diag: 13966 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13967 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13968 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13969 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13970 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 13971 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13972 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13973 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13974 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13975 * 13976 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from 13977 * driver/firmware when device receives an association response. Uses the 13978 * following attributes of enum qca_wlan_vendor_attr_diag: 13979 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13980 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13981 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13982 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 13983 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13984 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13985 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13986 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 13987 * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID. 13988 * 13989 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from 13990 * driver/userspace when device receives a deauthentication response. Uses the 13991 * following attributes of enum qca_wlan_vendor_attr_diag: 13992 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13993 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13994 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13995 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13996 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 13997 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13998 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13999 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14000 * 14001 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from 14002 * driver/userspace when device sends a deauthentication request. Uses the 14003 * following attributes of enum qca_wlan_vendor_attr_diag: 14004 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14005 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14006 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 14007 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 14008 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 14009 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14010 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 14011 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14012 * 14013 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from 14014 * driver/firmware when device receives a disassociation response. Uses the 14015 * following attributes of enum qca_wlan_vendor_attr_diag: 14016 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14017 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14018 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 14019 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 14020 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 14021 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14022 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 14023 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14024 * 14025 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from 14026 * driver/firmware when device sends a disassociation request. Uses the 14027 * following attributes of enum qca_wlan_vendor_attr_diag: 14028 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14029 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14030 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 14031 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 14032 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 14033 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14034 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 14035 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14036 * 14037 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from 14038 * driver/firmware when device did not receive beacon packets during connection. 14039 * Uses the following attributes of enum qca_wlan_vendor_attr_diag: 14040 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14041 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14042 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 14043 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 14044 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14045 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14046 * 14047 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from 14048 * driver/firmware when Roaming scan is triggered. Uses the following 14049 * attributes of enum qca_wlan_vendor_attr_diag: 14050 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14051 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON, 14052 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON, 14053 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 14054 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU, 14055 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE, 14056 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD, 14057 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14058 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14059 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14060 * 14061 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from 14062 * driver/firmware Roam scanning is processed. Uses the following 14063 * attributes of enum qca_wlan_vendor_attr_diag: 14064 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14065 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK, 14066 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST, 14067 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT, 14068 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 14069 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14070 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14071 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 14072 * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE. 14073 * 14074 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from 14075 * driver/firmware to provide Roam information of the current AP. Uses the 14076 * following attributes of enum qca_wlan_vendor_attr_diag: 14077 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14078 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14079 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 14080 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 14081 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU, 14082 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE, 14083 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14084 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14085 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14086 * 14087 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from 14088 * driver/firmware to provide Roam information of the candid AP. Uses the 14089 * following attributes of enum qca_wlan_vendor_attr_diag: 14090 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14091 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14092 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 14093 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 14094 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU, 14095 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE, 14096 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP, 14097 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK, 14098 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14099 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14100 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14101 * 14102 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from 14103 * driver/firmware to provide Roam result after selecting a candidate. Uses the 14104 * following attributes of enum qca_wlan_vendor_attr_diag: 14105 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14106 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL, 14107 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14108 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14109 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14110 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14111 * 14112 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from 14113 * driver/firmware to indicate Roam Cancellation due to higher priority events. 14114 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14115 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14116 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14117 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 14118 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14119 * 14120 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver 14121 * /firmware when STA sends a BTM request frame. Uses the following attributes 14122 * of enum qca_wlan_vendor_attr_diag: 14123 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14124 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN, 14125 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE, 14126 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER, 14127 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL, 14128 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT, 14129 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14130 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14131 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14132 * 14133 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from 14134 * driver/firmware when STA queries about BTM transition. Uses the following 14135 * attributes of enum qca_wlan_vendor_attr_diag: 14136 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14137 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN, 14138 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON, 14139 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14140 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14141 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14142 * 14143 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver 14144 * /firmware when STA receives BTM response frame. Uses the following 14145 * attributes of enum qca_wlan_vendor_attr_diag: 14146 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14147 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN, 14148 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE, 14149 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY, 14150 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID, 14151 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14152 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14153 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14154 * 14155 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from 14156 * driver/firmware to provide BTM request candidate information. Uses the 14157 * following attributes of enum qca_wlan_vendor_attr_diag: 14158 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14159 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14160 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE, 14161 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK, 14162 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14163 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14164 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14165 * 14166 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver 14167 * /firmware when ROAM WTC trigger happens. Uses the following attributes of 14168 * enum qca_wlan_vendor_attr_diag: 14169 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14170 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE, 14171 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 14172 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION, 14173 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14174 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14175 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14176 * 14177 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from 14178 * driver/firmware to indicate DHCP discovery to AP. Uses the following 14179 * attributes of enum qca_wlan_vendor_attr_diag: 14180 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14181 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14182 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14183 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14184 * 14185 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from 14186 * driver/firmware to indicate DHCP offering to AP. Uses the following 14187 * attributes of enum qca_wlan_vendor_attr_diag: 14188 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14189 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14190 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14191 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14192 * 14193 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from 14194 * driver/firmware to indicate driver sent DHCP packets. Uses the following 14195 * attributes of enum qca_wlan_vendor_attr_diag: 14196 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14197 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14198 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14199 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14200 * 14201 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver 14202 * /firmware to indicate acknowledgement of DHCP packets. Uses the following 14203 * attributes of enum qca_wlan_vendor_attr_diag: 14204 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14205 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14206 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14207 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14208 * 14209 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver 14210 * /firmware to indicate negative acknowledgement of DHCP packets. Uses the 14211 * following attributes of enum qca_wlan_vendor_attr_diag: 14212 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14213 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14214 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14215 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14216 * 14217 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver 14218 * /firmware to indicate EAPOL M1 message. Uses the following attributes of 14219 * enum qca_wlan_vendor_attr_diag: 14220 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14221 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14222 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14223 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14224 * 14225 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver 14226 * /firmware to indicate EAPOL M2 message. Uses the following attributes of 14227 * enum qca_wlan_vendor_attr_diag: 14228 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14229 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14230 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14231 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14232 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14233 * 14234 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver 14235 * /firmware to indicate EAPOL M3 message. Uses the following attributes of 14236 * enum qca_wlan_vendor_attr_diag: 14237 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14238 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14239 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14240 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14241 * 14242 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver 14243 * /firmware to indicate EAPOL M4 message. Uses the following attributes of 14244 * enum qca_wlan_vendor_attr_diag: 14245 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14246 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14247 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14248 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14249 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14250 * 14251 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver 14252 * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of 14253 * enum qca_wlan_vendor_attr_diag: 14254 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14255 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14256 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14257 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14258 * 14259 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver 14260 * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of 14261 * enum qca_wlan_vendor_attr_diag: 14262 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14263 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14264 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14265 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14266 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14267 * 14268 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver 14269 * /firmware to indicate device sent EAP request. Uses the following attributes 14270 * of enum qca_wlan_vendor_attr_diag: 14271 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14272 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE, 14273 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN, 14274 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14275 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14276 * 14277 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver 14278 * /firmware to indicate device received EAP response. Uses the following 14279 * attributes of enum qca_wlan_vendor_attr_diag: 14280 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14281 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE, 14282 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN, 14283 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14284 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14285 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14286 * 14287 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver 14288 * /firmware to indicate EAP frame transmission is success. Uses the following 14289 * attributes of enum qca_wlan_vendor_attr_diag: 14290 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14291 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14292 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14293 * 14294 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver 14295 * /firmware to indicate EAP frame transmission is failed. Uses the following 14296 * attributes of enum qca_wlan_vendor_attr_diag: 14297 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14298 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14299 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14300 * 14301 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver 14302 * /firmware to indicate Reassocation request. Uses the following attributes 14303 * of enum qca_wlan_vendor_attr_diag: 14304 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 14305 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14306 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 14307 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 14308 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14309 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14310 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 14311 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP. 14312 * 14313 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver 14314 * /firmware to indicate Reassocation response. Uses the following attributes 14315 * of enum qca_wlan_vendor_attr_diag: 14316 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 14317 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14318 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 14319 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 14320 * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID, 14321 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14322 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 14323 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP. 14324 */ 14325 enum qca_vendor_attr_diag_event_type { 14326 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0, 14327 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1, 14328 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2, 14329 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3, 14330 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4, 14331 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5, 14332 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6, 14333 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7, 14334 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8, 14335 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9, 14336 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10, 14337 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11, 14338 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12, 14339 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13, 14340 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14, 14341 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15, 14342 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16, 14343 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17, 14344 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18, 14345 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19, 14346 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20, 14347 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21, 14348 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22, 14349 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23, 14350 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24, 14351 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25, 14352 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26, 14353 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27, 14354 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28, 14355 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29, 14356 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30, 14357 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31, 14358 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32, 14359 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33, 14360 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34, 14361 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35, 14362 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36, 14363 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37, 14364 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38, 14365 14366 /* keep last */ 14367 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST, 14368 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX = 14369 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1, 14370 }; 14371 14372 /** 14373 * enum qca_wlan_vendor_tx_status - Used by attribute 14374 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status. 14375 * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air. 14376 * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement 14377 * is not received. 14378 * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and 14379 * acknowledged. 14380 */ 14381 enum qca_wlan_vendor_tx_status { 14382 QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1, 14383 QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2, 14384 QCA_WLAN_VENDOR_TX_STATUS_ACK = 3, 14385 }; 14386 14387 /** 14388 * enum qca_roam_sub_reason - Used by attribute 14389 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON 14390 * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic 14391 * timer expiry 14392 * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due 14393 * to no candidate found during LOW RSSI trigger. 14394 * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc 14395 * Imminent timeout 14396 * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan 14397 * failure 14398 * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to 14399 * emergency like deauth/disassoc. 14400 * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to 14401 * BSS transition management request. 14402 * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI: 14403 * Roam scan triggered due to Low RSSI periodic timer 14404 * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU: 14405 * Roam trigger due to periodic timer after no candidate found during CU 14406 * inactivity timer scan. 14407 * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate 14408 * found in high CU roam trigger. 14409 */ 14410 enum qca_roam_sub_reason { 14411 QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1, 14412 QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2, 14413 QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3, 14414 QCA_ROAM_SUB_REASON_FULL_SCAN = 4, 14415 QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5, 14416 QCA_ROAM_SUB_REASON_CU_PERIODIC = 6, 14417 QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7, 14418 QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8, 14419 QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9, 14420 }; 14421 14422 /* 14423 * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver 14424 * to send diag data to the userspace. The attributes defined in this enum are 14425 * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA. 14426 * 14427 * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used 14428 * by driver/firmware to send diag data. Each instance of this nested attribute 14429 * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other 14430 * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the 14431 * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this 14432 * nested attribute can be sent with one vendor command 14433 * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA. 14434 * 14435 * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This 14436 * attribute indicates the type of the diag event from driver/firmware. Uses 14437 * values from enum qca_vendor_attr_diag_event_type. 14438 * 14439 * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This 14440 * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64() 14441 * API to send time of the day in microseconds to userspace. 14442 * 14443 * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute. 14444 * This attribute indicates firmware timestamp in microseconds. 14445 * 14446 * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute 14447 * indicates wlan interface index. 14448 * 14449 * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute 14450 * indicates 6-byte MAC address representing the BSSID of the AP. 14451 * 14452 * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute 14453 * indicates the 6-byte MAC address representing the BSSID hint sent in 14454 * the connect request. 14455 * 14456 * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute 14457 * indicates the SSID in u8 array with a maximum length of 32. 14458 * 14459 * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute 14460 * indicates the frequency of AP in MHz. 14461 * 14462 * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute 14463 * indicates frequency hint given in the connect request in MHz. 14464 * 14465 * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute. 14466 * This attribute indicates RSSI of the 802.11 frame in dBm. 14467 * 14468 * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute. 14469 * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020 14470 * Table 12-10—Integrity and key wrap algorithms. 14471 * 14472 * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute. 14473 * This attribute indicates Group cipher suite defined in IEEE 802.11 2020 14474 * Table 12-10—Integrity and key wrap algorithms. 14475 * 14476 * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This 14477 * attribute indicates Group management cipher suite defined in IEEE Std 14478 * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms. 14479 * 14480 * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute 14481 * indicates Auth key management suite defined in IEEE Std 802.11‐2020 14482 * Table 9-151—AKM suite selectors. 14483 * 14484 * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute 14485 * indicates authentication algorithm number defined in IEEE Std 802.11‐2020 14486 * Section 9.4.1.1 Authentication Algorithm Number field. 14487 * 14488 * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute 14489 * indicates bluetooth COEX is active or not. 14490 * 14491 * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This 14492 * attribute indicates SAE authentication frame type. The possible values are 14493 * 1 - SAE commit frame 14494 * 2 - SAE confirm frame 14495 * 14496 * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This 14497 * attribute indicates the reason codes defined in IEEE Std 802.11‐2020 14498 * Table 9-49—Reason codes. 14499 * 14500 * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This 14501 * attribute indicates sequence number of the frame defined in IEEE Std 14502 * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number 14503 * field. 14504 * 14505 * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This 14506 * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table 14507 * 9-50—Status codes. 14508 * 14509 * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute. 14510 * Uses enum qca_wlan_vendor_tx_status. 14511 * 14512 * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute 14513 * indicates if frame transmission is retried. 14514 * 14515 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute. 14516 * Uses enum qca_roam_reason. 14517 * 14518 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute. 14519 * Uses enum qca_roam_sub_reason. 14520 * 14521 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute 14522 * indicates channel utilization in percentage. 14523 * 14524 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This 14525 * attribute indicates scan type used. Uses enum qca_roam_scan_scheme. 14526 * 14527 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute. 14528 * This attribute indicates current RSSI threshold in dBm. 14529 * 14530 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute. 14531 * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE 14532 * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ. 14533 * 14534 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute. 14535 * This attribute indicates number of scanned candidate APs. 14536 * 14537 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This 14538 * attribute indicates roam AP rank computed based on connection preference. 14539 * 14540 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute. 14541 * This attribute indicates expected throughput in kbps. 14542 * 14543 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute. 14544 * This attribute indicates the preference value of candidate AP / connected AP 14545 * calculated in the firmware. 14546 * 14547 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute 14548 * indicates connection/roaming is successful or not. 14549 * 14550 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute. 14551 * This attribute indicates BTM WTC sub reason code in the WTC vendor specific 14552 * IE present in the BTM frame. 14553 * 14554 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute. 14555 * This attribute indicates BTM WTC duration in milliseconds. 14556 * 14557 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute 14558 * indicates dialog token value of BTM query/request/response frames. 14559 * 14560 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This 14561 * attribute indicates the Transition Reason field indicates the reason why 14562 * a transition attempt occurred and contains one of the values defined in IEEE 14563 * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons. 14564 * 14565 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute 14566 * indicates BTM mode defined in IEEE Std 802.11‐2020 14567 * Figure 9-924—Request Mode field format. 14568 * 14569 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute. 14570 * This attribute indicates the Disassociation Timer field which is the number 14571 * of beacon transmission times (TBTTs) until the serving AP will send a 14572 * Disassociation frame to this STA. 14573 * 14574 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute. 14575 * This attribute indicates BTM validity interval field in TBTTs defined in 14576 * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame 14577 * Action field format. 14578 * 14579 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute. 14580 * This attribute indicates BTM candidate list entries. 14581 * 14582 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute. 14583 * This attribute indicates network preference for BTM transition defined in 14584 * IEEE Std 802.11‐2020 Table 9-174—Preference field values. 14585 * 14586 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute. 14587 * This attribute indicates BTM transition status code defined in IEEE Std 14588 * 802.11‐2020 Table 9-428—BTM status code definitions. 14589 * 14590 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute. 14591 * This attribute indicates BSS termination delay defined in IEEE Std 14592 * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format. 14593 * 14594 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute. 14595 * This attribute indicates 6-byte MAC address representing the BSSID of the 14596 * BSS that the non-AP STA transitions to. 14597 * 14598 * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute 14599 * indicates EAP frame type. The methods are enumerated by IANA at 14600 * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml. 14601 * 14602 * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute 14603 * indicates EAP frame length. 14604 * 14605 * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This 14606 * attribute indicates the kernel timestamp. Driver uses ktime_get() API 14607 * (Time from boot but not the time spent in suspend) to send in microseconds 14608 * to userspace. 14609 * 14610 * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute 14611 * indicates the association id received in the (re)association response frame 14612 * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format. 14613 */ 14614 enum qca_wlan_vendor_attr_diag { 14615 QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0, 14616 QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1, 14617 QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2, 14618 QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3, 14619 QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4, 14620 QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5, 14621 QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6, 14622 QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7, 14623 QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8, 14624 QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9, 14625 QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10, 14626 QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11, 14627 QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12, 14628 QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13, 14629 QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14, 14630 QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15, 14631 QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16, 14632 QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17, 14633 QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18, 14634 QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19, 14635 QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20, 14636 QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21, 14637 QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22, 14638 QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23, 14639 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24, 14640 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25, 14641 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26, 14642 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27, 14643 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28, 14644 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29, 14645 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30, 14646 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31, 14647 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32, 14648 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33, 14649 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34, 14650 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35, 14651 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36, 14652 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37, 14653 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38, 14654 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39, 14655 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40, 14656 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41, 14657 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42, 14658 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43, 14659 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44, 14660 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45, 14661 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46, 14662 QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47, 14663 QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48, 14664 QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49, 14665 QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50, 14666 14667 /* keep last */ 14668 QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST, 14669 QCA_WLAN_VENDOR_ATTR_DIAG_MAX = 14670 QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1, 14671 }; 14672 14673 /** 14674 * qca_wlan_vendor_monitor_data_frame_type - Represent the various 14675 * data types to be sent over the monitor interface. 14676 */ 14677 enum qca_wlan_vendor_monitor_data_frame_type { 14678 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0), 14679 14680 /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is 14681 not set */ 14682 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1), 14683 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2), 14684 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3), 14685 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4), 14686 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5), 14687 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6), 14688 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7), 14689 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8), 14690 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9), 14691 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10), 14692 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11), 14693 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12), 14694 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13), 14695 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14), 14696 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15), 14697 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16), 14698 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17), 14699 }; 14700 14701 /** 14702 * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various 14703 * mgmt types to be sent over the monitor interface. 14704 * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames. 14705 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames 14706 * except the Beacons. Valid only in the Connect state. 14707 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected 14708 * BSSID Beacons. Valid only in the Connect state. 14709 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents 14710 * the Beacons obtained during the scan (off channel and connected channel) 14711 * when in connected state. 14712 */ 14713 14714 enum qca_wlan_vendor_monitor_mgmt_frame_type { 14715 QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0), 14716 /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */ 14717 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1), 14718 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2), 14719 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3), 14720 }; 14721 14722 /** 14723 * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various 14724 * ctrl types to be sent over the monitor interface. 14725 * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames. 14726 * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame. 14727 */ 14728 enum qca_wlan_vendor_monitor_ctrl_frame_type { 14729 QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0), 14730 /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */ 14731 QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1), 14732 }; 14733 14734 /** 14735 * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the 14736 * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the 14737 * monitor mode. 14738 * 14739 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute, 14740 * Represents the tx data packet type to be monitored (u32). These data packets 14741 * are represented by enum qca_wlan_vendor_monitor_data_frame_type. 14742 * 14743 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute, 14744 * Represents the tx data packet type to be monitored (u32). These data packets 14745 * are represented by enum qca_wlan_vendor_monitor_data_frame_type. 14746 * 14747 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute, 14748 * Represents the tx data packet type to be monitored (u32). These mgmt packets 14749 * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type. 14750 * 14751 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute, 14752 * Represents the tx data packet type to be monitored (u32). These mgmt packets 14753 * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type. 14754 * 14755 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute, 14756 * Represents the tx data packet type to be monitored (u32). These ctrl packets 14757 * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type. 14758 * 14759 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute, 14760 * Represents the tx data packet type to be monitored (u32). These ctrl packets 14761 * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type. 14762 * 14763 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: 14764 * u32 attribute, An interval only for the connected beacon interval, which 14765 * expects that the connected BSSID's beacons shall be sent on the monitor 14766 * interface only on this specific interval. 14767 */ 14768 enum qca_wlan_vendor_attr_set_monitor_mode { 14769 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0, 14770 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1, 14771 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2, 14772 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3, 14773 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4, 14774 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5, 14775 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6, 14776 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7, 14777 14778 /* keep last */ 14779 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST, 14780 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX = 14781 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1, 14782 14783 }; 14784 14785 /** 14786 * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags. 14787 * Bits will be set to 1 if the corresponding state is enabled. 14788 * 14789 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start. 14790 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end. 14791 */ 14792 enum qca_wlan_vendor_roam_scan_state { 14793 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0), 14794 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1), 14795 }; 14796 14797 /** 14798 * enum qca_wlan_vendor_roam_event_type - Roam event type flags. 14799 * Bits will be set to 1 if the corresponding event is notified. 14800 * 14801 * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event 14802 * carries the trigger reason. When set, it is expected that the roam event 14803 * carries the respective reason via the attribute 14804 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries 14805 * the BSSID, RSSI, frequency info of the AP to which the roam is attempted. 14806 * 14807 * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event 14808 * carries the roam fail reason. When set, it is expected that the roam event 14809 * carries the respective reason via the attribute 14810 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the 14811 * BSSID, RSSI, frequency info of the AP to which the roam was attempted. 14812 * 14813 * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam 14814 * event carries the roam invoke fail reason. When set, it is expected that 14815 * the roam event carries the respective reason via the attribute 14816 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON. 14817 * 14818 * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event 14819 * carries the roam scan state. When set, it is expected that the roam event 14820 * carries the respective scan state via the attribute 14821 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding 14822 * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST. 14823 */ 14824 enum qca_wlan_vendor_roam_event_type { 14825 QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0), 14826 QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1), 14827 QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2), 14828 QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3), 14829 }; 14830 14831 /** 14832 * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info. 14833 * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO. 14834 * 14835 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address 14836 * representing the BSSID of the AP to which the Roam is attempted. 14837 * 14838 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value 14839 * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is 14840 * attempted. 14841 * 14842 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz 14843 * on which the roam is attempted. 14844 * 14845 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in 14846 * STA mode only. This represents the roam fail reason for the last failed 14847 * roaming attempt by the firmware for the specific BSSID. Different roam 14848 * failure reason codes are specified in enum qca_vendor_roam_fail_reasons. 14849 */ 14850 enum qca_wlan_vendor_attr_roam_events_candidate_info { 14851 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0, 14852 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1, 14853 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2, 14854 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3, 14855 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4, 14856 14857 /* keep last */ 14858 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST, 14859 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX = 14860 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1, 14861 }; 14862 14863 /** 14864 * enum qca_wlan_vendor_attr_roam_events - Used by the 14865 * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the 14866 * roam events to the driver or notify these events from the driver. 14867 * 14868 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the 14869 * driver/firmware to enable/disable the notification of roam events. It's a 14870 * mandatory attribute and used only in the request from the userspace to the 14871 * host driver. 1-Enable, 0-Disable. 14872 * If the roaming is totally offloaded to the firmware, this request when 14873 * enabled shall mandate the firmware to notify all the relevant roam events 14874 * represented by the below attributes. If the host is in the suspend mode, 14875 * the behavior of the firmware to notify these events is guided by 14876 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get 14877 * these events in the suspend state, the firmware is expected to wake up the 14878 * host before the respective events are notified. Please note that such a 14879 * request to get the events in the suspend state will have a definite power 14880 * implication. 14881 * 14882 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents 14883 * that the roam events need to be notified in the suspend state too. By 14884 * default, these roam events are notified in the resume state. With this flag, 14885 * the roam events are notified in both resume and suspend states. 14886 * This attribute is used in the request from the userspace to the host driver. 14887 * 14888 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only. 14889 * Represents the different roam event types, signified by the enum 14890 * qca_wlan_vendor_roam_event_type. 14891 * Each bit of this attribute represents the different roam even types reported 14892 * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14893 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14894 * 14895 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA 14896 * mode only. This represents the roam trigger reason for the last roaming 14897 * attempted by the firmware. Each bit of this attribute represents the 14898 * different roam trigger reason code which are defined in enum 14899 * qca_vendor_roam_triggers. 14900 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14901 * 14902 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in 14903 * STA mode only. This represents the roam invoke fail reason for the last 14904 * failed roam invoke. Different roam invoke failure reason codes 14905 * are specified in enum qca_vendor_roam_invoke_fail_reasons. 14906 * 14907 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info 14908 * for which the roam is attempted. Each entry is a nested attribute defined 14909 * by enum qca_wlan_vendor_attr_roam_events_candidate_info. 14910 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14911 * 14912 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents 14913 * the scan state on which the roam events need to be notified. The values for 14914 * this attribute are referred from enum qca_wlan_vendor_roam_scan_state. 14915 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14916 * 14917 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of 14918 * u32 values. List of frequencies in MHz considered for a roam scan. 14919 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14920 */ 14921 14922 enum qca_wlan_vendor_attr_roam_events { 14923 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0, 14924 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1, 14925 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2, 14926 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3, 14927 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4, 14928 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5, 14929 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6, 14930 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7, 14931 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8, 14932 14933 /* keep last */ 14934 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST, 14935 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX = 14936 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1, 14937 }; 14938 14939 /* 14940 * enum qca_wlan_ratemask_params_type - Rate mask config type. 14941 * 14942 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config 14943 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config 14944 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config 14945 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config 14946 */ 14947 enum qca_wlan_ratemask_params_type { 14948 QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0, 14949 QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1, 14950 QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2, 14951 QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3, 14952 }; 14953 14954 /* enum qca_wlan_vendor_attr_ratemask_params - Used by the 14955 * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG. 14956 * This is used to set the rate mask value to be used in rate selection. 14957 * 14958 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST: 14959 * Array of nested containing attributes 14960 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and 14961 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP. 14962 * 14963 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents 14964 * the different phy types to which the rate mask config is to be applied. 14965 * The values for this attribute are referred from enum 14966 * qca_wlan_vendor_ratemask_params_type. 14967 * 14968 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap. 14969 * A bit value of 1 represents rate is enabled and a value of 0 14970 * represents rate is disabled. 14971 * For HE targets, 12 bits correpond to one NSS setting. 14972 * b0-13 => NSS1, MCS 0-13 14973 * b14-27 => NSS2, MCS 0-13 and so on for other NSS. 14974 * For VHT targets, 10 bits correspond to one NSS setting. 14975 * b0-9 => NSS1, MCS 0-9 14976 * b10-19 => NSS2, MCS 0-9 and so on for other NSS. 14977 * For HT targets, 8 bits correspond to one NSS setting. 14978 * b0-7 => NSS1, MCS 0-7 14979 * b8-15 => NSS2, MCS 0-7 and so on for other NSS. 14980 * For OFDM/CCK targets, 8 bits correspond to one NSS setting. 14981 */ 14982 14983 enum qca_wlan_vendor_attr_ratemask_params { 14984 QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0, 14985 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1, 14986 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2, 14987 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3, 14988 14989 /* keep last */ 14990 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST, 14991 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX = 14992 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1, 14993 }; 14994 14995 /** 14996 * enum qca_wlan_vendor_flush_pending_policy: Represents values for 14997 * the policy to flush pending frames, configured via 14998 * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the 14999 * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY. 15000 * 15001 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all 15002 * the flush policy configured before. This command basically disables the 15003 * flush config set by the user. 15004 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures 15005 * the flush policy to be immediate. All pending packets for the peer/TID are 15006 * flushed when this command/policy is received. 15007 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures 15008 * the flush policy to the end of TWT SP. All pending packets for the peer/TID 15009 * are flushed when the end of TWT SP is reached. 15010 */ 15011 enum qca_wlan_vendor_flush_pending_policy { 15012 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0, 15013 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1, 15014 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2, 15015 }; 15016 15017 /** 15018 * enum qca_wlan_vendor_attr_flush_pending - Attributes for 15019 * flushing pending traffic in firmware. 15020 * 15021 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address. 15022 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending 15023 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK, 15024 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to 15025 * flush packets with access category. This is optional. See below. 15026 * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets. 15027 * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding 15028 * bit to 1 to act upon the TID. This is optional. Either this attribute or 15029 * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided, 15030 * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided 15031 * it is an error. 15032 * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending 15033 * packets corresponding to the peer/TID provided. It is a u32 value, 15034 * represented by %enum qca_wlan_vendor_flush_pending_policy. This 15035 * value is honored only when TID mask is provided. This is not honored when AC 15036 * mask is provided. 15037 */ 15038 enum qca_wlan_vendor_attr_flush_pending { 15039 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0, 15040 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1, 15041 QCA_WLAN_VENDOR_ATTR_AC = 2, 15042 QCA_WLAN_VENDOR_ATTR_TID_MASK = 3, 15043 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4, 15044 /* keep last */ 15045 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST, 15046 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX = 15047 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1, 15048 }; 15049 15050 /** 15051 * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys 15052 * for) or drop existing PASN security association for the listed the 15053 * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver 15054 * to userspace. 15055 * 15056 * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer 15057 * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR. 15058 * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from 15059 * the driver to userspace to inform that the existing PASN keys of the 15060 * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are 15061 * not valid anymore. 15062 */ 15063 enum qca_wlan_vendor_pasn_action { 15064 QCA_WLAN_VENDOR_PASN_ACTION_AUTH, 15065 QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT, 15066 }; 15067 15068 /** 15069 * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in 15070 * QCA_WLAN_VENDOR_ATTR_PASN_PEERS. 15071 * 15072 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the 15073 * event from the driver to userspace and represents the local MAC address 15074 * to be used for PASN handshake. When this attribute is present, userspace 15075 * shall use the source address specified in this attribute by the driver 15076 * for PASN handshake with peer device. 15077 * This attribute is required in a command response from userspace to the 15078 * driver and represents the MAC address that was used in PASN handshake 15079 * with the peer device. 15080 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the 15081 * peer device to which PASN handshake is requested in an event from the 15082 * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to 15083 * QCA_WLAN_VENDOR_PASN_ACTION_AUTH. 15084 * Indicates the MAC address of the peer device for which the keys are to 15085 * be invalidated in an event from the driver to userspace when 15086 * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to 15087 * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT. 15088 * Indicates the MAC address of the peer device for which the status is 15089 * being sent in a status report from userspace to the driver. 15090 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used 15091 * in the event from the driver to userspace. When set, userspace is 15092 * required to derive LTF key seed from KDK and set it to the driver. 15093 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This 15094 * attribute is used in the command response from userspace to the driver. 15095 * If present, it indicates the successful PASN handshake with the peer. If 15096 * this flag is not present, it indicates that the PASN handshake with the 15097 * peer device failed. 15098 */ 15099 enum qca_wlan_vendor_attr_pasn_peer { 15100 QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0, 15101 QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1, 15102 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2, 15103 QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3, 15104 QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4, 15105 15106 /* keep last */ 15107 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST, 15108 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX = 15109 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1, 15110 }; 15111 15112 /** 15113 * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the 15114 * QCA_NL80211_VENDOR_SUBCMD_PASN command. 15115 * 15116 * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are 15117 * defined in enum qca_wlan_vendor_pasn_action and used only in an event 15118 * from the driver to userspace. 15119 * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer 15120 * details for each peer and used in both an event and a command response. 15121 * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are 15122 * defined in enum qca_wlan_vendor_attr_pasn_peer. 15123 */ 15124 enum qca_wlan_vendor_attr_pasn { 15125 QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0, 15126 QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1, 15127 QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2, 15128 15129 /* keep last */ 15130 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST, 15131 QCA_WLAN_VENDOR_ATTR_PASN_MAX = 15132 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1, 15133 }; 15134 15135 /** 15136 * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete 15137 * the ranging security context derived from PASN for each peer. Used in 15138 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION. 15139 * 15140 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging 15141 * context for the peer. 15142 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging 15143 * context for the peer. 15144 */ 15145 enum qca_wlan_vendor_secure_ranging_ctx_action { 15146 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD, 15147 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE, 15148 }; 15149 15150 /** 15151 * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type 15152 * used for deriving PASN keys to the driver. Used in 15153 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE 15154 * @QCA_WLAN_VENDOR_SHA_256: SHA-256 15155 * @QCA_WLAN_VENDOR_SHA_384: SHA-384 15156 */ 15157 enum qca_wlan_vendor_sha_type { 15158 QCA_WLAN_VENDOR_SHA_256, 15159 QCA_WLAN_VENDOR_SHA_384, 15160 }; 15161 15162 /** 15163 * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used 15164 * to set security context for the PASN peer from userspace to the driver. 15165 * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT. 15166 * 15167 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible 15168 * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action 15169 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that 15170 * was used during the PASN handshake. 15171 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of 15172 * the peer device for which secure ranging context is being configured. 15173 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the 15174 * hash algorithm to be used, possible values are defined in enum 15175 * qca_wlan_vendor_sha_type. 15176 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds 15177 * the temporal key generated from the PASN handshake. The length of this 15178 * attribute is dependent on the value of 15179 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER. 15180 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the 15181 * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites) 15182 * (e.g., 0x000FAC04). 15183 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length 15184 * attribute, holds the LTF keyseed derived from KDK of PASN handshake. 15185 * The length of this attribute is dependent on the value of 15186 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE. 15187 * 15188 */ 15189 enum qca_wlan_vendor_attr_secure_ranging_ctx { 15190 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0, 15191 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1, 15192 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2, 15193 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3, 15194 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4, 15195 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5, 15196 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6, 15197 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7, 15198 15199 /* keep last */ 15200 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST, 15201 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX = 15202 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1, 15203 }; 15204 15205 /** 15206 * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used 15207 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER 15208 * nested attribute. The packets that match a filter will be replied with 15209 * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY. 15210 * 15211 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4: 15212 * u32 attribute. Destination IPv4 address in network byte order, the 15213 * IPv4 packets with different address will be filtered out. 15214 * This attribute is optional. 15215 * 15216 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC: 15217 * Flag attribute. If it's present, indicates that 15218 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast 15219 * address; while if not, indicates that the address is a unicast/multicast 15220 * address. 15221 * This attribute is optional. 15222 * 15223 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6: 15224 * NLA_BINARY attribute, length is 16 bytes. 15225 * Destination IPv6 address in network byte order, the IPv6 packets 15226 * with different destination address will be filtered out. 15227 * This attribute is optional. 15228 * 15229 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and 15230 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured. 15231 * Packets on both IPv4 and IPv6 will be processed if both are configured. 15232 * 15233 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT: 15234 * u16 attribute. Destination UDP port, the packets with different destination 15235 * UDP port will be filtered out. 15236 * This attribute is mandatory. 15237 * 15238 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET: 15239 * u32 attribute. Represents the offset (in UDP payload) of the data 15240 * to be matched. 15241 * This attribute is mandatory. 15242 * 15243 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA: 15244 * NLA_BINARY attribute, the maximum allowed size is 16 bytes. 15245 * Binary data that is compared bit-by-bit against the data (specified 15246 * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP 15247 * payload, the packets don't match will be filtered out. 15248 * This attribute is mandatory. 15249 */ 15250 enum qca_wlan_vendor_attr_coap_offload_filter { 15251 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0, 15252 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1, 15253 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2, 15254 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3, 15255 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4, 15256 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5, 15257 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6, 15258 15259 /* keep last */ 15260 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST, 15261 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX = 15262 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1, 15263 }; 15264 15265 /** 15266 * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used 15267 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute. 15268 * 15269 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4: 15270 * u32 attribute. Source address (in network byte order) for replying 15271 * the matching broadcast/multicast IPv4 packets. 15272 * This attribute is optional. 15273 * 15274 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6: 15275 * NLA_BINARY attribute, length is 16 bytes. 15276 * Source address (in network byte order) for replying the matching 15277 * multicast IPv6 packets. 15278 * This attribute is optional. 15279 * 15280 * For broadcast/multicast offload reply, one of 15281 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and 15282 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be 15283 * configured according to version of the IP address(es) configured in 15284 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER; 15285 * while for unicast case, firmware will take the destination IP address 15286 * in the received matching packet as the source address for replying. 15287 * 15288 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER: 15289 * Nested attribute. Filter for the received UDP packets, only the matching 15290 * packets will be replied and cached. 15291 * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported 15292 * attributes. 15293 * This attribute is mandatory. 15294 * 15295 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG: 15296 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 15297 * CoAP message (UDP payload) to be sent upon receiving matching packets. 15298 * Firmware is responsible for adding any necessary protocol headers. 15299 * This attribute is mandatory. 15300 * 15301 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME: 15302 * u32 attribute. Expiration time in milliseconds of the cached CoAP messages. 15303 * A cached message will be dropped by firmware if it's expired. 15304 * This attribute is optional. A default value of 40000 will be used in the 15305 * absence of it. 15306 */ 15307 enum qca_wlan_vendor_attr_coap_offload_reply { 15308 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0, 15309 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1, 15310 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2, 15311 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3, 15312 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4, 15313 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5, 15314 15315 /* keep last */ 15316 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST, 15317 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX = 15318 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1, 15319 }; 15320 15321 /** 15322 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for 15323 * CoAP message (UDP) transmitting on IPv4. 15324 * 15325 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR: 15326 * u32 attribute. Source address (in network byte order) for transmitting 15327 * packets on IPv4. 15328 * This attribute is mandatory. 15329 * 15330 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT: 15331 * u16 attribute. Source UDP port. 15332 * This attribute is optional, a random port is taken if it's not present. 15333 * 15334 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR: 15335 * u32 attribute. Destination IPv4 address (in network byte order). 15336 * This attribute is mandatory. 15337 * 15338 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC: 15339 * Flag attribute. If it's present, indicates that 15340 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast 15341 * address; while if not, indicates that the address is unicast/multicast 15342 * address. 15343 * This attribute is optional. 15344 * 15345 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT: 15346 * u16 attribute. Destination UDP port. 15347 * This attribute is mandatory. 15348 */ 15349 enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 { 15350 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0, 15351 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1, 15352 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2, 15353 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3, 15354 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4, 15355 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5, 15356 15357 /* keep last */ 15358 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST, 15359 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX = 15360 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1, 15361 }; 15362 15363 /** 15364 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for 15365 * CoAP message (UDP) transmitting on IPv6. 15366 * 15367 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR: 15368 * NLA_BINARY attribute, length is 16 bytes. 15369 * Source address (in network byte order) for transmitting packets on IPv6. 15370 * This attribute is mandatory. 15371 * 15372 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT: 15373 * u16 attribute. Source UDP port. 15374 * This attribute is optional, a random port is taken if it's not present. 15375 * 15376 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR: 15377 * NLA_BINARY attribute, length is 16 bytes. 15378 * Destination IPv6 address (in network byte order). 15379 * This attribute is mandatory. 15380 * 15381 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT: 15382 * u16 attribute. Destination UDP port. 15383 * This attribute is mandatory. 15384 */ 15385 enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 { 15386 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0, 15387 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1, 15388 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2, 15389 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3, 15390 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4, 15391 15392 /* keep last */ 15393 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST, 15394 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX = 15395 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1, 15396 }; 15397 15398 /** 15399 * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used 15400 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute. 15401 * 15402 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4: 15403 * Nested attribute. The IPv4 source/destination address/port for offload 15404 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list 15405 * of supported attributes. 15406 * This attribute is optional. 15407 * 15408 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6: 15409 * Nested attribute. The IPv6 source/destination address/port for offload 15410 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list 15411 * of supported attributes. 15412 * This attribute is optional. 15413 * 15414 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and 15415 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured. 15416 * Firmware will transmit the packets on both IPv4 and IPv6 if both are 15417 * configured. 15418 * 15419 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD: 15420 * u32 attribute. Period in milliseconds for the periodic transmitting. 15421 * This attribute is mandatory. 15422 * 15423 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG: 15424 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 15425 * CoAP message (UDP payload) to be periodically transmitted. Firmware 15426 * is responsible for adding any necessary protocol headers. 15427 * This attribute is mandatory. 15428 */ 15429 enum qca_wlan_vendor_attr_coap_offload_periodic_tx { 15430 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0, 15431 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1, 15432 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2, 15433 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3, 15434 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4, 15435 15436 /* keep last */ 15437 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST, 15438 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX = 15439 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1, 15440 }; 15441 15442 /** 15443 * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used 15444 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute. 15445 * 15446 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS: 15447 * u64 attribute. Received time (since system booted in microseconds) of 15448 * the cached CoAP message. 15449 * This attribute is mandatory. 15450 * 15451 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4: 15452 * u32 attribute. Source IPv4 address (in network byte order) of the cached 15453 * CoAP message. 15454 * This attribute is optional. 15455 * 15456 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6: 15457 * NLA_BINARY attribute, length is 16 bytes. 15458 * Source IPv6 address (in network byte order) of the cached CoAP message. 15459 * This attribute is optional. 15460 * 15461 * At most and at least one of 15462 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and 15463 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for 15464 * an entry. 15465 * 15466 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG: 15467 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 15468 * The cached CoAP message (UDP payload). If the actual message size is 15469 * greater than the maximum size, it will be truncated and leaving only 15470 * the first 1152 bytes. 15471 * This attribute is mandatory. 15472 */ 15473 enum qca_wlan_vendor_attr_coap_offload_cache_info { 15474 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0, 15475 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1, 15476 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2, 15477 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3, 15478 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4, 15479 15480 /* keep last */ 15481 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST, 15482 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX = 15483 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1, 15484 }; 15485 15486 /** 15487 * enum qca_wlan_vendor_coap_offload_action - Actions for 15488 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD. 15489 * 15490 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE: 15491 * Enable CoAP offload reply. 15492 * If it's enabled, firmware will start offload processing on each suspend 15493 * and stop on each resume. 15494 * 15495 * Offload reply on match works as follows: 15496 * Reply the packets that match the filter with the given CoAP 15497 * message (with necessary protocol headers), increase the CoAP message 15498 * ID in the given CoAP message by one for the next use after each successful 15499 * transmission, and try to store the information of the received packet, 15500 * including the received time, source IP address, and CoAP message (UDP 15501 * payload). 15502 * 15503 * Firmware has a limit to the maximum stored entries, it takes the source IP 15504 * address as the key of an entry, and keeps at most one entry for each key. 15505 * A packet won't be stored if no entry for the same key is present and the 15506 * total number of the existing unexpired entries reaches the maximum value. 15507 * 15508 * If any configured item is changed, user space should disable offload reply 15509 * first and then issue a new enable request. 15510 * 15511 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE: 15512 * Disable CoAP offload reply and return information of any cached CoAP 15513 * messages. 15514 * 15515 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE: 15516 * Enable CoAP offload periodic transmitting. 15517 * If it's enabled, firmware will start offload periodic transmitting on 15518 * each suspend and stop on each resume. 15519 * 15520 * Offload periodic transmitting works as follows: 15521 * Send the given CoAP message (with necessary protocol headers) with the given 15522 * source/destination IP address/UDP port periodically based on the given 15523 * period and increase the CoAP message ID in the given CoAP message by one 15524 * for the next use after each successful transmission. 15525 * 15526 * If any configured item is changed, user space should disable offload 15527 * periodic transmitting first and then issue a new enable request. 15528 * 15529 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE: 15530 * Disable CoAP offload periodic transmitting. 15531 * 15532 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET: 15533 * Get information of the CoAP messages cached during offload reply 15534 * processing. The cache is cleared after retrieval. 15535 */ 15536 enum qca_wlan_vendor_coap_offload_action { 15537 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0, 15538 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1, 15539 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2, 15540 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3, 15541 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4, 15542 }; 15543 15544 /** 15545 * enum qca_wlan_vendor_attr_coap_offload - Used by the 15546 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD. 15547 * This is used to set parameters for CoAP offload processing, or get 15548 * cached CoAP messages from firmware. 15549 * 15550 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION: 15551 * u32 attribute. Action to take in this vendor command. 15552 * See enum qca_wlan_vendor_coap_offload_action for supported actions. 15553 * This attribute is mandatory. 15554 * 15555 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID: 15556 * u32 attribute. Represents the Request ID for the CoAP offload 15557 * configuration, which can help to identify the user entity starting 15558 * the CoAP offload processing and accordingly stop the respective 15559 * ones/get the cached CoAP messages with the matching ID. 15560 * This attribute is mandatory. 15561 * 15562 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY: 15563 * Nested attribute. Parameters for offload reply. 15564 * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of 15565 * supported attributes. 15566 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION 15567 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored 15568 * otherwise. 15569 * 15570 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX: 15571 * Nested attribute. Parameters for offload periodic transmitting. 15572 * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of 15573 * supported attributes. 15574 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is 15575 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored 15576 * otherwise. 15577 * 15578 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES: 15579 * Array of nested attributes. Information of the cached CoAP messages, 15580 * where each entry is taken from 15581 * enum qca_wlan_vendor_attr_coap_offload_cache_info. 15582 * This attribute is used for reporting the cached CoAP messages 15583 * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION 15584 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or 15585 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no 15586 * cached item if this attribute is not present. 15587 */ 15588 enum qca_wlan_vendor_attr_coap_offload { 15589 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0, 15590 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1, 15591 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2, 15592 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3, 15593 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4, 15594 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5, 15595 15596 /* keep last */ 15597 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST, 15598 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX = 15599 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1, 15600 }; 15601 15602 /** 15603 * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command 15604 * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification 15605 * Service (SCS) rule. 15606 * 15607 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute. 15608 * Represents the unique id of SCS rule to be configured. 15609 15610 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute. 15611 * Represents the request type: add, remove, or change. 15612 * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request 15613 * Type definitions). 15614 * 15615 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute 15616 * in case of add/change request type. 15617 * Represents the output traffic identifier (TID) to be assigned to the flow 15618 * matching the rule. 15619 * 15620 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8 15621 * attribute in case of add/change request type. 15622 * Represents type of classifier parameters present in SCS rule. 15623 * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type). 15624 * Only classifier types 4 and 10 are supported for SCS. 15625 * 15626 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute 15627 * in case of add/change request type when classifier type is TCLAS4. 15628 * Represents the IP version (4: IPv4, 6: IPv6) of the rule. 15629 * 15630 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional 15631 * attribute in case of add/change request type when classifier type is TCLAS4 15632 * and version attribute is IPv4. 15633 * Represents the source IPv4 address in the rule which is to be compared 15634 * against the source IP address in the IPv4 header. 15635 * 15636 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional 15637 * attribute in case of add/change request type when classifier type is TCLAS4 15638 * and version attribute is IPv4. 15639 * Represents the destination IPv4 address in the rule which is to be compared 15640 * against the destination IP address in the IPv4 header. 15641 * 15642 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional 15643 * attribute in case of add/change request type when classifier type is TCLAS4 15644 * and version attribute is IPv6. 15645 * Represents the source IPv6 address in the rule which is to be compared 15646 * against the source IP address in the IPv6 header. 15647 * 15648 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional 15649 * attribute in case of add/change request type when classifier type is TCLAS4 15650 * and version attribute is IPv6. 15651 * Represents the destination IPv6 address in the rule which is to be compared 15652 * against the destination IP address in the IPv6 header. 15653 * 15654 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute 15655 * in case of add/change request type when classifier type is TCLAS4. 15656 * Represents the source port number in the rule which is to be compared against 15657 * the source port number in the protocol header. 15658 * 15659 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute 15660 * in case of add/change request type when classifier type is TCLAS4. 15661 * Represents the destination port number in the rule which is to be compared 15662 * against the destination port number in the protocol header. 15663 * 15664 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute 15665 * in case of add/change request type when classifier type is TCLAS4. 15666 * Represents the DSCP value in the rule which is to be compared against the 15667 * DSCP field present in the IP header. 15668 * 15669 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8 15670 * attribute in case of add/change request type when classifier type is TCLAS4. 15671 * Represents the protocol/next header in the rule which is to be compared 15672 * against the protocol/next header field present in the IPv4/IPv6 header. 15673 * 15674 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional 15675 * attribute of size 3 bytes present in case of add/change request type 15676 * when classifier type is TCLAS4 and version is IPv6. 15677 * Represents the flow label value in the rule which is to be compared against 15678 * the flow label field present in the IPv6 header. 15679 * 15680 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8 15681 * attribute in case of add/change request type when classifier type is TCLAS10. 15682 * Represents the protocol instance number in the rule. 15683 * 15684 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8 15685 * attribute in case of add/change request type when classifier type is TCLAS10. 15686 * Represents the protocol/next header in the rule which is to be compared 15687 * against the protocol/next header field present in the IPv4/IPv6 header. 15688 * 15689 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional 15690 * attribute of variable length present when request type is add/change and 15691 * classifier type is TCLAS10. 15692 * Represents the mask to be used for masking the header contents of the header 15693 * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER 15694 * attribute. 15695 * 15696 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional 15697 * attribute of variable length present when request type is add/change and 15698 * classifier type is TCLAS10. 15699 * Represents the value to be compared against after masking the header contents 15700 * of the header specified by the 15701 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the 15702 * filter mask specified by the 15703 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute. 15704 * 15705 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16 15706 * attribute. 15707 * Represents the service class id of the configured SCS rule. 15708 * 15709 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes 15710 * MAC address. 15711 * Represents the destination MAC address in the rule. 15712 * 15713 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute 15714 * Represents the netdevice interface index in the rule. 15715 */ 15716 enum qca_wlan_vendor_attr_scs_rule_config { 15717 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0, 15718 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1, 15719 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2, 15720 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3, 15721 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4, 15722 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5, 15723 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6, 15724 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7, 15725 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8, 15726 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9, 15727 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10, 15728 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11, 15729 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12, 15730 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13, 15731 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14, 15732 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15, 15733 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16, 15734 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17, 15735 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18, 15736 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19, 15737 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20, 15738 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21, 15739 15740 /* Keep last */ 15741 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST, 15742 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX = 15743 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1, 15744 }; 15745 15746 /** 15747 * enum qca_wlan_vendor_sar_version - This describes the current SAR version 15748 * used in the firmware. 15749 * 15750 * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR. 15751 * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits. 15752 * 15753 * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2, 15754 * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for 15755 * each CTL group. So user can select up to 6 SAR indexes from the current CTL 15756 * groups. 15757 * 15758 * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3, 15759 * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each 15760 * CTL group but user can choose up to 3 SAR set index only, as the top half 15761 * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of 15762 * the SAR index (3 to 5) is used for DBS mode. 15763 * 15764 * @QCA_WLAN_VENDOR_SAR_VERSION_4: The firmware supports SAR version 4, 15765 * known as SAR Smart Transmit (STX) mode. STX is time averaging algorithmic 15766 * for power limit computation in collaboration with WWAN. 15767 * In STX mode, firmware has 41 indexes and there is no ctl grouping uses. 15768 * 15769 * @QCA_WLAN_VENDOR_SAR_VERSION_5: The firmware supports SAR version 5, 15770 * known as TAS (Time Averaging SAR) mode. In TAS mode, as name implies 15771 * instead of fixed static SAR power limit firmware uses time averaging 15772 * to adjust the SAR limit dynamically. It is wlan soc standalone mechanism. 15773 * In this mode firmware has up to 43 indexes. 15774 */ 15775 enum qca_wlan_vendor_sar_version { 15776 QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0, 15777 QCA_WLAN_VENDOR_SAR_VERSION_1 = 1, 15778 QCA_WLAN_VENDOR_SAR_VERSION_2 = 2, 15779 QCA_WLAN_VENDOR_SAR_VERSION_3 = 3, 15780 QCA_WLAN_VENDOR_SAR_VERSION_4 = 4, 15781 QCA_WLAN_VENDOR_SAR_VERSION_5 = 5, 15782 }; 15783 15784 /** 15785 * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether 15786 * CTL grouping is enabled or disabled in the firmware. 15787 * 15788 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping 15789 * is enabled in firmware. 15790 * 15791 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping 15792 * is disabled in firmware. 15793 * 15794 */ 15795 enum qca_wlan_vendor_sar_ctl_group_state { 15796 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0, 15797 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1, 15798 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2, 15799 }; 15800 15801 /** 15802 * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command 15803 * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities 15804 * supported by the firmware. 15805 15806 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION: 15807 * u32 attribute. This field describes current SAR version supported by the 15808 * firmware. 15809 * See enum qca_wlan_vendor_sar_version for more information. 15810 * This attribute is mandatory. 15811 15812 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE: 15813 * u32 attribute. This field describes whether CTL groups are enabled 15814 * or disabled in the firmware. 15815 * See enum qca_wlan_vendor_sar_ctl_group_state for more information. 15816 * This attribute is optional. 15817 */ 15818 15819 enum qca_wlan_vendor_attr_sar_capability { 15820 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0, 15821 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1, 15822 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2, 15823 15824 /* Keep last */ 15825 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST, 15826 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX = 15827 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1, 15828 }; 15829 15830 /** 15831 * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics. 15832 * These statistics are sent from the driver in a response when userspace 15833 * queries to get the statistics using the operation 15834 * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset 15835 * by the driver when the SR feature is enabled, when the driver receives 15836 * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected. 15837 * 15838 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute. 15839 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15840 * This represents the number of non-SRG TX opportunities. 15841 * 15842 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute. 15843 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15844 * This represents the number of non-SRG PPDUs tried to transmit. 15845 * 15846 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute. 15847 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15848 * This represents the number of non-SRG PPDUs successfully transmitted. 15849 * 15850 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute. 15851 * Mandatory only when SRG is supported by the AP and optional otherwise. 15852 * This represents the number of SRG TX opportunities. 15853 * 15854 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute. 15855 * Mandatory only when SRG is supported by the AP and optional otherwise. 15856 * This represents the number of SRG PPDUs tried to transmit. 15857 * 15858 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute. 15859 * Mandatory only when SRG is supported by the AP and optional otherwise. 15860 * This represents the number of SRG PPDUs successfully transmitted. 15861 */ 15862 enum qca_wlan_vendor_attr_sr_stats { 15863 QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0, 15864 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1, 15865 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2, 15866 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3, 15867 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4, 15868 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5, 15869 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6, 15870 15871 /* Keep last */ 15872 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST, 15873 QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX = 15874 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1, 15875 }; 15876 15877 /** 15878 * enum qca_wlan_sr_reason_code - Defines the different reason codes used in 15879 * Spatial Reuse feature. 15880 * 15881 * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to 15882 * roaming to an AP that doesn't support/supports SR feature, respectively. 15883 * 15884 * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due 15885 * to change in concurrent interfaces that are supported by the driver. 15886 */ 15887 enum qca_wlan_sr_reason_code { 15888 QCA_WLAN_SR_REASON_CODE_ROAMING = 0, 15889 QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1, 15890 }; 15891 15892 /** 15893 * enum qca_wlan_sr_operation - Defines the different types of SR operations. 15894 * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION. 15895 * 15896 * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the 15897 * driver to enable the Spatial Reuse feature. Attributes 15898 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and 15899 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this 15900 * operation. 15901 * 15902 * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the 15903 * driver to disable the Spatial Reuse feature. 15904 * 15905 * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an 15906 * asynchronous event sent to userspace when the SR feature is disabled. 15907 * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE 15908 * and sent along with the asynchronous event. 15909 * 15910 * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an 15911 * asynchronous event when the SR feature is enabled again after the SR feature 15912 * was suspended by the driver earlier. The enable reason is 15913 * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are 15914 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and 15915 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD. 15916 * 15917 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is 15918 * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial 15919 * reuse transmissions. Userspace sends this operation to the driver. 15920 * The driver/firmware upon receiving this operation shall prohibit PSR-based 15921 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions. 15922 * 15923 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is 15924 * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial 15925 * reuse transmissions. Userspace sends this operation to the driver. 15926 * The driver/firmware upon receiving this operation shall allow PSR-based 15927 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions. 15928 * 15929 * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the 15930 * driver to get the SR statistics and the driver sends a synchronous response 15931 * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the 15932 * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS. 15933 * 15934 * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the 15935 * driver to clear the SR statistics and upon receiving this operation 15936 * the driver/firmware shall clear the SR statistics. 15937 * 15938 * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the 15939 * driver to get the SR parameters and the driver sends the synchronous response 15940 * with the following required attributes: 15941 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET, 15942 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET, 15943 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET, 15944 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE, 15945 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW. 15946 * 15947 * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an 15948 * asynchronous event to userspace to update any changes in SR parameters. 15949 * The following attributes are used with this operation: 15950 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET, 15951 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET, 15952 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET, 15953 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE, 15954 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW. 15955 */ 15956 enum qca_wlan_sr_operation { 15957 QCA_WLAN_SR_OPERATION_SR_ENABLE = 0, 15958 QCA_WLAN_SR_OPERATION_SR_DISABLE = 1, 15959 QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2, 15960 QCA_WLAN_SR_OPERATION_SR_RESUME = 3, 15961 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4, 15962 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5, 15963 QCA_WLAN_SR_OPERATION_GET_STATS = 6, 15964 QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7, 15965 QCA_WLAN_SR_OPERATION_GET_PARAMS = 8, 15966 QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9, 15967 }; 15968 15969 /** 15970 * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration 15971 * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS. 15972 * 15973 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute. 15974 * This attribute is optionally set in response to 15975 * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to 15976 * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std 15977 * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more 15978 * about HESIGA_Spatial_reuse_value15_allowed. 15979 * 15980 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute. 15981 * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS 15982 * operation. This indicates whether non-SRG OBSS PD SR transmissions are 15983 * allowed or not at non-AP STAs that are associated with the AP. If present 15984 * non-SRG OBSS PD SR transmissions are not allowed else are allowed. 15985 * 15986 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8 15987 * attribute. This attribute is used in response to 15988 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD 15989 * Min Offset field which contains an unsigned integer that is added to -82 dBm 15990 * to generate the value of the SRG OBSS PD Min parameter. 15991 * 15992 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8 15993 * attribute. This attribute is used in response to 15994 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD 15995 * Max Offset field which contains an unsigned integer that is added to -82 dBm 15996 * to generate the value of the SRG OBSS PD Max parameter. 15997 * 15998 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8 15999 * attribute. This attribute is used in response to 16000 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS 16001 * PD Max Offset field which contains an unsigned integer that is added to -82 16002 * dBm to generate the value of the Non-SRG OBSS PD Max parameter. 16003 * 16004 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm). 16005 * Userspace optionally sends this attribute with 16006 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the 16007 * preferred SRG PD threshold. The driver shall send this attribute to 16008 * userspace in SR resume event to indicate the PD threshold being used for SR. 16009 * When there is change in SRG PD threshold (for example, due to roaming, etc.) 16010 * the driver shall indicate the userspace the newly configured SRG PD threshold 16011 * using an asynchronous event. 16012 * 16013 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm). 16014 * Userspace optionally sends this attribute with 16015 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the 16016 * preferred non-SRG PD threshold. The driver shall send this attribute to 16017 * userspace in SR resume event to indicate the PD threshold being used for SR. 16018 * When there is change in non-SRG PD threshold (for example, due to roaming, 16019 * etc.) the driver shall indicate the userspace the newly configured non-SRG PD 16020 * threshold using an asynchronous event. 16021 * 16022 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible 16023 * values are defined in enum qca_wlan_sr_reason_code. This 16024 * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and 16025 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations. 16026 */ 16027 enum qca_wlan_vendor_attr_sr_params { 16028 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0, 16029 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1, 16030 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2, 16031 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3, 16032 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4, 16033 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5, 16034 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6, 16035 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7, 16036 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8, 16037 16038 /* keep last */ 16039 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST, 16040 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX = 16041 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1, 16042 }; 16043 16044 /** 16045 * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor 16046 * command QCA_NL80211_VENDOR_SUBCMD_SR. 16047 * 16048 * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests 16049 * from userspace to the driver. Possible values are defined in enum 16050 * qca_wlan_sr_operation. 16051 * 16052 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR 16053 * configuration parameters. The possible attributes inside this attribute are 16054 * defined in enum qca_wlan_vendor_attr_sr_params. 16055 * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to 16056 * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and 16057 * also in response from the driver to userspace when the response is sent for 16058 * %QCA_WLAN_SR_OPERATION_GET_PARAMS. 16059 * The driver uses this attribute in asynchronous events in which the operation 16060 * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME, 16061 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS. 16062 * 16063 * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR 16064 * statistics. These attributes used inside this are defined in enum 16065 * qca_wlan_vendor_attr_sr_stats. 16066 * This attribute is used in response from the driver to a command in which 16067 * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to 16068 * %QCA_WLAN_SR_OPERATION_GET_STATS. 16069 */ 16070 enum qca_wlan_vendor_attr_sr { 16071 QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0, 16072 QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1, 16073 QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2, 16074 QCA_WLAN_VENDOR_ATTR_SR_STATS = 3, 16075 16076 /* Keep last */ 16077 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST, 16078 QCA_WLAN_VENDOR_ATTR_SR_MAX = 16079 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1, 16080 }; 16081 16082 /** 16083 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes 16084 * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand. 16085 * 16086 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address 16087 * used by the peer on the link that corresponds to the link used for sending 16088 * the event notification. 16089 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte 16090 * MLD MAC address of the peer. 16091 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute, 16092 * used to pass ifindex of the primary netdev. 16093 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX: u32 attribute, 16094 * used to pass ifindex of the MLD netdev. 16095 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS: u8 attribute, 16096 * used to indicate the number of links that the non-AP MLD negotiated to be 16097 * used in the ML connection. 16098 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO: Nested 16099 * attribute, contains information regarding links of the non-AP MLD. 16100 * User applications need to know all the links of a non-AP MLD that are 16101 * participating in the ML association. The possible attributes inside this 16102 * attribute are defined in enum qca_wlan_vendor_attr_mlo_link_info. 16103 */ 16104 enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event { 16105 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0, 16106 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1, 16107 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2, 16108 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3, 16109 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX = 4, 16110 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS = 5, 16111 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO = 6, 16112 16113 /* keep last */ 16114 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST, 16115 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX = 16116 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1, 16117 }; 16118 16119 /** 16120 * enum qca_wlan_vendor_attr_mlo_link_info - Defines attributes for 16121 * non-AP MLD link parameters used by the attribute 16122 * %QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO. 16123 * 16124 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX: u32 attribute, used 16125 * to pass the netdev ifindex of the non-AP MLD link. 16126 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR: 6 byte MAC address of 16127 * the non-AP MLD link. 16128 */ 16129 enum qca_wlan_vendor_attr_mlo_link_info { 16130 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_INVALID = 0, 16131 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX = 1, 16132 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR = 2, 16133 16134 /* keep last */ 16135 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST, 16136 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MAX = 16137 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST - 1, 16138 }; 16139 16140 /** 16141 * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with 16142 * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and 16143 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range 16144 * and PSD information. 16145 * 16146 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is 16147 * u32. This attribute is used to indicate the start of the queried frequency 16148 * range in MHz. 16149 * 16150 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32. 16151 * This attribute is used to indicate the end of the queried frequency range 16152 * in MHz. 16153 * 16154 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32. 16155 * This attribute will contain the PSD information for a single range as 16156 * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and 16157 * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes. 16158 * 16159 * The PSD power info (dBm/MHz) from user space should be multiplied 16160 * by a factor of 100 when sending to the driver to preserve granularity 16161 * up to 2 decimal places. 16162 * Example: 16163 * PSD power value: 10.21 dBm/MHz 16164 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021. 16165 * 16166 * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only 16167 * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with 16168 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when 16169 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16170 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE. 16171 * 16172 * The following set of attributes will be used to exchange frequency and 16173 * corresponding PSD information for AFC between the user space and the driver. 16174 */ 16175 enum qca_wlan_vendor_attr_afc_freq_psd_info { 16176 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0, 16177 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1, 16178 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2, 16179 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3, 16180 16181 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST, 16182 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX = 16183 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1, 16184 }; 16185 16186 /** 16187 * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with 16188 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the 16189 * channel list and corresponding EIRP information. 16190 * 16191 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8. 16192 * This attribute is used to indicate queried channel from 16193 * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO. 16194 * 16195 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32. 16196 * This attribute is used to configure the EIRP power info corresponding 16197 * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM. 16198 * The EIRP power info(dBm) from user space should be multiplied 16199 * by a factor of 100 when sending to Driver to preserve granularity up to 16200 * 2 decimal places. 16201 * Example: 16202 * EIRP power value: 34.23 dBm 16203 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423. 16204 * 16205 * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with 16206 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 16207 * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when 16208 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16209 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: 16210 * 16211 * The following set of attributes will be used to exchange Channel and 16212 * corresponding EIRP information for AFC between the user space and Driver. 16213 */ 16214 enum qca_wlan_vendor_attr_afc_chan_eirp_info { 16215 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0, 16216 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1, 16217 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2, 16218 16219 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST, 16220 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX = 16221 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1, 16222 }; 16223 16224 /** 16225 * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested 16226 * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 16227 * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class, 16228 * channel, and EIRP related information. 16229 * 16230 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8. 16231 * This attribute is used to indicate the operating class, as listed under 16232 * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list. 16233 * 16234 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes 16235 * for updating the channel number and EIRP power information. 16236 * It uses the attributes defined in 16237 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. 16238 * 16239 * Operating class information packing format for 16240 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when 16241 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16242 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY. 16243 * 16244 * m - Total number of operating classes. 16245 * n, j - Number of queried channels for the corresponding operating class. 16246 * 16247 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0] 16248 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0] 16249 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 16250 * ..... 16251 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1] 16252 * .... 16253 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m] 16254 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m] 16255 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 16256 * .... 16257 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1] 16258 * 16259 * Operating class information packing format for 16260 * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 16261 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when 16262 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16263 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE. 16264 * 16265 * m - Total number of operating classes. 16266 * n, j - Number of channels for the corresponding operating class. 16267 * 16268 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0] 16269 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0] 16270 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 16271 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0] 16272 * ..... 16273 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1] 16274 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1] 16275 * .... 16276 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m] 16277 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m] 16278 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 16279 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0] 16280 * .... 16281 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1] 16282 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1] 16283 * 16284 * The following set of attributes will be used to exchange operating class 16285 * information for AFC between the user space and the driver. 16286 */ 16287 enum qca_wlan_vendor_attr_afc_opclass_info { 16288 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0, 16289 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1, 16290 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2, 16291 16292 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST, 16293 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX = 16294 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1, 16295 }; 16296 16297 /** 16298 * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type. 16299 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute. 16300 * 16301 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the 16302 * driver to userspace in order to query the new AFC power values. 16303 * 16304 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update 16305 * complete event will be sent from the driver to userspace to indicate 16306 * processing of the AFC response. 16307 * 16308 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event 16309 * will be sent from the driver to userspace to indicate last received 16310 * AFC response data has been cleared on the AP due to invalid data 16311 * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. 16312 * 16313 * The following enum defines the different event types that will be 16314 * used by the driver to help trigger corresponding AFC functionality in user 16315 * space. 16316 */ 16317 enum qca_wlan_vendor_afc_event_type { 16318 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0, 16319 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1, 16320 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2, 16321 }; 16322 16323 /** 16324 * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP 16325 * deployment type. 16326 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute. 16327 * 16328 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment. 16329 * 16330 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment. 16331 * 16332 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment. 16333 * 16334 * The following enum defines different deployment modes that the AP might 16335 * come up in. This information will be essential to retrieve deployment-type 16336 * specific SP power values for AFC operation. 16337 */ 16338 enum qca_wlan_vendor_afc_ap_deployment_type { 16339 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0, 16340 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1, 16341 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2, 16342 }; 16343 16344 /** 16345 * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to 16346 * indicate AFC response status. 16347 * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute. 16348 * 16349 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success 16350 * 16351 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication 16352 * command was not received within the expected time of the AFC expiry event 16353 * being triggered. 16354 * 16355 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data 16356 * parsing error by the driver. 16357 * 16358 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local 16359 * error. 16360 * 16361 * The following enum defines the status codes that the driver will use to 16362 * indicate whether the AFC data is valid or not. 16363 */ 16364 enum qca_wlan_vendor_afc_evt_status_code { 16365 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0, 16366 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1, 16367 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2, 16368 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3, 16369 }; 16370 16371 /** 16372 * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with 16373 * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will 16374 * support sending only a single request to the user space at a time. 16375 * 16376 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute. 16377 * Used with event to notify the type of AFC event received. 16378 * Valid values are defined in enum qca_wlan_vendor_afc_event_type. 16379 * 16380 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when 16381 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, 16382 * otherwise unused. 16383 * 16384 * This attribute is used to indicate the AP deployment type in the AFC request. 16385 * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type. 16386 * 16387 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute. 16388 * Unique request identifier generated by the AFC client for every 16389 * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID. 16390 * The user space application is responsible for ensuring no duplicate values 16391 * are in-flight with the server, e.g., by delaying a request, should the same 16392 * value be received from different radios in parallel. 16393 * 16394 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional. 16395 * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16396 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused. 16397 * 16398 * This attribute indicates the AFC spec version information. This will 16399 * indicate the AFC version AFC client must use to query the AFC data. 16400 * Bits 15:0 - Minor version 16401 * Bits 31:16 - Major version 16402 * 16403 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when 16404 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, 16405 * otherwise unused. 16406 * This attribute indicates the minimum desired power (in dBm) for 16407 * the queried spectrum. 16408 * 16409 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when 16410 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16411 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16412 * 16413 * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code. 16414 * This attribute is used to indicate if there were any errors parsing the 16415 * AFC response. 16416 * 16417 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required 16418 * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16419 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16420 * 16421 * This attribute indicates the AFC response code. The AFC response codes are 16422 * in the following categories: 16423 * -1: General Failure. 16424 * 0: Success. 16425 * 100 - 199: General errors related to protocol. 16426 * 300 - 399: Error events specific to message exchange 16427 * for the Available Spectrum Inquiry. 16428 * 16429 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when 16430 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16431 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16432 * 16433 * This attribute indicates the date until which the current response is 16434 * valid for in UTC format. 16435 * Date format: bits 7:0 - DD (Day 1-31) 16436 * bits 15:8 - MM (Month 1-12) 16437 * bits 31:16 - YYYY (Year) 16438 * 16439 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when 16440 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16441 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16442 * 16443 * This attribute indicates the time until which the current response is 16444 * valid for in UTC format. 16445 * Time format: bits 7:0 - SS (Seconds 0-59) 16446 * bits 15:8 - MM (Minutes 0-59) 16447 * bits 23:16 - HH (Hours 0-23) 16448 * bits 31:24 - Reserved 16449 * 16450 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes 16451 * for updating the list of frequency ranges to be queried. 16452 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16453 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or 16454 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16455 * It uses the attributes defined in 16456 * enum qca_wlan_vendor_attr_afc_freq_psd_info. 16457 * 16458 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes 16459 * for updating the list of operating classes and corresponding channels to be 16460 * queried. 16461 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16462 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or 16463 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16464 * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info. 16465 */ 16466 enum qca_wlan_vendor_attr_afc_event { 16467 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0, 16468 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1, 16469 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2, 16470 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3, 16471 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4, 16472 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5, 16473 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6, 16474 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7, 16475 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8, 16476 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9, 16477 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10, 16478 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11, 16479 16480 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST, 16481 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX = 16482 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1, 16483 }; 16484 16485 /** 16486 * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used 16487 * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes 16488 * will support sending only a single AFC response to the driver at a time. 16489 * 16490 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute. 16491 * This attribute will be used to send a single Spectrum Inquiry response object 16492 * from the 'availableSpectrumInquiryResponses' array object from the response 16493 * JSON. 16494 * 16495 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute. 16496 * 16497 * This attribute indicates the period (in seconds) for which the response 16498 * data received is valid for. 16499 * 16500 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute. 16501 * 16502 * This attribute indicates the request ID for which the corresponding 16503 * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID. 16504 * 16505 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute. 16506 * 16507 * This attribute indicates the date until which the current response is 16508 * valid for in UTC format. 16509 * Date format: bits 7:0 - DD (Day 1-31) 16510 * bits 15:8 - MM (Month 1-12) 16511 * bits 31:16 - YYYY (Year) 16512 * 16513 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute. 16514 * 16515 * This attribute indicates the time until which the current response is 16516 * valid for in UTC format. 16517 * Time format: bits 7:0 - SS (Seconds 0-59) 16518 * bits 15:8 - MM (Minutes 0-59) 16519 * bits 23:16 - HH (Hours 0-23) 16520 * bits 31:24 - Reserved 16521 * 16522 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute. 16523 * 16524 * This attribute indicates the AFC response code. The AFC response codes are 16525 * in the following categories: 16526 * -1: General Failure. 16527 * 0: Success. 16528 * 100 - 199: General errors related to protocol. 16529 * 300 - 399: Error events specific to message exchange 16530 * for the Available Spectrum Inquiry. 16531 * 16532 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes 16533 * for PSD info of all the queried frequency ranges. It uses the attributes 16534 * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute. 16535 * 16536 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested 16537 * attributes for EIRP info of all queried operating class/channels. It uses 16538 * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and 16539 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute. 16540 * 16541 */ 16542 enum qca_wlan_vendor_attr_afc_response { 16543 QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0, 16544 QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1, 16545 QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2, 16546 QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3, 16547 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4, 16548 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5, 16549 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6, 16550 QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7, 16551 QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8, 16552 16553 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST, 16554 QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX = 16555 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1, 16556 }; 16557 16558 /** 16559 * enum qca_wlan_dozed_ap_state - Doze states for AP interface 16560 * 16561 * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface. 16562 * 16563 * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts 16564 * beaconing at higher beacon interval with Rx disabled. 16565 */ 16566 enum qca_wlan_dozed_ap_state { 16567 QCA_WLAN_DOZED_AP_DISABLE = 0, 16568 QCA_WLAN_DOZED_AP_ENABLE = 1, 16569 }; 16570 16571 /** 16572 * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command 16573 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode 16574 * configuration. 16575 * 16576 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute. 16577 * Configures the doze state for an AP interface. Possible values are defined 16578 * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event 16579 * gets triggered asynchronously to provide updated AP interface configuration. 16580 * 16581 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by 16582 * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP 16583 * command, which is used later to maintain synchronization between commands 16584 * and asynchronous events. 16585 * 16586 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute. 16587 * Used in event to indicate the next TBTT TSF timer value after applying the 16588 * doze mode configuration. Next TBTT TSF is the time at which the AP sends 16589 * the first beacon after entering or exiting dozed mode. 16590 * 16591 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute. 16592 * Used with event to inform the periodicity of beacon transmission that would 16593 * be skipped at all TBTTs in between. 16594 */ 16595 enum qca_wlan_vendor_attr_dozed_ap { 16596 QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0, 16597 QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1, 16598 QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2, 16599 QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3, 16600 QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4, 16601 16602 /* Keep last */ 16603 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST, 16604 QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX = 16605 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1, 16606 }; 16607 16608 /** 16609 * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes 16610 * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE. 16611 * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no 16612 * capture running status. 16613 * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate 16614 * capture running status. 16615 **/ 16616 16617 enum qca_wlan_vendor_monitor_mode_status { 16618 QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0, 16619 QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1, 16620 }; 16621 16622 /** 16623 * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the 16624 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report 16625 * information regarding the local packet capture over the monitor mode. 16626 * 16627 * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute 16628 * represents the status of the start capture commands. The values used with 16629 * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This 16630 * is returned by the driver in the response to the command. 16631 */ 16632 16633 enum qca_wlan_vendor_attr_get_monitor_mode { 16634 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0, 16635 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1, 16636 16637 /* Keep last */ 16638 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST, 16639 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX = 16640 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1, 16641 }; 16642 16643 /** 16644 * enum qca_wlan_vendor_link_state_op_types - Defines different types of 16645 * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used. 16646 * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute. 16647 * 16648 * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information. 16649 * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information. 16650 */ 16651 enum qca_wlan_vendor_link_state_op_types { 16652 QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0, 16653 QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1, 16654 }; 16655 16656 /** 16657 * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO 16658 * links state control modes. This enum is used by 16659 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute. 16660 * 16661 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled 16662 * by the driver. 16663 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by 16664 * user space. 16665 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the 16666 * desired number of MLO links to operate in active state at any given time. 16667 * The driver will choose which MLO links should operate in the active state. 16668 * See enum qca_wlan_vendor_link_state for active state definition. 16669 */ 16670 enum qca_wlan_vendor_link_state_control_modes { 16671 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0, 16672 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1, 16673 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2, 16674 }; 16675 16676 /** 16677 * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO 16678 * links state operation modes. This enum is used by 16679 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute. 16680 * 16681 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation 16682 * mode, the driver selects the operating mode of the links, without any 16683 * guidance from the user space. 16684 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency 16685 * operation mode the driver should select MLO links that will achieve low 16686 * latency. 16687 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high 16688 * throughput operation mode the driver should select MLO links that will 16689 * achieve higher throughput. 16690 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power 16691 * operation mode the driver should select MLO links that will achieve low 16692 * power. 16693 */ 16694 enum qca_wlan_vendor_link_state_operation_modes { 16695 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0, 16696 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1, 16697 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2, 16698 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3, 16699 }; 16700 16701 /** 16702 * enum qca_wlan_vendor_link_state - Represents the possible link states of an 16703 * MLO link. 16704 * 16705 * @QCA_WLAN_VENDOR_LINK_STATE_INACTIVE: In this state, the link will not 16706 * be used for data transmission but it can have TIDs mapped to it. It will be 16707 * in doze state always and does not monitor the beacons. 16708 * @QCA_WLAN_VENDOR_LINK_STATE_ACTIVE: In this state, the link will be 16709 * used for data TX/RX and monitors the beacons to check TIM bit indication. 16710 * It may enter doze state and comes out based on the transmit data traffic and 16711 * TIM bit indication in the beacon. 16712 */ 16713 enum qca_wlan_vendor_link_state { 16714 QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0, 16715 QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1, 16716 }; 16717 16718 /** 16719 * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used 16720 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG. 16721 * 16722 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the 16723 * MLO link. 16724 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See 16725 * enum qca_wlan_vendor_link_state for possible MLO link states. 16726 */ 16727 16728 enum qca_wlan_vendor_attr_link_state_config { 16729 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0, 16730 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1, 16731 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2, 16732 16733 /* Keep last */ 16734 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST, 16735 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX = 16736 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1, 16737 }; 16738 16739 /** 16740 * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by 16741 * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command. 16742 * 16743 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type 16744 * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for. 16745 * Required only in a command. Possible values for this attribute are defined in 16746 * enum qca_wlan_vendor_link_state_op_types. 16747 * 16748 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO 16749 * links control mode type. Optional attribute in a command when 16750 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16751 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when 16752 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16753 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 16754 * See enum qca_wlan_vendor_link_state_control_modes for possible control modes. 16755 * 16756 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes. 16757 * Indicates the state of the each MLO link affiliated with the interface. 16758 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE 16759 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and 16760 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to 16761 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a 16762 * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16763 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 16764 * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes. 16765 * 16766 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute. 16767 * Represents the number of active state links. See enum 16768 * qca_wlan_vendor_link_state for active state definition. 16769 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE 16770 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and 16771 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to 16772 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED. 16773 * 16774 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO 16775 * links operation mode type. Optional attribute in a command when 16776 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16777 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when 16778 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16779 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 16780 * See enum qca_wlan_vendor_link_state_operation_modes for possible operation 16781 * modes. 16782 */ 16783 enum qca_wlan_vendor_attr_mlo_link_state { 16784 QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0, 16785 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1, 16786 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2, 16787 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3, 16788 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4, 16789 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5, 16790 16791 /* keep last */ 16792 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST, 16793 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX = 16794 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1, 16795 }; 16796 16797 /** 16798 * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used 16799 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS. 16800 * 16801 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute 16802 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS. 16803 * Indicates the link mapping bitmap of a TID for uplink traffic. It is a 16804 * bitmask of the link IDs in which a bit set means that the TID is mapped with 16805 * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink 16806 * traffic for that link. 16807 * 16808 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute 16809 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS. 16810 * Indicates the link mapping bitmap of a TID for downlink traffic. It is a 16811 * bitmask of the link IDs in which a bit set means that the TID is mapped with 16812 * that link ID in downlink traffic. Otherwise, the TID is not mapped to 16813 * downlink traffic for that link. 16814 */ 16815 enum qca_wlan_vendor_attr_tid_link_map_status { 16816 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0, 16817 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1, 16818 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2, 16819 16820 /* keep last */ 16821 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST, 16822 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX = 16823 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1, 16824 }; 16825 16826 /* 16827 * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with 16828 * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event. 16829 * 16830 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte 16831 * AP MLD address with which this TID-to-link negotiation mapping is 16832 * established/updated. 16833 * 16834 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of 16835 * nested attributes containing TID-to-links mapping information. This will have 16836 * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink 16837 * map information. If this attribute is not present the default TID-to-link 16838 * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and 16839 * downlink traffic. 16840 * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes. 16841 */ 16842 enum qca_wlan_vendor_attr_tid_to_link_map { 16843 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0, 16844 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1, 16845 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2, 16846 16847 /* keep last */ 16848 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST, 16849 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX = 16850 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1, 16851 }; 16852 16853 /** 16854 * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used 16855 * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event. 16856 * 16857 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute. 16858 * 6-byte AP MLD address of the AP which indicated the link reconfiguration. 16859 * 16860 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute. 16861 * A bitmap of the removed setup links link IDs. 16862 */ 16863 enum qca_wlan_vendor_attr_link_reconfig { 16864 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0, 16865 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1, 16866 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2, 16867 16868 /* keep last */ 16869 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST, 16870 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX = 16871 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1, 16872 }; 16873 16874 /** 16875 * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by 16876 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command. 16877 * 16878 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute. 16879 * Indicates the MLO link id on which the TDLS discovery response 16880 * frame is to be transmitted. 16881 */ 16882 enum qca_wlan_vendor_attr_tdls_disc_rsp_ext { 16883 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0, 16884 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1, 16885 16886 /* Keep last */ 16887 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST, 16888 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX = 16889 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1, 16890 }; 16891 16892 /** 16893 * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states. 16894 * 16895 * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status 16896 * for all stations. 16897 * 16898 * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to 16899 * establish the session. 16900 * 16901 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is 16902 * established. 16903 * 16904 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS 16905 * session is established using MCC. 16906 * 16907 * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was 16908 * established, but is temporarily dropped currently. 16909 * 16910 * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish. 16911 */ 16912 enum qca_wlan_vendor_tdls_state { 16913 QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1, 16914 QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2, 16915 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3, 16916 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4, 16917 QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5, 16918 QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6, 16919 }; 16920 16921 /** 16922 * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons. 16923 * 16924 * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established. 16925 * 16926 * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason. 16927 * 16928 * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported. 16929 * 16930 * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported. 16931 * 16932 * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better 16933 * than through direct link. 16934 * 16935 * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS 16936 * session anymore. 16937 */ 16938 16939 enum qca_wlan_vendor_tdls_reason { 16940 QCA_WLAN_TDLS_REASON_SUCCESS = 0, 16941 QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1, 16942 QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2, 16943 QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3, 16944 QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4, 16945 QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5, 16946 }; 16947 16948 /** 16949 * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by 16950 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command. 16951 * 16952 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer 16953 * station to enable the TDLS session. Optional attribute. The driver sends the 16954 * TDLS session result as an asynchronous response using the command 16955 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in 16956 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command. 16957 * 16958 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the 16959 * channel on which the TDLS session to be established. Required only when 16960 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present. 16961 * 16962 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute. 16963 * Indicates the global operating class of the TDLS session to be established. 16964 * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present. 16965 * 16966 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates 16967 * the maximum latency of the WLAN packets to be transmitted/received in 16968 * milliseconds on TDLS session. Required only when 16969 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present. 16970 * 16971 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute. 16972 * Indicates the minimum bandwidth to be used to establish the TDLS session 16973 * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is 16974 * present. 16975 */ 16976 enum qca_wlan_vendor_attr_tdls_enable { 16977 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0, 16978 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1, 16979 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2, 16980 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3, 16981 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4, 16982 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5, 16983 16984 /* keep last */ 16985 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST, 16986 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX = 16987 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1, 16988 }; 16989 16990 /** 16991 * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by 16992 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command. 16993 * 16994 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer 16995 * station to disable the TDLS session. Optional attribute. 16996 */ 16997 enum qca_wlan_vendor_attr_tdls_disable { 16998 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0, 16999 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1, 17000 17001 /* keep last */ 17002 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST, 17003 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX = 17004 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1, 17005 }; 17006 17007 /** 17008 * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by 17009 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command. 17010 * 17011 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the 17012 * peer station. Optional attribute. Used in 17013 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response. 17014 * 17015 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the 17016 * TDLS session state with the peer specified in 17017 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from 17018 * enum qca_wlan_vendor_tdls_state. Used in 17019 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 17020 * 17021 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the 17022 * reason for the TDLS session state indicated in 17023 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum 17024 * qca_wlan_vendor_tdls_reason. Used in 17025 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 17026 * 17027 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the 17028 * channel of the TDLS session established with 17029 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in 17030 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 17031 * 17032 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute. 17033 * Indicates the global operating class of the TDLS session established with 17034 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in 17035 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 17036 * 17037 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates 17038 * the current number of active TDLS sessions. This is indicated in the response 17039 * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with 17040 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute. 17041 * 17042 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates 17043 * whether the driver can initiate new TDLS session. This is indicated in the 17044 * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with 17045 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute. 17046 */ 17047 enum qca_wlan_vendor_attr_tdls_get_status { 17048 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0, 17049 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1, 17050 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2, 17051 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3, 17052 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4, 17053 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5, 17054 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6, 17055 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7, 17056 17057 /* keep last */ 17058 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST, 17059 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX = 17060 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1, 17061 }; 17062 17063 /** 17064 * enum qca_wlan_vendor_attr_tdls_state - Attributes used by 17065 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command. 17066 * 17067 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the 17068 * peer station. Required attribute. 17069 * 17070 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates 17071 * the current TDLS state. Required attribute. Uses the values from 17072 * enum qca_wlan_vendor_tdls_state. 17073 * 17074 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the 17075 * reason of the current TDLS session state. Required attribute. Uses the values 17076 * from enum qca_wlan_vendor_tdls_reason. 17077 * 17078 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the 17079 * TDLS session channel. Required attribute. 17080 * 17081 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute. 17082 * Indicates the TDLS session global operating class. Required attribute. 17083 */ 17084 enum qca_wlan_vendor_attr_tdls_state { 17085 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0, 17086 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1, 17087 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2, 17088 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3, 17089 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4, 17090 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5, 17091 17092 /* keep last */ 17093 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST, 17094 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX = 17095 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1, 17096 }; 17097 17098 /* 17099 * enum qca_wlan_vendor_opm_mode - Modes supported by 17100 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute. 17101 * 17102 * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled 17103 * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled 17104 * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user 17105 * to configure power save inactivity timeout and speculative wake up 17106 * interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and 17107 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes. 17108 */ 17109 17110 enum qca_wlan_vendor_opm_mode { 17111 QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0, 17112 QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1, 17113 QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2, 17114 }; 17115 17116 /* enum qca_wlan_audio_transport_switch_type - Represents the possible transport 17117 * switch types. 17118 * 17119 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN: Request to route audio data 17120 * via non-WLAN transport (ex: bluetooth). 17121 * 17122 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN: Request to route audio data via 17123 * WLAN transport. 17124 */ 17125 enum qca_wlan_audio_transport_switch_type { 17126 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN = 0, 17127 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN = 1, 17128 }; 17129 17130 /** 17131 * enum qca_wlan_audio_transport_switch_status - Represents the status of audio 17132 * transport switch request. 17133 * 17134 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED: Request to switch transport 17135 * has been rejected. For ex: when transport switch is requested from WLAN 17136 * to non-WLAN transport, user space modules and peers would evaluate the switch 17137 * request and may not be ready for switch and hence switch to non-WLAN transport 17138 * gets rejected. 17139 * 17140 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED: Request to switch transport 17141 * has been completed. This is sent only in command path. Ex: when host driver 17142 * had requested for audio transport switch and userspace modules as well as 17143 * peers are ready for the switch, userspace module switches the transport and 17144 * sends subcommand with status completed to host driver. 17145 */ 17146 enum qca_wlan_audio_transport_switch_status { 17147 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED = 0, 17148 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED = 1, 17149 }; 17150 17151 /** 17152 * enum qca_wlan_vendor_attr_audio_transport_switch - Attributes used by 17153 * %QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH vendor command. 17154 * 17155 * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE: u8 attribute. Indicates 17156 * the transport switch type from one of the values in enum 17157 * qca_wlan_audio_transport_switch_type. This is mandatory param in both 17158 * command and event path. This attribute is included in both requests and 17159 * responses. 17160 * 17161 * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS: u8 attribute. Indicates 17162 * the transport switch status from one of the values in enum 17163 * qca_wlan_audio_transport_switch_status. This is optional param and used in 17164 * both command and event path. This attribute must not be included in requests. 17165 */ 17166 enum qca_wlan_vendor_attr_audio_transport_switch { 17167 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_INVALID = 0, 17168 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE = 1, 17169 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS = 2, 17170 /* keep last */ 17171 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST, 17172 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_MAX = 17173 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST - 1, 17174 }; 17175 17176 /* 17177 * enum qca_wlan_vendor_tx_latency_type - Represents the possible latency 17178 * types. 17179 * 17180 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER: Per MSDU latency 17181 * from: An MSDU is presented to the driver 17182 * to: the MSDU is queued into TCL SRNG 17183 * 17184 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING: Per MSDU latency 17185 * from: the MSDU is queued into TCL SRNG 17186 * to: the MSDU is released by the driver 17187 * 17188 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW: Per MSDU latency 17189 * from: the MSDU is presented to the hardware 17190 * to: the MSDU is released by the hardware 17191 * 17192 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA: Per PPDU latency 17193 * The time spent on Clear Channel Assessment, the maximum value is 50000 (us) 17194 * from: A PPDU is presented to the hardware LMAC 17195 * to: over-the-air transmission is started for the PPDU 17196 */ 17197 enum qca_wlan_vendor_tx_latency_type { 17198 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER = 0, 17199 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING = 1, 17200 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW = 2, 17201 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA = 3, 17202 }; 17203 17204 /** 17205 * enum qca_wlan_vendor_attr_tx_latency_bucket - Definition of attributes 17206 * used inside nested attributes 17207 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS and 17208 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS. 17209 * 17210 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE: u8 attribute. 17211 * Indicates the latency type. 17212 * See enum qca_wlan_vendor_tx_latency_type for the supported types. 17213 * 17214 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY: u32 attribute. 17215 * Indicates the granularity (in microseconds) of the distribution for the 17216 * type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE), the value 17217 * must be positive. 17218 * If %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE is 17219 * %QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA, the value must be an integer multiple 17220 * of 1000, and the maximum allowed value is 15000 (us). 17221 * 17222 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE: u32 attribute. 17223 * Indicates the average of the latency (in microseconds) for the type 17224 * (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE) within a cycle. 17225 * If there is no transmitted MSDUs/MPDUs during a cycle, this average is 0; 17226 * otherwise, it represents the quotient of <accumulated latency of the 17227 * transmitted MSDUs/MPDUs in a cycle> divided by <the number of the transmitted 17228 * MSDUs/MPDUs in a cycle>. 17229 * 17230 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION: 17231 * Array of u32, 4 elements in total, represents the latency distribution for 17232 * the type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE). 17233 * Each element holds the count of MSDUs/PPDUs (according to the latency type) 17234 * within a range: 17235 * element[0]: latency >= 0 && latency < granularity 17236 * element[1]: latency >= granularity && latency < granularity * 2 17237 * element[2]: latency >= granularity * 2 && latency < granularity * 3 17238 * element[3]: latency >= granularity * 3 17239 */ 17240 enum qca_wlan_vendor_attr_tx_latency_bucket { 17241 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_INVALID = 0, 17242 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE = 1, 17243 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY = 2, 17244 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE = 3, 17245 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION = 4, 17246 17247 /* keep last */ 17248 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST, 17249 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_MAX = 17250 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST - 1, 17251 }; 17252 17253 /** 17254 * enum qca_wlan_vendor_attr_tx_latency_link - Definition of attributes 17255 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS. 17256 * 17257 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE: 6-byte MAC address. 17258 * Indicates link MAC address of the remote peer. For example, when running 17259 * in station mode, it's the BSSID of the link; while when running in AP 17260 * mode, it's the link MAC address of the remote station. 17261 * 17262 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS: 17263 * Array of nested attribute. 17264 * Represents the transmit latency statistics for the link specified by 17265 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE. 17266 * Each entry represents the statistics for one of the types defined in 17267 * enum qca_wlan_vendor_tx_latency_type. 17268 * Each defined type has and must have one entry. 17269 * See enum qca_wlan_vendor_attr_tx_latency_bucket for nested attributes. 17270 */ 17271 enum qca_wlan_vendor_attr_tx_latency_link { 17272 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_INVALID = 0, 17273 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE = 1, 17274 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS = 2, 17275 17276 /* keep last */ 17277 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST, 17278 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAX = 17279 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST - 1, 17280 }; 17281 17282 /** 17283 * enum qca_wlan_vendor_tx_latency_action - Represents the possible actions 17284 * for %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY. 17285 * 17286 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE: 17287 * Disable transmit latency monitoring. 17288 * 17289 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE: 17290 * Enable transmit latency monitoring. 17291 * 17292 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET: 17293 * Get transmit latency statistics of the last cycle (period is specified by 17294 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD). 17295 */ 17296 enum qca_wlan_vendor_tx_latency_action { 17297 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE = 0, 17298 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE = 1, 17299 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET = 2, 17300 }; 17301 17302 /** 17303 * enum qca_wlan_vendor_attr_tx_latency - Definition of attributes used by 17304 * %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY to configure, retrieve, and report 17305 * per-link transmit latency statistics. 17306 * 17307 * There are 6 uses of %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY: 17308 * 1) used as a command to enable the feature 17309 * Precondition(s): 17310 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 17311 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE 17312 * Mandatory attribute(s): 17313 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION, 17314 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD, 17315 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS with nested attributes 17316 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE, 17317 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY. 17318 * Notes: 17319 * The driver will monitor the transmit latency for the active links 17320 * and save the statistics for each cycle (period is set by 17321 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD) when the feature is enabled. 17322 * Set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT if periodical 17323 * report is required. 17324 * 17325 * 2) used as a command to disable the feature 17326 * Precondition(s): 17327 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 17328 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE 17329 * Mandatory attribute(s): 17330 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION 17331 * 17332 * 3) used as a command to retrieve the statistics for all the active links on 17333 * the requested interface 17334 * Precondition(s): 17335 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 17336 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and 17337 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is NOT present. 17338 * Mandatory attribute(s): 17339 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION 17340 * Notes: 17341 * The driver returns failure directly if the feature is not enabled or 17342 * there is no active link. 17343 * The driver returns the statistics of the last cycle in the case of 17344 * success. 17345 * 17346 * 4) used as a command to retrieve the statistics for the specified links 17347 * Precondition(s): 17348 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 17349 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and 17350 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is present. 17351 * Mandatory attribute(s): 17352 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION, 17353 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attribute 17354 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE. 17355 * Notes: 17356 * The driver returns failure directly if the feature is not enabled or 17357 * any of the links (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS) 17358 * does not exist or is not in active state. 17359 * 17360 * 5) used as a command response for #3 or #4 17361 * Precondition(s): 17362 * Userspace issues command #3 or #4, and the driver gets corresponding 17363 * statistics successfully. 17364 * Mandatory attribute(s): 17365 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes 17366 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE, 17367 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested 17368 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE, 17369 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY, 17370 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and 17371 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION. 17372 * 17373 * 6) used as an asynchronous event to report the statistics periodically 17374 * Precondition(s): 17375 * Userspace set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT in 17376 * #1. 17377 * One or more links are in active state. 17378 * Mandatory attribute(s): 17379 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes 17380 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE, 17381 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested 17382 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE, 17383 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY, 17384 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and 17385 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION. 17386 * 17387 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID: Invalid attribute 17388 * 17389 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION: u32 attribute. 17390 * Action to take in this vendor command. 17391 * See enum qca_wlan_vendor_tx_latency_action for supported actions. 17392 * 17393 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT: Flag attribute. 17394 * Enable (flag attribute present) - The driver needs to report transmit latency 17395 * statistics at the end of each statistical period. 17396 * Disable (flag attribute not present) - The driver doesn't need to report 17397 * transmit latency statistics periodically. 17398 * 17399 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD: u32 attribute. 17400 * Indicates statistical period for transmit latency in terms of milliseconds, 17401 * the minimal allowed value is 100 and the maximum allowed value is 60000. 17402 * 17403 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS: Array of nested attribute. 17404 * Each entry represents the latency buckets configuration for one of the types 17405 * defined in enum qca_wlan_vendor_tx_latency_type. 17406 * Each defined type has and must have one entry. 17407 * See enum qca_wlan_vendor_attr_tx_latency_bucket for the list of 17408 * supported attributes. 17409 * 17410 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS: Array of nested attribute. 17411 * Information of the links, each entry represents for one link. 17412 * See enum qca_wlan_vendor_attr_tx_latency_link for the list of 17413 * supported attributes for each entry. 17414 */ 17415 enum qca_wlan_vendor_attr_tx_latency { 17416 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID = 0, 17417 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION = 1, 17418 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT = 2, 17419 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD = 3, 17420 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS = 4, 17421 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS = 5, 17422 17423 /* keep last */ 17424 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST, 17425 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_MAX = 17426 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST - 1, 17427 }; 17428 17429 /** 17430 * qca_wlan_vendor_attr_RECONFIG_REMOVE_COMPLETE_EVENT - Defines attributes for 17431 * ML Reconfig (Mlo Link removal) parameters used by the attribute 17432 * @QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_IFINDEX: u32 attribute 17433 * used to pass the netdev ifindex of the MLO Reconfiguration link. 17434 */ 17435 enum qca_wlan_vendor_attr_reconfig_remove_complete_EVENT { 17436 QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_IFINDEX = 0, 17437 17438 /* keep last */ 17439 QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_AFTER_LAST, 17440 QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_MAX = 17441 QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_AFTER_LAST - 1, 17442 }; 17443 17444 /** 17445 * enum qca_wlan_vendor_attr_tpc_pwr_level - Definition of attributes 17446 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL. 17447 * 17448 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY: u32 channel center 17449 * frequency (MHz): If PSD power, carries one 20 MHz sub-channel center 17450 * frequency. If non PSD power, carries either 20 MHz bandwidth's center 17451 * channel frequency or 40 MHz bandwidth's center channel frequency 17452 * (or 80/160 MHz bandwidth's center channel frequency). 17453 * 17454 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER: s8 transmit power limit (dBm). 17455 * If PSD power, carries PSD power value of the 17456 * QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY mentioned sub-channel. 17457 * If non PSD power, carries EIRP power value of bandwidth mentioned 17458 * by QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY center frequency. 17459 */ 17460 enum qca_wlan_vendor_attr_tpc_pwr_level { 17461 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_INVALID = 0, 17462 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY = 1, 17463 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER = 2, 17464 17465 /* keep last */ 17466 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST, 17467 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_MAX = 17468 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST - 1, 17469 }; 17470 17471 /** 17472 * enum qca_wlan_vendor_tpc - Definition of link attributes 17473 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_LINKS. 17474 * 17475 * @QCA_WLAN_VENDOR_ATTR_TPC_BSSID: 6-bytes AP BSSID. 17476 * For MLO STA, AP BSSID indicates the AP's link address. 17477 * 17478 * @QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER: PSD power flag 17479 * Indicates using PSD power mode if this flag is present. 17480 * 17481 * @QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER: s8 Regulatory EIRP power 17482 * value in dBm 17483 * 17484 * @QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ: u8 power type of 6 GHz 17485 * AP, refer to Table E-12-Regulatory Info subfield encoding in 17486 * IEEE P802.11-REVme/D4.0. Only present if link is connected to 6 GHz AP. 17487 * 17488 * @QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER: u8 Local Power Constraint 17489 * (dBm) advertised by AP in Power Constraint element, refer to 17490 * IEEE Std 802.11-2020, 9.4.2.13 Power Constraint element. 17491 * 17492 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL: A nested attribute containing 17493 * attributes defined by enum qca_wlan_vendor_attr_tpc_pwr_level. 17494 * If PSD power, each power level describes each 20 MHz subchannel PSD 17495 * power value. If non PSD power, each power level describes each supported 17496 * bandwidth's EIRP power value (up to Max bandwidth of AP operating on), 17497 * each level attribute contains corresponding bandwidth's center channel 17498 * frequency and its EIRP power value. 17499 */ 17500 enum qca_wlan_vendor_attr_tpc { 17501 QCA_WLAN_VENDOR_ATTR_TPC_INVALID = 0, 17502 QCA_WLAN_VENDOR_ATTR_TPC_BSSID = 1, 17503 QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER = 2, 17504 QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER = 3, 17505 QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ = 4, 17506 QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER = 5, 17507 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL = 6, 17508 17509 /* keep last */ 17510 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST, 17511 QCA_WLAN_VENDOR_ATTR_TPC_MAX = 17512 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1, 17513 }; 17514 17515 /** 17516 * enum qca_wlan_vendor_attr_tpc_links - Definition of attributes 17517 * for %QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO subcommand 17518 * 17519 * @QCA_WLAN_VENDOR_ATTR_TPC_LINKS: A nested attribute containing 17520 * per-link TPC information of all the active links of MLO STA. 17521 * For non MLO STA, only one link TPC information will be returned 17522 * for connected AP in this nested attribute. 17523 * The attributes used inside this nested attributes are defined 17524 * in enum qca_wlan_vendor_attr_tpc. 17525 */ 17526 enum qca_wlan_vendor_attr_tpc_links { 17527 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_INVALID = 0, 17528 QCA_WLAN_VENDOR_ATTR_TPC_LINKS = 1, 17529 17530 /* keep last */ 17531 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_AFTER_LAST, 17532 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_MAX = 17533 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1, 17534 }; 17535 17536 /** 17537 * enum qca_wlan_btm_support: BTM support configuration 17538 * 17539 * @QCA_WLAN_BTM_SUPPORT_DEFAULT: Restore default BTM support policy. The driver 17540 * follows the BSS Transition bit in the Extended Capabilities element from the 17541 * connect request IEs with the default BTM support policy. 17542 * 17543 * @QCA_WLAN_BTM_SUPPORT_DISABLE: Disable BTM support for the subsequent 17544 * (re)association attempts. The driver shall restore the default BTM support 17545 * policy during the first disconnection after successful association. When this 17546 * configuration is enabled, the driver shall overwrite the BSS Transition bit 17547 * as zero in the Extended Capabilities element while sending (Re)Association 17548 * Request frames. Also, the driver shall drop the BTM frames from userspace and 17549 * the connected AP when this configuration is enabled. 17550 */ 17551 enum qca_wlan_btm_support { 17552 QCA_WLAN_BTM_SUPPORT_DEFAULT = 0, 17553 QCA_WLAN_BTM_SUPPORT_DISABLE = 1, 17554 }; 17555 #endif 17556