1 /* 2 * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved. 3 * Copyright (c) 2021-2023 Qualcomm Innovation Center, Inc. All rights reserved. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for 6 * any purpose with or without fee is hereby granted, provided that the 7 * above copyright notice and this permission notice appear in all 8 * copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17 * PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20 /** 21 * DOC: declares vendor commands interfacing with linux kernel 22 */ 23 24 25 #ifndef _WLAN_QCA_VENDOR_H_ 26 #define _WLAN_QCA_VENDOR_H_ 27 28 /* Vendor id to be used in vendor specific command and events 29 * to user space. 30 * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID, 31 * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and 32 * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in 33 * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that 34 */ 35 36 #define QCA_NL80211_VENDOR_ID 0x001374 37 38 #ifndef BIT 39 #define BIT(x) (1U << (x)) 40 #endif 41 42 /** 43 * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command 44 * 45 * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified 46 * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test 47 * Sub commands 2 to 8 are not used 48 * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming 49 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency. 50 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability 51 * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass 52 * NAN Request/Response and NAN Indication messages. These messages are 53 * interpreted between the framework and the firmware component. While 54 * sending the command from userspace to the driver, payload is not 55 * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN 56 * is used when receiving vendor events in userspace from the driver. 57 * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats 58 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set 59 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get 60 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear 61 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio 62 * results 63 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface 64 * results 65 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer 66 * results 67 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start 68 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop 69 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid 70 * channels 71 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability 72 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached 73 * results 74 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results 75 * available. Used when report_threshold is reached in scan cache. 76 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan 77 * result. Used to report scan results when each probe rsp. is received, 78 * if report_events enabled in wifi_scan_cmd_params. 79 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target. 80 * Indicates progress of scanning state-machine. 81 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist 82 * ap found 83 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist 84 * bssid 85 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset 86 * hotlist bssid 87 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant 88 * change 89 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set 90 * significant change 91 * ap found 92 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset 93 * significant change 94 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: 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 841 enum qca_nl80211_vendor_subcmds { 842 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, 843 QCA_NL80211_VENDOR_SUBCMD_TEST = 1, 844 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9, 845 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10, 846 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11, 847 QCA_NL80211_VENDOR_SUBCMD_NAN = 12, 848 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13, 849 850 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14, 851 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15, 852 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16, 853 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17, 854 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18, 855 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19, 856 857 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20, 858 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21, 859 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22, 860 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23, 861 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24, 862 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25, 863 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26, 864 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27, 865 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28, 866 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29, 867 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30, 868 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31, 869 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32, 870 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33, 871 872 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34, 873 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35, 874 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36, 875 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37, 876 877 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38, 878 879 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39, 880 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40, 881 882 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41, 883 884 /* Get Concurrency Matrix */ 885 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42, 886 887 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50, 888 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51, 889 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52, 890 891 /* Deprecated */ 892 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53, 893 894 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54, 895 896 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55, 897 898 /* Off loaded DFS events */ 899 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56, 900 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57, 901 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58, 902 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59, 903 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60, 904 905 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61, 906 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62, 907 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63, 908 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64, 909 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65, 910 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66, 911 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67, 912 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68, 913 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69, 914 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70, 915 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71, 916 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72, 917 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73, 918 919 /* Wi-Fi Configuration subcommands */ 920 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74, 921 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75, 922 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76, 923 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77, 924 925 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78, 926 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79, 927 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80, 928 QCA_NL80211_VENDOR_SUBCMD_NDP = 81, 929 930 /* NS Offload enable/disable cmd */ 931 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82, 932 933 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83, 934 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84, 935 936 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85, 937 938 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91, 939 /* OCB commands */ 940 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92, 941 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93, 942 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94, 943 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95, 944 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96, 945 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97, 946 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98, 947 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99, 948 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100, 949 950 /* subcommand to get link properties */ 951 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101, 952 /* LFR Subnet Detection */ 953 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102, 954 955 /* DBS subcommands */ 956 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103, 957 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104, 958 959 /* Vendor setband command */ 960 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105, 961 962 /* Vendor scan commands */ 963 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106, 964 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107, 965 966 /* OTA test subcommand */ 967 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108, 968 /* Tx power scaling subcommands */ 969 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109, 970 /* Tx power scaling in db subcommands */ 971 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115, 972 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116, 973 QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117, 974 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118, 975 QCA_NL80211_VENDOR_SUBCMD_TSF = 119, 976 QCA_NL80211_VENDOR_SUBCMD_WISA = 120, 977 QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121, 978 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122, 979 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123, 980 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124, 981 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125, 982 983 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126, 984 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127, 985 /* FTM/indoor location subcommands */ 986 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128, 987 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129, 988 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130, 989 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131, 990 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132, 991 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133, 992 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134, 993 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135, 994 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136, 995 996 /* Encrypt/Decrypt command */ 997 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137, 998 999 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138, 1000 /* DMG low level RF sector operations */ 1001 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139, 1002 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140, 1003 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141, 1004 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142, 1005 1006 /* Configure the TDLS mode from user space */ 1007 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143, 1008 1009 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144, 1010 1011 /* Vendor abort scan command */ 1012 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145, 1013 1014 /* Set Specific Absorption Rate(SAR) Power Limits */ 1015 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146, 1016 1017 /* External Auto channel configuration setting */ 1018 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147, 1019 1020 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148, 1021 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149, 1022 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150, 1023 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151, 1024 1025 /* Set the trace level for QDF */ 1026 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152, 1027 1028 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153, 1029 1030 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154, 1031 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155, 1032 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156, 1033 QCA_NL80211_VENDOR_SUBCMD_HANG = 157, 1034 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158, 1035 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159, 1036 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160, 1037 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161, 1038 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162, 1039 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163, 1040 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164, 1041 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165, 1042 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166, 1043 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167, 1044 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168, 1045 /* Wi-Fi test configuration subcommand */ 1046 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169, 1047 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171, 1048 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173, 1049 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174, 1050 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175, 1051 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177, 1052 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178, 1053 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179, 1054 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180, 1055 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181, 1056 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182, 1057 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183, 1058 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184, 1059 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185, 1060 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186, 1061 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187, 1062 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188, 1063 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189, 1064 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190, 1065 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191, 1066 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192, 1067 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193, 1068 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194, 1069 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195, 1070 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196, 1071 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197, 1072 QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198, 1073 QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199, 1074 QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200, 1075 QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201, 1076 QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202, 1077 QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203, 1078 QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204, 1079 QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205, 1080 /* 206..212 - reserved for QCA */ 1081 QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213, 1082 QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214, 1083 QCA_NL80211_VENDOR_SUBCMD_PASN = 215, 1084 QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216, 1085 QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217, 1086 QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218, 1087 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219, 1088 QCA_NL80211_VENDOR_SUBCMD_SR = 220, 1089 QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221, 1090 QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222, 1091 QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223, 1092 QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224, 1093 QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225, 1094 QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226, 1095 QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227, 1096 QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228, 1097 QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229, 1098 QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230, 1099 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231, 1100 QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH = 232, 1101 QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY = 233, 1102 QCA_NL80211_VENDOR_SUBCMD_RECONFIG_REMOVE_COMPLETE_EVENT = 234, 1103 }; 1104 1105 enum qca_wlan_vendor_tos { 1106 QCA_WLAN_VENDOR_TOS_BK = 0, 1107 QCA_WLAN_VENDOR_TOS_BE = 1, 1108 QCA_WLAN_VENDOR_TOS_VI = 2, 1109 QCA_WLAN_VENDOR_TOS_VO = 3, 1110 }; 1111 1112 /** 1113 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command 1114 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS. 1115 */ 1116 enum qca_wlan_vendor_attr_active_tos { 1117 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0, 1118 /* Type Of Service - Represented by qca_wlan_vendor_tos */ 1119 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1, 1120 /* Flag attribute representing the start (attribute included) or stop 1121 * (attribute not included) of the respective TOS. 1122 */ 1123 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2, 1124 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3, 1125 }; 1126 1127 enum qca_wlan_vendor_hang_reason { 1128 /* Unspecified reason */ 1129 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0, 1130 /* No Map for the MAC entry for the received frame */ 1131 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1, 1132 /* peer deletion timeout happened */ 1133 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2, 1134 /* peer unmap timeout */ 1135 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3, 1136 /* Scan request timed out */ 1137 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4, 1138 /* Consecutive Scan attempt failures */ 1139 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5, 1140 /* Unable to get the message buffer */ 1141 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6, 1142 /* Current command processing is timedout */ 1143 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7, 1144 /* Timeout for an ACK from FW for suspend request */ 1145 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8, 1146 /* Timeout for an ACK from FW for resume request */ 1147 QCA_WLAN_HANG_RESUME_TIMEOUT = 9, 1148 /* Transmission timeout for consecutive data frames */ 1149 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10, 1150 /* Timeout for the TX completion status of data frame */ 1151 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11, 1152 /* DXE failure for tx/Rx, DXE resource unavailability */ 1153 QCA_WLAN_HANG_DXE_FAILURE = 12, 1154 /* WMI pending commands exceed the maximum count */ 1155 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13, 1156 /* Timeout for peer STA connection accept command's response from the 1157 * FW in AP mode. This command is triggered when a STA (peer) connects 1158 * to AP (DUT). 1159 */ 1160 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14, 1161 /* Timeout for the AP connection accept command's response from the FW 1162 * in STA mode. This command is triggered when the STA (DUT) connects 1163 * to an AP (peer). 1164 */ 1165 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15, 1166 /* Timeout waiting for the response to the MAC HW mode change command 1167 * sent to FW as a part of MAC mode switch among DBS (Dual Band 1168 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi 1169 * Channel Concurrency) mode. 1170 */ 1171 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16, 1172 /* Timeout waiting for the response from FW to configure the MAC HW's 1173 * mode. This operation is to configure the single/two MACs in either 1174 * SCC/MCC/DBS mode. 1175 */ 1176 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17, 1177 /* Timeout waiting for response of VDEV start command from the FW */ 1178 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18, 1179 /* Timeout waiting for response of VDEV restart command from the FW */ 1180 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19, 1181 /* Timeout waiting for response of VDEV stop command from the FW */ 1182 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20, 1183 /* Timeout waiting for response of VDEV delete command from the FW */ 1184 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21, 1185 /* Timeout waiting for response of peer all delete request command to 1186 * the FW on a specific VDEV. 1187 */ 1188 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22, 1189 /* WMI sequence mismatch between WMI command and Tx completion */ 1190 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23, 1191 /* Write to Device HAL register failed */ 1192 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24, 1193 /* No credit left to send the wow_wakeup_from_sleep to firmware */ 1194 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25, 1195 /* Bus failure */ 1196 QCA_WLAN_HANG_BUS_FAILURE = 26, 1197 /* tasklet/credit latency found */ 1198 QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27, 1199 /* MSDU buffers received in REO error ring, exceeding certain 1200 * threshold 1201 */ 1202 QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28, 1203 /* Vdev SM is out of sync and connect req received 1204 * when already connected 1205 */ 1206 QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29, 1207 /* Stats request timeout */ 1208 QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30, 1209 /* Leak in TX descriptor for a packet */ 1210 QCA_WLAN_HANG_TX_DESC_LEAK = 31, 1211 /* Scheduler watchdog timeout */ 1212 QCA_WLAN_HANG_SCHED_TIMEOUT = 32, 1213 /* Failed to send self peer deletion cmd to firmware */ 1214 QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33, 1215 /* Received del self sta without del bss */ 1216 QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34, 1217 /* Recovery needed when sending flush completion to userspace */ 1218 QCA_WLAN_HANG_FLUSH_LOGS = 35, 1219 /* Host wakeup because of page fault */ 1220 QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36, 1221 }; 1222 1223 /** 1224 * enum qca_wlan_vendor_attr_hang - Used by the vendor command 1225 * QCA_NL80211_VENDOR_SUBCMD_HANG. 1226 */ 1227 enum qca_wlan_vendor_attr_hang { 1228 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0, 1229 /* 1230 * Reason for the Hang - Represented by enum 1231 * qca_wlan_vendor_hang_reason. 1232 */ 1233 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1, 1234 /* The binary blob data associated with the hang reason specified by 1235 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to 1236 * contain the required dump to analyze the reason for the hang. 1237 * NLA_BINARY attribute, the max size is 1024 bytes. 1238 */ 1239 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2, 1240 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST, 1241 QCA_WLAN_VENDOR_ATTR_HANG_MAX = 1242 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1, 1243 }; 1244 1245 /** 1246 * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level 1247 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level 1248 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters 1249 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace 1250 level needs to be updated. 1251 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need 1252 * to be set. 1253 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last. 1254 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute. 1255 */ 1256 enum qca_vendor_attr_set_trace_level { 1257 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0, 1258 /* 1259 * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM 1260 * attributes. 1261 */ 1262 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1, 1263 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2, 1264 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3, 1265 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST, 1266 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX = 1267 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1, 1268 }; 1269 1270 /** 1271 * enum qca_wlan_vendor_attr_get_station - Sub commands used by 1272 * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding 1273 * station information. The information obtained through these 1274 * commands signify the current info in connected state and 1275 * latest cached information during the connected state , if queried 1276 * when in disconnected state. 1277 * 1278 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute 1279 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info 1280 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason 1281 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info 1282 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last 1283 */ 1284 enum qca_wlan_vendor_attr_get_station { 1285 QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0, 1286 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO, 1287 QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON, 1288 QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE, 1289 1290 /* keep last */ 1291 QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST, 1292 QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX = 1293 QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1, 1294 }; 1295 1296 /** 1297 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes 1298 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command. 1299 * 1300 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC. 1301 * Used in STA mode. This attribute represents the list of channel center 1302 * frequencies in MHz (u32) the station has learnt during the last connection 1303 * or roaming attempt. This information shall not signify the channels for 1304 * an explicit scan request from the user space. Host drivers can update this 1305 * information to the user space in both connected and disconnected state. 1306 * In the disconnected state this information shall signify the channels 1307 * scanned in the last connection/roam attempt that lead to the disconnection. 1308 */ 1309 enum qca_wlan_vendor_attr_update_sta_info { 1310 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0, 1311 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1, 1312 1313 /* keep last */ 1314 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST, 1315 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX = 1316 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1, 1317 }; 1318 1319 /** 1320 * enum qca_wlan_802_11_mode - dot11 mode 1321 * @QCA_WLAN_802_11_MODE_11B: mode B 1322 * @QCA_WLAN_802_11_MODE_11G: mode G 1323 * @QCA_WLAN_802_11_MODE_11N: mode N 1324 * @QCA_WLAN_802_11_MODE_11A: mode A 1325 * @QCA_WLAN_802_11_MODE_11AC: mode AC 1326 * @QCA_WLAN_802_11_MODE_11AX: mode AX 1327 * @QCA_WLAN_802_11_MODE_11BE: mode BE 1328 * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode 1329 */ 1330 enum qca_wlan_802_11_mode { 1331 QCA_WLAN_802_11_MODE_11B, 1332 QCA_WLAN_802_11_MODE_11G, 1333 QCA_WLAN_802_11_MODE_11N, 1334 QCA_WLAN_802_11_MODE_11A, 1335 QCA_WLAN_802_11_MODE_11AC, 1336 QCA_WLAN_802_11_MODE_11AX, 1337 QCA_WLAN_802_11_MODE_11BE, 1338 QCA_WLAN_802_11_MODE_INVALID, 1339 }; 1340 1341 /** 1342 * enum qca_wlan_auth_type - Authentication key management type 1343 * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type 1344 * @QCA_WLAN_AUTH_TYPE_OPEN: Open key 1345 * @QCA_WLAN_AUTH_TYPE_SHARED: shared key 1346 * @QCA_WLAN_AUTH_TYPE_WPA: wpa key 1347 * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key 1348 * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key 1349 * @QCA_WLAN_AUTH_TYPE_RSN: rsn key 1350 * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key 1351 * @QCA_WLAN_AUTH_TYPE_FT: ft key 1352 * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key 1353 * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key 1354 * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk 1355 * @QCA_WLAN_AUTH_TYPE_WAI: wai key 1356 * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key 1357 * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key 1358 * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key 1359 * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key 1360 * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm 1361 * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384 1362 * @QCA_WLAN_AUTH_TYPE_SAE: SAE key 1363 * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key 1364 * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key 1365 * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key 1366 * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key 1367 * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key 1368 * @QCA_WLAN_AUTH_TYPE_OWE: owe key 1369 * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key 1370 * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key 1371 */ 1372 enum qca_wlan_auth_type { 1373 QCA_WLAN_AUTH_TYPE_INVALID, 1374 QCA_WLAN_AUTH_TYPE_OPEN, 1375 QCA_WLAN_AUTH_TYPE_SHARED, 1376 QCA_WLAN_AUTH_TYPE_WPA, 1377 QCA_WLAN_AUTH_TYPE_WPA_PSK, 1378 QCA_WLAN_AUTH_TYPE_WPA_NONE, 1379 QCA_WLAN_AUTH_TYPE_RSN, 1380 QCA_WLAN_AUTH_TYPE_RSN_PSK, 1381 QCA_WLAN_AUTH_TYPE_FT, 1382 QCA_WLAN_AUTH_TYPE_FT_PSK, 1383 QCA_WLAN_AUTH_TYPE_SHA256, 1384 QCA_WLAN_AUTH_TYPE_SHA256_PSK, 1385 QCA_WLAN_AUTH_TYPE_WAI, 1386 QCA_WLAN_AUTH_TYPE_WAI_PSK, 1387 QCA_WLAN_AUTH_TYPE_CCKM_WPA, 1388 QCA_WLAN_AUTH_TYPE_CCKM_RSN, 1389 QCA_WLAN_AUTH_TYPE_AUTOSWITCH, 1390 QCA_WLAN_AUTH_TYPE_FT_SAE, 1391 QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384, 1392 QCA_WLAN_AUTH_TYPE_SAE, 1393 QCA_WLAN_AUTH_TYPE_FILS_SHA256, 1394 QCA_WLAN_AUTH_TYPE_FILS_SHA384, 1395 QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256, 1396 QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384, 1397 QCA_WLAN_AUTH_TYPE_DPP_RSN, 1398 QCA_WLAN_AUTH_TYPE_OWE, 1399 QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256, 1400 QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384, 1401 }; 1402 1403 /** 1404 * enum qca_wlan_vendor_attr_get_station_info - Station Info queried 1405 * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION. 1406 * 1407 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute 1408 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR: 1409 * Get the standard NL attributes Nested with this attribute. 1410 * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link - 1411 * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) / 1412 * NL80211_ATTR_STA_INFO 1413 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR: 1414 * Get the standard NL attributes Nested with this attribute. 1415 * Ex : Query HT/VHT Capability advertised by the AP. 1416 * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY 1417 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT: 1418 * Number of successful Roam attempts before a 1419 * disconnect, Unsigned 32 bit value 1420 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM: 1421 * Authentication Key Management Type used for the connected session. 1422 * Signified by enum qca_wlan_auth_type 1423 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the 1424 * connected Session, signified by enum qca_wlan_802_11_mode 1425 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION: 1426 * HS20 Indication Element 1427 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON: 1428 * Status Code Corresponding to the Association Failure. 1429 * Unsigned 32 bit value. 1430 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE: 1431 * Max phy rate of remote station 1432 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS: 1433 * TX packets to remote station 1434 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES: 1435 * TX bytes to remote station 1436 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS: 1437 * RX packets from remote station 1438 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES: 1439 * RX bytes from remote station 1440 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE: 1441 * Last TX rate with remote station 1442 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE: 1443 * Last RX rate with remote station 1444 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM: 1445 * Remote station enable/disable WMM 1446 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE: 1447 * Remote station connection mode 1448 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU: 1449 * Remote station AMPDU enable/disable 1450 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC: 1451 * Remote station TX Space-time block coding enable/disable 1452 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC: 1453 * Remote station RX Space-time block coding enable/disable 1454 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH: 1455 * Remote station channel width 1456 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE: 1457 * Remote station short GI enable/disable 1458 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding 1459 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute 1460 * containing the raw information elements from Beacon frames. Represents 1461 * the Beacon frames of the current BSS in the connected state. When queried 1462 * in the disconnected state, these IEs correspond to the last connected BSSID. 1463 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver 1464 * disconnect reason for the last disconnection if the disconnection is 1465 * triggered from the host driver. The values are referred from 1466 * enum qca_disconnect_reason_codes. If the disconnect is from 1467 * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED. 1468 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute 1469 * Applicable in AP mode only. It contains the raw information elements 1470 * from assoc request frame of the given peer station. User queries with the 1471 * mac address of peer station when it disconnects. Host driver sends 1472 * assoc request frame of the given station. Host driver doesn't provide 1473 * the IEs when the peer station is still in connected state. 1474 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for 1475 * sending HE operation info. 1476 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2: Attribute 1477 * type for remote channel width greater than 160 MHz. 1478 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION: Attribute type for 1479 * sending EHT operation info. 1480 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last 1481 * 1482 */ 1483 enum qca_wlan_vendor_attr_get_station_info { 1484 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0, 1485 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR, 1486 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR, 1487 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT, 1488 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM, 1489 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE, 1490 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION, 1491 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION, 1492 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION, 1493 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON, 1494 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE, 1495 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS, 1496 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES, 1497 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS, 1498 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES, 1499 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE, 1500 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE, 1501 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM, 1502 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE, 1503 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU, 1504 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC, 1505 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC, 1506 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH, 1507 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE, 1508 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD, 1509 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT, 1510 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT, 1511 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE, 1512 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN, 1513 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED, 1514 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI, 1515 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY, 1516 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST, 1517 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW, 1518 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW, 1519 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW, 1520 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES, 1521 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON, 1522 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES, 1523 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION, 1524 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2, 1525 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION, 1526 1527 /* keep last */ 1528 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST, 1529 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX = 1530 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1, 1531 }; 1532 1533 /** 1534 * qca_chip_power_save_failure_reason: Power save failure reason 1535 * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure 1536 * due to protocol/module. 1537 * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure 1538 * due to hardware 1539 */ 1540 enum qca_chip_power_save_failure_reason { 1541 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0, 1542 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1, 1543 }; 1544 1545 /** 1546 * qca_attr_chip_power_save_failure: attributes to vendor subcmd 1547 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite 1548 * information leading to the power save failure. 1549 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid 1550 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason 1551 * represented by enum qca_chip_power_save_failure_reason 1552 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last 1553 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value 1554 */ 1555 enum qca_attr_chip_power_save_failure { 1556 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0, 1557 1558 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1, 1559 1560 /* keep last */ 1561 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST, 1562 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX = 1563 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1, 1564 }; 1565 1566 /* enum's to provide TDLS capabilities */ 1567 enum qca_wlan_vendor_attr_get_tdls_capabilities { 1568 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0, 1569 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1, 1570 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2, 1571 1572 /* keep last */ 1573 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST, 1574 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX = 1575 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1, 1576 }; 1577 1578 /* Compatibility defines for previously used subcmd names. 1579 * These values should not be used in any new implementation. 1580 */ 1581 #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \ 1582 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY 1583 1584 enum qca_wlan_vendor_attr { 1585 QCA_WLAN_VENDOR_ATTR_INVALID = 0, 1586 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */ 1587 QCA_WLAN_VENDOR_ATTR_DFS = 1, 1588 /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */ 1589 QCA_WLAN_VENDOR_ATTR_NAN = 2, 1590 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 1591 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3, 1592 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 1593 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4, 1594 /* 1595 * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined 1596 * by enum qca_roaming_policy. 1597 */ 1598 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5, 1599 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6, 1600 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ 1601 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7, 1602 QCA_WLAN_VENDOR_ATTR_TEST = 8, 1603 /* 1604 * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES 1605 * Unsigned 32-bit value. 1606 */ 1607 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9, 1608 /* Unsigned 32-bit value */ 1609 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10, 1610 /* Unsigned 32-bit value */ 1611 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11, 1612 /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable 1613 * value for this attribute are only till QCA_SETBAND_2G. This attribute 1614 * is deprecated. Recommendation is to use 1615 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured 1616 * using both the attributes, the ones configured through 1617 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence. 1618 */ 1619 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12, 1620 /* Dummy (NOP) attribute for 64 bit padding */ 1621 QCA_WLAN_VENDOR_ATTR_PAD = 13, 1622 /* 1623 * Unique FTM session cookie (Unsigned 64 bit). Specified in 1624 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in 1625 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and 1626 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE. 1627 */ 1628 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14, 1629 /* 1630 * Indoor location capabilities, returned by 1631 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA. 1632 * see enum qca_wlan_vendor_attr_loc_capa. 1633 */ 1634 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15, 1635 /* 1636 * Array of nested attributes containing information about each peer 1637 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info 1638 * for supported attributes for each peer. 1639 */ 1640 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16, 1641 /* 1642 * Array of nested attributes containing measurement results for 1643 * one or more peers, reported by the 1644 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event. 1645 * See enum qca_wlan_vendor_attr_peer_result for list of supported 1646 * attributes. 1647 */ 1648 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17, 1649 /* Flag attribute for enabling or disabling responder functionality. */ 1650 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18, 1651 /* 1652 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 1653 * command to specify the LCI report that will be sent by 1654 * the responder during a measurement exchange. The format is 1655 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10. 1656 */ 1657 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19, 1658 /* 1659 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 1660 * command to specify the location civic report that will 1661 * be sent by the responder during a measurement exchange. 1662 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13. 1663 */ 1664 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20, 1665 /* 1666 * Session/measurement completion status code, 1667 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and 1668 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT 1669 * see enum qca_vendor_attr_loc_session_status. 1670 */ 1671 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21, 1672 /* 1673 * Initial dialog token used by responder (0 if not specified), 1674 * unsigned 8 bit value. 1675 */ 1676 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22, 1677 /* 1678 * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS 1679 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if 1680 * AOA measurements are needed as part of an FTM session. 1681 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See 1682 * enum qca_wlan_vendor_attr_aoa_type. 1683 */ 1684 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23, 1685 /* 1686 * A bit mask (unsigned 32 bit value) of antenna arrays used 1687 * by indoor location measurements. Refers to the antenna 1688 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS. 1689 */ 1690 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24, 1691 /* 1692 * AOA measurement data. Its contents depends on the AOA measurement 1693 * type and antenna array mask: 1694 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values, 1695 * phase of the strongest CIR path for each antenna in the measured 1696 * array(s). 1697 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16 1698 * values, phase and amplitude of the strongest CIR path for each 1699 * antenna in the measured array(s). 1700 */ 1701 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25, 1702 /* 1703 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1704 * to specify the chain number (unsigned 32 bit value) to inquire 1705 * the corresponding antenna RSSI value */ 1706 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26, 1707 /* 1708 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1709 * to report the specific antenna RSSI value (unsigned 32 bit value) */ 1710 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27, 1711 /* Frequency in MHz, various uses. Unsigned 32 bit value */ 1712 QCA_WLAN_VENDOR_ATTR_FREQ = 28, 1713 /* 1714 * TSF timer value, unsigned 64 bit value. 1715 * May be returned by various commands. 1716 */ 1717 QCA_WLAN_VENDOR_ATTR_TSF = 29, 1718 /* 1719 * DMG RF sector index, unsigned 16 bit number. Valid values are 1720 * 0..127 for sector indices or 65535 as special value used to 1721 * unlock sector selection in 1722 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR. 1723 */ 1724 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30, 1725 /* 1726 * DMG RF sector type, unsigned 8 bit value. One of the values 1727 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type. 1728 */ 1729 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31, 1730 /* 1731 * Bitmask of DMG RF modules for which information is requested. Each 1732 * bit corresponds to an RF module with the same index as the bit 1733 * number. Unsigned 32 bit number but only low 8 bits can be set since 1734 * all DMG chips currently have up to 8 RF modules. 1735 */ 1736 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32, 1737 /* 1738 * Array of nested attributes where each entry is DMG RF sector 1739 * configuration for a single RF module. 1740 * Attributes for each entry are taken from enum 1741 * qca_wlan_vendor_attr_dmg_rf_sector_cfg. 1742 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG 1743 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG. 1744 */ 1745 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33, 1746 /* 1747 * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command 1748 * to report frame aggregation statistics to userspace. 1749 */ 1750 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34, 1751 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35, 1752 /* 1753 * Unsigned 8-bit value representing MBO transition reason code as 1754 * provided by the AP used by subcommand 1755 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is 1756 * specified by the userspace in the request to the driver. 1757 */ 1758 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36, 1759 /* 1760 * Array of nested attributes, BSSID and status code, used by subcommand 1761 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each 1762 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info. 1763 * The userspace space specifies the list/array of candidate BSSIDs in 1764 * the order of preference in the request. The driver specifies the 1765 * status code, for each BSSID in the list, in the response. The 1766 * acceptable candidates are listed in the order preferred by the 1767 * driver. 1768 */ 1769 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37, 1770 /* 1771 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 1772 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode. 1773 */ 1774 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38, 1775 /* 1776 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 1777 * to define the number of antennas to use for BRP. 1778 * different purpose in each ANT_LIMIT_MODE: 1779 * DISABLE - ignored 1780 * EFFECTIVE - upper limit to number of antennas to be used 1781 * FORCE - exact number of antennas to be used 1782 * unsigned 8 bit value 1783 */ 1784 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39, 1785 /* 1786 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1787 * to report the corresponding antenna index to the chain RSSI value 1788 */ 1789 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40, 1790 /* 1791 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1792 * to report the specific antenna EVM value (unsigned 32 bit value). 1793 * With a determinate group of antennas, the driver specifies the 1794 * EVM value for each antenna ID, and application extract them 1795 * in user space. 1796 */ 1797 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41, 1798 /* 1799 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report 1800 * wlan firmware current state. FW state is an unsigned 8 bit value, 1801 * one of the values in enum qca_wlan_vendor_attr_fw_state. 1802 */ 1803 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42, 1804 1805 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the 1806 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the 1807 * integer values of enum qca_set_band till QCA_SETBAND_2G are valid. 1808 * This attribute shall consider the bitmask combinations to define 1809 * the respective Band combinations and always takes precedence over 1810 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE. 1811 */ 1812 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43, 1813 1814 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES. 1815 * This field describes the maximum number of links supported by the 1816 * chip for MLO association. 1817 * This is an optional attribute. 1818 */ 1819 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_ASSOCIATION_COUNT = 44, 1820 1821 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES. 1822 * This field describes the maximum number of Simultaneous Transmit 1823 * and Receive (STR) links used in Multi-Link Operation. 1824 * The maximum number of STR links used can be different 1825 * from the maximum number of radios supported by the chip. 1826 * This is a static configuration of the chip. 1827 * This is an optional attribute. 1828 */ 1829 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_STR_LINK_COUNT = 45, 1830 1831 /* keep last */ 1832 QCA_WLAN_VENDOR_ATTR_AFTER_LAST, 1833 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1 1834 }; 1835 1836 enum qca_wlan_vendor_attr_extscan_config_params { 1837 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0, 1838 1839 /* Unsigned 32-bit value */ 1840 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1, 1841 1842 /* 1843 * Attributes for data used by 1844 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command. 1845 */ 1846 1847 /* Unsigned 32-bit value */ 1848 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND 1849 = 2, 1850 /* Unsigned 32-bit value */ 1851 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS 1852 = 3, 1853 1854 /* 1855 * Attributes for input params used by 1856 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command. 1857 */ 1858 1859 /* Unsigned 32-bit value; channel frequency */ 1860 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4, 1861 /* Unsigned 32-bit value; dwell time in ms. */ 1862 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5, 1863 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */ 1864 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6, 1865 /* Unsigned 8-bit value; channel class */ 1866 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7, 1867 1868 /* Unsigned 8-bit value; bucket index, 0 based */ 1869 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8, 1870 /* Unsigned 8-bit value; band. */ 1871 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9, 1872 /* Unsigned 32-bit value; desired period, in ms. */ 1873 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10, 1874 /* Unsigned 8-bit value; report events semantics. */ 1875 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11, 1876 /* 1877 * Unsigned 32-bit value. Followed by a nested array of 1878 * EXTSCAN_CHANNEL_SPEC_* attributes. 1879 */ 1880 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12, 1881 1882 /* 1883 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes. 1884 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 1885 */ 1886 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13, 1887 1888 /* Unsigned 32-bit value; base timer period in ms. */ 1889 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14, 1890 /* 1891 * Unsigned 32-bit value; number of APs to store in each scan in the 1892 * BSSID/RSSI history buffer (keep the highest RSSI APs). 1893 */ 1894 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15, 1895 /* 1896 * Unsigned 8-bit value; in %, when scan buffer is this much full, wake 1897 * up AP. 1898 */ 1899 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT 1900 = 16, 1901 1902 /* 1903 * Unsigned 8-bit value; number of scan bucket specs; followed by a 1904 * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size 1905 * of the array is determined by NUM_BUCKETS. 1906 */ 1907 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17, 1908 1909 /* 1910 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes. 1911 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS 1912 */ 1913 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18, 1914 1915 /* Unsigned 8-bit value */ 1916 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH 1917 = 19, 1918 /* Unsigned 32-bit value; maximum number of results to be returned. */ 1919 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX 1920 = 20, 1921 1922 /* An array of 6 x unsigned 8-bit value */ 1923 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21, 1924 /* Signed 32-bit value */ 1925 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22, 1926 /* Signed 32-bit value */ 1927 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23, 1928 /* Unsigned 32-bit value */ 1929 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24, 1930 1931 /* 1932 * Number of hotlist APs as unsigned 32-bit value, followed by a nested 1933 * array of AP_THRESHOLD_PARAM attributes and values. The size of the 1934 * array is determined by NUM_AP. 1935 */ 1936 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25, 1937 1938 /* 1939 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes. 1940 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 1941 */ 1942 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26, 1943 1944 /* Unsigned 32-bit value; number of samples for averaging RSSI. */ 1945 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE 1946 = 27, 1947 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 1948 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE 1949 = 28, 1950 /* Unsigned 32-bit value; number of APs breaching threshold. */ 1951 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29, 1952 /* 1953 * Unsigned 32-bit value; number of APs. Followed by an array of 1954 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP. 1955 */ 1956 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30, 1957 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 1958 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE 1959 = 31, 1960 /* 1961 * Unsigned 32-bit value. If max_period is non zero or different than 1962 * period, then this bucket is an exponential backoff bucket. 1963 */ 1964 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32, 1965 /* Unsigned 32-bit value. */ 1966 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33, 1967 /* 1968 * Unsigned 32-bit value. For exponential back off bucket, number of 1969 * scans to perform for a given period. 1970 */ 1971 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34, 1972 /* 1973 * Unsigned 8-bit value; in number of scans, wake up AP after these 1974 * many scans. 1975 */ 1976 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS 1977 = 35, 1978 1979 /* 1980 * Attributes for data used by 1981 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command. 1982 */ 1983 1984 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */ 1985 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE 1986 = 36, 1987 /* 1988 * Number of hotlist SSIDs as unsigned 32-bit value, followed by a 1989 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The 1990 * size of the array is determined by NUM_SSID. 1991 */ 1992 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37, 1993 /* 1994 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_* 1995 * attributes. 1996 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID 1997 */ 1998 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38, 1999 2000 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */ 2001 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39, 2002 /* Unsigned 8-bit value */ 2003 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40, 2004 /* Signed 32-bit value */ 2005 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41, 2006 /* Signed 32-bit value */ 2007 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42, 2008 /* Unsigned 32-bit value; a bitmask with additional extscan config flag. 2009 */ 2010 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43, 2011 2012 /* keep last */ 2013 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST, 2014 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX = 2015 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1, 2016 }; 2017 2018 enum qca_wlan_vendor_attr_extscan_results { 2019 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0, 2020 2021 /* 2022 * Unsigned 32-bit value; must match the request Id supplied by 2023 * Wi-Fi HAL in the corresponding subcmd NL msg. 2024 */ 2025 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1, 2026 2027 /* 2028 * Unsigned 32-bit value; used to indicate the status response from 2029 * firmware/driver for the vendor sub-command. 2030 */ 2031 QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2, 2032 2033 /* 2034 * EXTSCAN Valid Channels attributes */ 2035 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */ 2036 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3, 2037 /* 2038 * An array of NUM_CHANNELS x unsigned 32-bit value integers 2039 * representing channel numbers. 2040 */ 2041 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4, 2042 2043 /* EXTSCAN Capabilities attributes */ 2044 2045 /* Unsigned 32-bit value */ 2046 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5, 2047 /* Unsigned 32-bit value */ 2048 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6, 2049 /* Unsigned 32-bit value */ 2050 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN 2051 = 7, 2052 /* Unsigned 32-bit value */ 2053 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE 2054 = 8, 2055 /* Signed 32-bit value */ 2056 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD 2057 = 9, 2058 /* Unsigned 32-bit value */ 2059 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10, 2060 /* Unsigned 32-bit value */ 2061 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS 2062 = 11, 2063 /* Unsigned 32-bit value */ 2064 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES 2065 = 12, 2066 2067 /* 2068 * EXTSCAN Attributes used with 2069 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command. 2070 */ 2071 2072 /* Unsigned 32-bit value */ 2073 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13, 2074 2075 /* 2076 * EXTSCAN attributes used with 2077 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command. 2078 */ 2079 2080 /* 2081 * An array of NUM_RESULTS_AVAILABLE x 2082 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_* 2083 */ 2084 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14, 2085 2086 /* Unsigned 64-bit value; age of sample at the time of retrieval */ 2087 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15, 2088 /* 33 x unsigned 8-bit value; NULL terminated SSID */ 2089 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16, 2090 /* An array of 6 x unsigned 8-bit value */ 2091 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17, 2092 /* Unsigned 32-bit value; channel frequency in MHz */ 2093 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18, 2094 /* Signed 32-bit value */ 2095 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19, 2096 /* Unsigned 32-bit value */ 2097 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20, 2098 /* Unsigned 32-bit value */ 2099 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21, 2100 /* Unsigned 16-bit value */ 2101 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22, 2102 /* Unsigned 16-bit value */ 2103 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23, 2104 /* Unsigned 32-bit value; size of the IE DATA blob */ 2105 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24, 2106 /* 2107 * An array of IE_LENGTH x unsigned 8-bit value; blob of all the 2108 * information elements found in the beacon; this data should be a 2109 * packed list of wifi_information_element objects, one after the 2110 * other. 2111 */ 2112 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25, 2113 2114 /* 2115 * Unsigned 8-bit value; set by driver to indicate more scan results are 2116 * available. 2117 */ 2118 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26, 2119 2120 /* 2121 * EXTSCAN attributes for 2122 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command. 2123 */ 2124 /* Unsigned 8-bit value */ 2125 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27, 2126 /* Unsigned 32-bit value */ 2127 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28, 2128 2129 /* 2130 * EXTSCAN attributes for 2131 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command. 2132 */ 2133 /* 2134 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE 2135 * to indicate number of results. 2136 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the 2137 * list of results. 2138 */ 2139 2140 /* 2141 * EXTSCAN attributes for 2142 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command. 2143 */ 2144 /* An array of 6 x unsigned 8-bit value */ 2145 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29, 2146 /* Unsigned 32-bit value */ 2147 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL 2148 = 30, 2149 /* Unsigned 32-bit value. */ 2150 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI 2151 = 31, 2152 /* 2153 * A nested array of signed 32-bit RSSI values. Size of the array is 2154 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI. 2155 */ 2156 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST 2157 = 32, 2158 2159 /* 2160 * EXTSCAN attributes used with 2161 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command. 2162 */ 2163 /* 2164 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE 2165 * to indicate number of extscan cached results returned. 2166 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate 2167 * the list of extscan cached results. 2168 */ 2169 2170 /* 2171 * An array of NUM_RESULTS_AVAILABLE x 2172 * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_* 2173 */ 2174 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33, 2175 /* Unsigned 32-bit value; a unique identifier for the scan unit. */ 2176 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34, 2177 /* 2178 * Unsigned 32-bit value; a bitmask w/additional information about scan. 2179 */ 2180 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35, 2181 /* 2182 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE 2183 * to indicate number of wifi scan results/bssids retrieved by the scan. 2184 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the 2185 * list of wifi scan results returned for each cached result block. 2186 */ 2187 2188 /* 2189 * EXTSCAN attributes for 2190 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command. 2191 */ 2192 /* 2193 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for 2194 * number of results. 2195 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested 2196 * list of wifi scan results returned for each 2197 * wifi_passpoint_match_result block. 2198 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE. 2199 */ 2200 2201 /* 2202 * EXTSCAN attributes for 2203 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command. 2204 */ 2205 /* Unsigned 32-bit value */ 2206 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES 2207 = 36, 2208 /* 2209 * A nested array of 2210 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_* 2211 * attributes. Array size = 2212 * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES. 2213 */ 2214 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37, 2215 2216 /* Unsigned 32-bit value; network block id for the matched network */ 2217 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38, 2218 /* 2219 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested 2220 * list of wifi scan results returned for each 2221 * wifi_passpoint_match_result block. 2222 */ 2223 /* Unsigned 32-bit value */ 2224 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39, 2225 /* 2226 * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values; 2227 * ANQP data in the information_element format. 2228 */ 2229 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40, 2230 2231 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2232 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41, 2233 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2234 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42, 2235 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2236 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID 2237 = 43, 2238 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2239 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID 2240 = 44, 2241 2242 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45, 2243 QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46, 2244 2245 /* keep last */ 2246 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST, 2247 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX = 2248 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1, 2249 }; 2250 2251 /** 2252 * enum qca_vendor_interop_issues_ap_type - interop issues type 2253 * This enum defines the valid set of values of interop issues type. These 2254 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE. 2255 * 2256 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue 2257 * when the STA's Qpower feature is enabled. 2258 */ 2259 enum qca_vendor_interop_issues_ap_type { 2260 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0, 2261 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1, 2262 }; 2263 2264 /** 2265 * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues 2266 * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP. 2267 * 2268 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value 2269 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type 2270 * 32-bit unsigned value, The type defined in enum 2271 * qca_vendor_interop_issues_ap_type are used. 2272 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container 2273 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes, 2274 * it is present and mandatory for the command but is not used for 2275 * the event since only a single BSSID is reported in an event. 2276 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid 2277 * 6-byte MAC address. It is used within the nested 2278 * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case 2279 * and without such encapsulation in the event case. 2280 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value 2281 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value 2282 */ 2283 enum qca_vendor_attr_interop_issues_ap { 2284 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID, 2285 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE, 2286 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST, 2287 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID, 2288 /* keep last */ 2289 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST, 2290 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX = 2291 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1 2292 }; 2293 2294 #ifdef WLAN_FEATURE_LINK_LAYER_STATS 2295 2296 enum qca_wlan_vendor_attr_ll_stats_set { 2297 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0, 2298 /* Unsigned 32-bit value */ 2299 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1, 2300 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2, 2301 /* keep last */ 2302 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST, 2303 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX = 2304 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1, 2305 }; 2306 2307 /** 2308 * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS 2309 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK. 2310 * 2311 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics. 2312 * 2313 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within 2314 * radio statistics. 2315 * 2316 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel 2317 * statistics within radio statistics. 2318 * 2319 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within 2320 * radio statistics. 2321 * 2322 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics. 2323 * 2324 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics 2325 * within interface statistics. 2326 * 2327 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within 2328 * interface statistics. 2329 * 2330 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention 2331 * (min, max, avg) statistics within AC statistics. 2332 * 2333 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics 2334 * on this interface. 2335 * 2336 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer 2337 * statistics depending on the peer_mac. 2338 */ 2339 enum qca_wlan_ll_stats_clr_req_bitmap { 2340 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0), 2341 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1), 2342 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2), 2343 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3), 2344 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4), 2345 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5), 2346 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6), 2347 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7), 2348 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8), 2349 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9), 2350 }; 2351 2352 enum qca_wlan_vendor_attr_ll_stats_clr { 2353 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0, 2354 /* Unsigned 32bit bitmap for clearing statistics, specified 2355 * in the enum qca_wlan_ll_stats_clr_req_bitmap. 2356 */ 2357 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1, 2358 /* Unsigned 8 bit value: Request to stop statistics collection */ 2359 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2, 2360 2361 /* Unsigned 32 bit bitmap: Response from the driver 2362 * for the cleared statistics 2363 */ 2364 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3, 2365 /* Unsigned 8 bit value: Response from driver/firmware 2366 * for the stop request 2367 */ 2368 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4, 2369 /* keep last */ 2370 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST, 2371 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX = 2372 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1, 2373 }; 2374 2375 /** 2376 * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS 2377 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK. 2378 * 2379 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics. 2380 * 2381 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics. 2382 * 2383 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics. 2384 * 2385 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics. 2386 */ 2387 enum qca_wlan_ll_stats_get_req_bitmap { 2388 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0), 2389 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1), 2390 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2), 2391 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3), 2392 }; 2393 2394 enum qca_wlan_vendor_attr_ll_stats_get { 2395 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0, 2396 /* Unsigned 32 bit value provided by the caller issuing the GET stats 2397 * command. When reporting the stats results, the driver uses the same 2398 * value to indicate which GET request the results correspond to. 2399 */ 2400 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1, 2401 /* Unsigned 32 bit value - bit mask to identify what statistics are 2402 * requested for retrieval specified in the enum 2403 * qca_wlan_ll_stats_get_req_bitmap 2404 */ 2405 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2, 2406 /* keep last */ 2407 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST, 2408 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX = 2409 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1, 2410 }; 2411 2412 enum qca_wlan_vendor_attr_ll_stats_results { 2413 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0, 2414 2415 /* 2416 * For Multi Link Operation (MLO) connection, per-link statistics will 2417 * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and 2418 * cumulative statistics will be sent outside of 2419 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward 2420 * compatibility with legacy user space. Attributes which don't have 2421 * explicit documentation for MLO will be sent only outside of 2422 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values 2423 * don't depend on whether the connection is MLO capable or not, e.g., 2424 * radio and channel specific attributes. 2425 */ 2426 2427 /* Unsigned 32bit value. Used by the driver; must match the request id 2428 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command. 2429 */ 2430 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1, 2431 2432 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2433 * the link with the best RSSI outside 2434 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2435 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2436 */ 2437 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2, 2438 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2439 * the link with the best RSSI outside 2440 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2441 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2442 */ 2443 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3, 2444 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2445 * the link with the best RSSI outside 2446 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2447 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2448 */ 2449 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4, 2450 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2451 * the link with the best RSSI outside 2452 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2453 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2454 */ 2455 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5, 2456 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2457 * the link with the best RSSI outside 2458 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2459 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2460 */ 2461 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6, 2462 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2463 * the link with the best RSSI outside 2464 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2465 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2466 */ 2467 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7, 2468 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2469 * the link with the best RSSI outside 2470 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2471 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2472 */ 2473 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8, 2474 2475 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are 2476 * nested within the interface stats. 2477 */ 2478 2479 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc. 2480 * Type = enum wifi_interface_mode. 2481 */ 2482 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9, 2483 /* Interface MAC address. An array of 6 Unsigned int8 */ 2484 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10, 2485 /* Type = enum wifi_connection_state, e.g., DISCONNECTED, 2486 * AUTHENTICATING, etc. valid for STA, CLI only. 2487 */ 2488 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11, 2489 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE 2490 */ 2491 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12, 2492 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */ 2493 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13, 2494 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */ 2495 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14, 2496 /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD 2497 * address of the AP. An array of 6 unsigned 8 bit values 2498 */ 2499 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15, 2500 /* Country string advertised by AP. An array of 3 unsigned 8 bit 2501 * values. 2502 */ 2503 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16, 2504 /* Country string for this association. An array of 3 unsigned 8 bit 2505 * values. 2506 */ 2507 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17, 2508 2509 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could 2510 * be nested within the interface stats. 2511 * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* 2512 * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* 2513 * indicate the aggregate of all links outside 2514 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2515 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes 2516 * indicate value of the MLO link with the best RSSI outside 2517 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2518 * These attributes indicate the link specific value inside 2519 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2520 */ 2521 2522 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */ 2523 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18, 2524 /* Unsigned int 32 value corresponding to respective AC */ 2525 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19, 2526 /* Unsigned int 32 value corresponding to respective AC */ 2527 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20, 2528 /* Unsigned int 32 value corresponding to respective AC */ 2529 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21, 2530 /* Unsigned int 32 value corresponding to respective AC */ 2531 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22, 2532 /* Unsigned int 32 value corresponding to respective AC */ 2533 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23, 2534 /* Unsigned int 32 value corresponding to respective AC */ 2535 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24, 2536 /* Unsigned int 32 value corresponding to respective AC */ 2537 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25, 2538 /* Unsigned int 32 value corresponding to respective AC */ 2539 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26, 2540 /* Unsigned int 32 value corresponding to respective AC */ 2541 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27, 2542 /* Unsigned int 32 values corresponding to respective AC */ 2543 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28, 2544 /* Unsigned int 32 values corresponding to respective AC */ 2545 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29, 2546 /* Unsigned int 32 values corresponding to respective AC */ 2547 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30, 2548 /* Unsigned int 32 values corresponding to respective AC */ 2549 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31, 2550 /* Unsigned int 32 values corresponding to respective AC */ 2551 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32, 2552 /* Unsigned 32 bit value. Number of peers */ 2553 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33, 2554 2555 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are 2556 * nested within the interface stats. 2557 */ 2558 2559 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */ 2560 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34, 2561 /* MAC addr corresponding to respective peer. An array of 6 unsigned 2562 * 8 bit values. 2563 */ 2564 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35, 2565 /* Unsigned int 32 bit value representing capabilities corresponding 2566 * to respective peer. 2567 */ 2568 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36, 2569 /* Unsigned 32 bit value. Number of rates */ 2570 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37, 2571 2572 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 2573 * are nested within the rate stat. 2574 */ 2575 2576 /* Wi-Fi Rate - separate attributes defined for individual fields */ 2577 2578 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */ 2579 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38, 2580 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */ 2581 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39, 2582 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */ 2583 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40, 2584 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std 2585 * in the units of 0.5 Mbps HT/VHT it would be MCS index 2586 */ 2587 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41, 2588 2589 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */ 2590 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42, 2591 2592 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be 2593 * nested within the peer info stats. 2594 */ 2595 2596 /* Unsigned int 32 bit value. Number of successfully transmitted data 2597 * packets, i.e., with ACK received corresponding to the respective 2598 * rate. 2599 */ 2600 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43, 2601 /* Unsigned int 32 bit value. Number of received data packets 2602 * corresponding to the respective rate. 2603 */ 2604 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44, 2605 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK 2606 * received corresponding to the respective rate. 2607 */ 2608 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45, 2609 /* Unsigned int 32 bit value. Total number of data packet retries for 2610 * the respective rate. 2611 */ 2612 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46, 2613 /* Unsigned int 32 bit value. Total number of short data packet retries 2614 * for the respective rate. 2615 */ 2616 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47, 2617 /* Unsigned int 32 bit value. Total number of long data packet retries 2618 * for the respective rate. 2619 */ 2620 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48, 2621 2622 /* Unsigned 32 bit value. This is used to indicate radio ID of the radio 2623 * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is 2624 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used 2625 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID 2626 * of the MLO link. 2627 */ 2628 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49, 2629 /* Unsigned 32 bit value. Total number of msecs the radio is awake 2630 * accruing over time. 2631 */ 2632 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50, 2633 /* Unsigned 32 bit value. Total number of msecs the radio is 2634 * transmitting accruing over time. 2635 */ 2636 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51, 2637 /* Unsigned 32 bit value. Total number of msecs the radio is in active 2638 * receive accruing over time. 2639 */ 2640 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52, 2641 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2642 * to all scan accruing over time. 2643 */ 2644 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53, 2645 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2646 * to NAN accruing over time. 2647 */ 2648 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54, 2649 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2650 * to GSCAN accruing over time. 2651 */ 2652 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55, 2653 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2654 * to roam scan accruing over time. 2655 */ 2656 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56, 2657 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2658 * to PNO scan accruing over time. 2659 */ 2660 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57, 2661 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2662 * to Hotspot 2.0 scans and GAS exchange accruing over time. 2663 */ 2664 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58, 2665 /* Unsigned 32 bit value. Number of channels. */ 2666 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59, 2667 2668 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could 2669 * be nested within the channel stats. 2670 */ 2671 2672 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */ 2673 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60, 2674 /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to 2675 * indicate the primary frequency of the channel when 2676 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is 2677 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside 2678 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency 2679 * on which the MLO link is operating. 2680 */ 2681 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61, 2682 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */ 2683 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62, 2684 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */ 2685 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63, 2686 2687 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be 2688 * nested within the radio stats. 2689 */ 2690 2691 /* Unsigned int 32 bit value representing total number of msecs the 2692 * radio is awake on that channel accruing over time, corresponding to 2693 * the respective channel. 2694 */ 2695 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64, 2696 /* Unsigned int 32 bit value representing total number of msecs the CCA 2697 * register is busy accruing over time corresponding to the respective 2698 * channel. 2699 */ 2700 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65, 2701 2702 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66, 2703 2704 /* Signifies the nested list of channel attributes 2705 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* 2706 */ 2707 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67, 2708 2709 /* Signifies the nested list of peer info attributes 2710 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection, 2711 * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to 2712 * indicate on which link the peer is connected. 2713 */ 2714 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68, 2715 2716 /* Signifies the nested list of rate info attributes 2717 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 2718 */ 2719 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69, 2720 2721 /* Signifies the nested list of wmm info attributes 2722 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* 2723 */ 2724 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70, 2725 2726 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates 2727 * that more stats, e.g., peers or radio, are to follow in the next 2728 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event. 2729 * Otherwise, it is set to 0. 2730 */ 2731 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71, 2732 2733 /* Unsigned 64 bit value. For an MLO connection, indicates the value of 2734 * the link with the best RSSI outside 2735 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2736 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2737 */ 2738 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72, 2739 2740 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2741 * the link with the best RSSI outside 2742 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2743 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2744 */ 2745 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73, 2746 2747 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2748 * the link with the best RSSI outside 2749 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2750 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2751 */ 2752 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74, 2753 2754 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2755 * the link with the best RSSI outside 2756 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2757 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2758 */ 2759 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75, 2760 2761 /* Unsigned 32 bit value */ 2762 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76, 2763 2764 /* Unsigned 32 bit value */ 2765 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77, 2766 2767 /* Number of msecs the radio spent in transmitting for each power level 2768 */ 2769 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78, 2770 2771 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2772 * the link with the best RSSI outside 2773 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2774 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2775 */ 2776 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79, 2777 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2778 * the link with the best RSSI outside 2779 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2780 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2781 */ 2782 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80, 2783 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2784 * the link with the best RSSI outside 2785 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2786 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2787 */ 2788 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81, 2789 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2790 * the link with the best RSSI outside 2791 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2792 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2793 */ 2794 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82, 2795 2796 /* Unsigned int 32 value. 2797 * Pending MSDUs corresponding to respective AC. 2798 */ 2799 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83, 2800 2801 /* u32 value representing total time in milliseconds for which the radio 2802 * is transmitting on this channel. This attribute will be nested 2803 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO. 2804 */ 2805 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84, 2806 /* u32 value representing total time in milliseconds for which the radio 2807 * is receiving all 802.11 frames intended for this device on this 2808 * channel. This attribute will be nested within 2809 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO. 2810 */ 2811 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85, 2812 /* u8 value representing the channel load percentage. Possible values 2813 * are 0-100. 2814 */ 2815 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86, 2816 /* u8 value representing the time slicing duty cycle percentage. 2817 * Possible values are 0-100. For an MLO connection, indicates the value 2818 * of 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_INFO_TS_DUTY_CYCLE = 87, 2823 /* Unsigned 32 bit value. The number of Beacon frames which are received 2824 * from the associated AP and indicate buffered unicast frame(s) for us 2825 * in the TIM element. For an MLO connection, indicates the value of the 2826 * link with the best RSSI outside 2827 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2828 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2829 */ 2830 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88, 2831 /* Unsigned 32 bit value. The total number of Beacon frames received 2832 * from the associated AP that have wrongly indicated buffered unicast 2833 * traffic in the TIM element for us. 2834 * Below scenarios will be considered as wrong TIM element beacon: 2835 * 1) The related TIM element is set in the beacon for STA but STA 2836 * doesn’t receive any unicast data after this beacon. 2837 * 2) The related TIM element is still set in the beacon for STA 2838 * after STA has indicated power save exit by QoS Null Data frame. 2839 * For an MLO connection, indicates the value of the link with the best 2840 * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link 2841 * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2842 */ 2843 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89, 2844 2845 /* Signed 32 bit value. It represents the noise floor calibration value. 2846 * Possible values are -120~-50 dBm. For an MLO connection, indicates 2847 * the value of the link with the best RSSI outside 2848 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2849 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2850 */ 2851 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90, 2852 2853 /* Attribute used for padding for 64-bit alignment */ 2854 QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91, 2855 2856 /* Unsigned u8 value, link ID of an MLO link. Used inside nested 2857 * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the 2858 * link ID of the MLO link for which the statistics are embedded in the 2859 * nested attribute. Used inside nested attribute 2860 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected 2861 * link ID of the peer. 2862 */ 2863 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92, 2864 2865 /* A nested array of attributes for each MLO link, each containing 2866 * per-link statistics of a multi link connection. The attributes used 2867 * inside this nested attribute are defined in enum 2868 * qca_wlan_vendor_attr_ll_stats_results. 2869 * 2870 * For non-MLO connection, this attribute is not present and the 2871 * statistics will be sent outside this attribute (without nesting). 2872 * 2873 * For MLO connection, this attribute is present and also cumulative 2874 * statistics of all the links will be sent outside of this attribute 2875 * to be compatible with legacy user space. 2876 */ 2877 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93, 2878 2879 /* keep last */ 2880 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST, 2881 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX = 2882 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1, 2883 }; 2884 2885 enum qca_wlan_vendor_attr_ll_stats_type { 2886 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0, 2887 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1, 2888 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2, 2889 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3, 2890 2891 /* keep last */ 2892 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST, 2893 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX = 2894 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1, 2895 }; 2896 2897 #endif /* WLAN_FEATURE_LINK_LAYER_STATS */ 2898 2899 /** 2900 * enum qca_wlan_vendor_attr_get_supported_features - get supported feature 2901 * 2902 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value 2903 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value 2904 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last 2905 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value 2906 */ 2907 enum qca_wlan_vendor_attr_get_supported_features { 2908 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0, 2909 QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1, 2910 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST, 2911 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX = 2912 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1, 2913 }; 2914 2915 /** 2916 * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui 2917 * 2918 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value 2919 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit 2920 * value 2921 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last 2922 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value 2923 */ 2924 enum qca_wlan_vendor_attr_set_scanning_mac_oui { 2925 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0, 2926 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1, 2927 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST, 2928 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX = 2929 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1, 2930 }; 2931 2932 /** 2933 * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the 2934 * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take. 2935 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority 2936 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority 2937 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority 2938 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority 2939 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority 2940 */ 2941 enum qca_wlan_vendor_scan_priority { 2942 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0, 2943 QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1, 2944 QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2, 2945 QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3, 2946 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4, 2947 }; 2948 2949 /** 2950 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes 2951 * 2952 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan 2953 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes 2954 * with frequencies to be scanned (in MHz) 2955 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned 2956 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported 2957 * rates to be included 2958 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests 2959 * at non CCK rate in 2GHz band 2960 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags 2961 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the 2962 * driver for the specific scan request 2963 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan 2964 * request decoded as in enum scan_status 2965 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation 2966 * scan flag is set 2967 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with 2968 * randomisation 2969 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the 2970 * specific BSSID to scan for. 2971 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in 2972 * microseconds. This is a common value which applies across all 2973 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES. 2974 * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to 2975 * other scan requests. It is a u32 attribute and takes values from enum 2976 * qca_wlan_vendor_scan_priority. This is an optional attribute. 2977 * If this attribute is not configured, the driver shall use 2978 * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan. 2979 */ 2980 enum qca_wlan_vendor_attr_scan { 2981 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0, 2982 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1, 2983 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2, 2984 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3, 2985 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4, 2986 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5, 2987 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6, 2988 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7, 2989 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8, 2990 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9, 2991 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10, 2992 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11, 2993 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12, 2994 QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13, 2995 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST, 2996 QCA_WLAN_VENDOR_ATTR_SCAN_MAX = 2997 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1 2998 }; 2999 3000 /** 3001 * enum scan_status - Specifies the valid values the vendor scan attribute 3002 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take 3003 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with 3004 * new scan results 3005 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between 3006 */ 3007 enum scan_status { 3008 VENDOR_SCAN_STATUS_NEW_RESULTS, 3009 VENDOR_SCAN_STATUS_ABORTED, 3010 VENDOR_SCAN_STATUS_MAX, 3011 }; 3012 3013 /** 3014 * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix 3015 * 3016 * NL attributes for data used by 3017 * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command. 3018 * 3019 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value 3020 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX: 3021 * Unsigned 32-bit value 3022 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE: 3023 * Unsigned 32-bit value 3024 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An 3025 * array of SET_SIZE x Unsigned 32bit values representing concurrency 3026 * combinations 3027 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last 3028 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value 3029 */ 3030 enum qca_wlan_vendor_attr_get_concurrency_matrix { 3031 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0, 3032 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX 3033 = 1, 3034 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2, 3035 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3, 3036 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST, 3037 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX = 3038 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1, 3039 }; 3040 3041 /** 3042 * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag 3043 * 3044 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value 3045 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value 3046 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last 3047 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value 3048 */ 3049 enum qca_wlan_vendor_attr_set_no_dfs_flag { 3050 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0, 3051 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1, 3052 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST, 3053 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX = 3054 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1, 3055 }; 3056 3057 /** 3058 * enum qca_vendor_attr_wisa_cmd 3059 * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr 3060 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32) 3061 * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last 3062 * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value 3063 * WISA setup vendor commands 3064 */ 3065 enum qca_vendor_attr_wisa_cmd { 3066 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0, 3067 QCA_WLAN_VENDOR_ATTR_WISA_MODE, 3068 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST, 3069 QCA_WLAN_VENDOR_ATTR_WISA_MAX = 3070 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1 3071 }; 3072 3073 enum qca_roaming_policy { 3074 QCA_ROAMING_NOT_ALLOWED, 3075 QCA_ROAMING_ALLOWED_WITHIN_ESS, 3076 }; 3077 3078 /** 3079 * enum qca_roam_reason - Represents the reason codes for roaming. Used by 3080 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON. 3081 * 3082 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below 3083 * reasons. 3084 * 3085 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached 3086 * the configured threshold. 3087 * 3088 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured 3089 * beacon misses from the then connected AP. 3090 * 3091 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported 3092 * by the connected AP. 3093 * 3094 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a 3095 * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is 3096 * not poor. 3097 * 3098 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel 3099 * or environment being very noisy / congested. 3100 * 3101 * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request 3102 * from the user (user space). 3103 * 3104 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from 3105 * connected AP. 3106 * 3107 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization 3108 * breaching out the configured threshold. 3109 * 3110 * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS 3111 * transition request. 3112 * 3113 * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, 3114 * there is no data activity with the AP and the current rssi falls below a 3115 * certain threshold. 3116 * 3117 * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to 3118 * deauthentication or disassociation frames received from the connected AP. 3119 * 3120 * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic 3121 * scan that happens when there is no candidate AP found during the poor 3122 * RSSI scan trigger. 3123 * 3124 * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan 3125 * results obtained from an external scan (not aimed at roaming). 3126 * 3127 * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth 3128 * connection is established when the station is connected in 2.4 Ghz band. 3129 * 3130 * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame 3131 * failures to the connected AP. 3132 */ 3133 enum qca_roam_reason { 3134 QCA_ROAM_REASON_UNKNOWN, 3135 QCA_ROAM_REASON_PER, 3136 QCA_ROAM_REASON_BEACON_MISS, 3137 QCA_ROAM_REASON_POOR_RSSI, 3138 QCA_ROAM_REASON_BETTER_RSSI, 3139 QCA_ROAM_REASON_CONGESTION, 3140 QCA_ROAM_REASON_USER_TRIGGER, 3141 QCA_ROAM_REASON_BTM, 3142 QCA_ROAM_REASON_BSS_LOAD, 3143 QCA_ROAM_REASON_WTC, 3144 QCA_ROAM_REASON_IDLE, 3145 QCA_ROAM_REASON_DISCONNECTION, 3146 QCA_ROAM_REASON_PERIODIC_TIMER, 3147 QCA_ROAM_REASON_BACKGROUND_SCAN, 3148 QCA_ROAM_REASON_BT_ACTIVITY, 3149 QCA_ROAM_REASON_STA_KICKOUT, 3150 }; 3151 3152 /** 3153 * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming 3154 * 3155 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE 3156 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE 3157 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status 3158 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter 3159 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK 3160 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK 3161 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status 3162 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS: 3163 * Indicates the status of re-association requested by user space for 3164 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID. 3165 * Type u16. 3166 * Represents the status code from AP. Use 3167 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the 3168 * real status code for failures. 3169 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION: 3170 * This attribute indicates that the old association was maintained when 3171 * a re-association is requested by user space and that re-association 3172 * attempt fails (i.e., cannot connect to the requested BSS, but can 3173 * remain associated with the BSS with which the association was in 3174 * place when being requested to roam). Used along with 3175 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current 3176 * re-association status. Type flag. 3177 * This attribute is applicable only for re-association failure cases. 3178 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK 3179 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID 3180 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next 3181 * seq number 3182 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value 3183 * representing the reasons for the roaming. Defined by enum 3184 * qca_roam_reason. 3185 */ 3186 enum qca_wlan_vendor_attr_roam_auth { 3187 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0, 3188 /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address 3189 * of the roamed AP for MLO roaming. 3190 */ 3191 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID, 3192 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE, 3193 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE, 3194 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED, 3195 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR, 3196 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK, 3197 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK, 3198 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS, 3199 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS, 3200 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION, 3201 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK, 3202 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID, 3203 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM, 3204 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON, 3205 /* A nested attribute containing per-link information of all the links 3206 * of MLO connection done while roaming. The attributes used inside this 3207 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links. 3208 */ 3209 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15, 3210 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST, 3211 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX = 3212 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1 3213 }; 3214 3215 /** 3216 * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside 3217 * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS. 3218 * 3219 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link. 3220 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link. 3221 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link. 3222 */ 3223 enum qca_wlan_vendor_attr_mlo_links { 3224 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0, 3225 QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1, 3226 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2, 3227 QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3, 3228 3229 /* Keep last */ 3230 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST, 3231 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX = 3232 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1, 3233 }; 3234 3235 /** 3236 * enum qca_wlan_vendor_attr_wifi_config - wifi config 3237 * 3238 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value 3239 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM 3240 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor 3241 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time 3242 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last 3243 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value 3244 */ 3245 enum qca_wlan_vendor_attr_wifi_config { 3246 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0, 3247 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1, 3248 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2, 3249 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3, 3250 3251 /* keep last */ 3252 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST, 3253 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX = 3254 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1, 3255 }; 3256 3257 /** 3258 * enum qca_wlan_epno_type - the type of request to the EPNO command 3259 * @QCA_WLAN_EPNO: epno type request 3260 * @QCA_WLAN_PNO: pno type request 3261 */ 3262 enum qca_wlan_epno_type { 3263 QCA_WLAN_EPNO, 3264 QCA_WLAN_PNO 3265 }; 3266 3267 /** 3268 * enum qca_wlan_vendor_attr_pno_config_params - pno config params 3269 * 3270 * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value 3271 * 3272 * NL attributes for data used by 3273 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command. 3274 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM: 3275 * Unsigned 32-bit value; pno passpoint number of networks 3276 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY: 3277 * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_* 3278 * attributes. Array size = 3279 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM. 3280 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID: 3281 * Unsigned 32-bit value; network id 3282 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM: 3283 * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded 3284 * realm, 0 if unspecified. 3285 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID: 3286 * An array of 16 x Unsigned 32-bit value; roaming consortium ids 3287 * to match, 0 if unspecified. 3288 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN: 3289 * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if 3290 * unspecified. 3291 * 3292 * NL attributes for data used by 3293 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command. 3294 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS: 3295 * Unsigned 32-bit value; set pno number of networks 3296 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST: 3297 * Array of nested 3298 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_* 3299 * attributes. Array size = 3300 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS 3301 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID: 3302 * An array of 33 x Unsigned 8-bit value; NULL terminated SSID 3303 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD: 3304 * Signed 8-bit value; threshold for considering this SSID as found, 3305 * required granularity for this threshold is 4dBm to 8dBm 3306 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS: 3307 * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX 3308 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT: 3309 * Unsigned 8-bit value; auth bit field for matching WPA IE 3310 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE 3311 * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type 3312 *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST 3313 * Nested attribute to send the channel list 3314 *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL 3315 * Unsigned 32-bit value; indicates the Interval between PNO scan 3316 * cycles in msec 3317 *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI 3318 * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered 3319 *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI 3320 * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered 3321 * This attribute is obsolete now. 3322 *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX 3323 * Signed 32-bit value; the maximum score that a network 3324 * can have before bonuses 3325 *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS 3326 * Signed 32-bit value; only report when there is a network's 3327 * score this much higher han the current connection 3328 *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS 3329 * Signed 32-bit value; score bonus for all networks with 3330 * the same network flag 3331 *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS 3332 * Signed 32-bit value; score bonus for networks that are not open 3333 *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS 3334 * Signed 32-bit value; 5GHz RSSI score bonus applied to all 3335 * 5GHz networks 3336 *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID 3337 * Unsigned 32-bit value, representing the PNO Request ID 3338 * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last 3339 * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max 3340 */ 3341 enum qca_wlan_vendor_attr_pno_config_params { 3342 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0, 3343 3344 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1, 3345 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2, 3346 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3, 3347 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4, 3348 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5, 3349 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6, 3350 3351 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7, 3352 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8, 3353 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9, 3354 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10, 3355 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11, 3356 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12, 3357 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13, 3358 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14, 3359 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15, 3360 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16, 3361 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17, 3362 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18, 3363 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19, 3364 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20, 3365 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21, 3366 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22, 3367 3368 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23, 3369 /* keep last */ 3370 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST, 3371 QCA_WLAN_VENDOR_ATTR_PNO_MAX = 3372 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1, 3373 }; 3374 3375 /** 3376 * enum qca_scan_freq_list_type: Frequency list types 3377 * 3378 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list 3379 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as 3380 * a preferred frequency list for roaming. 3381 * 3382 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list 3383 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as 3384 * a specific frequency list for roaming. 3385 */ 3386 enum qca_scan_freq_list_type { 3387 QCA_PREFERRED_SCAN_FREQ_LIST = 1, 3388 QCA_SPECIFIC_SCAN_FREQ_LIST = 2, 3389 }; 3390 3391 /** 3392 * enum qca_roam_scan_scheme: scan scheme 3393 * 3394 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan. 3395 * Indicates the driver to not scan on a Roam Trigger scenario, but 3396 * Disconnect.e.g., On a BTM request from the AP driver/firmware shall 3397 * disconnect from the current connected AP by notifying a failure 3398 * code in the BTM response. 3399 * 3400 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to 3401 * trigger partial frequency scans. These frequencies are the ones learnt 3402 * or maintained by the driver based on the probability of finding the 3403 * BSSID's in the ESS for which the roaming is triggered. 3404 * 3405 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to 3406 * trigger the scan on all the valid frequencies to find the better 3407 * candidates to roam. 3408 */ 3409 enum qca_roam_scan_scheme { 3410 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0, 3411 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1, 3412 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2, 3413 }; 3414 3415 /** 3416 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme 3417 * 3418 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values. 3419 * List of frequencies in MHz to be considered for a roam scan. 3420 * 3421 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value. 3422 * Type of frequency list scheme being configured/gotten as defined by the 3423 * enum qca_scan_freq_list_type. 3424 */ 3425 enum qca_vendor_attr_scan_freq_list_scheme { 3426 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1, 3427 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2, 3428 3429 /* keep last */ 3430 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST, 3431 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX = 3432 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1, 3433 }; 3434 3435 /* 3436 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers 3437 * 3438 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on 3439 * a bad packet error rates (PER). 3440 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered 3441 * based on beacon misses from the connected AP. 3442 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered 3443 * due to poor RSSI of the connected AP. 3444 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered 3445 * upon finding a BSSID with a better RSSI than the connected BSSID. 3446 * Also, set if the roam has to be triggered due to the high RSSI of the 3447 * current connected AP (better than 3448 * QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET). Here the RSSI of 3449 * the current BSSID need not be poor. 3450 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered 3451 * by triggering a periodic scan to find a better AP to roam. 3452 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered 3453 * when the connected channel environment is too noisy/congested. 3454 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered 3455 * when BTM Request frame is received from the connected AP. 3456 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered 3457 * when the channel utilization is goes above the configured threshold. 3458 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered 3459 * based on the request from the user (space). 3460 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when 3461 * device receives Deauthentication/Disassociation frame from connected 3462 * AP. 3463 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the 3464 * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI 3465 * is determined to be a poor one. 3466 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered 3467 * based on continuous TX Data Frame failures to the connected AP. 3468 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered 3469 * based on the scan results obtained from an external scan (not 3470 * triggered to aim roaming) 3471 * 3472 * Set the corresponding roam trigger reason bit to consider it for roam 3473 * trigger. 3474 * Userspace can set multiple bits and send to the driver. The driver shall 3475 * consider all of them to trigger/initiate a roam scan. 3476 */ 3477 enum qca_vendor_roam_triggers { 3478 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0, 3479 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1, 3480 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2, 3481 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3, 3482 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4, 3483 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5, 3484 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6, 3485 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7, 3486 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8, 3487 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9, 3488 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10, 3489 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11, 3490 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12, 3491 }; 3492 3493 /* 3494 * enum qca_vendor_roam_fail_reasons: Defines the various roam 3495 * fail reasons. This enum value is used in 3496 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute. 3497 * 3498 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not 3499 * able to trigger the scan. 3500 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan. 3501 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam 3502 * scan. 3503 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host. 3504 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame. 3505 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error 3506 * status code. 3507 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received. 3508 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request 3509 * frame. 3510 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame 3511 * with error status code. 3512 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not 3513 * received. 3514 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan. 3515 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication 3516 * frame. 3517 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped 3518 * internally before transmission. 3519 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation 3520 * Request frame. 3521 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is 3522 * dropped internally. 3523 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and 3524 * times out. 3525 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame. 3526 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped 3527 * internally. 3528 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key 3529 * M2 frame. 3530 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received. 3531 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame. 3532 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped 3533 * internally. 3534 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4 3535 * frame. 3536 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not 3537 * started for final beacon miss case. 3538 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame 3539 * received from the AP during roaming handoff. 3540 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps 3541 * or host is suspended and gives the indication of the last roamed AP only 3542 * when the Apps is resumed. If the Apps is resumed while the roaming is in 3543 * progress, this ongoing roaming is aborted and the last roamed AP is 3544 * indicated to host. 3545 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID. 3546 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times 3547 * out. 3548 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails. 3549 * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the 3550 * current network conditions are fine. 3551 */ 3552 enum qca_vendor_roam_fail_reasons { 3553 QCA_ROAM_FAIL_REASON_NONE = 0, 3554 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1, 3555 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2, 3556 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3, 3557 QCA_ROAM_FAIL_REASON_HOST = 4, 3558 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5, 3559 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6, 3560 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7, 3561 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8, 3562 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9, 3563 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10, 3564 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11, 3565 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12, 3566 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13, 3567 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14, 3568 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15, 3569 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16, 3570 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17, 3571 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18, 3572 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19, 3573 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20, 3574 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21, 3575 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22, 3576 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23, 3577 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24, 3578 QCA_ROAM_FAIL_REASON_DISCONNECT = 25, 3579 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26, 3580 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27, 3581 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28, 3582 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29, 3583 QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30, 3584 }; 3585 3586 /* 3587 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam 3588 * invoke fail reasons. This enum value is used in 3589 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute. 3590 * 3591 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed 3592 * in roam invoke command. 3593 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not 3594 * enabled. 3595 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID 3596 * length is invalid. 3597 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already 3598 * in progress. 3599 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response 3600 * of the AP in the roam invoke command to firmware. This reason is sent by the 3601 * firmware when the given AP is configured to be ignored or SSID/security 3602 * does not match. 3603 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of 3604 * firmware internal reasons. 3605 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled. 3606 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke. 3607 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail. 3608 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid. 3609 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to. 3610 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed. 3611 */ 3612 enum qca_vendor_roam_invoke_fail_reasons { 3613 QCA_ROAM_INVOKE_STATUS_NONE = 0, 3614 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1, 3615 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2, 3616 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3, 3617 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4, 3618 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5, 3619 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6, 3620 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7, 3621 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8, 3622 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9, 3623 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10, 3624 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11, 3625 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12, 3626 3627 }; 3628 3629 /** 3630 * enum qca_vendor_attr_roam_candidate_selection_criteria: 3631 * 3632 * Each attribute carries a weightage in percentage (%). 3633 * 3634 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value. 3635 * Represents the weightage to be given for the RSSI selection 3636 * criteria among other parameters. 3637 * 3638 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value. 3639 * Represents the weightage to be given for the rate selection 3640 * criteria among other parameters. 3641 * 3642 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value. 3643 * Represents the weightage to be given for the band width selection 3644 * criteria among other parameters. 3645 * 3646 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value. 3647 * Represents the weightage to be given for the band selection 3648 * criteria among other parameters. 3649 * 3650 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value. 3651 * Represents the weightage to be given for the NSS selection 3652 * criteria among other parameters. 3653 * 3654 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value. 3655 * Represents the weightage to be given for the channel congestion 3656 * selection criteria among other parameters. 3657 * 3658 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value. 3659 * Represents the weightage to be given for the beamforming selection 3660 * criteria among other parameters. 3661 * 3662 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value. 3663 * Represents the weightage to be given for the OCE selection 3664 * criteria among other parameters. 3665 */ 3666 enum qca_vendor_attr_roam_candidate_selection_criteria { 3667 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1, 3668 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2, 3669 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3, 3670 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4, 3671 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5, 3672 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6, 3673 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7, 3674 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8, 3675 3676 /* keep last */ 3677 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST, 3678 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX = 3679 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1, 3680 }; 3681 3682 /** 3683 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration 3684 * The following attributes are used to set/get/clear the respective 3685 * configurations to/from the driver. 3686 * For the get, the attribute for the configuration to be queried shall 3687 * carry any of its acceptable values to the driver. In return, the driver 3688 * shall send the configured values within the same attribute to the user 3689 * space. 3690 * 3691 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value. 3692 * Signifies to enable/disable roam control in driver. 3693 * 1-enable, 0-disable 3694 * Enable: Mandates the driver to do the further roams using the 3695 * configuration parameters set through 3696 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. 3697 * Disable: Disables the driver/firmware roaming triggered through 3698 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is 3699 * expected to continue with the default configurations. 3700 * 3701 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value. 3702 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET. 3703 * Roam control status is obtained through this attribute. 3704 * 3705 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the 3706 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET 3707 * is to be cleared in the driver. 3708 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR 3709 * and shall be ignored if used with other sub commands. 3710 * If this attribute is specified along with subcmd 3711 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore 3712 * all other attributes, if there are any. 3713 * If this attribute is not specified when the subcmd 3714 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall 3715 * clear the data corresponding to the attributes specified. 3716 * 3717 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the 3718 * list of frequencies and its type, represented by 3719 * enum qca_vendor_attr_scan_freq_list_scheme. 3720 * Frequency list and its type are mandatory for this attribute to set 3721 * the frequencies. 3722 * Frequency type is mandatory for this attribute to get the frequencies 3723 * and the frequency list is obtained through 3724 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST. 3725 * Frequency list type is mandatory for this attribute to clear the 3726 * frequencies. 3727 * 3728 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value. 3729 * Carries the value of scan period in seconds to set. 3730 * The value of scan period is obtained with the same attribute for get. 3731 * Clears the scan period in the driver when specified with clear command. 3732 * Scan period is the idle time in seconds between each subsequent 3733 * channel scans. 3734 * 3735 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value. 3736 * Carries the value of full scan period in seconds to set. 3737 * The value of full scan period is obtained with the same attribute for 3738 * get. 3739 * Clears the full scan period in the driver when specified with clear 3740 * command. Full scan period is the idle period in seconds between two 3741 * successive full channel roam scans. 3742 * 3743 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value. 3744 * Carries a bitmap of the roam triggers specified in 3745 * enum qca_vendor_roam_triggers. 3746 * The driver shall enable roaming by enabling corresponding roam triggers 3747 * based on the trigger bits sent with this attribute. 3748 * If this attribute is not configured, the driver shall proceed with 3749 * default behavior. 3750 * The bitmap configured is obtained with the same attribute for get. 3751 * Clears the bitmap configured in driver when specified with clear 3752 * command. 3753 * 3754 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the 3755 * weightage in percentage (%) to be given for each selection criteria. 3756 * Different roam candidate selection criteria are represented by 3757 * enum qca_vendor_attr_roam_candidate_selection_criteria. 3758 * The driver shall select the roam candidate based on corresponding 3759 * candidate selection scores sent. 3760 * 3761 * An empty nested attribute is used to indicate that no specific 3762 * preference score/criteria is configured (i.e., to disable this mechanism 3763 * in the set case and to show that the mechanism is disabled in the get 3764 * case). 3765 * 3766 * Userspace can send multiple attributes out of this enum to the driver. 3767 * Since this attribute represents the weight/percentage of preference for 3768 * the respective selection criteria, it is preferred to configure 100% 3769 * total weightage. The value in each attribute or cumulative weight of the 3770 * values in all the nested attributes should not exceed 100%. The driver 3771 * shall reject such configuration. 3772 * 3773 * If the weights configured through this attribute are less than 100%, 3774 * the driver shall honor the weights (x%) passed for the corresponding 3775 * selection criteria and choose/distribute rest of the weight (100-x)% 3776 * for the other selection criteria, based on its internal logic. 3777 * 3778 * The selection criteria configured is obtained with the same 3779 * attribute for get. 3780 * 3781 * Clears the selection criteria configured in the driver when specified 3782 * with clear command. 3783 * 3784 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value. 3785 * Represents value of scan frequency scheme from 3786 * enum qca_roam_scan_scheme. 3787 * 3788 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm, 3789 * signifying the RSSI threshold of the current connected AP, indicating 3790 * the driver to trigger roam only when the current connected AP's RSSI 3791 * is lesser than this threshold. 3792 * 3793 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm, 3794 * signifying the RSSI threshold of the candidate AP, indicating 3795 * the driver to trigger roam only to the candidate AP with RSSI 3796 * better than this threshold. If RSSI thresholds for candidate APs found 3797 * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using 3798 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ, 3799 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or 3800 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values 3801 * will take precedence over the value configured using 3802 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute. 3803 * 3804 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the 3805 * user triggered reason code to be sent to the AP in response to AP's 3806 * request to trigger the roam if the roaming cannot be triggered. 3807 * Applies to all the scenarios of AP assisted roaming (e.g., BTM). 3808 * 3809 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value. 3810 * Carries a bitmap of the roam triggers specified in 3811 * enum qca_vendor_roam_triggers. 3812 * Represents the roam triggers for which the specific scan scheme from 3813 * enum qca_roam_scan_scheme has to be applied. 3814 * It's an optional attribute. If this attribute is not configured, but 3815 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme 3816 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for 3817 * all the roams. 3818 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and 3819 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the 3820 * driver shall proceed with the default behavior. 3821 * 3822 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value 3823 * in dBm, signifying the RSSI threshold of the candidate AP found in 3824 * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate 3825 * AP found in 2.4GHz band only if it's RSSI value is better than this 3826 * threshold. Optional attribute. If this attribute is not included, then 3827 * threshold value specified by the 3828 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 3829 * 3830 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in 3831 * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz 3832 * band. The driver/firmware shall trigger roaming to the candidate AP 3833 * found in 5GHz band only if it's RSSI value is better than this 3834 * threshold. Optional attribute. If this attribute is not included, then 3835 * threshold value specified by the 3836 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 3837 * 3838 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in 3839 * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz 3840 * band. The driver/firmware shall trigger roaming to the candidate AP 3841 * found in 6GHz band only if it's RSSI value is better than this 3842 * threshold. Optional attribute. If this attribute is not included, then 3843 * threshold value specified by the 3844 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 3845 * 3846 * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value. 3847 * Carries bitmask value of bits from &enum qca_set_band and represents 3848 * all the bands in which roaming is allowed. The configuration is valid 3849 * until next disconnection. If this attribute is not present, the 3850 * existing configuration shall be used. By default, roaming is allowed 3851 * on all bands supported by local device. When the value is set to 3852 * %QCA_SETBAND_AUTO, all supported bands shall be enabled. 3853 * 3854 * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps. 3855 * Optional parameter. RX link speed threshold to disable roaming. 3856 * If the current RX link speed is above the threshold, roaming is not 3857 * needed. If this attribute is not configured, or if it is set to 0, the 3858 * driver will not consider the RX link speed in the roaming decision. 3859 * 3860 * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds. 3861 * Optional parameter. This configuration delays hand-off (in msec) by the 3862 * specified duration to receive pending rx frames from current BSS. 3863 * 3864 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit 3865 * value. 3866 * During the roam scan, if there are no desired APs found in the partial 3867 * frequency list, an immediate full scan on all the supported frequencies 3868 * is initiated as a fallback. This flag controls the frequency list 3869 * creation for the full scan on the following lines. 3870 * 1 - Full scan to exclude the frequencies that were already scanned by 3871 * the previous partial scan. 3872 * 0 - Full scan to include all the supported frequencies irrespective of 3873 * the ones part of the earlier partial scan. 3874 * If this flag is not specified, a full scan shall include all the 3875 * supported frequencies irrespective of the ones part of an earlier 3876 * partial scan. 3877 * 3878 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit 3879 * value. 3880 * During the roam scan, if there are no desired APs found in the partial 3881 * frequency list, an immediate full scan on all the supported frequencies 3882 * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz 3883 * frequencies, including all PSC frequencies by default. This attribute 3884 * controls the inclusion of the 6 GHz PSC frequencies for the full scan 3885 * as following. 3886 * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the 3887 * prior discovery of any 6 GHz frequency support in the environment. 3888 * This discovery can happen through a prior RNR, 11k neighbor 3889 * request, 11v BTM request, host scan, etc. 3890 * 0 - Default behavior. Full scan to include all the supported 6 GHz 3891 * PSC frequencies regardless of whether 6 GHz BSSs have been 3892 * discovered. 3893 * The default behavior if this flag is not specified is to include all 3894 * the supported 6 GHz PSC frequencies in the roam full scan. 3895 * 3896 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET: Unsigned 8-bit value. 3897 * This attribute signifies the RSSI offset that is added to low RSSI 3898 * threshold (QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD) to imply 3899 * high RSSI threshold. STA is expected to trigger roam if the current 3900 * connected AP's RSSI gets above this high RSSI threshold. STA's roam 3901 * attempt on high RSSI threshold aims to find candidates from other 3902 * better Wi-Fi bands. E.g., STA would initially connect to a 2.4 GHz BSSID 3903 * and would migrate to 5/6 GHz when it comes closer to the AP (high RSSI 3904 * for 2.4 GHz BSS). 3905 */ 3906 enum qca_vendor_attr_roam_control { 3907 QCA_ATTR_ROAM_CONTROL_ENABLE = 1, 3908 QCA_ATTR_ROAM_CONTROL_STATUS = 2, 3909 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3, 3910 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4, 3911 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5, 3912 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6, 3913 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7, 3914 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8, 3915 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9, 3916 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10, 3917 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11, 3918 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12, 3919 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13, 3920 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14, 3921 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15, 3922 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16, 3923 QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17, 3924 QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24, 3925 QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25, 3926 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26, 3927 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27, 3928 QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET = 31, 3929 3930 /* keep last */ 3931 QCA_ATTR_ROAM_CONTROL_AFTER_LAST, 3932 QCA_ATTR_ROAM_CONTROL_MAX = 3933 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1, 3934 }; 3935 3936 /** 3937 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by 3938 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command. 3939 * 3940 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value. 3941 * Represents the different roam sub commands referred by 3942 * enum qca_wlan_vendor_roaming_subcmd. 3943 * 3944 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value. 3945 * Represents the Request ID for the specific set of commands. 3946 * This also helps to map specific set of commands to the respective 3947 * ID / client. e.g., helps to identify the user entity configuring the 3948 * Blacklist BSSID and accordingly clear the respective ones with the 3949 * matching ID. 3950 * 3951 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned 3952 * 32-bit value.Represents the number of whitelist SSIDs configured. 3953 * 3954 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute 3955 * to carry the list of Whitelist SSIDs. 3956 * 3957 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute, 3958 * 0..32 octets). Represents the white list SSID. Whitelist SSIDs 3959 * represent the list of SSIDs to which the firmware/driver can consider 3960 * to roam to. 3961 * 3962 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when 3963 * comparing with a 2.4GHz BSSID. They are not applied when comparing two 3964 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD - 3965 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS. 3966 * 3967 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit 3968 * value, RSSI threshold above which 5GHz RSSI is favored. 3969 * 3970 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit 3971 * value, RSSI threshold below which 5GHz RSSI is penalized. 3972 * 3973 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit 3974 * value, factor by which 5GHz RSSI is boosted. 3975 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor 3976 * 3977 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit 3978 * value, factor by which 5GHz RSSI is penalized. 3979 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor 3980 * 3981 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit 3982 * value, maximum boost that can be applied to a 5GHz RSSI. 3983 * 3984 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit 3985 * value, boost applied to current BSSID to ensure the currently 3986 * associated BSSID is favored so as to prevent ping-pong situations. 3987 * 3988 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit 3989 * value, RSSI below which "Alert" roam is enabled. 3990 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID 3991 * because the RSSI is low, or because many successive beacons have been 3992 * lost or other bad link conditions. 3993 * 3994 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit 3995 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where 3996 * firmware is hunting for a better BSSID or white listed SSID even though 3997 * the RSSI of the link is good. The parameters enabling the roaming are 3998 * configured through the PARAM_A_BAND_XX attrbutes. 3999 * 4000 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute, 4001 * represents the BSSIDs preferred over others while evaluating them 4002 * for the roaming. 4003 * 4004 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned 4005 * 32-bit value. Represents the number of preferred BSSIDs set. 4006 * 4007 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC 4008 * address representing the BSSID to be preferred. 4009 * 4010 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed 4011 * 32-bit value, representing the modifier to be applied to the RSSI of 4012 * the BSSID for the purpose of comparing it with other roam candidate. 4013 * 4014 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute, 4015 * represents the BSSIDs to get blacklisted for roaming. 4016 * 4017 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned 4018 * 32-bit value, represents the number of blacklisted BSSIDs. 4019 * 4020 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC 4021 * address representing the Blacklisted BSSID. 4022 * 4023 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute, 4024 * indicates this BSSID blacklist as a hint to the driver. The driver can 4025 * select this BSSID in the worst case (when no other BSSIDs are better). 4026 * 4027 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to 4028 * set/get/clear the roam control config as 4029 * defined @enum qca_vendor_attr_roam_control. 4030 * 4031 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last 4032 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max 4033 */ 4034 enum qca_wlan_vendor_attr_roaming_config_params { 4035 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0, 4036 4037 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1, 4038 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2, 4039 4040 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3, 4041 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4, 4042 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5, 4043 4044 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6, 4045 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7, 4046 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8, 4047 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9, 4048 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10, 4049 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11, 4050 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12, 4051 4052 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13, 4053 4054 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14, 4055 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15, 4056 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16, 4057 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17, 4058 4059 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18, 4060 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19, 4061 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20, 4062 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21, 4063 4064 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22, 4065 4066 /* keep last */ 4067 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST, 4068 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX = 4069 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1, 4070 }; 4071 4072 /** 4073 * enum qca_wlan_vendor_roaming_subcmd: Referred by 4074 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD. 4075 * 4076 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to 4077 * configure the white list SSIDs. These are configured through 4078 * the following attributes. 4079 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS, 4080 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST, 4081 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID 4082 * 4083 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to 4084 * configure the Roam params. These parameters are evaluated on the extscan 4085 * results. Refers the attributes PARAM_A_BAND_XX above to configure the 4086 * params. 4087 * 4088 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses 4089 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE 4090 * to enable/disable Lazy roam. 4091 * 4092 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID 4093 * preference. Contains the attribute 4094 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID 4095 * preference. 4096 * 4097 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params 4098 * 4099 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist 4100 * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to 4101 * set the same. 4102 * 4103 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the 4104 * roam control config to the driver with the attribute 4105 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 4106 * 4107 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the 4108 * roam control config from driver with the attribute 4109 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 4110 * For the get, the attribute for the configuration to be queried shall 4111 * carry any of its acceptable value to the driver. In return, the driver 4112 * shall send the configured values within the same attribute to the user 4113 * space. 4114 * 4115 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the 4116 * roam control config in the driver with the attribute 4117 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 4118 * The driver shall continue with its default roaming behavior when data 4119 * corresponding to an attribute is cleared. 4120 */ 4121 enum qca_wlan_vendor_roaming_subcmd { 4122 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1, 4123 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2, 4124 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3, 4125 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4, 4126 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5, 4127 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6, 4128 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7, 4129 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8, 4130 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9, 4131 }; 4132 4133 /** 4134 * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information 4135 * 4136 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value 4137 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version 4138 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version 4139 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index 4140 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last 4141 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max 4142 */ 4143 enum qca_wlan_vendor_attr_get_wifi_info { 4144 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0, 4145 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1, 4146 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2, 4147 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3, 4148 4149 /* KEEP LAST */ 4150 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST, 4151 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX = 4152 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1, 4153 }; 4154 4155 enum qca_wlan_vendor_attr_logger_results { 4156 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0, 4157 4158 /* 4159 * Unsigned 32-bit value; must match the request Id supplied by 4160 * Wi-Fi HAL in the corresponding subcmd NL msg. 4161 */ 4162 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1, 4163 4164 /* 4165 * Unsigned 32-bit value; used to indicate the size of memory 4166 * dump to be allocated. 4167 */ 4168 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2, 4169 4170 /* keep last */ 4171 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST, 4172 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX = 4173 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1, 4174 }; 4175 4176 /** 4177 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel. 4178 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS. 4179 */ 4180 enum qca_wlan_vendor_channel_prop_flags { 4181 /* Bits 0, 1, 2, and 3 are reserved */ 4182 4183 /* Turbo channel */ 4184 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4, 4185 /* CCK channel */ 4186 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5, 4187 /* OFDM channel */ 4188 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6, 4189 /* 2.4 GHz spectrum channel. */ 4190 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7, 4191 /* 5 GHz spectrum channel */ 4192 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8, 4193 /* Only passive scan allowed */ 4194 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9, 4195 /* Dynamic CCK-OFDM channel */ 4196 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10, 4197 /* GFSK channel (FHSS PHY) */ 4198 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11, 4199 /* Radar found on channel */ 4200 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12, 4201 /* 11a static turbo channel only */ 4202 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13, 4203 /* Half rate channel */ 4204 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14, 4205 /* Quarter rate channel */ 4206 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15, 4207 /* HT 20 channel */ 4208 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16, 4209 /* HT 40 with extension channel above */ 4210 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17, 4211 /* HT 40 with extension channel below */ 4212 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18, 4213 /* HT 40 intolerant */ 4214 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19, 4215 /* VHT 20 channel */ 4216 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20, 4217 /* VHT 40 with extension channel above */ 4218 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21, 4219 /* VHT 40 with extension channel below */ 4220 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22, 4221 /* VHT 80 channel */ 4222 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23, 4223 /* HT 40 intolerant mark bit for ACS use */ 4224 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24, 4225 /* Channel temporarily blocked due to noise */ 4226 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25, 4227 /* VHT 160 channel */ 4228 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26, 4229 /* VHT 80+80 channel */ 4230 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27, 4231 /* HE 20 channel */ 4232 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28, 4233 /* HE 40 with extension channel above */ 4234 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29, 4235 /* HE 40 with extension channel below */ 4236 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30, 4237 /* HE 40 intolerant */ 4238 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31, 4239 }; 4240 4241 /** 4242 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a 4243 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is 4244 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2. 4245 */ 4246 enum qca_wlan_vendor_channel_prop_flags_2 { 4247 /* HE 40 intolerant mark bit for ACS use */ 4248 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0, 4249 /* HE 80 channel */ 4250 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1, 4251 /* HE 160 channel */ 4252 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2, 4253 /* HE 80+80 channel */ 4254 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3, 4255 }; 4256 4257 /** 4258 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for 4259 * each channel. This is used by 4260 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT. 4261 */ 4262 enum qca_wlan_vendor_channel_prop_flags_ext { 4263 /* Radar found on channel */ 4264 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0, 4265 /* DFS required on channel */ 4266 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1, 4267 /* DFS required on channel for 2nd band of 80+80 */ 4268 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2, 4269 /* If channel has been checked for DFS */ 4270 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3, 4271 /* Excluded in 802.11d */ 4272 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4, 4273 /* Channel Switch Announcement received on this channel */ 4274 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5, 4275 /* Ad-hoc is not allowed */ 4276 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6, 4277 /* Station only channel */ 4278 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7, 4279 /* DFS radar history for slave device (STA mode) */ 4280 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8, 4281 /* DFS CAC valid for slave device (STA mode) */ 4282 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9, 4283 }; 4284 4285 /** 4286 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd 4287 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite 4288 * information to start/stop the NUD statistics collection. 4289 */ 4290 enum qca_attr_nud_stats_set { 4291 QCA_ATTR_NUD_STATS_SET_INVALID = 0, 4292 4293 /* 4294 * Flag to start/stop the NUD statistics collection. 4295 * Start - If included, Stop - If not included 4296 */ 4297 QCA_ATTR_NUD_STATS_SET_START = 1, 4298 /* IPv4 address of the default gateway (in network byte order) */ 4299 QCA_ATTR_NUD_STATS_GW_IPV4 = 2, 4300 /* 4301 * Represents the data packet type to be monitored. 4302 * Host driver tracks the stats corresponding to each data frame 4303 * represented by these flags. 4304 * These data packets are represented by 4305 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info. 4306 */ 4307 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3, 4308 /* keep last */ 4309 QCA_ATTR_NUD_STATS_SET_LAST, 4310 QCA_ATTR_NUD_STATS_SET_MAX = 4311 QCA_ATTR_NUD_STATS_SET_LAST - 1, 4312 }; 4313 4314 /** 4315 * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd 4316 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite 4317 * information to start / stop the NUD stats collection. 4318 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats 4319 * Bitmap to Flag to Start / Stop the NUD stats collection 4320 * Start - If included , Stop - If not included 4321 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address 4322 * IPv4 address of Default Gateway (in network byte order) 4323 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite 4324 * information to start / stop the NUD stats collection. 4325 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats 4326 * Flag to Start / Stop the NUD stats collection 4327 * Start - If included , Stop - If not included 4328 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address 4329 * IPv4 address of Default Gateway (in network byte order) 4330 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite 4331 * information to start / stop the NUD stats collection. 4332 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats 4333 * Flag to Start / Stop the NUD stats collection 4334 * Start - If included , Stop - If not included 4335 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address 4336 * IPv4 address of Default Gateway (in network byte order) 4337 */ 4338 enum qca_attr_connectivity_check_stats_set { 4339 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0, 4340 QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1, 4341 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2, 4342 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3, 4343 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4, 4344 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5, 4345 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6, 4346 /* keep last */ 4347 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST, 4348 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX = 4349 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1, 4350 }; 4351 4352 /** 4353 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various 4354 * data types for which the stats have to get collected. 4355 */ 4356 enum qca_wlan_vendor_connectivity_check_pkt_flags { 4357 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0, 4358 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1, 4359 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2, 4360 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3, 4361 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4, 4362 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get 4363 * to represent the stats of respective data type. 4364 */ 4365 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5, 4366 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6, 4367 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7, 4368 }; 4369 4370 enum qca_attr_connectivity_check_stats { 4371 QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0, 4372 /* Data packet type for which the stats are collected. 4373 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags 4374 */ 4375 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1, 4376 /* ID corresponding to the DNS frame for which the respective DNS stats 4377 * are monitored (u32). 4378 */ 4379 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2, 4380 /* source / destination port on which the respective proto stats are 4381 * collected (u32). 4382 */ 4383 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3, 4384 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4, 4385 /* IPv4/IPv6 address for which the destined data packets are 4386 * monitored. (in network byte order) 4387 */ 4388 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5, 4389 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6, 4390 /* Data packet Request count received from netdev */ 4391 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7, 4392 /* Data packet Request count sent to lower MAC from upper MAC */ 4393 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8, 4394 /* Data packet Request count received by lower MAC from upper MAC */ 4395 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9, 4396 /* Data packet Request count successfully transmitted by the device */ 4397 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10, 4398 /* Data packet Response count received by lower MAC */ 4399 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11, 4400 /* Data packet Response count received by upper MAC */ 4401 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12, 4402 /* Data packet Response count delivered to netdev */ 4403 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13, 4404 /* Data Packet Response count that are dropped out of order */ 4405 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14, 4406 4407 /* keep last */ 4408 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST, 4409 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX = 4410 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1, 4411 }; 4412 4413 /** 4414 * qca_attr_nud_stats_get: Attributes to vendor subcmd 4415 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite 4416 * NUD statistics collected when queried. 4417 */ 4418 enum qca_attr_nud_stats_get { 4419 QCA_ATTR_NUD_STATS_GET_INVALID = 0, 4420 /* ARP Request count from netdev */ 4421 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1, 4422 /* ARP Request count sent to lower MAC from upper MAC */ 4423 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2, 4424 /* ARP Request count received by lower MAC from upper MAC */ 4425 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3, 4426 /* ARP Request count successfully transmitted by the device */ 4427 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4, 4428 /* ARP Response count received by lower MAC */ 4429 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5, 4430 /* ARP Response count received by upper MAC */ 4431 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6, 4432 /* ARP Response count delivered to netdev */ 4433 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7, 4434 /* ARP Response count delivered to netdev */ 4435 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8, 4436 /* 4437 * Flag indicating if the station's link to the AP is active. 4438 * Active Link - If included, Inactive link - If not included 4439 */ 4440 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9, 4441 /* 4442 * Flag indicating if there is any duplicate address detected (DAD). 4443 * Yes - If detected, No - If not detected. 4444 */ 4445 QCA_ATTR_NUD_STATS_IS_DAD = 10, 4446 /* 4447 * List of Data types for which the stats are requested. 4448 * This list does not carry ARP stats as they are done by the 4449 * above attributes. Represented by enum qca_attr_nud_data_stats. 4450 */ 4451 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11, 4452 /* keep last */ 4453 QCA_ATTR_NUD_STATS_GET_LAST, 4454 QCA_ATTR_NUD_STATS_GET_MAX = 4455 QCA_ATTR_NUD_STATS_GET_LAST - 1, 4456 }; 4457 4458 enum qca_wlan_btm_candidate_status { 4459 QCA_STATUS_ACCEPT = 0, 4460 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1, 4461 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2, 4462 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3, 4463 QCA_STATUS_REJECT_LOW_RSSI = 4, 4464 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5, 4465 QCA_STATUS_REJECT_UNKNOWN = 6, 4466 }; 4467 4468 enum qca_wlan_vendor_attr_btm_candidate_info { 4469 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0, 4470 4471 /* 6-byte MAC address representing the BSSID of transition candidate */ 4472 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1, 4473 /* 4474 * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status 4475 * returned by the driver. It says whether the BSSID provided in 4476 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by 4477 * the driver, if not it specifies the reason for rejection. 4478 * Note that the user-space can overwrite the transition reject reason 4479 * codes provided by driver based on more information. 4480 */ 4481 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2, 4482 4483 /* keep last */ 4484 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST, 4485 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX = 4486 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1, 4487 }; 4488 4489 enum qca_attr_trace_level { 4490 QCA_ATTR_TRACE_LEVEL_INVALID = 0, 4491 /* 4492 * Nested array of the following attributes: 4493 * QCA_ATTR_TRACE_LEVEL_MODULE, 4494 * QCA_ATTR_TRACE_LEVEL_MASK. 4495 */ 4496 QCA_ATTR_TRACE_LEVEL_PARAM = 1, 4497 /* 4498 * Specific QCA host driver module. Please refer to the QCA host 4499 * driver implementation to get the specific module ID. 4500 */ 4501 QCA_ATTR_TRACE_LEVEL_MODULE = 2, 4502 /* Different trace level masks represented in the QCA host driver. */ 4503 QCA_ATTR_TRACE_LEVEL_MASK = 3, 4504 4505 /* keep last */ 4506 QCA_ATTR_TRACE_LEVEL_AFTER_LAST, 4507 QCA_ATTR_TRACE_LEVEL_MAX = 4508 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1, 4509 }; 4510 4511 /** 4512 * enum qca_wlan_vendor_attr_get_logger_features - value for logger 4513 * supported features 4514 * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid 4515 * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features 4516 * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum 4517 * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type 4518 * 4519 * enum values are used for NL attributes for data used by 4520 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command. 4521 */ 4522 enum qca_wlan_vendor_attr_get_logger_features { 4523 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0, 4524 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1, 4525 4526 /* keep last */ 4527 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST, 4528 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX = 4529 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1, 4530 }; 4531 4532 /** 4533 * enum qca_wlan_vendor_attr_link_properties - link properties 4534 * 4535 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value 4536 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to 4537 * specify the number of spatial streams negotiated 4538 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value 4539 * to specify negotiated rate flags i.e. ht, vht and channel width 4540 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to 4541 * specify the operating frequency 4542 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer 4543 * (STA / AP ) for the connected link. 4544 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a 4545 * &struct nl80211_sta_flag_update for the respective connected link. MAC 4546 * address of the peer represented by 4547 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR. 4548 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last 4549 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value 4550 */ 4551 enum qca_wlan_vendor_attr_link_properties { 4552 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0, 4553 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1, 4554 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2, 4555 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3, 4556 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4, 4557 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5, 4558 4559 /* KEEP LAST */ 4560 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST, 4561 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX = 4562 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1, 4563 }; 4564 4565 /** 4566 * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support 4567 * 4568 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid 4569 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload 4570 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum 4571 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type 4572 * 4573 * enum values are used for NL attributes for data used by 4574 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command. 4575 */ 4576 enum qca_wlan_vendor_attr_nd_offload { 4577 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0, 4578 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG, 4579 4580 /* Keep last */ 4581 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST, 4582 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX = 4583 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1, 4584 }; 4585 4586 /** 4587 * enum qca_wlan_vendor_features - Vendor device/driver feature flags 4588 * 4589 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key 4590 * management offload, a mechanism where the station's firmware 4591 * does the exchange with the AP to establish the temporal keys 4592 * after roaming, rather than having the user space wpa_supplicant do it. 4593 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic 4594 * band selection based on channel selection results. 4595 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports 4596 * simultaneous off-channel operations. 4597 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P 4598 * Listen offload; a mechanism where the station's firmware takes care of 4599 * responding to incoming Probe Request frames received from other P2P 4600 * Devices whilst in Listen state, rather than having the user space 4601 * wpa_supplicant do it. Information from received P2P requests are 4602 * forwarded from firmware to host whenever the host processor wakes up. 4603 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA 4604 * specific features. 4605 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific 4606 * features. 4607 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON 4608 * specific features only. If a Device sets this bit but not the 4609 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that 4610 * this Device may not support all OCE AP functionalities but can support 4611 * only OCE STA-CFON functionalities. 4612 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self 4613 * managed regulatory. 4614 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time). 4615 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE) 4616 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation 4617 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving 4618 * and applying thermal configuration through 4619 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and 4620 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from 4621 * userspace. 4622 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r. 4623 * With Adaptive 11r feature, access points advertise the vendor 4624 * specific IEs and MDE but do not include FT AKM in the RSNE. 4625 * The Adaptive 11r supported stations are expected to identify 4626 * such vendor specific IEs and connect to the AP in FT mode though 4627 * the profile is configured in non-FT mode. 4628 * The driver-based SME cases also need to have this support for 4629 * Adaptive 11r to handle the connection and roaming scenarios. 4630 * This flag indicates the support for the same to the user space. 4631 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports 4632 * concurrent network sessions on different Wi-Fi Bands. This feature 4633 * capability is attributed to the hardware's capability to support 4634 * the same (e.g., DBS). 4635 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the 4636 * responses for the respective TWT operations are asynchronous (separate) 4637 * event message) from the driver. If not specified, the responses are 4638 * synchronous (in vendor command reply) to the request. Each TWT 4639 * operation is specifically mentioned (against its respective) 4640 * documentation) to support either of these or both modes. 4641 * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates 4642 * that the driver requires add/del virtual interface path using the 4643 * generic nl80211 commands for NDP interface create/delete and to 4644 * register/unregister the netdev instead of creating/deleting the NDP 4645 * interface using the vendor commands 4646 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and 4647 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel 4648 * (5.12 version onward), interface creation/deletion is not allowed using 4649 * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK 4650 * during the register/unregister of netdev. Create and delete NDP 4651 * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE 4652 * commands respectively if the driver advertises this capability set. 4653 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in 4654 * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is 4655 * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored. 4656 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP 4657 * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then 4658 * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored. 4659 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in 4660 * station mode supports secure RTT measurement exchange. If 4661 * NL80211_EXT_FEATURE_SECURE_RTT is set, 4662 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored. 4663 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP 4664 * mode supports secure RTT measurement exchange. If 4665 * NL80211_EXT_FEATURE_SECURE_RTT is set, 4666 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored. 4667 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that 4668 * the device in station mode supports protection of range negotiation and 4669 * measurement management frames. If 4670 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then 4671 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored. 4672 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that 4673 * the device in AP mode supports protection of range negotiation and 4674 * measurement management frames. If 4675 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then 4676 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored. 4677 * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device 4678 * in AP mode supports configuring allowed frequency list for AP operation 4679 * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST. 4680 * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates 4681 * that the device supports enhanced audio experience over WLAN feature. 4682 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits 4683 */ 4684 enum qca_wlan_vendor_features { 4685 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0, 4686 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1, 4687 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2, 4688 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3, 4689 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4, 4690 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5, 4691 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6, 4692 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7, 4693 QCA_WLAN_VENDOR_FEATURE_TWT = 8, 4694 QCA_WLAN_VENDOR_FEATURE_11AX = 9, 4695 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10, 4696 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11, 4697 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12, 4698 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13, 4699 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14, 4700 QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15, 4701 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16, 4702 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17, 4703 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18, 4704 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19, 4705 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20, 4706 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21, 4707 QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22, 4708 QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23, 4709 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */ 4710 }; 4711 4712 /** 4713 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP 4714 * conditional channel switch 4715 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial 4716 * value 4717 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based 4718 * frequency list (an array of u32 values in host byte order) 4719 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the 4720 * conditional switch (u32)- 0: Success, Non-zero: Failure 4721 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last 4722 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max 4723 */ 4724 enum qca_wlan_vendor_attr_sap_conditional_chan_switch { 4725 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0, 4726 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1, 4727 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2, 4728 4729 /* Keep Last */ 4730 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST, 4731 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX = 4732 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1, 4733 }; 4734 4735 /** 4736 * enum wifi_logger_supported_features - values for supported logger features 4737 * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW 4738 * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics 4739 * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events 4740 * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver 4741 * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver 4742 * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health 4743 * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump 4744 * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate 4745 */ 4746 enum wifi_logger_supported_features { 4747 WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)), 4748 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)), 4749 WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)), 4750 WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)), 4751 WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)), 4752 WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)), 4753 WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)), 4754 WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)), 4755 WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8)) 4756 }; 4757 4758 /** 4759 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get 4760 * capabilities features 4761 */ 4762 enum qca_wlan_tdls_caps_features_supported { 4763 WIFI_TDLS_SUPPORT = (1 << (0)), 4764 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)), 4765 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)), 4766 4767 /* Indicates if the TDLS session can be formed with the peer using 4768 * higher bandwidth than the bandwidth of the AP path. 4769 */ 4770 WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)), 4771 }; 4772 4773 /** 4774 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with 4775 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. 4776 * 4777 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8). 4778 * Used with event to notify the primary channel number selected in ACS 4779 * operation. 4780 * Note: If both the driver and user-space application supports the 6 GHz band, 4781 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use 4782 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead. 4783 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL 4784 * is still used if either of the driver or user space application doesn't 4785 * support the 6 GHz band. 4786 * 4787 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8). 4788 * Used with event to notify the secondary channel number selected in ACS 4789 * operation. 4790 * Note: If both the driver and user-space application supports the 6 GHz band, 4791 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use 4792 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead. 4793 * To maintain backward compatibility, 4794 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of 4795 * the driver or user space application doesn't support 6 GHz band. 4796 * 4797 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8). 4798 * (a) Used with command to configure hw_mode from 4799 * enum qca_wlan_vendor_acs_hw_mode for ACS operation. 4800 * (b) Also used with event to notify the hw_mode of selected primary channel 4801 * in ACS operation. 4802 * 4803 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute. 4804 * Used with command to configure ACS operation for HT mode. 4805 * Disable (flag attribute not present) - HT disabled and 4806 * Enable (flag attribute present) - HT enabled. 4807 * 4808 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute. 4809 * Used with command to configure ACS operation for HT40 mode. 4810 * Disable (flag attribute not present) - HT40 disabled and 4811 * Enable (flag attribute present) - HT40 enabled. 4812 * 4813 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute. 4814 * Used with command to configure ACS operation for VHT mode. 4815 * Disable (flag attribute not present) - VHT disabled and 4816 * Enable (flag attribute present) - VHT enabled. 4817 * 4818 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and 4819 * mandatory with event. 4820 * If specified in command path, ACS operation is configured with the given 4821 * channel width (in MHz). 4822 * In event path, specifies the channel width of the primary channel selected. 4823 * 4824 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC. 4825 * Used with command to configure channel list using an array of 4826 * channel numbers (u8). 4827 * Note: If both the driver and user-space application supports the 6 GHz band, 4828 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas 4829 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional. 4830 * 4831 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8). 4832 * Used with event to notify the VHT segment 0 center channel number selected in 4833 * ACS operation. 4834 * Note: If both the driver and user-space application supports the 6 GHz band, 4835 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use 4836 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead. 4837 * To maintain backward compatibility, 4838 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of 4839 * the driver or user space application doesn't support the 6 GHz band. 4840 * 4841 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8). 4842 * Used with event to notify the VHT segment 1 center channel number selected in 4843 * ACS operation. 4844 * Note: If both the driver and user-space application supports the 6 GHz band, 4845 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use 4846 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead. 4847 * To maintain backward compatibility, 4848 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of 4849 * the driver or user space application doesn't support the 6 GHz band. 4850 * 4851 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC. 4852 * Used with command to configure the channel list using an array of channel 4853 * center frequencies in MHz (u32). 4854 * Note: If both the driver and user-space application supports the 6 GHz band, 4855 * the driver first parses the frequency list and if it fails to get a frequency 4856 * list, parses the channel list specified using 4857 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in 4858 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST). 4859 * 4860 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32). 4861 * Used with event to notify the primary channel center frequency (MHz) selected 4862 * in ACS operation. 4863 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4864 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL. 4865 * 4866 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32). 4867 * Used with event to notify the secondary channel center frequency (MHz) 4868 * selected in ACS operation. 4869 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4870 * includes this attribute along with 4871 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL. 4872 * 4873 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32). 4874 * Used with event to notify the VHT segment 0 center channel frequency (MHz) 4875 * selected in ACS operation. 4876 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4877 * includes this attribute along with 4878 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL. 4879 * 4880 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32). 4881 * Used with event to notify the VHT segment 1 center channel frequency (MHz) 4882 * selected in ACS operation. 4883 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4884 * includes this attribute along with 4885 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL. 4886 * 4887 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute. 4888 * Used with command to notify the driver of EDMG request for ACS 4889 * operation. 4890 * 4891 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8). 4892 * Used with event to notify the EDMG channel number selected in ACS 4893 * operation. 4894 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL 4895 * 4896 * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16). 4897 * Used with event to notify the puncture pattern selected in ACS operation. 4898 * Encoding for this attribute will follow the convention used in the Disabled 4899 * Subchannel Bitmap field of the EHT Operation IE. 4900 * 4901 * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute. 4902 * Used with command to configure ACS operation for EHT mode. 4903 * Disable (flag attribute not present) - EHT disabled and 4904 * Enable (flag attribute present) - EHT enabled. 4905 * 4906 * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32). 4907 * Used with command to configure how older scan can be considered for ACS 4908 * scoring. In case scan was performed on partial set of channels configured 4909 * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME 4910 * (in ms), then scan only remaining channels. 4911 */ 4912 enum qca_wlan_vendor_attr_acs_offload { 4913 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0, 4914 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1, 4915 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2, 4916 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3, 4917 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4, 4918 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5, 4919 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6, 4920 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7, 4921 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8, 4922 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9, 4923 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10, 4924 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11, 4925 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12, 4926 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13, 4927 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14, 4928 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15, 4929 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16, 4930 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17, 4931 QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18, 4932 QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19, 4933 QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20, 4934 4935 /* keep last */ 4936 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST, 4937 QCA_WLAN_VENDOR_ATTR_ACS_MAX = 4938 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1 4939 }; 4940 4941 /** 4942 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the 4943 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. 4944 * 4945 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode 4946 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode 4947 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode 4948 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode 4949 * @QCA_ACS_MODE_IEEE80211ANY: all modes 4950 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode 4951 */ 4952 enum qca_wlan_vendor_acs_hw_mode { 4953 QCA_ACS_MODE_IEEE80211B, 4954 QCA_ACS_MODE_IEEE80211G, 4955 QCA_ACS_MODE_IEEE80211A, 4956 QCA_ACS_MODE_IEEE80211AD, 4957 QCA_ACS_MODE_IEEE80211ANY, 4958 QCA_ACS_MODE_IEEE80211AX, 4959 }; 4960 4961 /** 4962 * enum qca_access_policy - access control policy 4963 * 4964 * Access control policy is applied on the configured IE 4965 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE). 4966 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY. 4967 * 4968 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match 4969 *» with the specific configuration (IE) set, i.e. allow all the 4970 *» connections which do not match the configuration. 4971 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match 4972 *» with the specific configuration (IE) set, i.e. deny all the 4973 *» connections which do not match the configuration. 4974 */ 4975 enum qca_access_policy { 4976 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED, 4977 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED, 4978 }; 4979 4980 /** 4981 * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values 4982 * 4983 * The valid values for the ignore assoc disallowed 4984 * 4985 * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed 4986 * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed 4987 * 4988 */ 4989 enum qca_ignore_assoc_disallowed { 4990 QCA_IGNORE_ASSOC_DISALLOWED_DISABLE, 4991 QCA_IGNORE_ASSOC_DISALLOWED_ENABLE 4992 }; 4993 4994 /* Attributes for data used by 4995 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and 4996 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands. 4997 */ 4998 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\ 4999 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES 5000 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\ 5001 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL 5002 #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\ 5003 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON 5004 enum qca_wlan_vendor_attr_config { 5005 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0, 5006 /* 5007 * Unsigned 32-bit value to set the DTIM period. 5008 * Whether the wifi chipset wakes at every dtim beacon or a multiple of 5009 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3 5010 * DTIM beacons. 5011 */ 5012 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1, 5013 /* 5014 * Unsigned 32-bit value to set the wifi_iface stats averaging factor 5015 * used to calculate statistics like average the TSF offset or average 5016 * number of frame leaked. 5017 * For instance, upon Beacon frame reception: 5018 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000 5019 * For instance, when evaluating leaky APs: 5020 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000 5021 */ 5022 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2, 5023 /* 5024 * Unsigned 32-bit value to configure guard time, i.e., when 5025 * implementing IEEE power management based on frame control PM bit, how 5026 * long the driver waits before shutting down the radio and after 5027 * receiving an ACK frame for a Data frame with PM bit set. 5028 */ 5029 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3, 5030 /* Unsigned 32-bit value to change the FTM capability dynamically */ 5031 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4, 5032 /* Unsigned 16-bit value to configure maximum TX rate dynamically */ 5033 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5, 5034 /* 5035 * Unsigned 32-bit value to configure the number of continuous 5036 * Beacon Miss which shall be used by the firmware to penalize 5037 * the RSSI. 5038 */ 5039 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6, 5040 /* 5041 * Unsigned 8-bit value to configure the channel avoidance indication 5042 * behavior. Firmware to send only one indication and ignore duplicate 5043 * indications when set to avoid multiple Apps wakeups. 5044 */ 5045 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7, 5046 /* 5047 * 8-bit unsigned value to configure the maximum TX MPDU for 5048 * aggregation. 5049 */ 5050 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8, 5051 /* 5052 * 8-bit unsigned value to configure the maximum RX MPDU for 5053 * aggregation. 5054 */ 5055 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9, 5056 /* 5057 * 8-bit unsigned value to configure the Non aggregate/11g sw 5058 * retry threshold (0 disable, 31 max). 5059 */ 5060 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10, 5061 /* 5062 * 8-bit unsigned value to configure the aggregate sw 5063 * retry threshold (0 disable, 31 max). 5064 */ 5065 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11, 5066 /* 5067 * 8-bit unsigned value to configure the MGMT frame 5068 * retry threshold (0 disable, 31 max). 5069 */ 5070 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12, 5071 /* 5072 * 8-bit unsigned value to configure the CTRL frame 5073 * retry threshold (0 disable, 31 max). 5074 */ 5075 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13, 5076 /* 5077 * 8-bit unsigned value to configure the propagation delay for 5078 * 2G/5G band (0~63, units in us) 5079 */ 5080 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14, 5081 /* 5082 * Unsigned 32-bit value to configure the number of unicast TX fail 5083 * packet count. The peer is disconnected once this threshold is 5084 * reached. 5085 */ 5086 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15, 5087 /* 5088 * Attribute used to set scan default IEs to the driver. 5089 * 5090 * These IEs can be used by scan operations that will be initiated by 5091 * the driver/firmware. 5092 * 5093 * For further scan requests coming to the driver, these IEs should be 5094 * merged with the IEs received along with scan request coming to the 5095 * driver. If a particular IE is present in the scan default IEs but not 5096 * present in the scan request, then that IE should be added to the IEs 5097 * sent in the Probe Request frames for that scan request. 5098 */ 5099 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16, 5100 /* Unsigned 32-bit attribute for generic commands */ 5101 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17, 5102 /* Unsigned 32-bit value attribute for generic commands */ 5103 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18, 5104 /* Unsigned 32-bit data attribute for generic command response */ 5105 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19, 5106 /* 5107 * Unsigned 32-bit length attribute for 5108 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 5109 */ 5110 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20, 5111 /* 5112 * Unsigned 32-bit flags attribute for 5113 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 5114 */ 5115 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21, 5116 /* 5117 * Unsigned 32-bit, defining the access policy. 5118 * See enum qca_access_policy. Used with 5119 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. 5120 */ 5121 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22, 5122 /* 5123 * Sets the list of full set of IEs for which a specific access policy 5124 * has to be applied. Used along with 5125 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access. 5126 * Zero length payload can be used to clear this access constraint. 5127 */ 5128 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23, 5129 /* 5130 * Unsigned 32-bit, specifies the interface index (netdev) for which the 5131 * corresponding configurations are applied. If the interface index is 5132 * not specified, the configurations are attributed to the respective 5133 * wiphy. 5134 */ 5135 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24, 5136 /* 5137 * 8-bit unsigned value to trigger QPower: 5138 * 1-Enable, 0-Disable 5139 */ 5140 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25, 5141 /* 5142 * 8-bit unsigned value to configure the driver and below layers to 5143 * ignore the assoc disallowed set by APs while connecting 5144 * 1-Ignore, 0-Don't ignore 5145 */ 5146 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26, 5147 /* 5148 * 32-bit unsigned value to trigger antenna diversity features: 5149 * 1-Enable, 0-Disable 5150 */ 5151 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27, 5152 /* 32-bit unsigned value to configure specific chain antenna */ 5153 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28, 5154 /* 5155 * 32-bit unsigned value to trigger cycle selftest 5156 * 1-Enable, 0-Disable 5157 */ 5158 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29, 5159 /* 5160 * 32-bit unsigned to configure the cycle time of selftest 5161 * the unit is micro-second 5162 */ 5163 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30, 5164 /* 32-bit unsigned value to set reorder timeout for AC_VO */ 5165 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31, 5166 /* 32-bit unsigned value to set reorder timeout for AC_VI */ 5167 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32, 5168 /* 32-bit unsigned value to set reorder timeout for AC_BE */ 5169 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33, 5170 /* 32-bit unsigned value to set reorder timeout for AC_BK */ 5171 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34, 5172 /* 6-byte MAC address to point out the specific peer */ 5173 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC = 35, 5174 /* Backward compatibility with the original name */ 5175 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 5176 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC, 5177 /* 32-bit unsigned value to set window size for specific peer */ 5178 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36, 5179 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */ 5180 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37, 5181 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */ 5182 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38, 5183 /* 5184 * 32-bit unsigned value to configure 5 or 10 MHz channel width for 5185 * station device while in disconnect state. The attribute use the 5186 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz, 5187 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or 5188 * 10 MHz channel width, the station will not connect to a BSS using 20 5189 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to 5190 * clear this constraint. 5191 */ 5192 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39, 5193 /* 5194 * 32-bit unsigned value to configure the propagation absolute delay 5195 * for 2G/5G band (units in us) 5196 */ 5197 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40, 5198 /* 32-bit unsigned value to set probe period */ 5199 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41, 5200 /* 32-bit unsigned value to set stay period */ 5201 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42, 5202 /* 32-bit unsigned value to set snr diff */ 5203 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43, 5204 /* 32-bit unsigned value to set probe dwell time */ 5205 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44, 5206 /* 32-bit unsigned value to set mgmt snr weight */ 5207 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45, 5208 /* 32-bit unsigned value to set data snr weight */ 5209 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46, 5210 /* 32-bit unsigned value to set ack snr weight */ 5211 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47, 5212 /* 5213 * 32-bit unsigned value to configure the listen interval. 5214 * This is in units of beacon intervals. This configuration alters 5215 * the negotiated listen interval with the AP during the connection. 5216 * It is highly recommended to configure a value less than or equal to 5217 * the one negotiated during the association. Configuring any greater 5218 * value can have adverse effects (frame loss, AP disassociating STA, 5219 * etc.). 5220 */ 5221 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48, 5222 /* 5223 * 8 bit unsigned value that is set on an AP/GO virtual interface to 5224 * disable operations that would cause the AP/GO to leave its operating 5225 * channel. 5226 * 5227 * This will restrict the scans to the AP/GO operating channel and the 5228 * channels of the other band, if DBS is supported.A STA/CLI interface 5229 * brought up after this setting is enabled, will be restricted to 5230 * connecting to devices only on the AP/GO interface's operating channel 5231 * or on the other band in DBS case. P2P supported channel list is 5232 * modified, to only include AP interface's operating-channel and the 5233 * channels of the other band if DBS is supported. 5234 * 5235 * These restrictions are only applicable as long as the AP/GO interface 5236 * is alive. If the AP/GO interface is brought down then this 5237 * setting/restriction is forgotten. 5238 * 5239 * If this variable is set on an AP/GO interface while a multi-channel 5240 * concurrent session is active, it has no effect on the operation of 5241 * the current interfaces, other than restricting the scan to the AP/GO 5242 * operating channel and the other band channels if DBS is supported. 5243 * However, if the STA is brought down and restarted then the new STA 5244 * connection will either be formed on the AP/GO channel or on the 5245 * other band in a DBS case. This is because of the scan being 5246 * restricted on these channels as mentioned above. 5247 * 5248 * 1-Disable offchannel operations, 0-Enable offchannel operations. 5249 */ 5250 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49, 5251 5252 /* 5253 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload) 5254 * on an interface. 5255 * 1 - Enable , 0 - Disable. 5256 */ 5257 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50, 5258 5259 /* 5260 * 8 bit unsigned value to globally enable/disable scan 5261 * 1 - Enable, 0 - Disable. 5262 */ 5263 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51, 5264 5265 /* 8-bit unsigned value to set the total beacon miss count */ 5266 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52, 5267 5268 /* 5269 * Unsigned 32-bit value to configure the number of continuous 5270 * Beacon Miss which shall be used by the firmware to penalize 5271 * the RSSI for BTC. 5272 */ 5273 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53, 5274 5275 /* 5276 * 8-bit unsigned value to configure the driver and below layers to 5277 * enable/disable all fils features. 5278 * 0-enable, 1-disable 5279 */ 5280 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54, 5281 5282 /* 16-bit unsigned value to configure the level of WLAN latency 5283 * module. See enum qca_wlan_vendor_attr_config_latency_level. 5284 */ 5285 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55, 5286 5287 /* 5288 * 8-bit unsigned value indicating the driver to use the RSNE as-is from 5289 * the connect interface. Exclusively used for the scenarios where the 5290 * device is used as a test bed device with special functionality and 5291 * not recommended for production. This helps driver to not validate the 5292 * RSNE passed from user space and thus allow arbitrary IE data to be 5293 * used for testing purposes. 5294 * 1-enable, 0-disable. 5295 * Applications set/reset this configuration. If not reset, this 5296 * parameter remains in use until the driver is unloaded. 5297 */ 5298 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56, 5299 5300 /* 5301 * 8-bit unsigned value to trigger green Tx power saving. 5302 * 1-Enable, 0-Disable 5303 */ 5304 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57, 5305 5306 /* 5307 * Attribute to configure disconnect IEs to the driver. 5308 * This carries an array of unsigned 8-bit characters. 5309 * 5310 * If this is configured, driver shall fill the IEs in disassoc/deauth 5311 * frame. 5312 * These IEs are expected to be considered only for the next 5313 * immediate disconnection (disassoc/deauth frame) originated by 5314 * the DUT, irrespective of the entity (user space/driver/firmware) 5315 * triggering the disconnection. 5316 * The host drivers are not expected to use the IEs set through 5317 * this interface for further disconnections after the first immediate 5318 * disconnection initiated post the configuration. 5319 * If the IEs are also updated through cfg80211 interface (after the 5320 * enhancement to cfg80211_disconnect), host driver is expected to 5321 * take the union of IEs from both of these interfaces and send in 5322 * further disassoc/deauth frames. 5323 */ 5324 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58, 5325 5326 /* 8-bit unsigned value for ELNA bypass. 5327 * 0 - Disable eLNA bypass. 5328 * 1 - Enable eLNA bypass. 5329 * 2 - Reset eLNA bypass configuration, the driver should 5330 * revert to the default configuration of eLNA bypass. 5331 */ 5332 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59, 5333 5334 /* 8-bit unsigned value. This attribute enables/disables the host driver 5335 * to send the Beacon Report response with failure reason for the 5336 * scenarios where STA cannot honor the Beacon report request from AP. 5337 * 1-Enable, 0-Disable. 5338 */ 5339 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60, 5340 5341 /* 8-bit unsigned value. This attribute enables/disables the host driver 5342 * to send roam reason information in the reassociation request to the 5343 * AP. 1-Enable, 0-Disable. 5344 */ 5345 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61, 5346 5347 /* 32-bit unsigned value to configure different PHY modes to the 5348 * driver/firmware. The possible values are defined in 5349 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to 5350 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting 5351 * the driver. 5352 */ 5353 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62, 5354 5355 /* 8-bit unsigned value to configure the maximum supported channel width 5356 * for STA mode. If this value is configured when STA is in connected 5357 * state, it should not exceed the negotiated channel width. If it is 5358 * configured when STA is in disconnected state, the configured value 5359 * will take effect for the next immediate connection. 5360 * This configuration can be sent inside 5361 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum 5362 * supported channel width per-MLO link. 5363 * 5364 * This uses values defined in enum nl80211_chan_width. 5365 */ 5366 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63, 5367 5368 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment. 5369 * This attribute is only applicable for STA mode. When dynamic 5370 * bandwidth adjustment is disabled, STA will use static channel width 5371 * the value of which is negotiated during connection. 5372 * 1-enable (default), 0-disable 5373 */ 5374 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64, 5375 5376 /* 8-bit unsigned value to configure the maximum number of subframes of 5377 * TX MSDU for aggregation. Possible values are 0-31. When set to 0, 5378 * it is decided by hardware. 5379 */ 5380 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65, 5381 5382 /* 8-bit unsigned value to configure the maximum number of subframes of 5383 * RX MSDU for aggregation. Possible values are 0-31. When set to 0, 5384 * it is decided by hardware. 5385 */ 5386 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66, 5387 5388 /* 8-bit unsigned value. This attribute is used to dynamically 5389 * enable/disable the LDPC capability of the device. When configured in 5390 * the disconnected state, the updated configuration will be considered 5391 * for the immediately following connection attempt. If this 5392 * configuration is modified while the device is in the connected state, 5393 * the LDPC TX will be updated with this configuration immediately, 5394 * while the LDPC RX configuration update will take place starting from 5395 * the subsequent association attempt. 5396 * 1-Enable, 0-Disable. 5397 */ 5398 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67, 5399 5400 /* 8-bit unsigned value. This attribute is used to dynamically 5401 * enable/disable the TX STBC capability of the device. When configured 5402 * in the disconnected state, the updated configuration will be 5403 * considered for the immediately following connection attempt. If the 5404 * connection is formed with TX STBC enabled and if this configuration 5405 * is disabled during that association, the TX will be impacted 5406 * immediately. Further connection attempts will disable TX STBC. 5407 * However, enabling the TX STBC for a connected session with disabled 5408 * capability is not allowed and will fail. 5409 * 1-Enable, 0-Disable. 5410 */ 5411 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68, 5412 5413 /* 8-bit unsigned value. This attribute is used to dynamically 5414 * enable/disable the RX STBC capability of the device. When configured 5415 * in the disconnected state, the updated configuration will be 5416 * considered for the immediately following connection attempt. If the 5417 * configuration is modified in the connected state, there will be no 5418 * impact for the current association, but further connection attempts 5419 * will use the updated configuration. 5420 * 1-Enable, 0-Disable. 5421 */ 5422 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69, 5423 5424 /* 8-bit unsigned value. This attribute is used to dynamically configure 5425 * the number of spatial streams. When configured in the disconnected 5426 * state, the updated configuration will be considered for the 5427 * immediately following connection attempt. If the NSS is updated after 5428 * the connection, the updated NSS value is notified to the peer using 5429 * the Operating Mode Notification/Spatial Multiplexing Power Save 5430 * frame. The updated NSS value after the connection shall not be 5431 * greater than the one negotiated during the connection. Any such 5432 * higher value configuration shall be returned with a failure. 5433 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done 5434 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and 5435 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to 5436 * configure the asymmetric NSS configuration (such as 1X2). 5437 */ 5438 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70, 5439 5440 /* 8-bit unsigned value to configure Optimized Power Management mode: 5441 * Modes are defined by enum qca_wlan_vendor_opm_mode. 5442 * 5443 * This attribute shall be configured along with 5444 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and 5445 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes 5446 * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED. 5447 */ 5448 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71, 5449 5450 /* 8-bit unsigned value. This attribute takes the QOS/access category 5451 * value represented by the enum qca_wlan_ac_type and expects the driver 5452 * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL 5453 * is invalid for this attribute. This will override the DSCP value 5454 * configured in the frame with the intention to only upgrade the QOS. 5455 * That said, it is not intended to downgrade the QOS for the frames. 5456 * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs 5457 * to disable. 5458 * 5459 * If only UDP frames of BE or BK access category needs to be upgraded 5460 * without changing the access category of VO or VI UDP frames, refer to 5461 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK. 5462 * 5463 * This attribute is not recommended to be used as it blindly forces all 5464 * UDP packets to a higher access category which could impact the 5465 * traffic pattern of all apps using UDP and can cause unknown behavior. 5466 */ 5467 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72, 5468 5469 /* 8-bit unsigned value. This attribute is used to dynamically configure 5470 * the number of chains to be used for transmitting data. This 5471 * configuration is allowed only when in connected state and will be 5472 * effective until disconnected. The driver rejects this configuration 5473 * if the number of spatial streams being used in the current connection 5474 * cannot be supported by this configuration. 5475 */ 5476 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73, 5477 5478 /* 8-bit unsigned value. This attribute is used to dynamically configure 5479 * the number of chains to be used for receiving data. This 5480 * configuration is allowed only when in connected state and will be 5481 * effective until disconnected. The driver rejects this configuration 5482 * if the number of spatial streams being used in the current connection 5483 * cannot be supported by this configuration. 5484 */ 5485 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74, 5486 5487 /* 8-bit unsigned value to configure ANI setting type. 5488 * See &enum qca_wlan_ani_setting for possible values. 5489 */ 5490 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75, 5491 /* 32-bit signed value to configure ANI level. This is used when 5492 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED. 5493 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO 5494 * is invalid, the driver will return a failure. 5495 */ 5496 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76, 5497 5498 /* 8-bit unsigned value. This attribute is used to dynamically configure 5499 * the number of spatial streams used for transmitting the data. When 5500 * configured in the disconnected state, the configured value will 5501 * be considered for the following connection attempt. 5502 * If the NSS is updated after the connection, the updated NSS value 5503 * is notified to the peer using the Operating Mode Notification/Spatial 5504 * Multiplexing Power Save frame. 5505 * The TX NSS value configured after the connection shall not be greater 5506 * than the value negotiated during the connection. Any such higher 5507 * value configuration shall be treated as invalid configuration by 5508 * the driver. This attribute shall be configured along with 5509 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric 5510 * configuration (such as 2X2 or 1X1) or the asymmetric 5511 * configuration (such as 1X2). 5512 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along 5513 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver 5514 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS. 5515 */ 5516 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77, 5517 5518 /* 8-bit unsigned value. This attribute is used to dynamically configure 5519 * the number of spatial streams used for receiving the data. When 5520 * configured in the disconnected state, the configured value will 5521 * be considered for the following connection attempt. 5522 * If the NSS is updated after the connection, the updated NSS value 5523 * is notified to the peer using the Operating Mode Notification/Spatial 5524 * Multiplexing Power Save frame. 5525 * The RX NSS value configured after the connection shall not be greater 5526 * than the value negotiated during the connection. Any such higher 5527 * value configuration shall be treated as invalid configuration by 5528 * the driver. This attribute shall be configured along with 5529 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric 5530 * configuration (such as 2X2 or 1X1) or the asymmetric 5531 * configuration (such as 1X2). 5532 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along 5533 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver 5534 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS. 5535 */ 5536 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78, 5537 5538 /* 5539 * 8-bit unsigned value. This attribute, when set, indicates whether the 5540 * specified interface is the primary STA interface when there are more 5541 * than one STA interfaces concurrently active. 5542 * 5543 * This configuration helps the firmware/hardware to support certain 5544 * features (e.g., roaming) on this primary interface, if the same 5545 * cannot be supported on the concurrent STA interfaces simultaneously. 5546 * 5547 * This configuration is only applicable for a single STA interface on 5548 * a device and gives the priority for it only over other concurrent STA 5549 * interfaces. 5550 * 5551 * If the device is a multi wiphy/soc, this configuration applies to a 5552 * single STA interface across the wiphys. 5553 * 5554 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA) 5555 */ 5556 QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79, 5557 5558 /* 5559 * 8-bit unsigned value. This attribute can be used to configure the 5560 * driver to enable/disable FT-over-DS feature. Possible values for 5561 * this attribute are 1-Enable and 0-Disable. 5562 */ 5563 QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80, 5564 5565 /* 5566 * 8-bit unsigned value. This attribute can be used to configure the 5567 * firmware to enable/disable ARP/NS offload feature. Possible values 5568 * for this attribute are 0-Disable and 1-Enable. 5569 * 5570 * This attribute is only applicable for STA/P2P-Client interface, 5571 * and is optional, default behavior is APR/NS offload Enable. 5572 * 5573 * This attribute can be set in disconncted and connected state, and 5574 * will restore to default behavior if interface is closed. 5575 */ 5576 QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81, 5577 5578 /* 5579 * 8-bit unsigned value. This attribute can be used to configure the 5580 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values 5581 * for this attribute are defined in the enum qca_dbam_config. 5582 */ 5583 QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83, 5584 5585 /* 8-bit unsigned value. This attribute takes the QoS/access category 5586 * value represented by the enum qca_wlan_ac_type and expects the driver 5587 * to upgrade the UDP frames of BE or BK access category to this access 5588 * category. This attribute will not modify UDP frames of VO or VI 5589 * access category. The value of QCA_WLAN_AC_ALL is invalid for this 5590 * attribute. 5591 * 5592 * This will override the DSCP value configured in the frame with the 5593 * intention to only upgrade the access category. That said, it is not 5594 * intended to downgrade the access category for the frames. 5595 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be 5596 * disabled, as BK is of the lowest priority and an upgrade to it does 5597 * not result in any changes for the frames. 5598 * 5599 * This attribute behavior is similar to 5600 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that 5601 * only UDP frames of BE or BK access category are upgraded and not 5602 * UDP frames of VI or VO access category. 5603 * 5604 * This attribute is not recommended to be used as it blindly forces all 5605 * UDP packets of BE or BK access category to a higher access category 5606 * which could impact the traffic pattern of all apps using UDP and can 5607 * cause unknown behavior. 5608 */ 5609 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84, 5610 5611 /* 8-bit unsigned value to configure the driver to enable/disable the 5612 * periodic sounding for Tx beamformer functionality. The default 5613 * behavior uses algorithm to do sounding based on packet stats. 5614 * 5615 * 0 - Default behavior. 5616 * 1 - Enable the periodic sounding for Tx beamformer. 5617 * This attribute is used for testing purposes. 5618 */ 5619 QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85, 5620 5621 /* 8-bit unsigned value, whenever wifi calling (wfc) begin or end, 5622 * Userspace sends this information to driver/firmware to configure 5623 * wfc state. Driver/Firmware uses this information to 5624 * optimize power savings, rate adaption, roaming, etc. 5625 * 5626 * 1 - wfc is on. 5627 * 0 - wfc is off. 5628 */ 5629 QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86, 5630 5631 /* 8-bit unsigned value to configure the driver to enable/disable the 5632 * EHT EML capability in management frame EHT capabilities. 5633 * 1 - Enable, 0 - Disable. 5634 */ 5635 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87, 5636 5637 /* 8-bit unsigned value to configure the driver with EHT MLO max 5638 * simultaneous links to be used for MLO connection. 5639 * The range of the value is 0 to 14. 5640 */ 5641 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88, 5642 5643 /* 8-bit unsigned value to configure the driver with EHT MLO maximum 5644 * number of links to be used for MLO connection. 5645 * The range of the value is 1 to 16. 5646 */ 5647 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89, 5648 5649 /* 8-bit unsigned value to configure the driver with EHT MLO mode. 5650 * Uses enum qca_wlan_eht_mlo_mode values. 5651 */ 5652 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90, 5653 5654 /* Nested attribute with frequencies in u32 attributes to configure a 5655 * list of allowed 20 MHz channel center frequencies in MHz for AP 5656 * operation. Whenever performing a channel selection operation, the 5657 * driver shall generate a new list based on this provided list by 5658 * filtering out channels that cannot be used at that time due to 5659 * regulatory or other constraints. The resulting list is used as the 5660 * list of all allowed channels, i.e., operation on any channel that is 5661 * not included is not allowed, whenever performing operations like ACS 5662 * and DFS. 5663 * 5664 * Userspace shall configure this before starting the AP and the 5665 * configuration is valid only from the next BSS start and until the 5666 * BSS is stopped. The driver shall clear this configuration when the 5667 * AP is stopped and fall back to the default behavior for subsequent 5668 * AP operation. 5669 * 5670 * The default behavior when this configuration is not applicable is the 5671 * driver can choose any of the channels supported by the hardware 5672 * except the channels that cannot be used due to regulatory or other 5673 * constraints. 5674 * 5675 * The driver shall reject this configuration if done after the AP is 5676 * started. This attribute can be used to specify user's choice of 5677 * frequencies and static puncture channel list, etc. 5678 */ 5679 QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91, 5680 5681 /* Nested attribute to indicate EHT MLO links to be forced active. 5682 * It contains link MAC address attributes. These nested attributes are 5683 * of the type NL80211_ATTR_MAC and are used to force enabling of the 5684 * MLO links corresponding to the indicated link MAC addresses. 5685 * Subsequently, the links corresponding to the link MAC addresses that 5686 * are not indicated are forced inactive. 5687 */ 5688 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92, 5689 5690 /* 8-bit unsigned value to configure EMLSR mode entry or exit. 5691 * Uses enum qca_wlan_emlsr_mode values. 5692 */ 5693 QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93, 5694 5695 /* 8-bit unsigned value. This attribute is used to dynamically 5696 * enable/suspend trigger based UL MU transmission. 5697 * This is supported in STA mode and the device sends Operating 5698 * Mode Indication to inform the change as described in 5699 * IEEE Std 802.11ax-2021, 26.9. 5700 * 5701 * This attribute can be configured when the STA is associated 5702 * to an AP and the configuration is maintained until the current 5703 * association terminates. 5704 * 5705 * By default all UL MU transmissions are enabled. 5706 * 5707 * Uses enum qca_ul_mu_config values. 5708 */ 5709 QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95, 5710 5711 /* 8-bit unsigned value. Optionally specified along with 5712 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected 5713 * state. This configuration is applicable only for the current 5714 * connection. This configuration not allowed in disconnected state. 5715 * This configuration can be sent inside 5716 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum 5717 * supported channel width update type per-MLO link. 5718 * 5719 * valid values: 5720 * 0 - The maximum allowed bandwidth change is applicable for both Tx 5721 * and Rx paths. The driver shall conduct OMI operation as defined 5722 * in 26.9 (Operating mode indication) or OMN operation as 5723 * defined in 11.40 (Notification of operating mode 5724 * changes) in IEEE P802.11-REVme/D2.0 with AP to indicate the 5725 * change in the maximum allowed operating bandwidth. 5726 * 1 - Limit the change in maximum allowed bandwidth only to Tx path. 5727 * In this case the driver doesn't need to conduct OMI/OMN 5728 * operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is 5729 * expected to be less than the current connection maximum 5730 * negotiated bandwidth. 5731 * For example: Negotiated maximum bandwidth is 160 MHz and the new 5732 * maximum bandwidth configured is 80 MHz, now the driver limits 5733 * the maximum bandwidth to 80 MHz only in the Tx path. 5734 */ 5735 QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96, 5736 5737 /* 8-bit unsigned value to set EPCS (Emergency Preparedness 5738 * Communications Service) feature capability 5739 * 1 - Enable, 0 - Disable. 5740 * 5741 * This configuration is used for testing purposes. 5742 */ 5743 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97, 5744 5745 /* 8-bit unsigned value to enable/disable EPCS priority access 5746 * 1 - Enable, 0 - Disable. 5747 * The EPCS priority access shall be enabled only when EPCS feature 5748 * capability is also enabled (see 5749 * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY). 5750 * 5751 * This configuration is used for testing purposes. 5752 */ 5753 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98, 5754 5755 /* 8-bit unsigned value. Used to specify the MLO link ID of a link 5756 * that is being configured. This attribute must be included in each 5757 * record nested inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS, and 5758 * may be included without nesting to indicate the link that is the 5759 * target of other configuration attributes. 5760 */ 5761 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99, 5762 5763 /* Array of nested links each identified by 5764 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in 5765 * enum qca_wlan_vendor_attr_config, explicit documentation shall be 5766 * added for the attributes in enum qca_wlan_vendor_attr_config to 5767 * support per-MLO link configuration through 5768 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS. 5769 * 5770 * Userspace can configure a single link or multiple links with this 5771 * attribute by nesting the corresponding configuration attributes and 5772 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link. 5773 * 5774 * Userspace can fetch the configuration attribute values for a single 5775 * link or multiple links with this attribute by nesting the 5776 * corresponding configuration attributes and 5777 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link. 5778 * 5779 * For STA interface, this attribute is applicable only in connected 5780 * state when the current connection is MLO capable. The valid values of 5781 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the 5782 * connected AP MLD links. 5783 * 5784 * For AP interface, this configuration applicable only after adding 5785 * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the 5786 * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link 5787 * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to 5788 * the AP interface. 5789 */ 5790 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100, 5791 5792 /* 16-bit unsigned value to configure power save inactivity timeout in 5793 * milliseconds. 5794 * 5795 * STA enters into power save mode (PM=1) after TX/RX inactivity of time 5796 * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO. 5797 * 5798 * This attribute shall be configured along with 5799 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when 5800 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT 5801 * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode. 5802 */ 5803 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101, 5804 5805 /* 16-bit unsigned value to configure speculative wake interval in 5806 * milliseconds. 5807 * 5808 * STA speculatively wakes up to look for buffered data by AP at 5809 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after 5810 * entering into power save. If configured zero, STA wakes up at 5811 * upcoming DTIM beacon. 5812 * 5813 * This attribute shall be configured along with 5814 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and 5815 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT 5816 * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode. 5817 */ 5818 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102, 5819 5820 /* 5821 * 16-bit unsigned value to configure TX max A-MPDU count. 5822 * 5823 * For STA interface, this attribute is applicable only in connected 5824 * state, peer MAC address is not required to be provided. 5825 * 5826 * For AP interface, this attribute is applicable only in started 5827 * state and one of the associated peer STAs must be specified with 5828 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. If this is for an ML 5829 * association, the peer MAC address provided is the link address of 5830 * the non-AP MLD. 5831 * 5832 * This attribute runtime configures the TX maximum aggregation size. 5833 * The value must be in range of 1 to BA window size for the specific 5834 * peer. 5835 */ 5836 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_AMPDU_CNT = 103, 5837 5838 /* 5839 * 8-bit unsigned value to configure TID-to-link mapping negotiation 5840 * type. 5841 * Uses enum qca_wlan_ttlm_negotiation_support values. 5842 * 5843 * This value applies to the complete AP/non-AP MLD interface, and the 5844 * MLD advertises it within the Basic Multi-Link element in the 5845 * association frames. If a new value is configured during an active 5846 * connection, it will take effect in the subsequent associations and 5847 * is not reset during disconnection. 5848 * 5849 * This attribute is used for testing purposes. 5850 */ 5851 QCA_WLAN_VENDOR_ATTR_CONFIG_TTLM_NEGOTIATION_SUPPORT = 104, 5852 5853 /* 8-bit unsigned value 5854 * 5855 * This attribute configures a traffic shaping mode 5856 * applied during coex scenarios. 5857 * By default all coex traffic shaping modes are enabled, 5858 * i.e., shape WLAN traffic based on coex traffic pattern and priority. 5859 * To shape traffic, STA may enter in power save mode 5860 * and AP may send CTS-to-self frame. 5861 * 5862 * Uses enum qca_coex_traffic_shaping_mode values. 5863 */ 5864 QCA_WLAN_VENDOR_ATTR_CONFIG_COEX_TRAFFIC_SHAPING_MODE = 105, 5865 5866 /* keep last */ 5867 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST, 5868 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX = 5869 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1, 5870 }; 5871 5872 /** 5873 * enum qca_ul_mu_config - UL MU configuration 5874 * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended 5875 * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled 5876 */ 5877 enum qca_ul_mu_config { 5878 QCA_UL_MU_SUSPEND = 0, 5879 QCA_UL_MU_ENABLE = 1, 5880 }; 5881 5882 /** 5883 * enum qca_dbam_config - Specifies DBAM config mode 5884 * @QCA_DBAM_DISABLE: Firmware disables DBAM 5885 * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when 5886 * internal criteria are met. 5887 * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully. 5888 */ 5889 enum qca_dbam_config { 5890 QCA_DBAM_DISABLE = 0, 5891 QCA_DBAM_ENABLE = 1, 5892 QCA_DBAM_FORCE_ENABLE = 2, 5893 }; 5894 5895 /** 5896 * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting 5897 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute 5898 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID 5899 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level 5900 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag 5901 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value 5902 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value 5903 */ 5904 enum qca_wlan_vendor_attr_wifi_logger_start { 5905 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0, 5906 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1, 5907 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2, 5908 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3, 5909 /* keep last */ 5910 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST, 5911 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX = 5912 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1, 5913 }; 5914 5915 /* 5916 * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data 5917 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute 5918 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID 5919 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value 5920 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value 5921 */ 5922 enum qca_wlan_vendor_attr_wifi_logger_get_ring_data { 5923 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0, 5924 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1, 5925 /* keep last */ 5926 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST, 5927 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX = 5928 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1, 5929 }; 5930 5931 #ifdef WLAN_FEATURE_OFFLOAD_PACKETS 5932 /** 5933 * enum wlan_offloaded_packets_control - control commands 5934 * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets 5935 * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets 5936 * 5937 */ 5938 enum wlan_offloaded_packets_control { 5939 WLAN_START_OFFLOADED_PACKETS = 1, 5940 WLAN_STOP_OFFLOADED_PACKETS = 2 5941 }; 5942 5943 /** 5944 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication 5945 * 5946 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to 5947 * the offloaded data. 5948 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded 5949 * data. 5950 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload 5951 * indication. 5952 */ 5953 enum qca_wlan_vendor_attr_data_offload_ind { 5954 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0, 5955 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION, 5956 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL, 5957 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT, 5958 5959 /* keep last */ 5960 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST, 5961 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX = 5962 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1 5963 }; 5964 5965 /** 5966 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command 5967 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS. 5968 */ 5969 enum qca_wlan_vendor_attr_offloaded_packets { 5970 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0, 5971 /* Takes valid value from the enum 5972 * qca_wlan_offloaded_packets_sending_control 5973 * Unsigned 32-bit value 5974 */ 5975 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL, 5976 /* Unsigned 32-bit value */ 5977 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID, 5978 /* array of u8 len: Max packet size */ 5979 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA, 5980 /* 6-byte MAC address used to represent source MAC address */ 5981 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR, 5982 /* 6-byte MAC address used to represent destination MAC address */ 5983 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR, 5984 /* Unsigned 32-bit value, in milli seconds */ 5985 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD, 5986 /* This optional unsigned 16-bit attribute is used for specifying 5987 * ethernet protocol type. If not specified ethertype defaults to IPv4. 5988 */ 5989 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE, 5990 5991 /* keep last */ 5992 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST, 5993 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX = 5994 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1, 5995 }; 5996 5997 #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */ 5998 5999 /** 6000 * enum qca_wlan_rssi_monitoring_control - rssi control commands 6001 * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid 6002 * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start 6003 * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop 6004 */ 6005 enum qca_wlan_rssi_monitoring_control { 6006 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0, 6007 QCA_WLAN_RSSI_MONITORING_START, 6008 QCA_WLAN_RSSI_MONITORING_STOP, 6009 }; 6010 6011 /** 6012 * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring 6013 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid 6014 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control 6015 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi 6016 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi 6017 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid 6018 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi 6019 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last 6020 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max 6021 */ 6022 enum qca_wlan_vendor_attr_rssi_monitoring { 6023 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0, 6024 6025 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL, 6026 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID, 6027 6028 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI, 6029 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI, 6030 6031 /* attributes to be used/received in callback */ 6032 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID, 6033 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI, 6034 6035 /* keep last */ 6036 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST, 6037 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX = 6038 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1, 6039 }; 6040 6041 /** 6042 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command 6043 * QCA_NL80211_VENDOR_SUBCMD_NDP. 6044 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID 6045 * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd 6046 * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID: 6047 * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info 6048 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz 6049 * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC 6050 * address 6051 * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being 6052 * created 6053 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use 6054 * NCS_SK_TYPE/PMK/SCID instead 6055 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS 6056 * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info 6057 * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id 6058 * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids 6059 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response 6060 * code: accept/reject 6061 * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address 6062 * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by 6063 * driver 6064 * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by 6065 * driver 6066 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration 6067 * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type 6068 * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO 6069 * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the 6070 * PMKID 6071 * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase 6072 * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name 6073 * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule 6074 * update: 6075 * BIT_0: NSS Update 6076 * BIT_1: Channel list update 6077 * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss 6078 * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL 6079 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH: 6080 * 0:20 MHz, 6081 * 1:40 MHz, 6082 * 2:80 MHz, 6083 * 3:160 MHz 6084 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width 6085 * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array 6086 * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating 6087 * transport port used by NDP. 6088 * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating 6089 * protocol used by NDP and assigned by the Internet Assigned Numbers Authority 6090 * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml 6091 * @QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if 6092 * NDP remote peer supports NAN NDPE. 1:support 0:not support 6093 * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2 6094 * Service Id is the first 48 bits of the SHA-256 hash of the Service Name. 6095 * A lower-case representation of the Service Name shall be used to 6096 * calculate the Service ID. 6097 * Array of u8: length is 6 bytes 6098 * This attribute is used and optional for ndp indication. 6099 * @QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES: Unsigned 8-bit value for Cipher 6100 * Suite 6101 * This attribute is used and optional in ndp request, ndp response, ndp 6102 * indication, and ndp confirm. 6103 * This attribute is used to indicate the Capabilities field of Cipher Suite 6104 * Information attribute (CSIA) of NDP frames as defined in Wi-Fi Aware 6105 * Specification v4.0, 9.5.21.2, Table 122. 6106 * Firmware can accept or ignore any of the capability bits. 6107 * @QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED: Indicate if the GTK protection is 6108 * required for NDP. NLA_FLAG attribute. 6109 * This attribute can be used in ndp request, ndp response, ndp indication, and 6110 * ndp confirm. 6111 * GTK protection required is indicated in the NDPE attribute of NAN action 6112 * frame (NAF) during NDP negotiation as defined in Wi-Fi Aware Specification 6113 * v4.0, 9.5.16.2. 6114 * If the device and peer supports GTKSA and if GTK protection required bit is 6115 * set in NDPE IE, devices will share GTK to each other in SKDA of Data Path 6116 * Security Confirm and Data Path Security Install frames of NDP negotiation to 6117 * send and receive protected group addressed data frames from each other. 6118 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute 6119 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type 6120 */ 6121 enum qca_wlan_vendor_attr_ndp_params { 6122 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0, 6123 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1, 6124 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2, 6125 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3, 6126 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4, 6127 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5, 6128 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6, 6129 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7, 6130 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8, 6131 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9, 6132 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10, 6133 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11, 6134 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12, 6135 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13, 6136 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14, 6137 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15, 6138 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16, 6139 QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17, 6140 QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18, 6141 QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19, 6142 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20, 6143 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21, 6144 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22, 6145 QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23, 6146 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24, 6147 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25, 6148 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26, 6149 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27, 6150 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28, 6151 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29, 6152 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30, 6153 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31, 6154 QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32, 6155 QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33, 6156 6157 /* keep last */ 6158 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST, 6159 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX = 6160 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1, 6161 }; 6162 6163 /** 6164 * enum qca_wlan_ndp_sub_cmd - NDP sub commands types for 6165 * QCA_NL80211_VENDOR_SUBCMD_NDP. 6166 * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value 6167 * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN 6168 * data path interface. 6169 * This command was initially designed to both create and start a NAN 6170 * data path interface. However, changes to Linux 5.12 no longer allow 6171 * interface creation via vendor commands. When the driver advertises 6172 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI 6173 * userspace must explicitly first create the interface using 6174 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command 6175 * to start the interface. 6176 * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN 6177 * data path interface. 6178 * This command was initially designed to both stop and delete a NAN 6179 * data path interface. However, changes to Linux 5.12 no longer allow 6180 * interface deletion via vendor commands. When the driver advertises 6181 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI 6182 * userspace must explicitly delete the interface using 6183 * NL80211_CMD_DEL_INTERFACE after calling this command. 6184 * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above 6185 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session 6186 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above 6187 * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end 6188 * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above 6189 * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request 6190 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete 6191 * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request 6192 * being received 6193 * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule 6194 * update 6195 */ 6196 enum qca_wlan_ndp_sub_cmd { 6197 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0, 6198 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1, 6199 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2, 6200 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3, 6201 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4, 6202 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5, 6203 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6, 6204 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7, 6205 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8, 6206 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9, 6207 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10, 6208 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11, 6209 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12 6210 }; 6211 6212 /** 6213 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel 6214 * information. These attributes are sent as part of 6215 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following 6216 * attributes correspond to a single channel. 6217 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16) 6218 * with flags specified in qca_wlan_vendor_channel_prop_flags_ext. 6219 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16) 6220 * with flags specified in qca_wlan_vendor_channel_prop_flags_ext. 6221 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency 6222 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum 6223 * regulatory transmission power 6224 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum 6225 * transmission power 6226 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum 6227 * transmission power 6228 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory 6229 * class id 6230 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum 6231 * antenna gain in dbm 6232 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0 6233 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1 6234 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0 6235 * center frequency in MHz. 6236 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht 6237 * segment 0 in center freq in MHz. (this is the legacy alias) 6238 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1 6239 * center frequency in MHz. 6240 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht 6241 * segment 1 in center freq in MHz. (this is the legacy alias) 6242 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits 6243 * flag indicating the AP power modes supported by the channel, as given by 6244 * enum qca_wlan_vendor_external_acs_chan_power_level. 6245 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested 6246 * attributes for each power mode. It takes attr as defined in enum 6247 * qca_wlan_vendor_external_acs_event_chan_power_info_attr. 6248 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1: 6249 * This indicates the overlapping 320 MHz center frequency in MHz, if the 6250 * given primary channel supports more than one 320 MHz channel bonding. 6251 * 6252 */ 6253 enum qca_wlan_vendor_external_acs_event_chan_info_attr { 6254 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0, 6255 6256 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1, 6257 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2, 6258 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3, 6259 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4, 6260 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5, 6261 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6, 6262 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7, 6263 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8, 6264 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9, 6265 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10, 6266 /* 6267 * A bitmask (u32) with flags specified in 6268 * enum qca_wlan_vendor_channel_prop_flags_2. 6269 */ 6270 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11, 6271 6272 /* 6273 * Segment 0 in MHz (u32). 6274 * 6275 * For 20/40/80 MHz bandwidth, this indicates the channel center 6276 * frequency index for the 20/40/80 MHz operating channel. 6277 * For 160 MHz bandwidth, this indicates the channel center 6278 * frequency of the primary 80 MHz channel. 6279 * For 320 MHz bandwidth, indicates the channel center frequency 6280 * of the primary 160 MHz channel. 6281 * 6282 * To maintain backward compatibility, 6283 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 6284 * is also maintained. 6285 */ 6286 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12, 6287 /* Legacy alias for the Segment 0 attribute. 6288 * 6289 * VHT segment 0 in MHz (u32) and the attribute is mandatory. 6290 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes 6291 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 6292 * along with 6293 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0. 6294 * 6295 * If both the driver and user-space application supports the 6 GHz 6296 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 6297 * is deprecated and 6298 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 6299 * should be used. 6300 * 6301 * To maintain backward compatibility, 6302 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 6303 * is still used if either of the driver or user space application 6304 * doesn't support the 6 GHz band. 6305 */ 6306 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 6307 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0, 6308 6309 /* 6310 * Segment 1 in MHz (u32). 6311 * 6312 * For 20/40/80 MHz bandwidth, this is set to 0. 6313 * For 160 MHz bandwidth, indicates the channel center frequency of the 6314 * 160 MHz channel. 6315 * For 320 MHz bandwidth, indicates the channel center frequency of the 6316 * 320 MHz channel. 6317 * 6318 * To maintain backward compatibility, 6319 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 6320 * is also maintained. 6321 */ 6322 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13, 6323 /* Legacy alias for the Segment 1 attribute. 6324 * 6325 * VHT segment 1 in MHz (u32) and the attribute is mandatory. 6326 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes 6327 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 6328 * along with 6329 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1. 6330 * 6331 * If both the driver and user-space application supports the 6 GHz 6332 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 6333 * is deprecated and 6334 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 6335 * should be considered. 6336 * 6337 * To maintain backward compatibility, 6338 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 6339 * is still used if either of the driver or user space application 6340 * doesn't support the 6 GHz band. 6341 */ 6342 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 6343 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1, 6344 /* 6345 * 16-bit attribute of bits indicating the AP power modes supported by 6346 * the channel (u16). 6347 * Note: Currently, only 3 bits are used in the attribute and each bit 6348 * corresponds to the power mode mentioned in enum 6349 * qca_wlan_vendor_external_acs_chan_power_level and a given bit is 6350 * set if the associated mode is supported. 6351 */ 6352 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES 6353 = 14, 6354 /* Array of nested attributes for each power mode. It takes attr as 6355 * defined in enum 6356 * qca_wlan_vendor_external_acs_event_chan_power_info_attr. 6357 */ 6358 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15, 6359 /* 6360 * This indicates the overlapping 320 MHz center frequency in MHz 6361 * (u32), if the given primary channel supports more than one 6362 * 320 MHz channel bonding. 6363 * 6364 * Example: 6365 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0 6366 * center frequency (primary 160 MHz) is 6185 MHz and there can be two 6367 * possible segment 2 frequencies for this (320 MHz center 6368 * frequencies): 6369 * 6370 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding 6371 * from frequency 5945 MHz - 6265 MHz 6372 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding 6373 * from frequency 6105 MHz - 6425 MHz 6374 * 6375 * In this case, 6376 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will 6377 * return 6185 MHz. 6378 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will 6379 * return 6105 MHz. 6380 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1 6381 * will return 6265 MHz. 6382 */ 6383 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1 6384 = 16, 6385 6386 /* keep last */ 6387 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST, 6388 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX = 6389 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1, 6390 }; 6391 6392 /** 6393 * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid 6394 * values that the vendor external ACS channel power attribute 6395 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can 6396 * take. 6397 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode 6398 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode 6399 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode 6400 */ 6401 enum qca_wlan_vendor_external_acs_chan_power_level { 6402 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0, 6403 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1, 6404 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2, 6405 }; 6406 6407 /** 6408 * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested 6409 * attributes for power mode type and power values corresponding to that. 6410 * These attributes are sent as part of 6411 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR. 6412 */ 6413 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr { 6414 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0, 6415 /* 6416 * Power mode (u8) takes the values defined in enum 6417 * qca_wlan_vendor_external_acs_chan_power_mode 6418 */ 6419 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE 6420 = 1, 6421 /* 6422 * Indicates if power value is a PSD/EIRP value (flag). If flag is 6423 * present, it indicates a PSD value. 6424 */ 6425 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2, 6426 /* 6427 * Power value (u32) PSD/EIRP as indicated by 6428 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG, 6429 * for power mode corresponding to the 6430 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE. 6431 * Units for PSD - dBm/MHz 6432 * Units for EIRP - dBm 6433 */ 6434 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE 6435 = 3, 6436 /* keep last */ 6437 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST, 6438 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX = 6439 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1, 6440 }; 6441 6442 /** 6443 * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command 6444 * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host 6445 * driver. 6446 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to 6447 * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why 6448 * ACS need to be started 6449 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does 6450 * driver supports spectral scanning or not 6451 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is 6452 * offloaded to firmware. 6453 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver 6454 * provides additional channel capability as part of scan operation. 6455 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate 6456 * interface status is UP 6457 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of 6458 * interface. It takes one of nl80211_iftype values. 6459 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound 6460 * of chan width. ACS logic should try to get a channel with specified width 6461 * if not found then look for lower values. 6462 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands 6463 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as 6464 * a/b/g/n/ac. 6465 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list 6466 * among which ACS should choose best frequency. 6467 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the 6468 * driver which will have <channel(u8), weight(u8)> format as array of 6469 * nested values. 6470 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute 6471 * for each channel. It takes attr as defined in 6472 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as 6473 * PCL mandatory, PCL preferred, etc.It uses values defined in enum 6474 * qca_wlan_vendor_attr_external_acs_policy. 6475 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF 6476 * Operating Parameter (RROP) availability information (u16). It uses values 6477 * defined in enum qca_wlan_vendor_attr_rropavail_info. 6478 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to 6479 * indicate if driver supports 6 GHz AFC trigger for External ACS. 6480 */ 6481 enum qca_wlan_vendor_attr_external_acs_event { 6482 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0, 6483 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1, 6484 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2, 6485 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3, 6486 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4, 6487 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5, 6488 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6, 6489 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7, 6490 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8, 6491 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9, 6492 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10, 6493 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11, 6494 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12, 6495 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13, 6496 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14, 6497 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15, 6498 6499 /* keep last */ 6500 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST, 6501 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX = 6502 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1, 6503 }; 6504 6505 enum qca_iface_type { 6506 QCA_IFACE_TYPE_STA, 6507 QCA_IFACE_TYPE_AP, 6508 QCA_IFACE_TYPE_P2P_CLIENT, 6509 QCA_IFACE_TYPE_P2P_GO, 6510 QCA_IFACE_TYPE_IBSS, 6511 QCA_IFACE_TYPE_TDLS, 6512 }; 6513 6514 /** 6515 * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command 6516 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and 6517 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST. 6518 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value 6519 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number 6520 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight 6521 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency 6522 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask 6523 */ 6524 enum qca_wlan_vendor_attr_pcl_config { 6525 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0, 6526 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1, 6527 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2, 6528 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3, 6529 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4, 6530 }; 6531 6532 enum qca_set_band { 6533 QCA_SETBAND_AUTO = 0, 6534 QCA_SETBAND_5G = BIT(0), 6535 QCA_SETBAND_2G = BIT(1), 6536 QCA_SETBAND_6G = BIT(2), 6537 }; 6538 6539 /** 6540 * enum set_reset_packet_filter - set packet filter control commands 6541 * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter 6542 * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter 6543 * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data 6544 * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data 6545 * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter 6546 * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter 6547 */ 6548 enum set_reset_packet_filter { 6549 QCA_WLAN_SET_PACKET_FILTER = 1, 6550 QCA_WLAN_GET_PACKET_FILTER = 2, 6551 QCA_WLAN_WRITE_PACKET_FILTER = 3, 6552 QCA_WLAN_READ_PACKET_FILTER = 4, 6553 QCA_WLAN_ENABLE_PACKET_FILTER = 5, 6554 QCA_WLAN_DISABLE_PACKET_FILTER = 6, 6555 }; 6556 6557 /** 6558 * enum qca_wlan_vendor_attr_packet_filter - APF control commands 6559 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid 6560 * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID 6561 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version 6562 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length 6563 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset 6564 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions 6565 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program 6566 * section in packet filter buffer 6567 */ 6568 enum qca_wlan_vendor_attr_packet_filter { 6569 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0, 6570 QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER, 6571 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION, 6572 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID, 6573 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE, 6574 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET, 6575 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM, 6576 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH, 6577 6578 /* keep last */ 6579 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST, 6580 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX = 6581 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1, 6582 }; 6583 6584 /** 6585 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor 6586 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS. 6587 */ 6588 enum qca_wlan_vendor_attr_wake_stats { 6589 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0, 6590 /* Unsigned 32-bit value indicating the total count of wake event */ 6591 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE, 6592 /* Array of individual wake count, each index representing wake reason 6593 */ 6594 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR, 6595 /* Unsigned 32-bit value representing wake count array */ 6596 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ, 6597 /* Unsigned 32-bit total wake count value of driver/fw */ 6598 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE, 6599 /* Array of wake stats of driver/fw */ 6600 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR, 6601 /* Unsigned 32-bit total wake count value of driver/fw */ 6602 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ, 6603 /* Unsigned 32-bit total wake count value of packets received */ 6604 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE, 6605 /* Unsigned 32-bit wake count value unicast packets received */ 6606 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT, 6607 /* Unsigned 32-bit wake count value multicast packets received */ 6608 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT, 6609 /* Unsigned 32-bit wake count value broadcast packets received */ 6610 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT, 6611 /* Unsigned 32-bit wake count value of ICMP packets */ 6612 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT, 6613 /* Unsigned 32-bit wake count value of ICMP6 packets */ 6614 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT, 6615 /* Unsigned 32-bit value ICMP6 router advertisement */ 6616 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA, 6617 /* Unsigned 32-bit value ICMP6 neighbor advertisement */ 6618 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA, 6619 /* Unsigned 32-bit value ICMP6 neighbor solicitation */ 6620 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS, 6621 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */ 6622 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT, 6623 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */ 6624 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT, 6625 /* Unsigned 32-bit wake count value of receive side multicast */ 6626 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT, 6627 /* Unsigned 32-bit wake count value of a given RSSI breach */ 6628 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT, 6629 /* Unsigned 32-bit wake count value of low RSSI */ 6630 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT, 6631 /* Unsigned 32-bit value GSCAN count */ 6632 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT, 6633 /* Unsigned 32-bit value PNO complete count */ 6634 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT, 6635 /* Unsigned 32-bit value PNO match count */ 6636 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT, 6637 /* keep last */ 6638 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST, 6639 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX = 6640 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1, 6641 }; 6642 6643 /** 6644 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels 6645 * configured by userspace to the driver/firmware. The values will be 6646 * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute. 6647 * The driver/firmware takes necessary actions requested by userspace 6648 * such as throttling wifi tx etc. in order to mitigate high temperature. 6649 * 6650 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions. 6651 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly. 6652 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately. 6653 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely. 6654 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached. 6655 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached. 6656 */ 6657 enum qca_wlan_vendor_thermal_level { 6658 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0, 6659 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1, 6660 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2, 6661 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3, 6662 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4, 6663 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5, 6664 }; 6665 6666 /** 6667 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set 6668 * cmd value. Used for NL attributes for data used by 6669 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 6670 */ 6671 enum qca_wlan_vendor_attr_thermal_cmd { 6672 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0, 6673 /* The value of command, driver will implement different operations 6674 * according to this value. It uses values defined in 6675 * enum qca_wlan_vendor_attr_thermal_cmd_type. 6676 * u32 attribute. 6677 */ 6678 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1, 6679 /* Userspace uses this attribute to configure thermal level to the 6680 * driver/firmware, or get thermal level from the driver/firmware. 6681 * Used in request or response, u32 attribute, 6682 * possible values are defined in enum qca_wlan_vendor_thermal_level. 6683 */ 6684 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2, 6685 /* Userspace uses this attribute to configure the time in which the 6686 * driver/firmware should complete applying settings it received from 6687 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL 6688 * command type. Used in request, u32 attribute, value is in 6689 * milliseconds. A value of zero indicates to apply the settings 6690 * immediately. The driver/firmware can delay applying the configured 6691 * thermal settings within the time specified in this attribute if 6692 * there is any critical ongoing operation. 6693 */ 6694 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3, 6695 /* Nested attribute, driver/firmware uses this attribute to report 6696 * thermal stats of different thermal levels to userspace when requested 6697 * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command 6698 * type. This attribute contains nested array of records of thermal 6699 * statistics of multiple levels. The attributes used inside this nested 6700 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats. 6701 */ 6702 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4, 6703 6704 /* keep last */ 6705 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST, 6706 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX = 6707 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1 6708 }; 6709 6710 /** 6711 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for 6712 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd 6713 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the 6714 * thermal command types sent to driver. 6715 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to 6716 * get thermal shutdown configuration parameters for display. Parameters 6717 * responded from driver are defined in 6718 * enum qca_wlan_vendor_attr_get_thermal_params_rsp. 6719 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to 6720 * get temperature. Host should respond with a temperature data. It is defined 6721 * in enum qca_wlan_vendor_attr_thermal_get_temperature. 6722 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal 6723 * suspend action. 6724 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal 6725 * resume action. 6726 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to 6727 * the driver/firmware. 6728 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current 6729 * thermal level from the driver/firmware. The driver should respond with a 6730 * thermal level defined in enum qca_wlan_vendor_thermal_level. 6731 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the 6732 * current thermal stats from the driver/firmware. The driver should respond 6733 * with stats of all thermal levels encapsulated in attribute 6734 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS. 6735 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear 6736 * the current thermal stats all thermal levels maintained in the 6737 * driver/firmware and start counting from zero again. 6738 */ 6739 enum qca_wlan_vendor_attr_thermal_cmd_type { 6740 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS, 6741 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE, 6742 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND, 6743 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME, 6744 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL, 6745 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL, 6746 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS, 6747 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS, 6748 }; 6749 6750 /** 6751 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes 6752 * to get chip temperature by user. 6753 * enum values are used for NL attributes for data used by 6754 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used 6755 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 6756 */ 6757 enum qca_wlan_vendor_attr_thermal_get_temperature { 6758 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0, 6759 /* Temperature value (degree Celsius) from driver. 6760 * u32 attribute. 6761 */ 6762 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA, 6763 6764 /* keep last */ 6765 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST, 6766 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX = 6767 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1, 6768 }; 6769 6770 /** 6771 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to 6772 * report thermal events from driver to user space. 6773 * enum values are used for NL attributes for data used by 6774 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command. 6775 */ 6776 enum qca_wlan_vendor_attr_thermal_event { 6777 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0, 6778 /* Temperature value (degree Celsius) from driver. 6779 * u32 attribute. 6780 */ 6781 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE, 6782 /* Indication of resume completion from power save mode. 6783 * NLA_FLAG attribute. 6784 */ 6785 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE, 6786 /* Thermal level from the driver. 6787 * u32 attribute. Possible values are defined in 6788 * enum qca_wlan_vendor_thermal_level. 6789 */ 6790 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3, 6791 6792 /* keep last */ 6793 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST, 6794 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX = 6795 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1, 6796 }; 6797 6798 /** 6799 * enum qca_vendor_element_id - QCA Vendor Specific element types 6800 * 6801 * These values are used to identify QCA Vendor Specific elements. The 6802 * payload of the element starts with the three octet OUI (OUI_QCA) and 6803 * is followed by a single octet type which is defined by this enum. 6804 * 6805 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list. 6806 * This element can be used to specify preference order for supported 6807 * channels. The channels in this list are in preference order (the first 6808 * one has the highest preference) and are described as a pair of 6809 * (global) Operating Class and Channel Number (each one octet) fields. 6810 * 6811 * This extends the standard P2P functionality by providing option to have 6812 * more than one preferred operating channel. When this element is present, 6813 * it replaces the preference indicated in the Operating Channel attribute. 6814 * For supporting other implementations, the Operating Channel attribute is 6815 * expected to be used with the highest preference channel. Similarly, all 6816 * the channels included in this Preferred channel list element are 6817 * expected to be included in the Channel List attribute. 6818 * 6819 * This vendor element may be included in GO Negotiation Request, P2P 6820 * Invitation Request, and Provision Discovery Request frames. 6821 * 6822 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element. 6823 * This element can be used for pre-standard publication testing of HE 6824 * before P802.11ax draft assigns the element ID. The payload of this 6825 * vendor specific element is defined by the latest P802.11ax draft. 6826 * Please note that the draft is still work in progress and this element 6827 * payload is subject to change. 6828 * 6829 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element. 6830 * This element can be used for pre-standard publication testing of HE 6831 * before P802.11ax draft assigns the element ID. The payload of this 6832 * vendor specific element is defined by the latest P802.11ax draft. 6833 * Please note that the draft is still work in progress and this element 6834 * payload is subject to change. 6835 * 6836 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set 6837 * element). 6838 * This element can be used for pre-standard publication testing of HE 6839 * before P802.11ax draft assigns the element ID extension. The payload of 6840 * this vendor specific element is defined by the latest P802.11ax draft 6841 * (not including the Element ID Extension field). Please note that the 6842 * draft is still work in progress and this element payload is subject to 6843 * change. 6844 * 6845 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element. 6846 * This element can be used for pre-standard publication testing of HE 6847 * before P802.11ax draft assigns the element ID extension. The payload of 6848 * this vendor specific element is defined by the latest P802.11ax draft 6849 * (not including the Element ID Extension field). Please note that the 6850 * draft is still work in progress and this element payload is subject to 6851 * change. 6852 * 6853 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element. 6854 * This element can be used for pre-standard publication testing of HE 6855 * before P802.11ax draft assigns the element ID extension. The payload of 6856 * this vendor specific element is defined by the latest P802.11ax draft 6857 * (not including the Element ID Extension field). Please note that the 6858 * draft is still work in progress and this element payload is subject to 6859 * change. 6860 */ 6861 enum qca_vendor_element_id { 6862 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0, 6863 QCA_VENDOR_ELEM_HE_CAPAB = 1, 6864 QCA_VENDOR_ELEM_HE_OPER = 2, 6865 QCA_VENDOR_ELEM_RAPS = 3, 6866 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4, 6867 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5, 6868 }; 6869 6870 /** 6871 * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture 6872 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32) 6873 * Specify the TSF command. Possible values are defined in 6874 * &enum qca_tsf_cmd. 6875 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64) 6876 * This attribute contains TSF timer value. This attribute is only available 6877 * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response. 6878 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64) 6879 * This attribute contains SOC timer value at TSF capture. This attribute is 6880 * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response. 6881 * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32) 6882 * This attribute is used to provide TSF sync interval and only applicable when 6883 * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the 6884 * driver will use the default value. Time unit is in milliseconds. 6885 */ 6886 enum qca_vendor_attr_tsf_cmd { 6887 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0, 6888 QCA_WLAN_VENDOR_ATTR_TSF_CMD, 6889 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE, 6890 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE, 6891 QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL, 6892 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST, 6893 QCA_WLAN_VENDOR_ATTR_TSF_MAX = 6894 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1 6895 }; 6896 6897 /** 6898 * enum qca_tsf_cmd: TSF driver commands 6899 * @QCA_TSF_CAPTURE: Initiate TSF Capture 6900 * @QCA_TSF_GET: Get TSF capture value 6901 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value 6902 * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target 6903 * will automatically send TSF report to the host. To query 6904 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be 6905 * initiated first. 6906 * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target 6907 * will not automatically send TSF report to the host. If 6908 * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and 6909 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this 6910 * operation needs to be initiated. 6911 * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically 6912 * fetches TSF and host time mapping from the firmware with interval configured 6913 * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the 6914 * interval value is not provided the driver will use the default value. The 6915 * userspace can query the TSF and host time mapping via the %QCA_TSF_GET 6916 * command. 6917 * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature. 6918 */ 6919 enum qca_tsf_cmd { 6920 QCA_TSF_CAPTURE, 6921 QCA_TSF_GET, 6922 QCA_TSF_SYNC_GET, 6923 QCA_TSF_AUTO_REPORT_ENABLE, 6924 QCA_TSF_AUTO_REPORT_DISABLE, 6925 QCA_TSF_SYNC_START, 6926 QCA_TSF_SYNC_STOP, 6927 }; 6928 6929 /** 6930 * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list 6931 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value 6932 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type 6933 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list 6934 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight 6935 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last 6936 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max 6937 */ 6938 enum qca_vendor_attr_get_preferred_freq_list { 6939 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID, 6940 /* A 32-unsigned value; the interface type/mode for which the preferred 6941 * frequency list is requested (see enum qca_iface_type for possible 6942 * values); used in both south- and north-bound. 6943 */ 6944 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE, 6945 /* An array of 32-unsigned values; values are frequency (MHz); used 6946 * in north-bound only. 6947 */ 6948 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST, 6949 /* An array of nested values as per enum 6950 * qca_wlan_vendor_attr_pcl_config attribute. 6951 * Each element contains frequency (MHz), weight, and flag 6952 * bit mask indicating how the frequency should be used in P2P 6953 * negotiation. 6954 */ 6955 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL, 6956 /* keep last */ 6957 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST, 6958 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX = 6959 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1 6960 }; 6961 6962 /** 6963 * enum qca_vendor_attr_probable_oper_channel - channel hint 6964 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value 6965 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type 6966 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value 6967 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last 6968 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max 6969 */ 6970 enum qca_vendor_attr_probable_oper_channel { 6971 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID, 6972 /* 32-bit unsigned value; indicates the connection/iface type likely to 6973 * come on this channel (see enum qca_iface_type). 6974 */ 6975 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE, 6976 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */ 6977 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ, 6978 /* keep last */ 6979 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST, 6980 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX = 6981 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1 6982 }; 6983 6984 /** 6985 * enum qca_wlan_vendor_attr_gw_param_config - gateway param config 6986 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid 6987 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr 6988 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr 6989 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr 6990 */ 6991 enum qca_wlan_vendor_attr_gw_param_config { 6992 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0, 6993 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR, 6994 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR, 6995 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR, 6996 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST, 6997 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX = 6998 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1, 6999 }; 7000 7001 /** 7002 * enum drv_dbs_capability - DBS capability 7003 * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled 7004 * @DRV_DBS_CAPABILITY_1X1: 1x1 7005 * @DRV_DBS_CAPABILITY_2X2: 2x2 7006 */ 7007 enum drv_dbs_capability { 7008 DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */ 7009 DRV_DBS_CAPABILITY_1X1, 7010 DRV_DBS_CAPABILITY_2X2, 7011 }; 7012 7013 /** 7014 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease 7015 * 7016 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB. 7017 */ 7018 enum qca_vendor_attr_txpower_decr_db { 7019 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID, 7020 /* 7021 * 8-bit unsigned value to indicate the reduction of TX power in dB for 7022 * a virtual interface. 7023 */ 7024 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB, 7025 /* keep last */ 7026 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST, 7027 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX = 7028 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1 7029 }; 7030 7031 /** 7032 * enum qca_vendor_attr_ota_test - Enable OTA test 7033 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value 7034 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test 7035 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last 7036 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max 7037 */ 7038 enum qca_vendor_attr_ota_test { 7039 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID, 7040 /* 8-bit unsigned value to indicate if OTA test is enabled */ 7041 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE, 7042 /* keep last */ 7043 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST, 7044 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX = 7045 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1 7046 }; 7047 7048 /** enum qca_vendor_attr_txpower_scale - vendor sub commands index 7049 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value 7050 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value 7051 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value 7052 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value 7053 */ 7054 enum qca_vendor_attr_txpower_scale { 7055 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID, 7056 /* 8-bit unsigned value to indicate the scaling of tx power */ 7057 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE, 7058 /* keep last */ 7059 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST, 7060 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX = 7061 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1 7062 }; 7063 7064 /** 7065 * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index 7066 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value 7067 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value 7068 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value 7069 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value 7070 */ 7071 enum qca_vendor_attr_txpower_scale_decr_db { 7072 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID, 7073 /* 8-bit unsigned value to indicate the scaling of tx power */ 7074 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB, 7075 /* keep last */ 7076 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST, 7077 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX = 7078 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1 7079 }; 7080 7081 /** 7082 * enum dfs_mode - state of DFS mode 7083 * @DFS_MODE_NONE: DFS mode attribute is none 7084 * @DFS_MODE_ENABLE: DFS mode is enabled 7085 * @DFS_MODE_DISABLE: DFS mode is disabled 7086 * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning 7087 */ 7088 enum dfs_mode { 7089 DFS_MODE_NONE, 7090 DFS_MODE_ENABLE, 7091 DFS_MODE_DISABLE, 7092 DFS_MODE_DEPRIORITIZE 7093 }; 7094 7095 /** 7096 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes 7097 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY. 7098 * 7099 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8) 7100 * DFS mode for ACS operation from enum qca_acs_dfs_mode. 7101 * 7102 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8) 7103 * channel number hint for ACS operation, if valid channel is specified then 7104 * ACS operation gives priority to this channel. 7105 * Note: If both the driver and user space application supports the 6 GHz band, 7106 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT 7107 * should be used. 7108 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT 7109 * is still used if either of the driver or user space application doesn't 7110 * support the 6 GHz band. 7111 * 7112 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32). 7113 * Channel center frequency (MHz) hint for ACS operation, if a valid center 7114 * frequency is specified, ACS operation gives priority to this channel. 7115 */ 7116 enum qca_wlan_vendor_attr_acs_config { 7117 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0, 7118 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1, 7119 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2, 7120 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3, 7121 7122 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST, 7123 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX = 7124 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1, 7125 }; 7126 7127 /** 7128 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability 7129 */ 7130 enum qca_wlan_vendor_attr_get_hw_capability { 7131 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID, 7132 /* 7133 * Antenna isolation 7134 * An attribute used in the response. 7135 * The content of this attribute is encoded in a byte array. Each byte 7136 * value is an antenna isolation value. The array length is the number 7137 * of antennas. 7138 */ 7139 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION, 7140 /* 7141 * Request HW capability 7142 * An attribute used in the request. 7143 * The content of this attribute is a u32 array for one or more of 7144 * hardware capabilities (attribute IDs) that are being requested. Each 7145 * u32 value has a value from this 7146 * enum qca_wlan_vendor_attr_get_hw_capability 7147 * identifying which capabilities are requested. 7148 */ 7149 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY, 7150 7151 /* keep last */ 7152 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST, 7153 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX = 7154 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1, 7155 }; 7156 7157 /** 7158 * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config - 7159 * config params for sta roam policy 7160 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid 7161 * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels 7162 * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL: 7163 * If sta should skip unsafe channels or not in scanning 7164 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST: 7165 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute 7166 */ 7167 enum qca_wlan_vendor_attr_sta_connect_roam_policy_config { 7168 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0, 7169 QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE, 7170 QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL, 7171 7172 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST, 7173 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX = 7174 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1, 7175 }; 7176 7177 /* Attributes for FTM commands and events */ 7178 7179 /** 7180 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities 7181 * 7182 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See 7183 * enum qca_wlan_vendor_attr_loc_capa_flags. 7184 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number 7185 * of measurement sessions that can run concurrently. 7186 * Default is one session (no session concurrency). 7187 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique 7188 * peers that are supported in running sessions. For example, 7189 * if the value is 8 and maximum number of sessions is 2, you can 7190 * have one session with 8 unique peers, or 2 sessions with 4 unique 7191 * peers each, and so on. 7192 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number 7193 * of bursts per peer, as an exponent (2^value). Default is 0, 7194 * meaning no multi-burst support. 7195 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number 7196 * of measurement exchanges allowed in a single burst. 7197 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement 7198 * types. A bit mask (unsigned 32 bit value), each bit corresponds 7199 * to an AOA type as defined by enum qca_vendor_attr_aoa_type. 7200 */ 7201 enum qca_wlan_vendor_attr_loc_capa { 7202 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID, 7203 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS, 7204 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS, 7205 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS, 7206 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP, 7207 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST, 7208 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES, 7209 /* keep last */ 7210 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST, 7211 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX = 7212 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1, 7213 }; 7214 7215 /** 7216 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags 7217 * 7218 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver 7219 * can be configured as an FTM responder (for example, an AP that 7220 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 7221 * will be supported if set. 7222 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver 7223 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION 7224 * will be supported if set. 7225 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder 7226 * supports immediate (ASAP) response. 7227 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone 7228 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS. 7229 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports 7230 * requesting AOA measurements as part of an FTM session. 7231 */ 7232 enum qca_wlan_vendor_attr_loc_capa_flags { 7233 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0, 7234 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1, 7235 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2, 7236 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3, 7237 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4, 7238 }; 7239 7240 /** 7241 * enum qca_wlan_ani_setting - ANI setting type 7242 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level 7243 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter 7244 */ 7245 enum qca_wlan_ani_setting { 7246 QCA_WLAN_ANI_SETTING_AUTO = 0, 7247 QCA_WLAN_ANI_SETTING_FIXED = 1, 7248 }; 7249 7250 /** 7251 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration 7252 * 7253 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8) 7254 * Channel number on which Access Point should restart. 7255 * Note: If both the driver and user space application supports the 6 GHz band, 7256 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY 7257 * should be used. 7258 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL 7259 * is still used if either of the driver or user space application doesn't 7260 * support the 6 GHz band. 7261 * 7262 * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required 7263 * Nested attribute to hold list of center frequencies on which AP is 7264 * expected to operate. This is irrespective of ACS configuration. 7265 * This list is a priority based one and is looked for before the AP is 7266 * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC) 7267 * co-exist in the system. 7268 * 7269 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32) 7270 * Channel center frequency (MHz) on which the access point should restart. 7271 */ 7272 enum qca_wlan_vendor_attr_sap_config { 7273 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0, 7274 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1, 7275 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2, 7276 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3, 7277 7278 /* Keep last */ 7279 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST, 7280 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX = 7281 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1, 7282 }; 7283 7284 /** 7285 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about 7286 * a single peer in a measurement session. 7287 * 7288 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer. 7289 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related 7290 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags. 7291 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of 7292 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0 7293 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for 7294 * list of supported attributes. 7295 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for 7296 * secure measurement. 7297 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA 7298 * measurement every <value> bursts. If 0 or not specified, 7299 * AOA measurements will be disabled for this peer. 7300 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where 7301 * the measurement frames are exchanged. Optional; if not 7302 * specified, try to locate the peer in the kernel scan 7303 * results cache and use frequency from there. 7304 */ 7305 enum qca_wlan_vendor_attr_ftm_peer_info { 7306 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID, 7307 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR, 7308 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS, 7309 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS, 7310 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID, 7311 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD, 7312 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ, 7313 /* keep last */ 7314 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST, 7315 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX = 7316 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1, 7317 }; 7318 7319 /** 7320 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags, 7321 * per-peer 7322 * 7323 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request 7324 * immediate (ASAP) response from peer. 7325 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request 7326 * LCI report from peer. The LCI report includes the absolute 7327 * location of the peer in "official" coordinates (similar to GPS). 7328 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information. 7329 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request 7330 * Location civic report from peer. The LCR includes the location 7331 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0, 7332 * 11.24.6.7 for more information. 7333 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set, 7334 * request a secure measurement. 7335 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided. 7336 */ 7337 enum qca_wlan_vendor_attr_ftm_peer_meas_flags { 7338 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0, 7339 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1, 7340 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2, 7341 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3, 7342 }; 7343 7344 /** 7345 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters 7346 * 7347 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements 7348 * to perform in a single burst. 7349 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to 7350 * perform, specified as an exponent (2^value). 7351 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst 7352 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. 7353 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts, 7354 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must 7355 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION. 7356 */ 7357 enum qca_wlan_vendor_attr_ftm_meas_param { 7358 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID, 7359 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST, 7360 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP, 7361 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION, 7362 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD, 7363 /* keep last */ 7364 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST, 7365 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX = 7366 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1, 7367 }; 7368 7369 /** 7370 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results 7371 * 7372 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported 7373 * peer. 7374 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement 7375 * request for this peer. 7376 * See enum qca_wlan_vendor_attr_ftm_peer_result_status. 7377 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related 7378 * to measurement results for this peer. 7379 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags. 7380 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when 7381 * request failed and peer requested not to send an additional request 7382 * for this number of seconds. 7383 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received 7384 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 7385 * 9.4.2.22.10. 7386 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when 7387 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 7388 * 9.4.2.22.13. 7389 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer 7390 * overridden some measurement request parameters. See 7391 * enum qca_wlan_vendor_attr_ftm_meas_param. 7392 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement 7393 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT. 7394 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement 7395 * results. Each entry is a nested attribute defined 7396 * by enum qca_wlan_vendor_attr_ftm_meas. 7397 */ 7398 enum qca_wlan_vendor_attr_ftm_peer_result { 7399 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID, 7400 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR, 7401 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS, 7402 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS, 7403 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS, 7404 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI, 7405 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR, 7406 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS, 7407 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS, 7408 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS, 7409 /* keep last */ 7410 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST, 7411 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX = 7412 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1, 7413 }; 7414 7415 /** 7416 * enum qca_wlan_vendor_attr_ftm_peer_result_status 7417 * 7418 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results 7419 * will be provided. Peer may have overridden some measurement parameters, 7420 * in which case overridden parameters will be report by 7421 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute. 7422 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable 7423 * of performing the measurement request. No more results will be sent 7424 * for this peer in this session. 7425 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request 7426 * failed, and requested not to send an additional request for number 7427 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS 7428 * attribute. 7429 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation 7430 * failed. Request was not sent over the air. 7431 */ 7432 enum qca_wlan_vendor_attr_ftm_peer_result_status { 7433 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK, 7434 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE, 7435 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED, 7436 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID, 7437 }; 7438 7439 /** 7440 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags 7441 * for measurement result, per-peer 7442 * 7443 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set, 7444 * measurement completed for this peer. No more results will be reported 7445 * for this peer in this session. 7446 */ 7447 enum qca_wlan_vendor_attr_ftm_peer_result_flags { 7448 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0, 7449 }; 7450 7451 /** 7452 * enum qca_vendor_attr_loc_session_status: Session completion status code 7453 * 7454 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed 7455 * successfully. 7456 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted 7457 * by request. 7458 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request 7459 * was invalid and was not started. 7460 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error 7461 * and did not complete normally (for example out of resources). 7462 */ 7463 enum qca_vendor_attr_loc_session_status { 7464 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK, 7465 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED, 7466 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID, 7467 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED, 7468 }; 7469 7470 /** 7471 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data 7472 * 7473 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as 7474 * recorded by responder, in picoseconds. 7475 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 7476 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at 7477 * initiator, in picoseconds. 7478 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 7479 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by 7480 * initiator, in picoseconds. 7481 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 7482 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at 7483 * responder, in picoseconds. 7484 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 7485 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded 7486 * during this measurement exchange. Optional and will be provided if 7487 * the hardware can measure it. 7488 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by 7489 * responder. Not always provided. 7490 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 7491 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by 7492 * responder. Not always provided. 7493 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 7494 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by 7495 * initiator. Not always provided. 7496 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 7497 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by 7498 * initiator. Not always provided. 7499 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 7500 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding. 7501 */ 7502 enum qca_wlan_vendor_attr_ftm_meas { 7503 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID, 7504 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1, 7505 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2, 7506 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3, 7507 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4, 7508 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI, 7509 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR, 7510 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR, 7511 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR, 7512 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR, 7513 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD, 7514 /* keep last */ 7515 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST, 7516 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX = 7517 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1, 7518 }; 7519 7520 /** 7521 * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index 7522 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value 7523 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL: 7524 * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one 7525 * of the social channels. 7526 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period 7527 * A 32-bit unsigned value; the P2P listen offload period (ms). 7528 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL: 7529 * A 32-bit unsigned value; the P2P listen interval duration (ms). 7530 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT: 7531 * A 32-bit unsigned value; number of interval times the Firmware needs 7532 * to run the offloaded P2P listen operation before it stops. 7533 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types 7534 * An array of unsigned 8-bit characters; vendor information elements. 7535 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs 7536 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW 7537 * A 32-bit unsigned value; a control flag to indicate whether listen 7538 * results need to be flushed to wpa_supplicant. 7539 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason 7540 * A 8-bit unsigned value; reason code for P2P listen offload stop 7541 * event. 7542 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value 7543 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value 7544 */ 7545 enum qca_wlan_vendor_attr_p2p_listen_offload { 7546 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0, 7547 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL, 7548 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD, 7549 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL, 7550 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT, 7551 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES, 7552 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE, 7553 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG, 7554 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON, 7555 /* keep last */ 7556 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST, 7557 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX = 7558 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1 7559 }; 7560 7561 /** 7562 * enum qca_wlan_vendor_drv_info - WLAN driver info 7563 * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid 7564 * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info 7565 * between Firmware & Host. 7566 */ 7567 enum qca_wlan_vendor_drv_info { 7568 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0, 7569 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE, 7570 7571 /* keep last */ 7572 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST, 7573 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX = 7574 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1, 7575 }; 7576 7577 /** 7578 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type 7579 * 7580 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest 7581 * CIR (channel impulse response) path for each antenna. 7582 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude 7583 * of the strongest CIR path for each antenna. 7584 */ 7585 enum qca_wlan_vendor_attr_aoa_type { 7586 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE, 7587 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP, 7588 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX 7589 }; 7590 7591 /** 7592 * enum qca_wlan_vendor_attr_encryption_test - Attributes to 7593 * validate encryption engine 7594 * 7595 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute. 7596 * This will be included if the request is for decryption; if not included, 7597 * the request is treated as a request for encryption by default. 7598 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value 7599 * indicating the key cipher suite. Takes same values as 7600 * NL80211_ATTR_KEY_CIPHER. 7601 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value 7602 * Key Id to be used for encryption 7603 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values. 7604 * Key (TK) to be used for encryption/decryption 7605 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values. 7606 * Packet number to be specified for encryption/decryption 7607 * 6 bytes for TKIP/CCMP/GCMP. 7608 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values 7609 * representing the 802.11 packet (header + payload + FCS) that 7610 * needs to be encrypted/decrypted. 7611 * Encrypted/decrypted response from the driver will also be sent 7612 * to userspace with the same attribute. 7613 */ 7614 enum qca_wlan_vendor_attr_encryption_test { 7615 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0, 7616 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION, 7617 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER, 7618 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID, 7619 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK, 7620 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN, 7621 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA, 7622 7623 /* keep last */ 7624 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST, 7625 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX = 7626 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1 7627 }; 7628 7629 /** 7630 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of 7631 * sector for DMG RF sector operations. 7632 * 7633 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector 7634 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector 7635 */ 7636 enum qca_wlan_vendor_attr_dmg_rf_sector_type { 7637 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX, 7638 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX, 7639 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX 7640 }; 7641 7642 /** 7643 * enum qca_wlan_vendor_attr_fw_state - State of firmware 7644 * 7645 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state 7646 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active 7647 */ 7648 enum qca_wlan_vendor_attr_fw_state { 7649 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR, 7650 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE, 7651 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX 7652 }; 7653 7654 /** 7655 * BRP antenna limit mode 7656 * 7657 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force 7658 * antenna limit, BRP will be performed as usual. 7659 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal 7660 * antennas limit. the hardware may use less antennas than the 7661 * maximum limit. 7662 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will 7663 * use exactly the specified number of antennas for BRP. 7664 */ 7665 enum qca_wlan_vendor_attr_brp_ant_limit_mode { 7666 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE, 7667 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE, 7668 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE, 7669 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX 7670 }; 7671 7672 /** 7673 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for 7674 * DMG RF sector configuration for a single RF module. 7675 * The values are defined in a compact way which closely matches 7676 * the way it is stored in HW registers. 7677 * The configuration provides values for 32 antennas and 8 distribution 7678 * amplifiers, and together describes the characteristics of the RF 7679 * sector - such as a beam in some direction with some gain. 7680 * 7681 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index 7682 * of RF module for this configuration. 7683 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge 7684 * amplifier gain index. Unsigned 32 bit number containing 7685 * bits for all 32 antennas. 7686 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge 7687 * amplifier gain index. Unsigned 32 bit number containing 7688 * bits for all 32 antennas. 7689 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge 7690 * amplifier gain index. Unsigned 32 bit number containing 7691 * bits for all 32 antennas. 7692 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values 7693 * for first 16 antennas, 2 bits per antenna. 7694 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values 7695 * for last 16 antennas, 2 bits per antenna. 7696 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains 7697 * DTYPE values (3 bits) for each distribution amplifier, followed 7698 * by X16 switch bits for each distribution amplifier. There are 7699 * total of 8 distribution amplifiers. 7700 */ 7701 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg { 7702 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0, 7703 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1, 7704 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2, 7705 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3, 7706 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4, 7707 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5, 7708 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6, 7709 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7, 7710 7711 /* keep last */ 7712 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST, 7713 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX = 7714 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1 7715 }; 7716 7717 /** 7718 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for 7719 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver. 7720 * 7721 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger 7722 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode 7723 * represents the different TDLS trigger modes. 7724 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within 7725 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number 7726 * of packets shall meet the criteria for implicit TDLS setup. 7727 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx 7728 * packets within a duration. 7729 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate 7730 * a TDLS setup. 7731 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate 7732 * a TDLS Discovery to the Peer. 7733 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of 7734 * discovery attempts to know the TDLS capability of the peer. A peer is 7735 * marked as TDLS not capable if there is no response for all the attempts. 7736 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32) 7737 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD 7738 * number of TX / RX frames meet the criteria for TDLS teardown. 7739 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number 7740 * (u32) of Tx/Rx packets within a duration 7741 * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link 7742 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold 7743 * corresponding to the RSSI of the peer below which a TDLS 7744 * setup is triggered. 7745 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold 7746 * corresponding to the RSSI of the peer above which 7747 * a TDLS teardown is triggered. 7748 */ 7749 enum qca_wlan_vendor_attr_tdls_configuration { 7750 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0, 7751 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1, 7752 7753 /* Attributes configuring the TDLS Implicit Trigger */ 7754 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2, 7755 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3, 7756 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4, 7757 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5, 7758 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6, 7759 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7, 7760 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8, 7761 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9, 7762 7763 /* keep last */ 7764 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST, 7765 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX = 7766 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1 7767 }; 7768 7769 /** 7770 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in 7771 * the driver. 7772 * 7773 * The following are the different values for 7774 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE. 7775 * 7776 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to 7777 * initiate/teardown the TDLS connection to a respective peer comes 7778 * from the user space. wpa_supplicant provides the commands 7779 * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this. 7780 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS 7781 * setup/teardown to the eligible peer once the configured criteria 7782 * (such as TX/RX threshold, RSSI) is met. The attributes 7783 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to 7784 * the different configuration criteria for the TDLS trigger from the 7785 * host driver. 7786 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger 7787 * the TDLS setup / teardown through the implicit mode, only to the 7788 * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1, 7789 * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands). 7790 * External mode works on top of the implicit mode, thus the host Driver 7791 * is expected to be configured in TDLS Implicit mode too to operate in 7792 * External mode. Configuring External mode alone without Implicit 7793 * mode is invalid. 7794 * 7795 * All the above implementations work as expected only when the host driver 7796 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - 7797 * representing that the TDLS message exchange is not internal to the host 7798 * driver, but depends on wpa_supplicant to do the message exchange. 7799 */ 7800 enum qca_wlan_vendor_tdls_trigger_mode { 7801 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0, 7802 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1, 7803 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2, 7804 }; 7805 7806 /** 7807 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits 7808 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0 7809 * that is hard-coded in the Board Data File (BDF). 7810 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1 7811 * that is hard-coded in the Board Data File (BDF). 7812 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2 7813 * that is hard-coded in the Board Data File (BDF). 7814 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3 7815 * that is hard-coded in the Board Data File (BDF). 7816 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4 7817 * that is hard-coded in the Board Data File (BDF). 7818 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any 7819 * source of SAR power limits, thereby disabling the SAR power 7820 * limit feature. 7821 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power 7822 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 7823 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power 7824 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 7825 * 7826 * This enumerates the valid set of values that may be supplied for 7827 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of 7828 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in 7829 * the response to an instance of the 7830 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 7831 */ 7832 enum qca_vendor_attr_sar_limits_selections { 7833 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0, 7834 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1, 7835 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2, 7836 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3, 7837 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4, 7838 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5, 7839 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6, 7840 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7, 7841 }; 7842 7843 /** 7844 * enum qca_vendor_attr_sar_limits_spec_modulations - 7845 * SAR limits specification modulation 7846 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK - 7847 * CCK modulation 7848 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM - 7849 * OFDM modulation 7850 * 7851 * This enumerates the valid set of values that may be supplied for 7852 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an 7853 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an 7854 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor 7855 * command or in the response to an instance of the 7856 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 7857 */ 7858 enum qca_vendor_attr_sar_limits_spec_modulations { 7859 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0, 7860 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1, 7861 }; 7862 7863 /** 7864 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits 7865 * 7866 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to 7867 * select which SAR power limit table should be used. Valid 7868 * values are enumerated in enum 7869 * %qca_vendor_attr_sar_limits_selections. The existing SAR 7870 * power limit selection is unchanged if this attribute is not 7871 * present. 7872 * 7873 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value 7874 * which specifies the number of SAR power limit specifications 7875 * which will follow. 7876 * 7877 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power 7878 * limit specifications. The number of specifications is 7879 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each 7880 * specification contains a set of 7881 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A 7882 * specification is uniquely identified by the attributes 7883 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND, 7884 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and 7885 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always 7886 * contains as a payload the attribute 7887 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT. 7888 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX. 7889 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or 7890 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is 7891 * needed based upon the value of 7892 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE. 7893 * 7894 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to 7895 * indicate for which band this specification applies. Valid 7896 * values are enumerated in enum %nl80211_band (although not all 7897 * bands may be supported by a given device). If the attribute is 7898 * not supplied then the specification will be applied to all 7899 * supported bands. 7900 * 7901 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value 7902 * to indicate for which antenna chain this specification 7903 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the 7904 * attribute is not supplied then the specification will be 7905 * applied to all chains. 7906 * 7907 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32) 7908 * value to indicate for which modulation scheme this 7909 * specification applies. Valid values are enumerated in enum 7910 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute 7911 * is not supplied then the specification will be applied to all 7912 * modulation schemes. 7913 * 7914 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32) 7915 * value to specify the actual power limit value in units of 0.5 7916 * dBm (i.e., a value of 11 represents 5.5 dBm). 7917 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 7918 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER. 7919 * 7920 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32) 7921 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles. 7922 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 7923 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0. 7924 * 7925 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS 7926 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS. 7927 */ 7928 enum qca_vendor_attr_sar_limits { 7929 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0, 7930 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1, 7931 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2, 7932 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3, 7933 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4, 7934 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5, 7935 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6, 7936 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7, 7937 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8, 7938 7939 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST, 7940 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX = 7941 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1 7942 }; 7943 7944 /** 7945 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring 7946 * offload which is an extension for LL_STATS. 7947 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms. 7948 * If MAC counters do not exceed the threshold, FW will report monitored 7949 * link layer counters periodically as this setting. The first report is 7950 * always triggered by this timer. 7951 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99). 7952 * For each MAC layer counter, FW holds two copies. One is the current value. 7953 * The other is the last report. Once a current counter's increment is larger 7954 * than the threshold, FW will indicate that counter to host even if the 7955 * monitoring timer does not expire. 7956 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change 7957 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU 7958 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same 7959 * failure code. 7960 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code 7961 * 1: TX packet discarded 7962 * 2: No ACK 7963 * 3: Postpone 7964 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address 7965 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state 7966 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold. 7967 * Threshold for all monitored parameters. If per counter dedicated threshold 7968 * is not enabled, this threshold will take effect. 7969 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this 7970 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0. 7971 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID 7972 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID 7973 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters 7974 * Bit0: TX counter unit in MSDU 7975 * Bit1: TX counter unit in MPDU 7976 * Bit2: TX counter unit in PPDU 7977 * Bit3: TX counter unit in byte 7978 * Bit4: Dropped MSDUs 7979 * Bit5: Dropped Bytes 7980 * Bit6: MPDU retry counter 7981 * Bit7: MPDU failure counter 7982 * Bit8: PPDU failure counter 7983 * Bit9: MPDU aggregation counter 7984 * Bit10: MCS counter for ACKed MPDUs 7985 * Bit11: MCS counter for Failed MPDUs 7986 * Bit12: TX Delay counter 7987 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters 7988 * Bit0: MAC RX counter unit in MPDU 7989 * Bit1: MAC RX counter unit in byte 7990 * Bit2: PHY RX counter unit in PPDU 7991 * Bit3: PHY RX counter unit in byte 7992 * Bit4: Disorder counter 7993 * Bit5: Retry counter 7994 * Bit6: Duplication counter 7995 * Bit7: Discard counter 7996 * Bit8: MPDU aggregation size counter 7997 * Bit9: MCS counter 7998 * Bit10: Peer STA power state change (wake to sleep) counter 7999 * Bit11: Peer STA power save counter, total time in PS mode 8000 * Bit12: Probe request counter 8001 * Bit13: Other management frames counter 8002 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA 8003 * Bit0: Idle time 8004 * Bit1: TX time 8005 * Bit2: time RX in current bss 8006 * Bit3: Out of current bss time 8007 * Bit4: Wireless medium busy time 8008 * Bit5: RX in bad condition time 8009 * Bit6: TX in bad condition time 8010 * Bit7: time wlan card not available 8011 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal 8012 * Bit0: Per channel SNR counter 8013 * Bit1: Per channel noise floor counter 8014 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers 8015 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels 8016 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats 8017 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats 8018 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats 8019 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs 8020 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs 8021 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs 8022 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data 8023 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets 8024 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped 8025 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK 8026 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed 8027 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed 8028 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM: 8029 * aggregation stats buffer length 8030 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats 8031 * buffer for ACKed MPDUs. 8032 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats 8033 * buffer for failed MPDUs. 8034 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE: 8035 * length of delay stats array. 8036 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats 8037 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs 8038 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs 8039 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats 8040 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received 8041 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received 8042 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received 8043 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received 8044 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost 8045 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets 8046 * flagged as retransmissions 8047 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets 8048 * flagged as duplicated 8049 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX 8050 * packets discarded 8051 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation 8052 * stats buffer. 8053 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs 8054 * stats buffer. 8055 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer 8056 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer 8057 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep 8058 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time 8059 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe 8060 * requests received 8061 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt 8062 * frames received 8063 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time 8064 * there is no TX, nor RX, nor interference. 8065 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time 8066 * transmitting packets. 8067 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time 8068 * for receiving. 8069 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time 8070 * interference detected. 8071 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time 8072 * receiving packets with errors. 8073 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time 8074 * TX no-ACK. 8075 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time 8076 * the chip is unable to work in normal conditions. 8077 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time 8078 * receiving packets in current BSS. 8079 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time 8080 * receiving packets not in current BSS. 8081 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas 8082 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL: 8083 * This is a container for per antenna signal stats. 8084 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value 8085 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value 8086 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon 8087 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon 8088 */ 8089 enum qca_wlan_vendor_attr_ll_stats_ext { 8090 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0, 8091 8092 /* Attributes for configurations */ 8093 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD, 8094 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD, 8095 8096 /* Peer STA power state change */ 8097 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG, 8098 8099 /* TX failure event */ 8100 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID, 8101 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU, 8102 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS, 8103 8104 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE, 8105 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS, 8106 8107 /* MAC counters */ 8108 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL, 8109 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE, 8110 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID, 8111 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID, 8112 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP, 8113 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP, 8114 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP, 8115 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP, 8116 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM, 8117 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM, 8118 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS, 8119 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER, 8120 8121 /* Sub-attributes for PEER_AC_TX */ 8122 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU, 8123 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU, 8124 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU, 8125 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES, 8126 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP, 8127 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES, 8128 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY, 8129 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK, 8130 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK, 8131 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM, 8132 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM, 8133 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM, 8134 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR, 8135 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS, 8136 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS, 8137 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE, 8138 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY, 8139 8140 /* Sub-attributes for PEER_AC_RX */ 8141 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU, 8142 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES, 8143 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU, 8144 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES, 8145 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST, 8146 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY, 8147 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP, 8148 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD, 8149 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM, 8150 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM, 8151 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS, 8152 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR, 8153 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES, 8154 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION, 8155 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ, 8156 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT, 8157 8158 /* Sub-attributes for CCA_BSS */ 8159 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME, 8160 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME, 8161 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME, 8162 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY, 8163 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD, 8164 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD, 8165 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL, 8166 8167 /* sub-attribute for BSS_RX_TIME */ 8168 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME, 8169 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME, 8170 8171 /* Sub-attributes for PEER_SIGNAL */ 8172 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM, 8173 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL, 8174 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR, 8175 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF, 8176 8177 /* Sub-attributes for IFACE_BSS */ 8178 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON, 8179 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON, 8180 8181 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST, 8182 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX = 8183 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1 8184 }; 8185 8186 /** 8187 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd 8188 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels 8189 * in priority order as decided after ACS operation in userspace. 8190 * 8191 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8). 8192 * One of reason code from enum qca_wlan_vendor_acs_select_reason. 8193 * 8194 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required 8195 * Array of nested values for each channel with following attributes: 8196 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, 8197 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, 8198 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, 8199 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, 8200 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 8201 * Note: If both the driver and user-space application supports the 6 GHz band, 8202 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use 8203 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST. 8204 * To maintain backward compatibility, 8205 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST 8206 * is still used if either of the driver or user space application doesn't 8207 * support the 6 GHz band. 8208 * 8209 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8). 8210 * Primary channel number 8211 * Note: If both the driver and user-space application supports the 6 GHz band, 8212 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use 8213 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY. 8214 * To maintain backward compatibility, 8215 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY 8216 * is still used if either of the driver or user space application doesn't 8217 * support the 6 GHz band. 8218 * 8219 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8). 8220 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths. 8221 * Note: If both the driver and user-space application supports the 6 GHz band, 8222 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use 8223 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY. 8224 * To maintain backward compatibility, 8225 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY 8226 * is still used if either of the driver or user space application 8227 * doesn't support the 6 GHz band. 8228 * 8229 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8). 8230 * VHT seg0 channel number 8231 * Note: If both the driver and user-space application supports the 6 GHz band, 8232 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use 8233 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0. 8234 * To maintain backward compatibility, 8235 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 8236 * is still used if either of the driver or user space application 8237 * doesn't support the 6 GHz band. 8238 * 8239 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8). 8240 * VHT seg1 channel number 8241 * Note: If both the driver and user-space application supports the 6 GHz band, 8242 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use 8243 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1. 8244 * To maintain backward compatibility, 8245 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 8246 * is still used if either of the driver or user space application 8247 * doesn't support the 6 GHz band. 8248 * 8249 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8). 8250 * Takes one of enum nl80211_chan_width values. 8251 * 8252 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required 8253 * Array of nested values for each channel with following attributes: 8254 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32), 8255 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32), 8256 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32), 8257 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32), 8258 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 8259 * Note: If user-space application has no support of the 6 GHz band, this 8260 * attribute is optional. 8261 * 8262 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32) 8263 * Primary channel frequency in MHz 8264 * Note: If user-space application has no support of the 6 GHz band, this 8265 * attribute is optional. 8266 * 8267 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32) 8268 * Secondary channel frequency in MHz used for HT 40 MHz channels. 8269 * Note: If user-space application has no support of the 6 GHz band, this 8270 * attribute is optional. 8271 * 8272 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32) 8273 * VHT seg0 channel frequency in MHz 8274 * Note: If user-space application has no support of the 6GHz band, this 8275 * attribute is optional. 8276 * 8277 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32) 8278 * VHT seg1 channel frequency in MHz 8279 * Note: If user-space application has no support of the 6 GHz band, this 8280 * attribute is optional. 8281 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16) 8282 * Puncture Bitmap for selected primary channel. Optional if no support 8283 * for EHT (IEEE 802.11be). Encoding for this attribute follows the 8284 * convention used in the Disabled Subchannel Bitmap field of the EHT Operation 8285 * element. 8286 */ 8287 enum qca_wlan_vendor_attr_external_acs_channels { 8288 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0, 8289 8290 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason 8291 */ 8292 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1, 8293 8294 /* Array of nested values for each channel with following attributes: 8295 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND, 8296 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, 8297 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, 8298 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, 8299 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, 8300 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 8301 */ 8302 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2, 8303 /* This (u8) will hold values of one of enum nl80211_bands */ 8304 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3, 8305 /* Primary channel (u8) */ 8306 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4, 8307 /* Secondary channel (u8) used for HT 40 MHz channels */ 8308 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5, 8309 /* VHT seg0 channel (u8) */ 8310 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6, 8311 /* VHT seg1 channel (u8) */ 8312 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7, 8313 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */ 8314 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8, 8315 8316 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9, 8317 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10, 8318 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11, 8319 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12, 8320 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13, 8321 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14, 8322 8323 /* keep last */ 8324 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST, 8325 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX = 8326 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1 8327 }; 8328 8329 /** 8330 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why 8331 * the ACS has to be triggered. These values are used by 8332 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and 8333 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON 8334 */ 8335 enum qca_wlan_vendor_acs_select_reason { 8336 /* Represents the reason that the ACS triggered during the AP start */ 8337 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT, 8338 /* Represents the reason that DFS found with the current channel */ 8339 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS, 8340 /* Represents the reason that LTE co-exist in the current band. */ 8341 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX, 8342 /* Represents the reason that generic, uncategorized interference has 8343 * been found in the current channel. 8344 */ 8345 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE, 8346 /* Represents the reason that excessive 802.11 interference has been 8347 * found in the current channel. 8348 */ 8349 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE, 8350 /* Represents the reason that generic Continuous Wave (CW) interference 8351 * has been found in the current channel. 8352 */ 8353 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE, 8354 /* Represents the reason that Microwave Oven (MWO) interference has been 8355 * found in the current channel. 8356 */ 8357 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE, 8358 /* Represents the reason that generic Frequency-Hopping Spread Spectrum 8359 * (FHSS) interference has been found in the current channel. This may 8360 * include 802.11 waveforms. 8361 */ 8362 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE, 8363 /* Represents the reason that non-802.11 generic Frequency-Hopping 8364 * Spread Spectrum (FHSS) interference has been found in the current 8365 * channel. 8366 */ 8367 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE, 8368 /* Represents the reason that generic Wideband (WB) interference has 8369 * been found in the current channel. This may include 802.11 waveforms. 8370 */ 8371 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE, 8372 /* Represents the reason that non-802.11 generic Wideband (WB) 8373 * interference has been found in the current channel. 8374 */ 8375 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE, 8376 /* Represents the reason that Jammer interference has been found in the 8377 * current channel. 8378 */ 8379 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE, 8380 /* Represents the reason that ACS triggered by AFC */ 8381 QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER, 8382 }; 8383 8384 /** 8385 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration 8386 * 8387 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32) 8388 * value to specify the gpio command, please refer to enum qca_gpio_cmd_type 8389 * to get the available value that this item can use. 8390 * 8391 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32) 8392 * value to specify the gpio number. 8393 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8394 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT. 8395 * 8396 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32) 8397 * value to specify the gpio output level, please refer to enum qca_gpio_value 8398 * to get the available value that this item can use. 8399 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8400 * %QCA_WLAN_VENDOR_GPIO_OUTPUT. 8401 * 8402 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32) 8403 * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type 8404 * to get the available value that this item can use. 8405 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8406 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 8407 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 8408 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 8409 * attribute is present. 8410 * 8411 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32) 8412 * value to specify the gpio interrupt mode, please refer to enum 8413 * qca_gpio_interrupt_mode to get the available value that this item can use. 8414 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8415 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 8416 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 8417 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 8418 * attribute is present. 8419 * 8420 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32) 8421 * value to specify the gpio direction, please refer to enum qca_gpio_direction 8422 * to get the available value that this item can use. 8423 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8424 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 8425 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 8426 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 8427 * attribute is present. 8428 * 8429 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32) 8430 * Value to specify the mux config. Meaning of a given value is dependent 8431 * on the target chipset and gpio pin. Must be of the range 0-15. 8432 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8433 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0. 8434 * 8435 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32) 8436 * Value to specify the drive, Refer to enum qca_gpio_drive. 8437 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8438 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0). 8439 * 8440 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag) 8441 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8442 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all 8443 * other parameters for the given GPIO will be obtained from internal 8444 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be 8445 * specified to indicate the GPIO pin being configured. 8446 */ 8447 enum qca_wlan_gpio_attr { 8448 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0, 8449 /* Unsigned 32-bit attribute for GPIO command */ 8450 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1, 8451 /* Unsigned 32-bit attribute for GPIO PIN number to configure */ 8452 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2, 8453 /* Unsigned 32-bit attribute for GPIO value to configure */ 8454 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3, 8455 /* Unsigned 32-bit attribute for GPIO pull type */ 8456 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4, 8457 /* Unsigned 32-bit attribute for GPIO interrupt mode */ 8458 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5, 8459 /* Unsigned 32-bit attribute for GPIO direction to configure */ 8460 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6, 8461 /* Unsigned 32-bit attribute for GPIO mux config */ 8462 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7, 8463 /* Unsigned 32-bit attribute for GPIO drive */ 8464 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8, 8465 /* Flag attribute for using internal gpio configuration */ 8466 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9, 8467 8468 /* keep last */ 8469 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST, 8470 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX = 8471 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1, 8472 }; 8473 8474 /** 8475 * enum gpio_cmd_type - GPIO configuration command type 8476 * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info 8477 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level 8478 */ 8479 enum qca_gpio_cmd_type { 8480 QCA_WLAN_VENDOR_GPIO_CONFIG = 0, 8481 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1, 8482 }; 8483 8484 /** 8485 * enum qca_gpio_pull_type - GPIO pull type 8486 * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none 8487 * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up 8488 * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down 8489 */ 8490 enum qca_gpio_pull_type { 8491 QCA_WLAN_GPIO_PULL_NONE = 0, 8492 QCA_WLAN_GPIO_PULL_UP = 1, 8493 QCA_WLAN_GPIO_PULL_DOWN = 2, 8494 QCA_WLAN_GPIO_PULL_MAX, 8495 }; 8496 8497 /** 8498 * enum qca_gpio_direction - GPIO direction 8499 * @QCA_WLAN_GPIO_INPUT: set gpio as input mode 8500 * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode 8501 * @QCA_WLAN_GPIO_VALUE_MAX: invalid value 8502 */ 8503 enum qca_gpio_direction { 8504 QCA_WLAN_GPIO_INPUT = 0, 8505 QCA_WLAN_GPIO_OUTPUT = 1, 8506 QCA_WLAN_GPIO_DIR_MAX, 8507 }; 8508 8509 /** 8510 * enum qca_gpio_value - GPIO Value 8511 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low 8512 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high 8513 * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value 8514 */ 8515 enum qca_gpio_value { 8516 QCA_WLAN_GPIO_LEVEL_LOW = 0, 8517 QCA_WLAN_GPIO_LEVEL_HIGH = 1, 8518 QCA_WLAN_GPIO_LEVEL_MAX, 8519 }; 8520 8521 /** 8522 * enum gpio_interrupt_mode - GPIO interrupt mode 8523 * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger 8524 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger 8525 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger 8526 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger 8527 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger 8528 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger 8529 * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value 8530 */ 8531 enum qca_gpio_interrupt_mode { 8532 QCA_WLAN_GPIO_INTMODE_DISABLE = 0, 8533 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1, 8534 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2, 8535 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3, 8536 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4, 8537 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5, 8538 QCA_WLAN_GPIO_INTMODE_MAX, 8539 }; 8540 8541 /** 8542 * enum gpio_drive - GPIO drive 8543 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA 8544 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA 8545 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA 8546 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA 8547 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA 8548 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA 8549 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA 8550 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA 8551 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive 8552 */ 8553 enum qca_gpio_drive { 8554 QCA_WLAN_GPIO_DRIVE_2MA = 0, 8555 QCA_WLAN_GPIO_DRIVE_4MA = 1, 8556 QCA_WLAN_GPIO_DRIVE_6MA = 2, 8557 QCA_WLAN_GPIO_DRIVE_8MA = 3, 8558 QCA_WLAN_GPIO_DRIVE_10MA = 4, 8559 QCA_WLAN_GPIO_DRIVE_12MA = 5, 8560 QCA_WLAN_GPIO_DRIVE_14MA = 6, 8561 QCA_WLAN_GPIO_DRIVE_16MA = 7, 8562 QCA_WLAN_GPIO_DRIVE_MAX, 8563 }; 8564 8565 /** 8566 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting 8567 * MSDUQ depth threshold per peer per tid in the target 8568 * 8569 * Associated Vendor Command: 8570 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH 8571 */ 8572 enum qca_wlan_set_qdepth_thresh_attr { 8573 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0, 8574 /* 6-byte MAC address */ 8575 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR, 8576 /* Unsigned 32-bit attribute for holding the TID */ 8577 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID, 8578 /* Unsigned 32-bit attribute for holding the update mask 8579 * bit 0 - Update high priority msdu qdepth threshold 8580 * bit 1 - Update low priority msdu qdepth threshold 8581 * bit 2 - Update UDP msdu qdepth threshold 8582 * bit 3 - Update Non UDP msdu qdepth threshold 8583 * rest of bits are reserved 8584 */ 8585 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK, 8586 /* Unsigned 32-bit attribute for holding the threshold value */ 8587 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE, 8588 8589 /* keep last */ 8590 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST, 8591 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX = 8592 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1, 8593 }; 8594 8595 /** 8596 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for 8597 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd 8598 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the 8599 * external ACS policies to select the channels w.r.t. the PCL weights. 8600 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and 8601 * their PCL weights.) 8602 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to 8603 * select a channel with non-zero PCL weight. 8604 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a 8605 * channel with non-zero PCL weight. 8606 * 8607 */ 8608 enum qca_wlan_vendor_attr_external_acs_policy { 8609 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED, 8610 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY, 8611 }; 8612 8613 /** 8614 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters 8615 */ 8616 enum qca_wlan_vendor_attr_spectral_scan { 8617 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0, 8618 /* 8619 * Number of times the chip enters spectral scan mode before 8620 * deactivating spectral scans. When set to 0, chip will enter spectral 8621 * scan mode continuously. u32 attribute. 8622 */ 8623 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1, 8624 /* 8625 * Spectral scan period. Period increment resolution is 256*Tclk, 8626 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute. 8627 */ 8628 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2, 8629 /* Spectral scan priority. u32 attribute. */ 8630 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3, 8631 /* Number of FFT data points to compute. u32 attribute. */ 8632 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4, 8633 /* 8634 * Enable targeted gain change before starting the spectral scan FFT. 8635 * u32 attribute. 8636 */ 8637 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5, 8638 /* Restart a queued spectral scan. u32 attribute. */ 8639 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6, 8640 /* 8641 * Noise floor reference number for the calculation of bin power. 8642 * u32 attribute. 8643 */ 8644 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7, 8645 /* 8646 * Disallow spectral scan triggers after TX/RX packets by setting 8647 * this delay value to roughly SIFS time period or greater. 8648 * u32 attribute. 8649 */ 8650 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8, 8651 /* 8652 * Number of strong bins (inclusive) per sub-channel, below 8653 * which a signal is declared a narrow band tone. u32 attribute. 8654 */ 8655 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9, 8656 /* 8657 * Specify the threshold over which a bin is declared strong (for 8658 * scan bandwidth analysis). u32 attribute. 8659 */ 8660 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10, 8661 /* Spectral scan report mode. u32 attribute. */ 8662 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11, 8663 /* 8664 * RSSI report mode, if the ADC RSSI is below 8665 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR, 8666 * then FFTs will not trigger, but timestamps and summaries get 8667 * reported. u32 attribute. 8668 */ 8669 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12, 8670 /* 8671 * ADC RSSI must be greater than or equal to this threshold (signed dB) 8672 * to ensure spectral scan reporting with normal error code. 8673 * u32 attribute. 8674 */ 8675 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13, 8676 /* 8677 * Format of frequency bin magnitude for spectral scan triggered FFTs: 8678 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)). 8679 * u32 attribute. 8680 */ 8681 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14, 8682 /* 8683 * Format of FFT report to software for spectral scan triggered FFTs. 8684 * 0: No FFT report (only spectral scan summary report) 8685 * 1: 2-dword summary of metrics for each completed FFT + spectral scan 8686 * report 8687 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled 8688 * bins (in-band) per FFT + spectral scan summary report 8689 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled 8690 * bins (all) per FFT + spectral scan summary report 8691 * u32 attribute. 8692 */ 8693 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15, 8694 /* 8695 * Number of LSBs to shift out in order to scale the FFT bins. 8696 * u32 attribute. 8697 */ 8698 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16, 8699 /* 8700 * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes 8701 * in dBm power. u32 attribute. 8702 */ 8703 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17, 8704 /* 8705 * Per chain enable mask to select input ADC for search FFT. 8706 * u32 attribute. 8707 */ 8708 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18, 8709 /* 8710 * An unsigned 64-bit integer provided by host driver to identify the 8711 * spectral scan request. This attribute is included in the scan 8712 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START 8713 * and used as an attribute in 8714 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the 8715 * specific scan to be stopped. 8716 */ 8717 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19, 8718 /* Skip interval for FFT reports. u32 attribute */ 8719 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20, 8720 /* Set to report only one set of FFT results. 8721 * u32 attribute. 8722 */ 8723 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21, 8724 /* Debug level for spectral module in driver. 8725 * 0 : Verbosity level 0 8726 * 1 : Verbosity level 1 8727 * 2 : Verbosity level 2 8728 * 3 : Matched filterID display 8729 * 4 : One time dump of FFT report 8730 * u32 attribute. 8731 */ 8732 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22, 8733 /* Type of spectral scan request. u32 attribute. 8734 * It uses values defined in enum 8735 * qca_wlan_vendor_attr_spectral_scan_request_type. 8736 */ 8737 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23, 8738 /* This specifies the frequency span over which spectral 8739 * scan would be carried out. Its value depends on the 8740 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and 8741 * the relation is as follows. 8742 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL 8743 * Not applicable. Spectral scan would happen in the 8744 * operating span. 8745 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE 8746 * Center frequency (in MHz) of the span of interest or 8747 * for convenience, center frequency (in MHz) of any channel 8748 * in the span of interest. For 80+80 MHz agile spectral scan 8749 * request it represents center frequency (in MHz) of the primary 8750 * 80 MHz span or for convenience, center frequency (in MHz) of any 8751 * channel in the primary 80 MHz span. If agile spectral scan is 8752 * initiated without setting a valid frequency it returns the 8753 * error code 8754 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED). 8755 * u32 attribute. 8756 */ 8757 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24, 8758 /* Spectral scan mode. u32 attribute. 8759 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. 8760 * If this attribute is not present, it is assumed to be 8761 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL). 8762 */ 8763 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25, 8764 /* Spectral scan error code. u32 attribute. 8765 * It uses values defined in enum 8766 * qca_wlan_vendor_spectral_scan_error_code. 8767 * This attribute is included only in failure scenarios. 8768 */ 8769 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26, 8770 /* 8-bit unsigned value to enable/disable debug of the 8771 * Spectral DMA ring. 8772 * 1-enable, 0-disable 8773 */ 8774 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27, 8775 /* 8-bit unsigned value to enable/disable debug of the 8776 * Spectral DMA buffers. 8777 * 1-enable, 0-disable 8778 */ 8779 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28, 8780 /* This specifies the frequency span over which spectral scan would be 8781 * carried out. Its value depends on the value of 8782 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as 8783 * follows. 8784 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL 8785 * Not applicable. Spectral scan would happen in the operating span. 8786 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE 8787 * This attribute is applicable only for agile spectral scan 8788 * requests in 80+80 MHz mode. It represents center frequency (in 8789 * MHz) of the secondary 80 MHz span or for convenience, center 8790 * frequency (in MHz) of any channel in the secondary 80 MHz span. 8791 * u32 attribute. 8792 */ 8793 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29, 8794 /* This attribute specifies the bandwidth to be used for Spectral scan 8795 * operation. This is an u8 attribute and uses the values in enum 8796 * nl80211_chan_width. This is an optional attribute. 8797 * If this attribute is not populated, the driver should configure the 8798 * Spectral scan bandwidth to the maximum value supported by the target 8799 * for the current operating bandwidth. 8800 */ 8801 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30, 8802 /* Spectral FFT recapture flag attribute, to enable/disable FFT 8803 * recapture. Recapture can only be enabled for Scan period greater 8804 * than 52us. 8805 * If this attribute is enabled, re-triggers will be enabled in uCode 8806 * when AGC gain changes. 8807 */ 8808 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31, 8809 8810 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST, 8811 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX = 8812 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1, 8813 }; 8814 8815 /** 8816 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command 8817 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS. 8818 */ 8819 enum qca_wlan_vendor_attr_spectral_diag_stats { 8820 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0, 8821 /* Number of spectral TLV signature mismatches. 8822 * u64 attribute. 8823 */ 8824 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1, 8825 /* Number of spectral phyerror events with insufficient length when 8826 * parsing for secondary 80 search FFT report. u64 attribute. 8827 */ 8828 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2, 8829 /* Number of spectral phyerror events without secondary 80 8830 * search FFT report. u64 attribute. 8831 */ 8832 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3, 8833 /* Number of spectral phyerror events with vht operation segment 1 id 8834 * mismatches in search fft report. u64 attribute. 8835 */ 8836 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4, 8837 /* Number of spectral phyerror events with vht operation segment 2 id 8838 * mismatches in search fft report. u64 attribute. 8839 */ 8840 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5, 8841 8842 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST, 8843 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX = 8844 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1, 8845 }; 8846 8847 /** 8848 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command 8849 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. 8850 */ 8851 enum qca_wlan_vendor_attr_spectral_cap { 8852 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0, 8853 /* Flag attribute to indicate phydiag capability */ 8854 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1, 8855 /* Flag attribute to indicate radar detection capability */ 8856 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2, 8857 /* Flag attribute to indicate spectral capability */ 8858 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3, 8859 /* Flag attribute to indicate advanced spectral capability */ 8860 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4, 8861 /* Spectral hardware generation. u32 attribute. 8862 * It uses values defined in enum 8863 * qca_wlan_vendor_spectral_scan_cap_hw_gen. 8864 */ 8865 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5, 8866 /* Spectral bin scaling formula ID. u16 attribute. 8867 * It uses values defined in enum 8868 * qca_wlan_vendor_spectral_scan_cap_formula_id. 8869 */ 8870 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6, 8871 /* Spectral bin scaling param - low level offset. 8872 * s16 attribute. 8873 */ 8874 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7, 8875 /* Spectral bin scaling param - high level offset. 8876 * s16 attribute. 8877 */ 8878 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8, 8879 /* Spectral bin scaling param - RSSI threshold. 8880 * s16 attribute. 8881 */ 8882 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9, 8883 /* Spectral bin scaling param - default AGC max gain. 8884 * u8 attribute. 8885 */ 8886 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10, 8887 /* Flag attribute to indicate agile spectral scan capability 8888 * for 20/40/80 MHz modes. 8889 */ 8890 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11, 8891 /* Flag attribute to indicate agile spectral scan capability 8892 * for 160 MHz mode. 8893 */ 8894 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12, 8895 /* Flag attribute to indicate agile spectral scan capability 8896 * for 80+80 MHz mode. 8897 */ 8898 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13, 8899 /* Number of spectral detectors used for scan in 20 MHz. 8900 * u32 attribute. 8901 */ 8902 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14, 8903 /* Number of spectral detectors used for scan in 40 MHz. 8904 * u32 attribute. 8905 */ 8906 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15, 8907 /* Number of spectral detectors used for scan in 80 MHz. 8908 * u32 attribute. 8909 */ 8910 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16, 8911 /* Number of spectral detectors used for scan in 160 MHz. 8912 * u32 attribute. 8913 */ 8914 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17, 8915 /* Number of spectral detectors used for scan in 80+80 MHz. 8916 * u32 attribute. 8917 */ 8918 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18, 8919 /* Flag attribute to indicate agile spectral scan capability 8920 * for 320 MHz mode. 8921 */ 8922 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19, 8923 /* Number of spectral detectors used for scan in 320 MHz. 8924 * u32 attribute. 8925 */ 8926 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20, 8927 8928 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST, 8929 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX = 8930 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1, 8931 }; 8932 8933 /** 8934 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command 8935 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. 8936 */ 8937 enum qca_wlan_vendor_attr_spectral_scan_status { 8938 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0, 8939 /* Flag attribute to indicate whether spectral scan is enabled */ 8940 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1, 8941 /* Flag attribute to indicate whether spectral scan is in progress*/ 8942 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2, 8943 /* Spectral scan mode. u32 attribute. 8944 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. 8945 * If this attribute is not present, normal mode 8946 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be 8947 * requested. 8948 */ 8949 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3, 8950 8951 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST, 8952 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX = 8953 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1, 8954 }; 8955 8956 /** 8957 * enum qca_wlan_vendor_attr_config_latency_level - Level for 8958 * wlan latency module. 8959 * 8960 * There will be various of Wi-Fi functionality like scan/roaming/adaptive 8961 * power saving which would causing data exchange out of service, this 8962 * would be a big impact on latency. For latency sensitive applications over 8963 * Wi-Fi are intolerant to such operations and thus would configure them 8964 * to meet their respective needs. It is well understood by such applications 8965 * that altering the default behavior would degrade the Wi-Fi functionality 8966 * w.r.t the above pointed WLAN operations. 8967 * 8968 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL: 8969 * Default WLAN operation level which throughput orientated. 8970 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR: 8971 * Use XR level to benefit XR (extended reality) application to achieve 8972 * latency and power by via constraint scan/roaming/adaptive PS. 8973 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW: 8974 * Use low latency level to benefit application like concurrent 8975 * downloading or video streaming via constraint scan/adaptive PS. 8976 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW: 8977 * Use ultra low latency level to benefit for gaming/voice 8978 * application via constraint scan/roaming/adaptive PS. 8979 */ 8980 enum qca_wlan_vendor_attr_config_latency_level { 8981 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0, 8982 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1, 8983 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2, 8984 /* legacy name */ 8985 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 8986 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR, 8987 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3, 8988 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4, 8989 8990 /* keep last */ 8991 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST, 8992 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX = 8993 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1, 8994 }; 8995 8996 /** 8997 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for 8998 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd 8999 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the 9000 * spectral scan request types. 9001 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to 9002 * set the spectral parameters and start scan. 9003 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to 9004 * only set the spectral parameters. 9005 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to 9006 * only start the spectral scan. 9007 */ 9008 enum qca_wlan_vendor_attr_spectral_scan_request_type { 9009 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG, 9010 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN, 9011 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG, 9012 }; 9013 9014 /** 9015 * qca_wlan_vendor_spectral_scan_mode: Attribute values for 9016 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd 9017 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and 9018 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd 9019 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the 9020 * spectral scan modes. 9021 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan: 9022 * spectral scan in the current operating span. 9023 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan: 9024 * spectral scan in the configured agile span. 9025 */ 9026 enum qca_wlan_vendor_spectral_scan_mode { 9027 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0, 9028 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1, 9029 }; 9030 9031 /** 9032 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for 9033 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd 9034 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. 9035 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value 9036 * of a parameter is not supported. 9037 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan 9038 * mode is not supported. 9039 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter 9040 * has invalid value. 9041 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter 9042 * is not initialized. 9043 */ 9044 enum qca_wlan_vendor_spectral_scan_error_code { 9045 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0, 9046 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1, 9047 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2, 9048 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3, 9049 }; 9050 9051 /** 9052 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for 9053 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd 9054 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the 9055 * spectral hardware generation. 9056 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1 9057 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2 9058 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3 9059 */ 9060 enum qca_wlan_vendor_spectral_scan_cap_hw_gen { 9061 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0, 9062 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1, 9063 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2, 9064 }; 9065 9066 /** 9067 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for 9068 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd 9069 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the 9070 * Spectral bin scaling formula ID. 9071 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling 9072 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain 9073 * and RSSI threshold based formula. 9074 */ 9075 enum qca_wlan_vendor_spectral_scan_cap_formula_id { 9076 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0, 9077 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1, 9078 }; 9079 9080 /** 9081 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative 9082 * RF Operating Parameter (RROP) information is available, and if so, at which 9083 * point in the application-driver interaction sequence it can be retrieved by 9084 * the application from the driver. This point may vary by architecture and 9085 * other factors. This is a u16 value. 9086 */ 9087 enum qca_wlan_vendor_attr_rropavail_info { 9088 /* RROP information is unavailable. */ 9089 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE, 9090 /* RROP information is available and the application can retrieve the 9091 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS 9092 * event from the driver. 9093 */ 9094 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START, 9095 /* RROP information is available only after a vendor specific scan 9096 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has 9097 * successfully completed. The application can retrieve the information 9098 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from 9099 * the driver. 9100 */ 9101 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END, 9102 }; 9103 9104 /** 9105 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific 9106 * Representative RF Operating Parameter (RROP) information. It is sent for the 9107 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is 9108 * intended for use by external Auto Channel Selection applications. It provides 9109 * guidance values for some RF parameters that are used by the system during 9110 * operation. These values could vary by channel, band, radio, and so on. 9111 */ 9112 enum qca_wlan_vendor_attr_rrop_info { 9113 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0, 9114 9115 /* Representative Tx Power List (RTPL) which has an array of nested 9116 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst. 9117 */ 9118 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1, 9119 9120 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST, 9121 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX = 9122 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1 9123 }; 9124 9125 /** 9126 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list 9127 * entry instances in the Representative Tx Power List (RTPL). It provides 9128 * simplified power values intended for helping external Auto channel Selection 9129 * applications compare potential Tx power performance between channels, other 9130 * operating conditions remaining identical. These values are not necessarily 9131 * the actual Tx power values that will be used by the system. They are also not 9132 * necessarily the max or average values that will be used. Instead, they are 9133 * relative, summarized keys for algorithmic use computed by the driver or 9134 * underlying firmware considering a number of vendor specific factors. 9135 */ 9136 enum qca_wlan_vendor_attr_rtplinst { 9137 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0, 9138 9139 /* Primary channel number (u8). 9140 * Note: If both the driver and user space application support the 9141 * 6 GHz band, this attribute is deprecated and 9142 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To 9143 * maintain backward compatibility, 9144 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the 9145 * driver or user space application or both do not support the 6 GHz 9146 * band. 9147 */ 9148 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1, 9149 /* Representative Tx power in dBm (s32) with emphasis on throughput. */ 9150 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2, 9151 /* Representative Tx power in dBm (s32) with emphasis on range. */ 9152 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3, 9153 /* Primary channel center frequency (u32) in MHz */ 9154 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4, 9155 9156 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST, 9157 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX = 9158 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1, 9159 }; 9160 9161 /** 9162 * enum qca_wlan_vendor_attr_mac - Used by the vendor command 9163 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 9164 * 9165 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an 9166 * array of nested values as per attributes in 9167 * enum qca_wlan_vendor_attr_mac_mode_info. 9168 */ 9169 enum qca_wlan_vendor_attr_mac { 9170 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0, 9171 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1, 9172 9173 /* keep last */ 9174 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST, 9175 QCA_WLAN_VENDOR_ATTR_MAC_MAX = 9176 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1, 9177 }; 9178 9179 /** 9180 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected 9181 * WiFi netdev interface on a respective MAC. Used by the attribute 9182 * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO. 9183 * 9184 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32). 9185 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of 9186 * the connected Wi-Fi interface(u32). 9187 */ 9188 enum qca_wlan_vendor_attr_mac_iface_info { 9189 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0, 9190 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1, 9191 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2, 9192 9193 /* keep last */ 9194 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST, 9195 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX = 9196 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1, 9197 }; 9198 9199 /** 9200 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information. 9201 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the 9202 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 9203 * 9204 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the 9205 * MAC (u32) 9206 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC 9207 * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described 9208 * in enum nl80211_band. 9209 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev 9210 * interfaces associated with this MAC. Represented by enum 9211 * qca_wlan_vendor_attr_mac_iface_info. 9212 */ 9213 enum qca_wlan_vendor_attr_mac_info { 9214 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0, 9215 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1, 9216 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2, 9217 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3, 9218 9219 /* keep last */ 9220 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST, 9221 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX = 9222 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1, 9223 9224 }; 9225 9226 /** 9227 * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes 9228 * to get thermal status from driver/firmware. 9229 * enum values are used for NL attributes encapsulated inside 9230 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute. 9231 * 9232 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature 9233 * of a thermal level in Celsius. u32 size. 9234 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature 9235 * of a thermal level in Celsius. u32 size. 9236 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each 9237 * thermal level in milliseconds. u32 size. 9238 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number 9239 * of times the temperature crossed into the temperature range defined by the 9240 * thermal level from both higher and lower directions. u32 size. 9241 */ 9242 enum qca_wlan_vendor_attr_thermal_stats { 9243 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0, 9244 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE, 9245 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE, 9246 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME, 9247 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER, 9248 9249 /* keep last */ 9250 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST, 9251 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX = 9252 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1, 9253 }; 9254 9255 /** 9256 * enum he_fragmentation_val - HE fragmentation support values 9257 * Indicates level of dynamic fragmentation that is supported by 9258 * a STA as a recipient. 9259 * HE fragmentation values are defined as per 11ax spec and are used in 9260 * HE capability IE to advertise the support. These values are validated 9261 * in the driver to check the device capability and advertised in the HE 9262 * capability element. 9263 * 9264 * @HE_FRAG_DISABLE: no support for dynamic fragmentation 9265 * @HE_FRAG_LEVEL1: support for dynamic fragments that are 9266 * contained within an MPDU or S-MPDU, no support for dynamic fragments 9267 * within an A-MPDU that is not an S-MPDU. 9268 * @HE_FRAG_LEVEL2: support for dynamic fragments that are 9269 * contained within an MPDU or S-MPDU and support for up to one dynamic 9270 * fragment for each MSDU, each A-MSDU if supported by the recipient, and 9271 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an 9272 * MPDU or S-MPDU. 9273 * @HE_FRAG_LEVEL3: support for dynamic fragments that are 9274 * contained within an MPDU or S-MPDU and support for multiple dynamic 9275 * fragments for each MSDU and for each A-MSDU if supported by the 9276 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic 9277 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU. 9278 */ 9279 enum he_fragmentation_val { 9280 HE_FRAG_DISABLE, 9281 HE_FRAG_LEVEL1, 9282 HE_FRAG_LEVEL2, 9283 HE_FRAG_LEVEL3, 9284 }; 9285 9286 /** 9287 * enum he_mcs_config - HE MCS support configuration 9288 * 9289 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth. 9290 * These values are used in driver to configure the HE MCS map to advertise 9291 * Tx/Rx MCS map in HE capability and these values are applied for all the 9292 * streams supported by the device. To configure MCS for different bandwidths, 9293 * vendor command needs to be sent using this attribute with appropriate value. 9294 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS 9295 * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS 9296 * for HE_160_MCS0_11 send this command using HE MCS config attribute with 9297 * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11; 9298 * 9299 * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7 9300 * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9 9301 * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11 9302 * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7 9303 * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9 9304 * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11 9305 * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7 9306 * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9 9307 * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11 9308 */ 9309 enum he_mcs_config { 9310 HE_80_MCS0_7 = 0, 9311 HE_80_MCS0_9 = 1, 9312 HE_80_MCS0_11 = 2, 9313 HE_160_MCS0_7 = 4, 9314 HE_160_MCS0_9 = 5, 9315 HE_160_MCS0_11 = 6, 9316 HE_80p80_MCS0_7 = 8, 9317 HE_80p80_MCS0_9 = 9, 9318 HE_80p80_MCS0_11 = 10, 9319 }; 9320 9321 /** 9322 * enum qca_wlan_ba_session_config - BA session configuration 9323 * 9324 * Indicates the configuration values for BA session configuration attribute. 9325 * 9326 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration. 9327 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID. 9328 */ 9329 enum qca_wlan_ba_session_config { 9330 QCA_WLAN_ADD_BA = 1, 9331 QCA_WLAN_DELETE_BA = 2, 9332 }; 9333 9334 /** 9335 * enum qca_wlan_ac_type - access category type 9336 * 9337 * Indicates the access category type value. 9338 * 9339 * @QCA_WLAN_AC_BE: BE access category 9340 * @QCA_WLAN_AC_BK: BK access category 9341 * @QCA_WLAN_AC_VI: VI access category 9342 * @QCA_WLAN_AC_VO: VO access category 9343 * @QCA_WLAN_AC_ALL: All ACs 9344 */ 9345 enum qca_wlan_ac_type { 9346 QCA_WLAN_AC_BE = 0, 9347 QCA_WLAN_AC_BK = 1, 9348 QCA_WLAN_AC_VI = 2, 9349 QCA_WLAN_AC_VO = 3, 9350 QCA_WLAN_AC_ALL = 4, 9351 }; 9352 9353 /** 9354 * enum qca_wlan_he_ltf_cfg - HE LTF configuration 9355 * 9356 * Indicates the HE LTF configuration value. 9357 * 9358 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to 9359 * the mandatory HE-LTF based on the GI setting 9360 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF 9361 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF 9362 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF 9363 */ 9364 enum qca_wlan_he_ltf_cfg { 9365 QCA_WLAN_HE_LTF_AUTO = 0, 9366 QCA_WLAN_HE_LTF_1X = 1, 9367 QCA_WLAN_HE_LTF_2X = 2, 9368 QCA_WLAN_HE_LTF_4X = 3, 9369 }; 9370 9371 /** 9372 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration 9373 * 9374 * Indicates the HE trigger frame MAC padding duration value. 9375 * 9376 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to 9377 * process the trigger frame. 9378 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for 9379 * trigger frame. 9380 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for 9381 * trigger frame. 9382 */ 9383 enum qca_wlan_he_mac_padding_dur { 9384 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0, 9385 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1, 9386 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2, 9387 }; 9388 9389 /** 9390 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration 9391 * 9392 * Indicates the HE Operating mode control channel width setting value. 9393 * 9394 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz 9395 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz 9396 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz 9397 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz 9398 */ 9399 enum qca_wlan_he_om_ctrl_ch_bw { 9400 QCA_WLAN_HE_OM_CTRL_BW_20M = 0, 9401 QCA_WLAN_HE_OM_CTRL_BW_40M = 1, 9402 QCA_WLAN_HE_OM_CTRL_BW_80M = 2, 9403 QCA_WLAN_HE_OM_CTRL_BW_160M = 3, 9404 }; 9405 9406 /** 9407 * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration 9408 * 9409 * Indicates the frame types to use for keep alive data. 9410 * 9411 * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive. 9412 * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive. 9413 * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive. 9414 */ 9415 enum qca_wlan_keep_alive_data_type { 9416 QCA_WLAN_KEEP_ALIVE_DEFAULT = 0, 9417 QCA_WLAN_KEEP_ALIVE_DATA = 1, 9418 QCA_WLAN_KEEP_ALIVE_MGMT = 2, 9419 }; 9420 9421 /** 9422 * enum eht_mcs_config - EHT MCS support configuration 9423 * 9424 * Configures the EHT Tx/Rx MCS map in EHT Capability element. 9425 * These values are used in the driver to configure the EHT MCS map to advertise 9426 * Tx/Rx MCS map in EHT capability and these values are applied for all the 9427 * streams supported by the device. 9428 * @EHT_MCS0_7: EHT MCS 0 to 7 support 9429 * @EHT_MCS0_9: EHT MCS 0 to 9 support 9430 * @EHT_MCS0_11: EHT MCS 0 to 11 support 9431 * @EHT_MCS0_13: EHT MCS 0 to 13 support 9432 */ 9433 enum eht_mcs_config { 9434 EHT_MCS0_7 = 0, 9435 EHT_MCS0_9 = 1, 9436 EHT_MCS0_11 = 2, 9437 EHT_MCS0_13 = 3, 9438 }; 9439 9440 /** 9441 * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration. 9442 * @QCA_WLAN_EHT_MODE_INVALID: Invalid. 9443 * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode 9444 * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode. 9445 * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive 9446 * multi-link multi radio mode. 9447 * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive 9448 * multi-link multi radio mode. 9449 */ 9450 enum qca_wlan_eht_mlo_mode { 9451 QCA_WLAN_EHT_MODE_INVALID = 0, 9452 QCA_WLAN_EHT_MLSR = 1, 9453 QCA_WLAN_EHT_EMLSR = 2, 9454 QCA_WLAN_EHT_NON_STR_MLMR = 3, 9455 QCA_WLAN_EHT_STR_MLMR = 4, 9456 }; 9457 9458 /** 9459 * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration 9460 * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode 9461 * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode 9462 */ 9463 enum qca_wlan_emlsr_mode { 9464 QCA_WLAN_EMLSR_MODE_ENTER = 0, 9465 QCA_WLAN_EMLSR_MODE_EXIT = 1, 9466 }; 9467 9468 /** 9469 * enum qca_wlan_ttlm_negotiation_support: TID-To-Link Mapping Negotiation 9470 * support 9471 * @QCA_WLAN_TTLM_DISABLE: TTLM disabled 9472 * @QCA_WLAN_TTLM_SAME_LINK_SET: Mapping of all TIDs to the same link set, 9473 * both DL and UL 9474 * @QCA_WLAN_TTLM_SAME_DIFF_LINK_SET: Mapping of each TID to the same or 9475 * different link set 9476 */ 9477 enum qca_wlan_ttlm_negotiation_support { 9478 QCA_WLAN_TTLM_DISABLE = 0, 9479 QCA_WLAN_TTLM_SAME_LINK_SET = 1, 9480 QCA_WLAN_TTLM_SAME_DIFF_LINK_SET = 2, 9481 }; 9482 9483 /** 9484 * enum qca_coex_traffic_shaping_mode: Coex traffic shaping mode 9485 * @QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE: Coex policies disabled 9486 * @QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE: All coex policies enabled 9487 */ 9488 enum qca_coex_traffic_shaping_mode { 9489 QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE = 0, 9490 QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE = 1, 9491 }; 9492 9493 /** 9494 * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and 9495 * EHT operating mode control transmit request. These attributes are 9496 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and 9497 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 9498 * 9499 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value 9500 * indicates the maximum number of spatial streams, NSS, that the STA 9501 * supports in reception for PPDU bandwidths less than or equal to 80 MHz 9502 * and is set to NSS - 1. 9503 * 9504 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value 9505 * indicates the operating channel width supported by the STA for both 9506 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values. 9507 * 9508 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value 9509 * indicates the all trigger based UL MU operations by the STA. 9510 * 0 - UL MU operations are enabled by the STA. 9511 * 1 - All triggered UL MU transmissions are suspended by the STA. 9512 * 9513 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value 9514 * indicates the maximum number of space-time streams, NSTS, that 9515 * the STA supports in transmission and is set to NSTS - 1. 9516 * 9517 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value 9518 * combined with the UL MU Disable subfield and the recipient's setting 9519 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC 9520 * capabilities to determine which HE TB PPDUs are possible by the 9521 * STA to transmit. 9522 * 0 - UL MU data operations are enabled by the STA. 9523 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable 9524 * bit is not set, else UL MU Tx is suspended. 9525 * 9526 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM 9527 * Control subfield combined with the Rx NSS subfield in the OM Control subfield 9528 * indicates NSS - 1, where NSS is the maximum number of spatial streams that 9529 * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz. 9530 * 9531 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates 9532 * 320 MHz operating channel width supported by the EHT STA for both reception 9533 * and transmission. 9534 * 9535 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM 9536 * Control subfield combined with the Tx NSTS subfield in OM Control subfield 9537 * indicates NSTS - 1, where NSTS is the maximum number of space-time streams 9538 * that the STA supports in transmission for PPDU bandwidths less than or equal 9539 * to 80 MHz. 9540 */ 9541 enum qca_wlan_vendor_attr_omi_tx { 9542 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0, 9543 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1, 9544 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2, 9545 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3, 9546 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4, 9547 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5, 9548 QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6, 9549 QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7, 9550 QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8, 9551 9552 /* keep last */ 9553 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST, 9554 QCA_WLAN_VENDOR_ATTR_OMI_MAX = 9555 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1, 9556 }; 9557 9558 /* deprecated legacy names */ 9559 #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \ 9560 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX 9561 #define qca_wlan_vendor_attr_he_omi_tx \ 9562 qca_wlan_vendor_attr_omi_tx 9563 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \ 9564 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST 9565 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \ 9566 QCA_WLAN_VENDOR_ATTR_OMI_MAX 9567 9568 /** 9569 * enum qca_wlan_vendor_phy_mode - Different PHY modes 9570 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE. 9571 * 9572 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect 9573 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect 9574 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect 9575 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM 9576 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK 9577 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM 9578 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz 9579 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20 9580 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1) 9581 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1) 9582 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40 9583 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20 9584 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1) 9585 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1) 9586 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40 9587 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20 9588 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1) 9589 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1) 9590 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40 9591 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80 9592 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80 9593 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160 9594 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20 9595 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40 9596 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1) 9597 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1) 9598 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80 9599 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80 9600 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160 9601 */ 9602 enum qca_wlan_vendor_phy_mode { 9603 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0, 9604 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1, 9605 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2, 9606 QCA_WLAN_VENDOR_PHY_MODE_11A = 3, 9607 QCA_WLAN_VENDOR_PHY_MODE_11B = 4, 9608 QCA_WLAN_VENDOR_PHY_MODE_11G = 5, 9609 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6, 9610 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7, 9611 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8, 9612 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9, 9613 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10, 9614 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11, 9615 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12, 9616 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13, 9617 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14, 9618 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15, 9619 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16, 9620 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17, 9621 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18, 9622 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19, 9623 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20, 9624 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21, 9625 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22, 9626 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23, 9627 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24, 9628 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25, 9629 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26, 9630 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27, 9631 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28, 9632 }; 9633 9634 /* Attributes for data used by 9635 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION 9636 */ 9637 enum qca_wlan_vendor_attr_wifi_test_config { 9638 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0, 9639 /* 8-bit unsigned value to configure the driver to enable/disable 9640 * WMM feature. This attribute is used to configure testbed device. 9641 * 1-enable, 0-disable 9642 */ 9643 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1, 9644 9645 /* 8-bit unsigned value to configure the driver to accept/reject 9646 * the addba request from peer. This attribute is used to configure 9647 * the testbed device. 9648 * 1-accept addba, 0-reject addba 9649 */ 9650 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2, 9651 9652 /* 8-bit unsigned value to configure the driver to send or not to 9653 * send the addba request to peer. 9654 * This attribute is used to configure the testbed device. 9655 * 1-send addba, 0-do not send addba 9656 */ 9657 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3, 9658 9659 /* 8-bit unsigned value to indicate the HE fragmentation support. 9660 * Uses enum he_fragmentation_val values. 9661 * This attribute is used to configure the testbed device to 9662 * allow the advertised hardware capabilities to be downgraded 9663 * for testing purposes. 9664 */ 9665 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4, 9666 9667 /* 8-bit unsigned value to indicate the HE MCS support. 9668 * Uses enum he_mcs_config values. 9669 * This attribute is used to configure the testbed device to 9670 * allow the advertised hardware capabilities to be downgraded 9671 * for testing purposes. 9672 */ 9673 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5, 9674 9675 /* 8-bit unsigned value to configure the driver to allow or not to 9676 * allow the connection with WEP/TKIP in HT/VHT/HE modes. 9677 * This attribute is used to configure the testbed device. 9678 * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip 9679 */ 9680 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6, 9681 9682 /* 8-bit unsigned value to configure the driver to add a 9683 * new BA session or delete the existing BA session for 9684 * given TID. ADDBA command uses the buffer size and tid 9685 * configuration if user specifies the values else default 9686 * value for buffer size is used for all tids if the tid 9687 * also not specified. For DEL_BA command TID value is 9688 * required to process the command. 9689 * Uses enum qca_wlan_ba_session_config values. 9690 * This attribute is used to configure the testbed device. 9691 */ 9692 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7, 9693 9694 /* 16-bit unsigned value to configure the buffer size in addba 9695 * request and response frames. 9696 * This attribute is used to configure the testbed device. 9697 * The range of the value is 0 to 256. 9698 */ 9699 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8, 9700 9701 /* 8-bit unsigned value to configure the buffer size in addba 9702 * request and response frames. 9703 * This attribute is used to configure the testbed device. 9704 */ 9705 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9, 9706 9707 /* 8-bit unsigned value to configure the no ack policy. 9708 * To configure no ack policy, access category value 9709 * is required to process the command. 9710 * This attribute is used to configure the testbed device. 9711 * 1 - enable no ack, 0 - disable no ack 9712 */ 9713 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10, 9714 9715 /* 8-bit unsigned value to configure the AC for no ack policy 9716 * This attribute is used to configure the testbed device. 9717 * uses the enum qca_wlan_ac_type values 9718 */ 9719 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11, 9720 9721 /* 8-bit unsigned value to configure the HE LTF 9722 * This attribute is used to configure the testbed device. 9723 * Uses the enum qca_wlan_he_ltf_cfg values. 9724 */ 9725 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12, 9726 9727 /* 8-bit unsigned value to configure the tx beamformee. 9728 * This attribute is used to configure the testbed device. 9729 * 1 - enable, 0 - disable. 9730 */ 9731 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13, 9732 9733 /* 8-bit unsigned value to configure the tx beamformee number of 9734 * space-time streams. 9735 * This attribute is used to configure the testbed device. 9736 * The range of the value is 0 to 8 9737 */ 9738 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14, 9739 9740 /* 8-bit unsigned value to configure the MU EDCA params for given AC 9741 * This attribute is used to configure the testbed device. 9742 * Uses the enum qca_wlan_ac_type values. 9743 */ 9744 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15, 9745 9746 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC 9747 * To configure MU EDCA AIFSN value, MU EDCA access category value 9748 * is required to process the command. 9749 * This attribute is used to configure the testbed device. 9750 */ 9751 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16, 9752 9753 /* 8-bit unsigned value to configure the MU EDCA ECW min value for 9754 * given AC. 9755 * To configure MU EDCA ECW min value, MU EDCA access category value 9756 * is required to process the command. 9757 * This attribute is used to configure the testbed device. 9758 */ 9759 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17, 9760 9761 /* 8-bit unsigned value to configure the MU EDCA ECW max value for 9762 * given AC. 9763 * To configure MU EDCA ECW max value, MU EDCA access category value 9764 * is required to process the command. 9765 * This attribute is used to configure the testbed device. 9766 */ 9767 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18, 9768 9769 /* 8-bit unsigned value to configure the MU EDCA timer for given AC 9770 * To configure MU EDCA timer value, MU EDCA access category value 9771 * is required to process the command. 9772 * This attribute is used to configure the testbed device. 9773 */ 9774 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19, 9775 9776 /* 8-bit unsigned value to configure the HE trigger frame MAC padding 9777 * duration. 9778 * This attribute is used to configure the testbed device. 9779 * Uses the enum qca_wlan_he_mac_padding_dur values. 9780 */ 9781 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20, 9782 9783 /* 8-bit unsigned value to override the MU EDCA params to defaults 9784 * regardless of the AP beacon MU EDCA params. If it is enabled use 9785 * the default values else use the MU EDCA params from AP beacon. 9786 * This attribute is used to configure the testbed device. 9787 * 1 - enable override, 0 - disable. 9788 */ 9789 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21, 9790 9791 /* 8-bit unsigned value to configure the support for receiving 9792 * an MPDU that contains an operating mode control subfield. 9793 * This attribute is used to configure the testbed device. 9794 * 1-enable, 0-disable. 9795 */ 9796 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22, 9797 9798 /* Nested attribute values required to setup the TWT session. 9799 * enum qca_wlan_vendor_attr_twt_setup provides the necessary 9800 * information to set up the session. It contains broadcast flags, 9801 * set_up flags, trigger value, flow type, flow ID, wake interval 9802 * exponent, protection, target wake time, wake duration, wake interval 9803 * mantissa. These nested attributes are used to setup a host triggered 9804 * TWT session. 9805 */ 9806 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23, 9807 9808 /* This nested attribute is used to terminate the current TWT session. 9809 * It does not currently carry any attributes. 9810 */ 9811 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24, 9812 9813 /* This nested attribute is used to suspend the current TWT session. 9814 * It does not currently carry any attributes. 9815 */ 9816 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25, 9817 9818 /* Nested attribute values to indicate the request for resume. 9819 * This attribute is used to resume the TWT session. 9820 * enum qca_wlan_vendor_attr_twt_resume provides the necessary 9821 * parameters required to resume the TWT session. 9822 */ 9823 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26, 9824 9825 /* 8-bit unsigned value to set the HE operating mode control 9826 * (OM CTRL) Channel Width subfield. 9827 * The Channel Width subfield indicates the operating channel width 9828 * supported by the STA for both reception and transmission. 9829 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values. 9830 * This setting is cleared with the 9831 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 9832 * flag attribute to reset defaults. 9833 * This attribute is used to configure the testbed device. 9834 */ 9835 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27, 9836 9837 /* 8-bit unsigned value to configure the number of spatial 9838 * streams in HE operating mode control field. 9839 * This setting is cleared with the 9840 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 9841 * flag attribute to reset defaults. 9842 * This attribute is used to configure the testbed device. 9843 */ 9844 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28, 9845 9846 /* Flag attribute to configure the UL MU disable bit in 9847 * HE operating mode control field. 9848 * This setting is cleared with the 9849 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 9850 * flag attribute to reset defaults. 9851 * This attribute is used to configure the testbed device. 9852 */ 9853 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29, 9854 9855 /* Flag attribute to clear the previously set HE operating mode 9856 * control field configuration. 9857 * This attribute is used to configure the testbed device to reset 9858 * defaults to clear any previously set HE operating mode control 9859 * field configuration. 9860 */ 9861 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30, 9862 9863 /* 8-bit unsigned value to configure HE single user PPDU 9864 * transmission. By default this setting is disabled and it 9865 * is disabled in the reset defaults of the device configuration. 9866 * This attribute is used to configure the testbed device. 9867 * 1-enable, 0-disable 9868 */ 9869 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31, 9870 9871 /* 8-bit unsigned value to configure action frame transmission 9872 * in HE trigger based PPDU transmission. 9873 * By default this setting is disabled and it is disabled in 9874 * the reset defaults of the device configuration. 9875 * This attribute is used to configure the testbed device. 9876 * 1-enable, 0-disable 9877 */ 9878 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32, 9879 9880 /* Nested attribute to indicate HE operating mode control field 9881 * transmission. It contains operating mode control field Nss, 9882 * channel bandwidth, Tx Nsts and UL MU disable attributes. 9883 * These nested attributes are used to send HE operating mode control 9884 * with configured values. 9885 * Uses the enum qca_wlan_vendor_attr_omi_tx attributes. 9886 * This attribute is used to configure the testbed device. 9887 */ 9888 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33, 9889 9890 /* 8-bit unsigned value to configure +HTC_HE support to indicate the 9891 * support for the reception of a frame that carries an HE variant 9892 * HT Control field. 9893 * This attribute is used to configure the testbed device. 9894 * 1-enable, 0-disable 9895 */ 9896 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34, 9897 9898 /* 8-bit unsigned value to configure VHT support in 2.4G band. 9899 * This attribute is used to configure the testbed device. 9900 * 1-enable, 0-disable 9901 */ 9902 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35, 9903 9904 /* 8-bit unsigned value to configure HE testbed defaults. 9905 * This attribute is used to configure the testbed device. 9906 * 1-set the device HE capabilities to testbed defaults. 9907 * 0-reset the device HE capabilities to supported config. 9908 */ 9909 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36, 9910 9911 /* 8-bit unsigned value to configure twt request support. 9912 * This attribute is used to configure the testbed device. 9913 * 1-enable, 0-disable. 9914 */ 9915 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37, 9916 9917 /* 8-bit unsigned value to configure protection for Management 9918 * frames when PMF is enabled for the association. 9919 * This attribute is used to configure the testbed device. 9920 * 0-use the correct key, 1-use an incorrect key, 2-disable protection. 9921 */ 9922 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38, 9923 9924 /* Flag attribute to inject Disassociation frame to the connected AP. 9925 * This attribute is used to configure the testbed device. 9926 */ 9927 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39, 9928 9929 /* 8-bit unsigned value to configure an override for the RSNXE Used 9930 * subfield in the MIC control field of the FTE in FT Reassociation 9931 * Request frame. 9932 * 0 - Default behavior, 1 - override with 1, 2 - override with 0. 9933 * This attribute is used to configure the testbed device. 9934 * This attribute can be configured when STA is in disconnected or 9935 * associated state and the configuration is valid until the next 9936 * disconnection. 9937 */ 9938 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40, 9939 9940 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel 9941 * Switch Announcement) when STA is in connected state. 9942 * 0 - Default behavior, 1 - Ignore CSA. 9943 * This attribute is used to configure the testbed device. 9944 * This attribute can be configured when STA is in disconnected or 9945 * associated state and the configuration is valid until the next 9946 * disconnection. 9947 */ 9948 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41, 9949 9950 /* Nested attribute values required to configure OCI (Operating Channel 9951 * Information). Attributes defined in enum 9952 * qca_wlan_vendor_attr_oci_override are nested within this attribute. 9953 * This attribute is used to configure the testbed device. 9954 * This attribute can be configured when STA is in disconnected or 9955 * associated state and the configuration is valid until the next 9956 * disconnection. 9957 */ 9958 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42, 9959 9960 /* 8-bit unsigned value to configure the driver/firmware to ignore SA 9961 * Query timeout. If this configuration is enabled STA shall not send 9962 * Deauthentication frmae when SA Query times out (mainly, after a 9963 * channel switch when OCV is enabled). 9964 * 0 - Default behavior, 1 - Ignore SA Query timeout. 9965 * This attribute is used to configure the testbed device. 9966 * This attribute can be configured only when STA is in associated state 9967 * and the configuration is valid until the disconnection. 9968 */ 9969 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43, 9970 9971 /* 8-bit unsigned value to configure the driver/firmware to start or 9972 * stop transmitting FILS discovery frames. 9973 * 0 - Stop transmitting FILS discovery frames 9974 * 1 - Start transmitting FILS discovery frames 9975 * This attribute is used to configure the testbed device. 9976 * This attribute can be configured only in AP mode and the 9977 * configuration is valid until AP restart. 9978 */ 9979 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44, 9980 9981 /* 8-bit unsigned value to configure the driver/firmware to enable or 9982 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities 9983 * information field. 9984 * 0 - Disable full bandwidth UL MU-MIMO subfield 9985 * 1 - Enable full bandwidth UL MU-MIMO subfield 9986 * This attribute is used to configure the testbed device. 9987 */ 9988 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45, 9989 9990 /* 16-bit unsigned value to configure the driver with a specific BSS 9991 * max idle period to advertise in the BSS Max Idle Period element 9992 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames. 9993 * This attribute is used to configure the testbed device. 9994 */ 9995 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46, 9996 9997 /* 8-bit unsigned value to configure the driver to use only RU 242 tone 9998 * for data transmission. 9999 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx. 10000 * This attribute is used to configure the testbed device. 10001 */ 10002 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47, 10003 10004 /* 8-bit unsigned value to configure the driver to disable data and 10005 * management response frame transmission to test the BSS max idle 10006 * feature. 10007 * 0 - Default behavior, 1 - Disable data and management response Tx. 10008 * This attribute is used to configure the testbed device. 10009 */ 10010 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48, 10011 10012 /* 8-bit unsigned value to configure the driver/firmware to enable or 10013 * disable Punctured Preamble Rx subfield in the HE PHY capabilities 10014 * information field. 10015 * 0 - Disable Punctured Preamble Rx subfield 10016 * 1 - Enable Punctured Preamble Rx subfield 10017 * This attribute is used to configure the testbed device. 10018 */ 10019 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49, 10020 10021 /* 8-bit unsigned value to configure the driver to ignore the SAE H2E 10022 * requirement mismatch for 6 GHz connection. 10023 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch. 10024 * This attribute is used to configure the testbed device. 10025 */ 10026 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50, 10027 10028 /* 8-bit unsigned value to configure the driver to allow 6 GHz 10029 * connection with all security modes. 10030 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security 10031 * modes. 10032 * This attribute is used for testing purposes. 10033 */ 10034 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51, 10035 10036 /* 8-bit unsigned value to configure the driver to transmit data with 10037 * ER SU PPDU type. 10038 * 10039 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX. 10040 * This attribute is used for testing purposes. 10041 */ 10042 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52, 10043 10044 /* 8-bit unsigned value to configure the driver to use Data or 10045 * Management frame type for keep alive data. 10046 * Uses enum qca_wlan_keep_alive_data_type values. 10047 * 10048 * This attribute is used for testing purposes. 10049 */ 10050 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53, 10051 10052 /* 8-bit unsigned value to configure the driver to use scan request 10053 * BSSID value in Probe Request frame RA(A1) during the scan. The 10054 * driver saves this configuration and applies this setting to all user 10055 * space scan requests until the setting is cleared. If this 10056 * configuration is set, the driver uses the BSSID value from the scan 10057 * request to set the RA(A1) in the Probe Request frames during the 10058 * scan. 10059 * 10060 * 0 - Default behavior uses the broadcast RA in Probe Request frames. 10061 * 1 - Uses the scan request BSSID in RA in Probe Request frames. 10062 * This attribute is used for testing purposes. 10063 */ 10064 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54, 10065 10066 /* 8-bit unsigned value to configure the driver to enable/disable the 10067 * BSS max idle period support. 10068 * 10069 * 0 - Disable the BSS max idle support. 10070 * 1 - Enable the BSS max idle support. 10071 * This attribute is used for testing purposes. 10072 */ 10073 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55, 10074 10075 /* 8-bit unsigned value to configure the driver/firmware to enable or 10076 * disable Rx control frame to MultiBSS subfield in the HE MAC 10077 * capabilities information field. 10078 * 0 - Disable Rx control frame to MultiBSS subfield 10079 * 1 - Enable Rx control frame to MultiBSS subfield 10080 * This attribute is used to configure the testbed device. 10081 */ 10082 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56, 10083 10084 /* 8-bit unsigned value to configure the driver/firmware to enable or 10085 * disable Broadcast TWT support subfield in the HE MAC capabilities 10086 * information field. 10087 * 0 - Disable Broadcast TWT support subfield 10088 * 1 - Enable Broadcast TWT support subfield 10089 * This attribute is used to configure the testbed device. 10090 */ 10091 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57, 10092 10093 /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR 10094 * mode for 802.11be MLO capable devices. If the attribute is set to 1, 10095 * and if the FW supports this capability too, then the STA host 10096 * advertises this capability to AP over assoc request frame. This 10097 * attribute will not have any effect on legacy devices with no 802.11be 10098 * support. 10099 * 0 - Default behavior 10100 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode 10101 * This attribute is used to configure the testbed device. 10102 */ 10103 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58, 10104 10105 /* 8-bit unsigned value to configure the driver to enable/disable the 10106 * periodic sounding for Tx beamformer functionality. The default 10107 * behavior uses algorithm to do sounding based on packet stats. 10108 * 10109 * 0 - Default behavior. 10110 * 1 - Enable the periodic sounding for Tx beamformer. 10111 * This attribute is used for testing purposes. 10112 */ 10113 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59, 10114 10115 /* 8-bit unsigned value to configure beamformee SS EHT capability 10116 * to indicate the maximum number of spatial streams that the STA 10117 * can receive in an EHT sounding NDP for <= 80 MHz bandwidth. 10118 * The range of the value is 3 to 7. 10119 * This attribute is used to configure the testbed device. 10120 */ 10121 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60, 10122 10123 /* 8-bit unsigned value to configure beamformee SS EHT capability 10124 * to indicate the maximum number of spatial streams that the STA 10125 * can receive in an EHT sounding NDP for 160 MHz bandwidth. 10126 * The range of the value is 3 to 7. 10127 * This attribute is used to configure the testbed device. 10128 */ 10129 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61, 10130 10131 /* 8-bit unsigned value to configure beamformee SS EHT capability 10132 * to indicate the maximum number of spatial streams that the STA 10133 * can receive in an EHT sounding NDP for 320 MHz bandwidth. 10134 * The range of the value is 3 to 7. 10135 * This attribute is used to configure the testbed device. 10136 */ 10137 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62, 10138 10139 /* 8-bit unsigned value to configure the driver to exclude station 10140 * profile in Probe Request frame Multi-Link element. 10141 * 0 - Default behavior, sends the Probe Request frame with station 10142 * profile data included in the Multi-Link element. 10143 * 1 - Exclude station profile in Probe Request frame Multi-Link 10144 * element. 10145 * This attribute is used to configure the testbed device. 10146 */ 10147 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63, 10148 10149 /* 8-bit unsigned value to configure EHT testbed defaults. 10150 * This attribute is used to configure the testbed device. 10151 * 1 - Set the device EHT capabilities to testbed defaults. 10152 * 0 - Reset the device EHT capabilities to supported config. 10153 */ 10154 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64, 10155 10156 /* 8-bit unsigned value to indicate the EHT MCS support. 10157 * Uses enum eht_mcs_config values. 10158 * This attribute is used to configure the testbed device to 10159 * allow the advertised hardware capabilities to be downgraded 10160 * for testing purposes. 10161 */ 10162 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65, 10163 10164 /* 8-bit unsigned value to configure EHT TB Sounding Feedback 10165 * Rate Limit capability. 10166 * This attribute is used to configure the testbed device. 10167 * 0 - Indicates no maximum supported data rate limitation. 10168 * 1 - Indicates the maximum supported data rate is the lower of 10169 * the 1500 Mb/s and the maximum supported data rate. 10170 */ 10171 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66, 10172 10173 /* 8-bit unsigned value to configure the support for receiving an MPDU 10174 * that contains an EHT operating mode control subfield. 10175 * This attribute is used to configure the testbed device. 10176 * 1-enable, 0-disable. 10177 */ 10178 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67, 10179 10180 /* 8-bit unsigned value to configure the driver with EMLSR padding delay 10181 * subfield value. 10182 * 10183 * 0 - 0 us 10184 * 1 - 32 us 10185 * 2 - 64 us 10186 * 3 - 128 us 10187 * 4 - 256 us 10188 * 5-255 - Reserved 10189 * 10190 * This attribute is used for testing purposes. 10191 */ 10192 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68, 10193 10194 /* 10195 * 8-bit unsigned value to indicate the firmware to force the active MLO 10196 * links to power save mode for the configured number of beacon periods. 10197 * This allows the firmware to suspend STA links for X beacon periods 10198 * and remain asleep even if the AP advertises TIM as opposed to regular 10199 * power save mode where STA links wake up if the AP indicates that it 10200 * has buffered data to send. 10201 * This attribute is used to configure the testbed device. 10202 */ 10203 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69, 10204 10205 /* 10206 * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode 10207 * to enable simultaneous transmission of PPDUs on all active links. 10208 * 0 - Default behavior 10209 * 1 - Enter STR mode for simultaneous data transmission on all links 10210 */ 10211 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70, 10212 10213 /* Nested attribute to indicate EHT MLO links on which powersave to be 10214 * enabled. It contains link ID attributes. These nested attributes are 10215 * of the type u8 and are used to enable the powersave on associated 10216 * MLO links corresponding to the link IDs provided in the command. 10217 * This attribute is used to configure the testbed device. 10218 */ 10219 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_LINK_POWER_SAVE = 71, 10220 10221 /* 8-bit unsigned value to configure the MLD ID of the BSS whose link 10222 * info is requested in the ML Probe Request frame. In the MLO-MBSSID 10223 * testcase, STA can request information of non-Tx BSS through Tx BSS 10224 * by configuring non-Tx BSS MLD ID within the ML probe request that 10225 * is transmitted via host initiated scan request. 10226 * 10227 * This attribute is used for testing purposes. 10228 */ 10229 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MLD_ID_ML_PROBE_REQ = 72, 10230 10231 /* keep last */ 10232 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST, 10233 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX = 10234 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1, 10235 }; 10236 10237 /** 10238 * enum qca_wlan_twt_operation - Operation of the config TWT request 10239 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION. 10240 * The response for the respective operations can be either synchronous or 10241 * asynchronous (wherever specified). If synchronous, the response to this 10242 * operation is obtained in the corresponding vendor command reply to the user 10243 * space. For the asynchronous case the response is obtained as an event with 10244 * the same operation type. 10245 * 10246 * Drivers shall support either of these modes but not both simultaneously. 10247 * This support for asynchronous mode is advertised through the flag 10248 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised, 10249 * the driver shall support synchronous mode. 10250 * 10251 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured 10252 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10253 * qca_wlan_vendor_attr_twt_setup. Depending upon the 10254 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a 10255 * synchronous or asynchronous operation. 10256 * 10257 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are 10258 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10259 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation. 10260 * 10261 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are 10262 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10263 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup. 10264 * This terminate can either get triggered by the user space or can as well be 10265 * a notification from the firmware if it initiates a terminate. 10266 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, 10267 * the request from user space can either be a synchronous or asynchronous 10268 * operation. 10269 * 10270 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are 10271 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10272 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup. 10273 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, 10274 * this is either a synchronous or asynchronous operation. 10275 * 10276 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are 10277 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10278 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup. 10279 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE 10280 * request. 10281 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT 10282 * capability, this is either a synchronous or asynchronous operation. 10283 * 10284 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a 10285 * combination of suspend and resume in a single request. Required parameters 10286 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the 10287 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is 10288 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT 10289 * capability, this is either a synchronous or asynchronous operation. 10290 * 10291 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information. 10292 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT 10293 * session is setup. It's a synchronous operation. 10294 * 10295 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information. 10296 * Valid only after the TWT session is setup. It's a synchronous operation. 10297 * 10298 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its 10299 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous 10300 * operation. 10301 * 10302 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is 10303 * ready for a new TWT session setup after it issued a twt teardown. 10304 * 10305 * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required 10306 * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer 10307 * the enum qca_wlan_vendor_attr_twt_set_param. 10308 * 10309 * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT 10310 * related information for example TWT required bit in AP capabilities etc. 10311 * The reason for the notification is sent using 10312 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS. 10313 */ 10314 enum qca_wlan_twt_operation { 10315 QCA_WLAN_TWT_SET = 0, 10316 QCA_WLAN_TWT_GET = 1, 10317 QCA_WLAN_TWT_TERMINATE = 2, 10318 QCA_WLAN_TWT_SUSPEND = 3, 10319 QCA_WLAN_TWT_RESUME = 4, 10320 QCA_WLAN_TWT_NUDGE = 5, 10321 QCA_WLAN_TWT_GET_STATS = 6, 10322 QCA_WLAN_TWT_CLEAR_STATS = 7, 10323 QCA_WLAN_TWT_GET_CAPABILITIES = 8, 10324 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9, 10325 QCA_WLAN_TWT_SET_PARAM = 10, 10326 QCA_WLAN_TWT_NOTIFY = 11, 10327 }; 10328 10329 /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by 10330 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT 10331 * 10332 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: 10333 * u8 attribute. Specify the TWT operation of this request. Possible values 10334 * are defined in enum qca_wlan_twt_operation. The parameters for the 10335 * respective operation is specified through 10336 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. 10337 * 10338 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the 10339 * parameters configured for TWT. These parameters are represented by 10340 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume, 10341 * enum qca_wlan_vendor_attr_twt_set_param or 10342 * enum qca_wlan_vendor_attr_twt_stats based on the operation. 10343 * 10344 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when 10345 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY. 10346 * The values used by this attribute are defined in 10347 * enum qca_wlan_vendor_twt_status. 10348 */ 10349 enum qca_wlan_vendor_attr_config_twt { 10350 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0, 10351 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1, 10352 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2, 10353 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3, 10354 10355 /* keep last */ 10356 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST, 10357 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX = 10358 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1, 10359 }; 10360 10361 /** 10362 * qca_wlan_twt_setup_state: Represents the TWT session states. 10363 * 10364 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established. 10365 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active. 10366 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state. 10367 */ 10368 enum qca_wlan_twt_setup_state { 10369 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0, 10370 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1, 10371 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2, 10372 }; 10373 10374 /** 10375 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for 10376 * TWT (Target Wake Time) setup request. These attributes are sent as part of 10377 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and 10378 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by 10379 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10380 * 10381 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute. 10382 * Disable (flag attribute not present) - Individual TWT 10383 * Enable (flag attribute present) - Broadcast TWT. 10384 * Individual means the session is between the STA and the AP. 10385 * This session is established using a separate negotiation between 10386 * STA and AP. 10387 * Broadcast means the session is across multiple STAs and an AP. The 10388 * configuration parameters are announced in Beacon frames by the AP. 10389 * This is used in 10390 * 1. TWT SET Request and Response 10391 * 2. TWT GET Response 10392 * 10393 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8). 10394 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to 10395 * specify the TWT request type. This is used in TWT SET operation. 10396 * 10397 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute 10398 * Enable (flag attribute present) - TWT with trigger support. 10399 * Disable (flag attribute not present) - TWT without trigger support. 10400 * Trigger means the AP will send the trigger frame to allow STA to send data. 10401 * Without trigger, the STA will wait for the MU EDCA timer before 10402 * transmitting the data. 10403 * This is used in 10404 * 1. TWT SET Request and Response 10405 * 2. TWT GET Response 10406 * 10407 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8) 10408 * 0 - Announced TWT - In this mode, STA may skip few service periods to 10409 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS 10410 * NULL frame to AP. 10411 * 1 - Unannounced TWT - The STA will wakeup during every SP. 10412 * This is a required parameter for 10413 * 1. TWT SET Request and Response 10414 * 2. TWT GET Response 10415 * 10416 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8) 10417 * Flow ID is the unique identifier for each TWT session. 10418 * If not provided then dialog ID will be set to zero. 10419 * This is an optional parameter for 10420 * 1. TWT SET Request and Response 10421 * 2. TWT GET Request and Response 10422 * 3. TWT TERMINATE Request and Response 10423 * 4. TWT SUSPEND Request and Response 10424 * Flow Id values from 0 to 254 represent a single TWT session 10425 * Flow ID value of 255 represents all twt sessions for the following 10426 * 1. TWT TERMINATE Request and Response 10427 * 2. TWT SUSPEND Request and Response 10428 * 4. TWT CLEAR STATISTICS request 10429 * 5. TWT GET STATISTICS request and response 10430 * If an invalid dialog id is provided, status 10431 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 10432 * 10433 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8) 10434 * This attribute (exp) is used along with the mantissa to derive the 10435 * wake interval using the following formula: 10436 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis 10437 * Wake interval is the interval between 2 successive SP. 10438 * This is a required parameter for 10439 * 1. TWT SET Request and Response 10440 * 2. TWT GET Response 10441 * 10442 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute 10443 * Enable (flag attribute present) - Protection required. 10444 * Disable (flag attribute not present) - Protection not required. 10445 * If protection is enabled, then the AP will use protection 10446 * mechanism using RTS/CTS to self to reserve the airtime. 10447 * This is used in 10448 * 1. TWT SET Request and Response 10449 * 2. TWT GET Response 10450 * 10451 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32) 10452 * This attribute is used as the SP offset which is the offset from 10453 * TSF after which the wake happens. The units are in microseconds. If 10454 * this attribute is not provided, then the value will be set to zero. 10455 * This is an optional parameter for 10456 * 1. TWT SET Request and Response 10457 * 2. TWT GET Response 10458 * 10459 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32) 10460 * This is the duration of the service period. This is specified as 10461 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF. 10462 * This is a required parameter for 10463 * 1. TWT SET Request and Response 10464 * 2. TWT GET Response 10465 * 10466 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32) 10467 * This attribute is used to configure wake interval mantissa. 10468 * The units are in TU. 10469 * This is a required parameter for 10470 * 1. TWT SET Request and Response 10471 * 2. TWT GET Response 10472 * 10473 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8) 10474 * This field is applicable for TWT response only. 10475 * This contains status values in enum qca_wlan_vendor_twt_status 10476 * and is passed to the userspace. This is used in TWT SET operation. 10477 * This is a required parameter for 10478 * 1. TWT SET Response 10479 * 2. TWT TERMINATE Response 10480 * 3. TWT SUSPEND Response 10481 * 4. TWT RESUME Response 10482 * 5. TWT NUDGE Response 10483 * 10484 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8) 10485 * This field is applicable for TWT response only. 10486 * This field contains response type from the TWT responder and is 10487 * passed to the userspace. The values for this field are defined in 10488 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET 10489 * response. 10490 * 10491 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64) 10492 * In TWT setup command this field contains absolute TSF that will 10493 * be used by TWT requester during setup. 10494 * In TWT response this field contains absolute TSF value of the 10495 * wake time received from the TWT responder and is passed to 10496 * the userspace. 10497 * This is an optional parameter for 10498 * 1. TWT SET Request 10499 * This is a required parameter for 10500 * 1. TWT SET Response 10501 * 2. TWT GET Response 10502 * 10503 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute. 10504 * Enable (flag attribute present) - Indicates that the TWT responder 10505 * supports reception of TWT information frame from the TWT requestor. 10506 * Disable (flag attribute not present) - Indicates that the responder 10507 * doesn't support reception of TWT information frame from requestor. 10508 * This is used in 10509 * 1. TWT SET Response 10510 * 2. TWT GET Response 10511 * 10512 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address 10513 * Represents the MAC address of the peer for which the TWT session 10514 * is being configured. This is used in AP mode to represent the respective 10515 * client 10516 * In AP mode, this is a required parameter in response for 10517 * 1. TWT SET 10518 * 2. TWT GET 10519 * 3. TWT TERMINATE 10520 * 4. TWT SUSPEND 10521 * In STA mode, this is an optional parameter in request and response for 10522 * the above four TWT operations. 10523 * In AP mode, this is a required parameter in request for 10524 * 1. TWT GET 10525 * 2. TWT TERMINATE 10526 * 10527 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32) 10528 * Minimum tolerance limit of wake interval parameter in microseconds. 10529 * 10530 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32) 10531 * Maximum tolerance limit of wake interval parameter in microseconds. 10532 * 10533 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32) 10534 * Minimum tolerance limit of wake duration parameter in microseconds. 10535 * 10536 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32) 10537 * Maximum tolerance limit of wake duration parameter in microseconds. 10538 * 10539 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32) 10540 * TWT state for the given dialog id. The values for this are represented 10541 * by enum qca_wlan_twt_setup_state. 10542 * This is obtained through TWT GET operation. 10543 * 10544 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32) 10545 * This attribute is used to configure wake interval mantissa. 10546 * The unit is microseconds. This attribute, when specified, takes 10547 * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA. 10548 * This parameter is used for 10549 * 1. TWT SET Request and Response 10550 * 2. TWT GET Response 10551 * 10552 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8) 10553 * This attribute is used to configure Broadcast TWT ID. 10554 * The Broadcast TWT ID indicates a specific Broadcast TWT for which the 10555 * transmitting STA is providing TWT parameters. The allowed values are 0 to 31. 10556 * This parameter is used for 10557 * 1. TWT SET Request 10558 * 2. TWT TERMINATE Request 10559 * 10560 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8) 10561 * This attribute is used to configure Broadcast TWT recommendation. 10562 * The Broadcast TWT Recommendation subfield contains a value that indicates 10563 * recommendations on the types of frames that are transmitted by TWT 10564 * scheduled STAs and scheduling AP during the broadcast TWT SP. 10565 * The allowed values are 0 - 3. 10566 * This parameter is used for 10567 * 1. TWT SET Request 10568 * 10569 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8) 10570 * This attribute is used to configure Broadcast TWT Persistence. 10571 * The Broadcast TWT Persistence subfield indicates the number of 10572 * TBTTs during which the Broadcast TWT SPs corresponding to this 10573 * broadcast TWT Parameter set are present. The number of beacon intervals 10574 * during which the Broadcast TWT SPs are present is equal to the value in the 10575 * Broadcast TWT Persistence subfield plus 1 except that the value 255 10576 * indicates that the Broadcast TWT SPs are present until explicitly terminated. 10577 * This parameter is used for 10578 * 1. TWT SET Request 10579 * 10580 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8) 10581 * This attribute contains the value of the Responder PM Mode subfield (0 or 1) 10582 * from TWT response frame. 10583 * This parameter is used for 10584 * 1. TWT SET Response 10585 * 2. TWT GET Response 10586 * 10587 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32) 10588 * This attribute is used to configure the announce timeout value (in us) in 10589 * firmware. This timeout value is only applicable for announced TWT. If 10590 * timeout value is non-zero then firmware waits upto timeout value to use 10591 * data frame as announcement frame. If timeout value is 0 then firmware sends 10592 * explicit QoS NULL frame as announcement frame on SP start. Default value in 10593 * firmware is 0. 10594 * This parameter is used for 10595 * 1. TWT SET Request 10596 */ 10597 enum qca_wlan_vendor_attr_twt_setup { 10598 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0, 10599 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1, 10600 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2, 10601 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3, 10602 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4, 10603 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5, 10604 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6, 10605 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7, 10606 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8, 10607 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9, 10608 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10, 10609 10610 /* TWT Response only attributes */ 10611 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11, 10612 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12, 10613 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13, 10614 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14, 10615 10616 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15, 10617 10618 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16, 10619 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17, 10620 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18, 10621 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19, 10622 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20, 10623 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21, 10624 10625 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22, 10626 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23, 10627 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24, 10628 10629 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25, 10630 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26, 10631 10632 /* keep last */ 10633 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST, 10634 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX = 10635 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1, 10636 }; 10637 10638 /** 10639 * enum qca_wlan_vendor_twt_status - Represents the status of the requested 10640 * TWT operation 10641 * 10642 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed 10643 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled 10644 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used 10645 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy 10646 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist 10647 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state 10648 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters 10649 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready 10650 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted 10651 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the 10652 * request/response frame 10653 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response 10654 * frame 10655 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request 10656 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an 10657 * unknown reason 10658 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in 10659 * suspend state 10660 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to 10661 * invalid IE in the received TWT frame 10662 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from 10663 * the responder are not in the specified range 10664 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT 10665 * session due to request from the responder. Used on the TWT_TERMINATE 10666 * notification from the firmware. 10667 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT 10668 * session due to roaming. Used on the TWT_TERMINATE notification from the 10669 * firmware. 10670 * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the 10671 * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel) 10672 * Concurrency). Used on the TWT_TERMINATE notification from the firmware. 10673 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup 10674 * request due to roaming in progress. 10675 * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT 10676 * setup request due to channel switch in progress. 10677 * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup 10678 * request due to scan in progress. 10679 * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to 10680 * terminate an existing TWT session on power save exit request from userspace. 10681 * Used on the TWT_TERMINATE notification from the driver/firmware. 10682 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT 10683 * required bit in its capabilities. 10684 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared 10685 * the TWT required bit(1->0) in its capabilities. 10686 */ 10687 enum qca_wlan_vendor_twt_status { 10688 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0, 10689 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1, 10690 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2, 10691 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3, 10692 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4, 10693 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5, 10694 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6, 10695 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7, 10696 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8, 10697 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9, 10698 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10, 10699 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11, 10700 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12, 10701 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13, 10702 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14, 10703 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15, 10704 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16, 10705 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17, 10706 QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18, 10707 QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19, 10708 QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20, 10709 QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21, 10710 QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22, 10711 QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23, 10712 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24, 10713 }; 10714 10715 /** 10716 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for 10717 * TWT (Target Wake Time) resume request. These attributes are sent as part of 10718 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and 10719 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by 10720 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10721 * 10722 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8) 10723 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32) 10724 * These attributes are used as the SP offset which is the offset from TSF after 10725 * which the wake happens. The units are in microseconds. Please note that 10726 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data. 10727 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation 10728 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value 10729 * will be set to zero. 10730 * 10731 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32) 10732 * This attribute represents the next TWT subfield size. 10733 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits, 10734 * and 4 for 64 bits. 10735 * 10736 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8). 10737 * Flow ID is the unique identifier for each TWT session. This attribute 10738 * represents the respective TWT session to resume. 10739 * Flow Id values from 0 to 254 represent a single TWT session 10740 * Flow ID value of 255 represents all TWT sessions. 10741 * If an invalid dialog id is provided, status 10742 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 10743 * 10744 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address 10745 * Represents the MAC address of the peer to which TWT Resume is 10746 * being sent. This is used in AP mode to represent the respective 10747 * client and is a required parameter. In STA mode, this is an optional 10748 * parameter 10749 * 10750 */ 10751 enum qca_wlan_vendor_attr_twt_resume { 10752 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0, 10753 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1, 10754 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2, 10755 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3, 10756 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4, 10757 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5, 10758 10759 /* keep last */ 10760 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST, 10761 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX = 10762 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1, 10763 }; 10764 10765 /** 10766 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for 10767 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend 10768 * and resume in a single request. These attributes are sent as part of 10769 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10770 * 10771 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8) 10772 * Flow ID is the unique identifier for each TWT session. This attribute 10773 * represents the respective TWT session to suspend and resume. 10774 * 10775 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8) 10776 * Flow ID is the unique identifier for each TWT session. This attribute 10777 * represents the respective TWT session to suspend and resume. 10778 * Flow Id values from 0 to 254 represent a single TWT session 10779 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request 10780 * and response. 10781 * If an invalid dialog id is provided, status 10782 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 10783 * 10784 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32) 10785 * This attribute is used as the SP offset which is the offset from 10786 * TSF after which the wake happens. The units are in microseconds. 10787 * 10788 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32) 10789 * This attribute represents the next TWT subfield size. 10790 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits, 10791 * and 4 for 64 bits. 10792 * 10793 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address 10794 * Represents the MAC address of the peer to which TWT Suspend and Resume is 10795 * being sent. This is used in AP mode to represent the respective 10796 * client and is a required parameter. In STA mode, this is an optional 10797 * parameter. 10798 * 10799 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64) 10800 * This field contains absolute TSF value of the time at which twt 10801 * sesion will be resumed. 10802 * 10803 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32) 10804 * This field will be used when device supports Flexible TWT. 10805 * This field contains an offset value by which to shift the starting time 10806 * of the next service period. The value of offset can be negative or positive. 10807 * If provided, this attribute will override 10808 * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds. 10809 */ 10810 enum qca_wlan_vendor_attr_twt_nudge { 10811 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0, 10812 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1, 10813 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2, 10814 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3, 10815 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4, 10816 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5, 10817 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6, 10818 10819 /* keep last */ 10820 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST, 10821 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX = 10822 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1, 10823 }; 10824 10825 /** 10826 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for 10827 * TWT (Target Wake Time) get statistics and clear statistics request. 10828 * These attributes are sent as part of 10829 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10830 * 10831 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8) 10832 * Flow ID is the unique identifier for each TWT session. This attribute 10833 * represents the respective TWT session for get and clear TWT statistics. 10834 * Flow Id values from 0 to 254 represent a single TWT session 10835 * Flow ID value of 255 represents all TWT sessions in 10836 * 1) TWT GET STATISTICS request and response 10837 * 2) TWT CLEAR STATISTICS request 10838 * 10839 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address 10840 * Represents the MAC address of the peer for which TWT Statistics 10841 * is required. 10842 * In AP mode this is used to represent the respective 10843 * client and is a required parameter for 10844 * 1) TWT GET STATISTICS request and response 10845 * 2) TWT CLEAR STATISTICS request and response 10846 * In STA mode, this is an optional parameter. 10847 * 10848 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32) 10849 * This is the duration of the service period in microseconds. 10850 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10851 * 10852 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32) 10853 * Average of actual wake duration observed so far. Unit is microseconds. 10854 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10855 * 10856 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32) 10857 * Number of TWT service period elapsed so far. 10858 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10859 * 10860 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32) 10861 * This is the minimum value of wake duration observed across 10862 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is 10863 * microseconds. 10864 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10865 * 10866 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32) 10867 * This is the maximum value of wake duration observed across 10868 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is 10869 * microseconds. 10870 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10871 * 10872 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32) 10873 * Average number of MPDU's transmitted successfully across 10874 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10875 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10876 * 10877 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32) 10878 * Average number of MPDU's received successfully across 10879 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10880 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10881 * 10882 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32) 10883 * Average number of bytes transmitted successfully across 10884 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10885 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10886 * 10887 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32) 10888 * Average number of bytes received successfully across 10889 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10890 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10891 * 10892 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32) 10893 * Status of the TWT GET STATISTICS request. 10894 * This contains status values in enum qca_wlan_vendor_twt_status 10895 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10896 */ 10897 enum qca_wlan_vendor_attr_twt_stats { 10898 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0, 10899 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1, 10900 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2, 10901 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3, 10902 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4, 10903 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5, 10904 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6, 10905 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7, 10906 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8, 10907 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9, 10908 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10, 10909 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11, 10910 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12, 10911 10912 /* keep last */ 10913 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST, 10914 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX = 10915 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1, 10916 }; 10917 10918 /** 10919 * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities 10920 * supported by the device and peer. 10921 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES 10922 * 10923 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by 10924 * TWT non-scheduling STA. This capability is advertised in the HE 10925 * capability/Extended capabilities information element in the 10926 * Association request frame by the device. 10927 * 10928 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised 10929 * by the TWT scheduling AP. This capability is advertised in the extended 10930 * capabilities/HE capabilities information element. 10931 * 10932 * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support 10933 * for the broadcast TWT functionality. On responder side, this indicates 10934 * support for the role of broadcast TWT scheduling functionality. This 10935 * capability is advertised in the HE capabilities information element. 10936 * 10937 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule. 10938 * This capability is advertised in the HE capabilities information element. 10939 * 10940 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate 10941 * that it mandates the associated HE STAs to support TWT. This capability is 10942 * advertised by AP in the HE Operation Parameters field of the HE operation 10943 * information element. 10944 */ 10945 enum qca_wlan_twt_capa { 10946 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0), 10947 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1), 10948 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2), 10949 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3), 10950 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4), 10951 10952 }; 10953 10954 /** 10955 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT 10956 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT 10957 * operation. 10958 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address 10959 * Represents the MAC address of the peer for which the TWT capabilities 10960 * are being queried. This is used in AP mode to represent the respective 10961 * client. In STA mode, this is an optional parameter. 10962 * 10963 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16). 10964 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in 10965 * enum qca_wlan_twt_capa. 10966 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16). 10967 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in 10968 * enum qca_wlan_twt_capa. 10969 */ 10970 enum qca_wlan_vendor_attr_twt_capability { 10971 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0, 10972 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1, 10973 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2, 10974 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3, 10975 10976 /* keep last */ 10977 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST, 10978 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX = 10979 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1, 10980 }; 10981 10982 /** 10983 * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for 10984 * TWT (Target Wake Time) related parameters. It is used when 10985 * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM. 10986 * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10987 * 10988 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8) 10989 * This attribute configures AC parameters to be used for all TWT 10990 * sessions in AP mode. 10991 * Uses the enum qca_wlan_ac_type values. 10992 */ 10993 enum qca_wlan_vendor_attr_twt_set_param { 10994 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0, 10995 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1, 10996 10997 /* keep last */ 10998 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST, 10999 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX = 11000 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1, 11001 }; 11002 11003 /** 11004 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by 11005 * the TWT responder 11006 * 11007 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT 11008 * parameters that are different from TWT requesting STA suggested 11009 * or demanded TWT parameters 11010 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT 11011 * parameters that are different from TWT requesting STA TWT suggested 11012 * or demanded parameters 11013 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT 11014 * setup 11015 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT 11016 * setup. 11017 */ 11018 enum qca_wlan_vendor_twt_setup_resp_type { 11019 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1, 11020 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2, 11021 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3, 11022 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4, 11023 }; 11024 11025 /** 11026 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8) 11027 * Represents the setup type being requested for TWT. 11028 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT 11029 * parameters but relying on AP to fill the parameters during the negotiation. 11030 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested 11031 * values which the AP may accept or AP may provide alternative parameters 11032 * which the STA may accept. 11033 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any 11034 * alternate parameters than the requested ones. 11035 */ 11036 enum qca_wlan_vendor_twt_setup_req_type { 11037 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1, 11038 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2, 11039 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3, 11040 }; 11041 11042 /** 11043 * enum qca_wlan_throughput_level - Current throughput level 11044 * 11045 * Indicates the current level of throughput calculated by driver. The driver 11046 * may choose different thresholds to decide whether the throughput level is 11047 * low or medium or high based on variety of parameters like physical link 11048 * capacity of current connection, number of pakcets being dispatched per 11049 * second etc. The throughput level events might not be consistent with the 11050 * actual current throughput value being observed. 11051 * 11052 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput 11053 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput 11054 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput 11055 */ 11056 enum qca_wlan_throughput_level { 11057 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0, 11058 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1, 11059 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2, 11060 }; 11061 11062 /** 11063 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to 11064 * report throughput changes from driver to user space. enum values are used 11065 * for NL attributes sent with 11066 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command. 11067 */ 11068 enum qca_wlan_vendor_attr_throughput_change { 11069 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0, 11070 /* 11071 * Indicates the direction of throughput in which the change is being 11072 * reported. u8 attribute. Value is 0 for TX and 1 for RX. 11073 */ 11074 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1, 11075 11076 /* 11077 * Indicates the newly observed throughput level. 11078 * qca_wlan_throughput_level describes the possible range of values. 11079 * u8 attribute. 11080 */ 11081 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2, 11082 11083 /* 11084 * Indicates the driver's guidance on the new value to be set to 11085 * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver 11086 * may optionally include this attribute. 11087 */ 11088 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3, 11089 11090 /* 11091 * Indicates the driver's guidance on the new value to be set to 11092 * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible 11093 * values are from -31 to 31. Driver may optionally include this 11094 * attribute. 11095 */ 11096 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4, 11097 11098 /* 11099 * Indicates the driver's guidance on the new value to be set to 11100 * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may 11101 * optionally include this attribute. 11102 */ 11103 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5, 11104 11105 /* keep last */ 11106 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST, 11107 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX = 11108 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1, 11109 }; 11110 11111 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute 11112 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command 11113 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 11114 */ 11115 enum qca_wlan_nan_ext_subcmd_type { 11116 /* Subcmd of type NAN Enable Request */ 11117 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1, 11118 /* Subcmd of type NAN Disable Request */ 11119 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2, 11120 }; 11121 11122 /** 11123 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command 11124 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 11125 */ 11126 enum qca_wlan_vendor_attr_nan_params { 11127 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0, 11128 /* Carries NAN command for firmware component. Every vendor command 11129 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a 11130 * payload containing the NAN command. NLA_BINARY attribute. 11131 */ 11132 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1, 11133 /* Indicates the type of NAN command sent with 11134 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type 11135 * describes the possible range of values. This attribute is mandatory 11136 * if the command being issued is either 11137 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or 11138 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute. 11139 */ 11140 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2, 11141 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz 11142 * band. This attribute is mandatory when command type is 11143 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute. 11144 */ 11145 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3, 11146 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz 11147 * band. This attribute is optional and should be included when command 11148 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery 11149 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute. 11150 */ 11151 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4, 11152 11153 /* keep last */ 11154 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST, 11155 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX = 11156 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1 11157 }; 11158 11159 /** 11160 * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data 11161 * transport modes and is used by attribute 11162 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command 11163 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG. 11164 * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data. 11165 * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR 11166 * data. The data shall be encapsulated within 11167 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command 11168 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event. 11169 */ 11170 enum qca_wlan_vendor_cfr_data_transport_modes { 11171 QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0, 11172 QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1, 11173 }; 11174 11175 /** 11176 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by 11177 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor 11178 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG. 11179 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame. 11180 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame 11181 * with phase 11182 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame 11183 */ 11184 enum qca_wlan_vendor_cfr_method { 11185 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0, 11186 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1, 11187 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2, 11188 }; 11189 11190 /** 11191 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by 11192 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE. 11193 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames. 11194 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames. 11195 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames. 11196 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which 11197 * is provided by one or more of below attributes: 11198 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA 11199 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA 11200 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK 11201 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK 11202 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER 11203 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER 11204 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER 11205 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets. 11206 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames. 11207 */ 11208 enum qca_wlan_vendor_cfr_capture_type { 11209 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0, 11210 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1, 11211 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2, 11212 QCA_WLAN_VENDOR_CFR_TA_RA = 3, 11213 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4, 11214 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5, 11215 }; 11216 11217 /** 11218 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command 11219 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer 11220 * Channel Frequency Response capture parameters and enable periodic CFR 11221 * capture. 11222 * 11223 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address) 11224 * MAC address of peer. This is for CFR version 1 only. 11225 * 11226 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag) 11227 * Enable peer CFR Capture. This attribute is mandatory to 11228 * enable peer CFR capture. If this attribute is not present, 11229 * peer CFR capture is disabled. 11230 * 11231 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8) 11232 * BW of measurement, attribute uses the values in enum nl80211_chan_width 11233 * Supported values: 20, 40, 80, 80+80, 160. 11234 * Note that all targets may not support all bandwidths. 11235 * This attribute is mandatory for version 1 if attribute 11236 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 11237 * 11238 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32) 11239 * Periodicity of CFR measurement in msec. 11240 * Periodicity should be a multiple of Base timer. 11241 * Current Base timer value supported is 10 msecs (default). 11242 * 0 for one shot capture. 11243 * This attribute is mandatory for version 1 if attribute 11244 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 11245 * 11246 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8) 11247 * Method used to capture Channel Frequency Response. 11248 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method. 11249 * This attribute is mandatory for version 1 if attribute 11250 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 11251 * 11252 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag) 11253 * Enable periodic CFR capture. 11254 * This attribute is mandatory for version 1 to enable Periodic CFR capture. 11255 * If this attribute is not present, periodic CFR capture is disabled. 11256 * 11257 * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8) 11258 * Value is 1 or 2 since there are two versions of CFR capture. Two versions 11259 * can't be enabled at same time. This attribute is mandatory if target 11260 * support both versions and use one of them. 11261 * 11262 * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32) 11263 * This attribute is mandatory for version 2 if 11264 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used. 11265 * Bits 15:0 Bit fields indicating which group to be enabled. 11266 * Bits 31:16 Reserved for future use. 11267 * 11268 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32) 11269 * CFR capture duration in microsecond. This attribute is mandatory for 11270 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used. 11271 * 11272 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32) 11273 * CFR capture interval in microsecond. This attribute is mandatory for 11274 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used. 11275 * 11276 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32) 11277 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type. 11278 * This attribute is mandatory for version 2. 11279 * 11280 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64) 11281 * Bit fields indicating which user in the current UL MU 11282 * transmissions are enabled for CFR capture. Bits 36 to 0 indicating 11283 * user indexes for 37 users in a UL MU transmission. If bit 0 is set, 11284 * then the CFR capture will happen for user index 0 in the current 11285 * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU 11286 * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use. 11287 * This is for CFR version 2 only. 11288 * 11289 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32) 11290 * Indicates the number of consecutive Rx packets to be skipped 11291 * before CFR capture is enabled again. 11292 * This is for CFR version 2 only. 11293 * 11294 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing 11295 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes. 11296 * 11297 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing 11298 * the following GROUP attributes: 11299 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER, 11300 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA, 11301 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA, 11302 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK, 11303 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK, 11304 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS, 11305 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW, 11306 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER, 11307 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER, 11308 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER 11309 * 11310 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32) 11311 * Target support multiple groups for some configurations. Group number could be 11312 * any value between 0 and 15. This is for CFR version 2 only. 11313 * 11314 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address) 11315 * Transmitter address which is used to filter packets, this MAC address takes 11316 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. 11317 * This is for CFR version 2 only. 11318 * 11319 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address) 11320 * Receiver address which is used to filter packets, this MAC address takes 11321 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. 11322 * This is for CFR version 2 only. 11323 * 11324 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address) 11325 * Mask of transmitter address which is used to filter packets. 11326 * This is for CFR version 2 only. 11327 * 11328 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address) 11329 * Mask of receiver address which is used to filter packets. 11330 * This is for CFR version 2 only. 11331 * 11332 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32) 11333 * Indicates packets with a specific NSS will be filtered for CFR capture. 11334 * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will 11335 * be done for packets matching the NSS specified within this bitmask. 11336 * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS: 11337 * bit 0 : NSS 1 11338 * bit 1 : NSS 2 11339 * ... 11340 * bit 7 : NSS 8 11341 * 11342 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32) 11343 * Indicates packets with a specific BW will be filtered for CFR capture. 11344 * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture 11345 * will be done for packets matching the bandwidths specified within this 11346 * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth 11347 * numerated in enum nl80211_band (although not all bands may be supported 11348 * by a given device). 11349 * 11350 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32) 11351 * Management packets matching the subtype filter categories will be 11352 * filtered in by MAC for CFR capture. This is a bitmask, in which each bit 11353 * represents the corresponding mgmt subtype value as per 11354 * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields. 11355 * For example, beacon frame control type is 8, its value is 1<<8 = 0x100. 11356 * This is for CFR version 2 only 11357 * 11358 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32) 11359 * Control packets matching the subtype filter categories will be 11360 * filtered in by MAC for CFR capture. This is a bitmask, in which each bit 11361 * represents the corresponding control subtype value as per 11362 * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields. 11363 * This is for CFR version 2 only. 11364 * 11365 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32) 11366 * Data packets matching the subtype filter categories will be 11367 * filtered in by MAC for CFR capture. This is a bitmask, in which each bit 11368 * represents the corresponding data subtype value as per 11369 * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields. 11370 * This is for CFR version 2 only. 11371 * 11372 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8) 11373 * Userspace can use this attribute to specify the driver about which transport 11374 * mode shall be used by the driver to send CFR data to userspace. Uses values 11375 * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is 11376 * not present, driver shall choose the default transport mechanism which is 11377 * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS. 11378 * 11379 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32) 11380 * Userspace can use this attribute to specify the nl port id of the application 11381 * which receives the CFR data and processes it further so that the drivers can 11382 * unicast the NL events to a specific application. Optionally included when 11383 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to 11384 * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers 11385 * shall multicast the netlink events when this attribute is not included. 11386 * 11387 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY). 11388 * This attribute will be used by the driver to encapsulate and send CFR data 11389 * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an 11390 * asynchronous event when the driver is configured to send CFR data using NL 11391 * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS 11392 * 11393 */ 11394 enum qca_wlan_vendor_peer_cfr_capture_attr { 11395 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0, 11396 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1, 11397 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2, 11398 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3, 11399 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4, 11400 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5, 11401 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6, 11402 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7, 11403 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8, 11404 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9, 11405 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10, 11406 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11, 11407 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12, 11408 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13, 11409 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14, 11410 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15, 11411 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16, 11412 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17, 11413 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18, 11414 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19, 11415 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20, 11416 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21, 11417 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22, 11418 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23, 11419 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24, 11420 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25, 11421 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26, 11422 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27, 11423 QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28, 11424 11425 /* Keep last */ 11426 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST, 11427 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX = 11428 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1, 11429 }; 11430 11431 /** 11432 * enum qca_coex_config_profiles - This enum defines different types of 11433 * traffic streams that can be prioritized one over the other during coex 11434 * scenarios. 11435 * The types defined in this enum are categorized in the below manner. 11436 * 0 - 31 values corresponds to WLAN 11437 * 32 - 63 values corresponds to BT 11438 * 64 - 95 values corresponds to Zigbee 11439 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA 11440 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA 11441 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA 11442 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA 11443 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA 11444 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP 11445 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP 11446 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP 11447 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP 11448 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP 11449 * @QCA_BT_A2DP: Prioritize BT A2DP 11450 * @QCA_BT_BLE: Prioritize BT BLE 11451 * @QCA_BT_SCO: Prioritize BT SCO 11452 * @QCA_ZB_LOW: Prioritize Zigbee Low 11453 * @QCA_ZB_HIGH: Prioritize Zigbee High 11454 */ 11455 enum qca_coex_config_profiles { 11456 /* 0 - 31 corresponds to WLAN */ 11457 QCA_WIFI_STA_DISCOVERY = 0, 11458 QCA_WIFI_STA_CONNECTION = 1, 11459 QCA_WIFI_STA_CLASS_3_MGMT = 2, 11460 QCA_WIFI_STA_DATA = 3, 11461 QCA_WIFI_STA_ALL = 4, 11462 QCA_WIFI_SAP_DISCOVERY = 5, 11463 QCA_WIFI_SAP_CONNECTION = 6, 11464 QCA_WIFI_SAP_CLASS_3_MGMT = 7, 11465 QCA_WIFI_SAP_DATA = 8, 11466 QCA_WIFI_SAP_ALL = 9, 11467 QCA_WIFI_CASE_MAX = 31, 11468 /* 32 - 63 corresponds to BT */ 11469 QCA_BT_A2DP = 32, 11470 QCA_BT_BLE = 33, 11471 QCA_BT_SCO = 34, 11472 QCA_BT_CASE_MAX = 63, 11473 /* 64 - 95 corresponds to Zigbee */ 11474 QCA_ZB_LOW = 64, 11475 QCA_ZB_HIGH = 65, 11476 QCA_ZB_CASE_MAX = 95, 11477 /* 0xff is default value if the u8 profile value is not set. */ 11478 QCA_PROFILE_DEFAULT_VALUE = 255 11479 }; 11480 11481 /** 11482 * enum qca_vendor_attr_coex_config_types - Coex configurations types. 11483 * This enum defines the valid set of values of coex configuration types. These 11484 * values may used by attribute 11485 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE. 11486 * 11487 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the 11488 * weights to default values. 11489 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config 11490 * weights with configurability value. 11491 */ 11492 enum qca_vendor_attr_coex_config_types { 11493 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0, 11494 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1, 11495 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2, 11496 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX 11497 }; 11498 11499 /** 11500 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config 11501 * attributes 11502 * Attributes for data used by 11503 * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG 11504 * 11505 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute. 11506 * Indicate config type. 11507 * the config types are 32-bit values from qca_vendor_attr_coex_config_types 11508 * 11509 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute. 11510 * Indicate the Priority 1 profiles. 11511 * the profiles are 8-bit values from enum qca_coex_config_profiles 11512 * In same priority level, maximum to 4 profiles can be set here. 11513 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute. 11514 * Indicate the Priority 2 profiles. 11515 * the profiles are 8-bit values from enum qca_coex_config_profiles 11516 * In same priority level, maximum to 4 profiles can be set here. 11517 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute. 11518 * Indicate the Priority 3 profiles. 11519 * the profiles are 8-bit values from enum qca_coex_config_profiles 11520 * In same priority level, maximum to 4 profiles can be set here. 11521 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute. 11522 * Indicate the Priority 4 profiles. 11523 * the profiles are 8-bit values from enum qca_coex_config_profiles 11524 * In same priority level, maximum to 4 profiles can be set here. 11525 * NOTE: 11526 * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority 11527 * arrangement: 11528 * 1: In the same u32 attribute(priority x), the profiles enum values own 11529 * same priority level. 11530 * 2: 0xff is default value if the u8 profile value is not set. 11531 * 3: max to 4 rules/profiles in same priority level. 11532 * 4: max to 4 priority level (priority 1 - priority 4) 11533 * 5: one priority level only supports one scenario from WLAN/BT/ZB, 11534 * hybrid rules not support. 11535 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will 11536 * remain blank to reset all parameters. 11537 * For example: 11538 * 11539 * If the attributes as follow: 11540 * priority 1: 11541 * ------------------------------------ 11542 * | 0xff | 0 | 1 | 2 | 11543 * ------------------------------------ 11544 * priority 2: 11545 * ------------------------------------- 11546 * | 0xff | 0xff | 0xff | 32 | 11547 * ------------------------------------- 11548 * priority 3: 11549 * ------------------------------------- 11550 * | 0xff | 0xff | 0xff | 65 | 11551 * ------------------------------------- 11552 * then it means: 11553 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION 11554 * owns same priority level. 11555 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION 11556 * has priority over BT_A2DP and ZB_HIGH. 11557 * 3: BT_A2DP has priority over ZB_HIGH. 11558 */ 11559 11560 enum qca_vendor_attr_coex_config_three_way { 11561 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0, 11562 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1, 11563 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2, 11564 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3, 11565 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4, 11566 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5, 11567 11568 /* Keep last */ 11569 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST, 11570 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX = 11571 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1, 11572 }; 11573 11574 /** 11575 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type 11576 * This enum defines the valid set of values of peer stats cache types. These 11577 * values are used by attribute 11578 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID. 11579 * 11580 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics. 11581 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics. 11582 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn 11583 * statistics 11584 */ 11585 enum qca_vendor_attr_peer_stats_cache_type { 11586 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0, 11587 11588 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS, 11589 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS, 11590 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS, 11591 }; 11592 11593 /** 11594 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines 11595 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH 11596 * Attributes are required to flush peer rate statistics from driver to 11597 * user application. 11598 * 11599 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute 11600 * Indicate peer stats cache type. 11601 * The statistics types are 32-bit values from 11602 * qca_vendor_attr_peer_stats_cache_type 11603 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array 11604 * of size 6, representing peer mac address. 11605 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute 11606 * containing buffer of statistics to send event to application layer entity. 11607 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute 11608 * representing cookie for peer unique session. 11609 */ 11610 enum qca_wlan_vendor_attr_peer_stats_cache_params { 11611 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0, 11612 11613 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1, 11614 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2, 11615 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3, 11616 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4, 11617 11618 /* Keep last */ 11619 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST, 11620 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX = 11621 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1 11622 }; 11623 11624 /** 11625 * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee. 11626 * this enum defines all the possible state of zigbee, which can be 11627 * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE. 11628 * 11629 * @ZIGBEE_IDLE: zigbee in idle state 11630 * @ZIGBEE_FORM_NETWORK: zibee forming network 11631 * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network 11632 * @ZIGBEE_JOIN: zigbee joining network 11633 * @ZIGBEE_NETWORK_UP: zigbee network is up 11634 * @ZIGBEE_HMI: zigbee in HMI mode 11635 */ 11636 enum qca_mpta_helper_attr_zigbee_state { 11637 ZIGBEE_IDLE = 0, 11638 ZIGBEE_FORM_NETWORK = 1, 11639 ZIGBEE_WAIT_JOIN = 2, 11640 ZIGBEE_JOIN = 3, 11641 ZIGBEE_NETWORK_UP = 4, 11642 ZIGBEE_HMI = 5, 11643 }; 11644 11645 /** 11646 * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by 11647 * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG. 11648 */ 11649 enum qca_mpta_helper_vendor_attr { 11650 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0, 11651 /* Optional attribute used to update zigbee state. 11652 * enum qca_mpta_helper_attr_zigbee_state. 11653 * NLA_U32 attribute. 11654 */ 11655 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1, 11656 /* Optional attribute used to configure wlan duration for Shape-OCS 11657 * during interrupt. 11658 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION. 11659 * Value range 0 ~ 300 (ms). 11660 * NLA_U32 attribute. 11661 */ 11662 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2, 11663 /* Optional attribute used to configure non wlan duration for Shape-OCS 11664 * during interrupt. 11665 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION. 11666 * Value range 0 ~ 300 (ms). 11667 * NLA_U32 attribute. 11668 */ 11669 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3, 11670 /* Optional attribute used to configure wlan duration for Shape-OCS 11671 * monitor period. 11672 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION. 11673 * Value range 0 ~ 300 (ms) 11674 * NLA_U32 attribute 11675 */ 11676 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4, 11677 /* Optional attribute used to configure non wlan duration for Shape-OCS 11678 * monitor period. 11679 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION. 11680 * Value range 0 ~ 300 (ms) 11681 * NLA_U32 attribute 11682 */ 11683 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5, 11684 /* Optional attribute used to configure ocs interrupt duration. 11685 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION. 11686 * Value range 1000 ~ 20000 (ms) 11687 * NLA_U32 attribute 11688 */ 11689 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6, 11690 /* Optional attribute used to configure ocs monitor duration. 11691 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION. 11692 * Value range 1000 ~ 20000 (ms) 11693 * NLA_U32 attribute 11694 */ 11695 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7, 11696 /* Optional attribute used to notify wlan FW current zigbee channel. 11697 * Value range 11 ~ 26 11698 * NLA_U32 attribute 11699 */ 11700 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8, 11701 /* Optional attribute used to configure wlan mute duration. 11702 * Value range 0 ~ 400 (ms) 11703 * NLA_U32 attribute 11704 */ 11705 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9, 11706 11707 /* keep last */ 11708 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST, 11709 QCA_MPTA_HELPER_VENDOR_ATTR_MAX = 11710 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1 11711 }; 11712 11713 /** 11714 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of 11715 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be 11716 * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE. 11717 * 11718 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver 11719 * to request the driver to start reporting Beacon frames. 11720 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver 11721 * to request the driver to stop reporting Beacon frames. 11722 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to 11723 * userspace to report received Beacon frames. 11724 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace 11725 * to indicate that the driver is going to pause reporting Beacon frames. 11726 */ 11727 enum qca_wlan_vendor_beacon_reporting_op_types { 11728 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0, 11729 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1, 11730 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2, 11731 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3, 11732 }; 11733 11734 /** 11735 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different 11736 * types of reasons for which the driver is pausing reporting Beacon frames. 11737 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON. 11738 * 11739 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified 11740 * reasons. 11741 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the 11742 * driver/firmware is starting a scan. 11743 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the 11744 * driver/firmware disconnects from the ESS and indicates the disconnection to 11745 * userspace (non-seamless roaming case). This reason code will be used by the 11746 * driver/firmware to indicate stopping of beacon report events. Userspace 11747 * will need to start beacon reporting again (if desired) by sending vendor 11748 * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with 11749 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to 11750 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is 11751 * completed. 11752 */ 11753 enum qca_wlan_vendor_beacon_reporting_pause_reasons { 11754 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0, 11755 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1, 11756 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2, 11757 }; 11758 11759 /* 11760 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used 11761 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING. 11762 */ 11763 enum qca_wlan_vendor_attr_beacon_reporting_params { 11764 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0, 11765 /* Specifies the type of operation that the vendor command/event is 11766 * intended for. Possible values for this attribute are defined in 11767 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute. 11768 */ 11769 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1, 11770 /* Optionally set by userspace to request the driver to report Beacon 11771 * frames using asynchronous vendor events when the 11772 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11773 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. 11774 * If this flag is not set, the driver will only update Beacon frames 11775 * in cfg80211 scan cache but not send any vendor events. 11776 */ 11777 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2, 11778 /* Optionally used by userspace to request the driver/firmware to 11779 * report Beacon frames periodically when the 11780 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11781 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. 11782 * u32 attribute, indicates the period of Beacon frames to be reported 11783 * and in the units of beacon interval. 11784 * If this attribute is missing in the command, then the default value 11785 * of 1 will be assumed by driver, i.e., to report every Beacon frame. 11786 * Zero is an invalid value. 11787 * If a valid value is received for this attribute, the driver will 11788 * update the cfg80211 scan cache periodically as per the value 11789 * received in this attribute in addition to updating the cfg80211 scan 11790 * cache when there is significant change in Beacon frame IEs. 11791 */ 11792 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3, 11793 /* Used by the driver to encapsulate the SSID when the 11794 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11795 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11796 * u8 array with a maximum size of 32. 11797 * 11798 * When generating beacon report from non-MBSSID Beacon frame, the SSID 11799 * will be taken from the SSID element of the received Beacon frame. 11800 * 11801 * When generating beacon report from Multiple BSSID Beacon frame and 11802 * if the BSSID of the current connected BSS matches the BSSID of the 11803 * transmitting BSS, the SSID will be taken from the SSID element of 11804 * the received Beacon frame. 11805 * 11806 * When generating beacon report from Multiple BSSID Beacon frame and 11807 * if the BSSID of the current connected BSS matches the BSSID of one 11808 * of the* nontransmitting BSSs, the SSID will be taken from the SSID 11809 * field included in the nontransmitted BSS profile whose derived BSSI 11810 * is same as the BSSID of the current connected BSS. When there is no 11811 * nontransmitted BSS profile whose derived BSSID is same as the BSSID 11812 * of current connected* BSS, this attribute will not be present. 11813 */ 11814 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4, 11815 /* Used by the driver to encapsulate the BSSID of the AP to which STA 11816 * is currently connected to when the 11817 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11818 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a 11819 * fixed size of 6 bytes. 11820 * 11821 * When generating beacon report from a Multiple BSSID beacon and the 11822 * current connected BSSID matches one of the nontransmitted BSSIDs in 11823 * a Multiple BSSID set, this BSSID will be that particular 11824 * nontransmitted BSSID and not the transmitted BSSID (i.e., the 11825 * transmitting address of the Beacon frame). 11826 */ 11827 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5, 11828 /* Used by the driver to encapsulate the frequency in MHz on which 11829 * the Beacon frame was received when the 11830 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is 11831 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11832 * u32 attribute. 11833 */ 11834 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6, 11835 /* Used by the driver to encapsulate the Beacon interval 11836 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11837 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11838 * u16 attribute. The value will be copied from the Beacon frame and 11839 * the units are TUs. 11840 */ 11841 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7, 11842 /* Used by the driver to encapsulate the Timestamp field from the 11843 * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE 11844 * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11845 * u64 attribute. 11846 */ 11847 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8, 11848 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this 11849 * Beacon frame is received in the driver when the 11850 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11851 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in 11852 * the units of nanoseconds. This value is expected to have accuracy of 11853 * about 10 ms. 11854 */ 11855 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9, 11856 /* Used by the driver to encapsulate the IEs of the Beacon frame from 11857 * which this event is generated when the 11858 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11859 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array. 11860 */ 11861 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10, 11862 /* Used by the driver to specify the reason for the driver/firmware to 11863 * pause sending beacons to userspace when the 11864 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11865 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are 11866 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32 11867 * attribute. 11868 */ 11869 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11, 11870 /* Used by the driver to specify whether the driver will automatically 11871 * resume reporting beacon events to userspace later (for example after 11872 * the ongoing off-channel activity is completed etc.) when the 11873 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11874 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute. 11875 */ 11876 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12, 11877 /* Optionally set by userspace to request the driver not to resume 11878 * beacon reporting after a pause is completed, when the 11879 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11880 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. 11881 * If this flag is set, the driver will not resume beacon reporting 11882 * after any pause in beacon reporting is completed. Userspace has to 11883 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order 11884 * to initiate beacon reporting again. If this flag is set in the recent 11885 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the 11886 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any) 11887 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be 11888 * set by the driver. Setting this flag until and unless there is a 11889 * specific need is not recommended as there is a chance of some beacons 11890 * received after pause command and next start command being not 11891 * reported. 11892 */ 11893 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13, 11894 11895 /* Keep last */ 11896 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST, 11897 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX = 11898 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1 11899 }; 11900 11901 /** 11902 * enum qca_vendor_oem_device_type - Represents the target device in firmware. 11903 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO. 11904 * 11905 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for 11906 * a virtual device. 11907 * 11908 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for 11909 * a physical device. 11910 */ 11911 enum qca_vendor_oem_device_type { 11912 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0, 11913 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1, 11914 }; 11915 11916 /* 11917 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command 11918 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA. 11919 * 11920 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is 11921 * used to set/query the data to/from the firmware. On query, the same 11922 * attribute is used to carry the respective data in the reply sent by the 11923 * driver to userspace. The request to set/query the data and the format of the 11924 * respective data from the firmware are embedded in the attribute. The 11925 * maximum size of the attribute payload is 1024 bytes. 11926 * 11927 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed 11928 * based on this field. This optional attribute is included to specify whether 11929 * the device type is a virtual device or a physical device for the command. 11930 * This attribute can be omitted for a virtual device (default) command. 11931 * This u8 attribute is used to carry information for the device type using 11932 * values defined by enum qca_vendor_oem_device_type. 11933 * 11934 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED 11935 * attribute when the data is queried from the firmware. 11936 * 11937 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute 11938 * is set when the userspace queries data from the firmware. This attribute 11939 * should not be set when userspace sets the OEM data to the firmware. 11940 */ 11941 enum qca_wlan_vendor_attr_oem_data_params { 11942 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0, 11943 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1, 11944 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2, 11945 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3, 11946 11947 /* keep last */ 11948 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST, 11949 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX = 11950 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1 11951 }; 11952 11953 /** 11954 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be 11955 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT. 11956 * 11957 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required 11958 * Nested attribute containing multiple ranges with following attributes: 11959 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START, 11960 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and 11961 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM. 11962 * 11963 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32) 11964 * Starting center frequency in MHz. 11965 * 11966 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32) 11967 * Ending center frequency in MHz. 11968 * 11969 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM: 11970 * s32 attribute, optional. It is a per frequency range attribute. 11971 * The maximum TX power limit from user space is to be applied on an 11972 * unrestricted interface for corresponding frequency range. It is also 11973 * possible that the actual TX power may be even lower than this cap due to 11974 * other considerations such as regulatory compliance, SAR, etc. In absence of 11975 * this attribute the driver shall follow current behavior which means 11976 * interface (SAP/P2P) function can keep operating on an unsafe channel with TX 11977 * power derived by the driver based on regulatory/SAR during interface up. 11978 * 11979 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK: 11980 * u32 attribute, optional. Indicates all the interface types which are 11981 * restricted for all frequency ranges provided in 11982 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and 11983 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END. 11984 * This attribute encapsulates bitmasks of interface types defined in 11985 * enum nl80211_iftype. If an interface is marked as restricted the driver must 11986 * move to a safe channel and if no safe channel is available the driver shall 11987 * terminate that interface functionality. In absence of this attribute, 11988 * interface (SAP/P2P) can still continue operating on an unsafe channel with 11989 * TX power limit derived from either 11990 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on 11991 * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM 11992 * is not provided. 11993 */ 11994 enum qca_wlan_vendor_attr_avoid_frequency_ext { 11995 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0, 11996 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1, 11997 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2, 11998 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3, 11999 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4, 12000 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5, 12001 12002 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST, 12003 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX = 12004 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1 12005 }; 12006 12007 /* 12008 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command 12009 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE. 12010 */ 12011 enum qca_wlan_vendor_attr_add_sta_node_params { 12012 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0, 12013 /* 6 byte MAC address of STA */ 12014 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1, 12015 /* Authentication algorithm used by the station of size u16; 12016 * defined in enum nl80211_auth_type. 12017 */ 12018 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2, 12019 12020 /* 12021 * This flag attribute is set if the node being added is an 12022 * MLD STA node. 12023 */ 12024 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_IS_ML = 3, 12025 12026 /* keep last */ 12027 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST, 12028 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX = 12029 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1 12030 }; 12031 12032 /** 12033 * enum qca_btc_chain_mode - Specifies BT coex chain mode. 12034 * This enum defines the valid set of values of BT coex chain mode. 12035 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of 12036 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. 12037 * 12038 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared. 12039 * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are 12040 * separated, hybrid mode. 12041 * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are 12042 * separated, fixed FDD mode. 12043 */ 12044 enum qca_btc_chain_mode { 12045 QCA_BTC_CHAIN_SHARED = 0, 12046 QCA_BTC_CHAIN_SEPARATED_HYBRID = 1, 12047 QCA_BTC_CHAIN_SEPARATED_FDD = 2, 12048 }; 12049 12050 /* deprecated legacy name */ 12051 #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID 12052 12053 /** 12054 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex 12055 * chain mode. 12056 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. 12057 * 12058 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute. 12059 * Indicates the BT coex chain mode, are 32-bit values from 12060 * enum qca_btc_chain_mode. This attribute is mandatory. 12061 * 12062 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute. 12063 * If set, vdev should be restarted when BT coex chain mode is updated. 12064 * This attribute is optional. 12065 */ 12066 enum qca_vendor_attr_btc_chain_mode { 12067 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0, 12068 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1, 12069 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2, 12070 12071 /* Keep last */ 12072 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST, 12073 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX = 12074 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1, 12075 }; 12076 12077 /** 12078 * enum qca_vendor_wlan_sta_flags - Station feature flags 12079 * Bits will be set to 1 if the corresponding features are enabled. 12080 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station 12081 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled 12082 for the station 12083 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled 12084 for the station 12085 */ 12086 enum qca_vendor_wlan_sta_flags { 12087 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0), 12088 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1), 12089 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2), 12090 }; 12091 12092 /** 12093 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval 12094 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval 12095 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval 12096 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE 12097 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE 12098 */ 12099 enum qca_vendor_wlan_sta_guard_interval { 12100 QCA_VENDOR_WLAN_STA_GI_800_NS = 0, 12101 QCA_VENDOR_WLAN_STA_GI_400_NS = 1, 12102 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2, 12103 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3, 12104 }; 12105 12106 /** 12107 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes 12108 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command. 12109 * 12110 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC: 12111 * Required attribute in request for AP mode only, 6-byte MAC address, 12112 * corresponding to the station's MAC address for which information is 12113 * requested. For STA mode this is not required as the info always correspond 12114 * to the self STA and the current/last association. 12115 * 12116 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS: 12117 * Optionally used in response, u32 attribute, contains a bitmap of different 12118 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only. 12119 * 12120 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL: 12121 * Optionally used in response, u32 attribute, possible values are defined in 12122 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only. 12123 * Guard interval used by the station. 12124 * 12125 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT: 12126 * Optionally used in response, u32 attribute, used in AP mode only. 12127 * Value indicates the number of data frames received from station with retry 12128 * bit set to 1 in FC. 12129 * 12130 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT: 12131 * Optionally used in response, u32 attribute, used in AP mode only. 12132 * Counter for number of data frames with broadcast or multicast address in 12133 * the destination address received from the station. 12134 * 12135 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED: 12136 * Optionally used in response, u32 attribute, used in both STA and AP modes. 12137 * Value indicates the number of data frames successfully transmitted only 12138 * after retrying the packets and for which the TX status has been updated 12139 * back to host from target. 12140 * 12141 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED: 12142 * Optionally used in response, u32 attribute, used in both STA and AP mode. 12143 * Value indicates the number of data frames not transmitted successfully even 12144 * after retrying the packets for the number of times equal to the total number 12145 * of retries allowed for that packet and for which the TX status has been 12146 * updated back to host from target. 12147 * 12148 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL: 12149 * Optionally used in response, u32 attribute, used in AP mode only. 12150 * Counter in the target for the number of data frames successfully transmitted 12151 * to the station. 12152 * 12153 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY: 12154 * Optionally used in response, u32 attribute, used in AP mode only. 12155 * Value indicates the number of data frames successfully transmitted only 12156 * after retrying the packets. 12157 * 12158 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED: 12159 * Optionally used in response, u32 attribute, used in both STA & AP mode. 12160 * Value indicates the number of data frames not transmitted successfully even 12161 * after retrying the packets for the number of times equal to the total number 12162 * of retries allowed for that packet. 12163 * 12164 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in 12165 * the STA mode only. Represent the number of probe requests sent by the STA 12166 * while attempting to roam on missing certain number of beacons from the 12167 * connected AP. If queried in the disconnected state, this represents the 12168 * count for the last connected state. 12169 * 12170 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in 12171 * the STA mode. Represent the number of probe responses received by the station 12172 * while attempting to roam on missing certain number of beacons from the 12173 * connected AP. When queried in the disconnected state, this represents the 12174 * count when in last connected state. 12175 * 12176 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the 12177 * STA mode only. Represents the total number of frames sent out by STA 12178 * including Data, ACK, RTS, CTS, Control Management. This data is maintained 12179 * only for the connect session. Represents the count of last connected session, 12180 * when queried in the disconnected state. 12181 * 12182 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode. 12183 * Total number of RTS sent out by the STA. This data is maintained per connect 12184 * session. Represents the count of last connected session, when queried in the 12185 * disconnected state. 12186 * 12187 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the 12188 * STA mode.Represent the number of RTS transmission failure that reach retry 12189 * limit. This data is maintained per connect session. Represents the count of 12190 * last connected session, when queried in the disconnected state. 12191 * 12192 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in 12193 * the STA mode. Represent the total number of non aggregated frames transmitted 12194 * by the STA. This data is maintained per connect session. Represents the count 12195 * of last connected session, when queried in the disconnected state. 12196 * 12197 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the 12198 * STA mode. Represent the total number of aggregated frames transmitted by the 12199 * STA. This data is maintained per connect session. Represents the count of 12200 * last connected session, when queried in the disconnected state. 12201 * 12202 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in 12203 * the STA mode. Represents the number of received frames with a good PLCP. This 12204 * data is maintained per connect session. Represents the count of last 12205 * connected session, when queried in the disconnected state. 12206 * 12207 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32, 12208 * used in the STA mode. Represents the number of occasions that no valid 12209 * delimiter is detected by A-MPDU parser. This data is maintained per connect 12210 * session. Represents the count of last connected session, when queried in the 12211 * disconnected state. 12212 * 12213 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the 12214 * STA mode. Represents the number of frames for which CRC check failed in the 12215 * MAC. This data is maintained per connect session. Represents the count of 12216 * last connected session, when queried in the disconnected state. 12217 * 12218 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the 12219 * STA mode. Represents the number of unicast ACKs received with good FCS. This 12220 * data is maintained per connect session. Represents the count of last 12221 * connected session, when queried in the disconnected state. 12222 * 12223 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA 12224 * mode. Represents the number of received Block Acks. This data is maintained 12225 * per connect session. Represents the count of last connected session, when 12226 * queried in the disconnected state. 12227 * 12228 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA 12229 * mode. Represents the number of beacons received from the connected BSS. This 12230 * data is maintained per connect session. Represents the count of last 12231 * connected session, when queried in the disconnected state. 12232 * 12233 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the 12234 * STA mode. Represents the number of beacons received by the other BSS when in 12235 * connected state (through the probes done by the STA). This data is maintained 12236 * per connect session. Represents the count of last connected session, when 12237 * queried in the disconnected state. 12238 * 12239 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in 12240 * the STA mode. Represents the number of received DATA frames with good FCS and 12241 * matching Receiver Address when in connected state. This data is maintained 12242 * per connect session. Represents the count of last connected session, when 12243 * queried in the disconnected state. 12244 * 12245 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the 12246 * STA mode. Represents the number of RX Data multicast frames dropped by the HW 12247 * when in the connected state. This data is maintained per connect session. 12248 * Represents the count of last connected session, when queried in the 12249 * disconnected state. 12250 * 12251 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the 12252 * STA mode. This represents the target power in dBm for the transmissions done 12253 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per 12254 * connect session. Represents the count of last connected session, when 12255 * queried in the disconnected state. 12256 * 12257 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the 12258 * STA mode. This represents the Target power in dBm for transmissions done to 12259 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect 12260 * session. Represents the count of last connected session, when queried in the 12261 * disconnected state. 12262 * 12263 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the 12264 * STA mode. This represents the Target power in dBm for transmissions done to 12265 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session. 12266 * Represents the count of last connected session, when queried in the 12267 * disconnected state. 12268 * 12269 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the 12270 * STA mode. This represents the Target power in dBm for transmissions done to 12271 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect 12272 * session. Represents the count of last connected session, when queried in 12273 * the disconnected state. 12274 * 12275 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the 12276 * STA mode. This represents the Target power in dBm for for transmissions done 12277 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session. 12278 * Represents the count of last connected session, when queried in the 12279 * disconnected state. 12280 * 12281 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used 12282 * in the STA mode. This represents the Nested attribute representing the 12283 * overflow counts of each receive buffer allocated to the hardware during the 12284 * STA's connection. The number of hw buffers might vary for each WLAN 12285 * solution and hence this attribute represents the nested array of all such 12286 * HW buffer count. This data is maintained per connect session. Represents 12287 * the count of last connected session, when queried in the disconnected state. 12288 * 12289 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm) 12290 * allowed as per the regulatory requirements for the current or last connected 12291 * session. Used in the STA mode. 12292 * 12293 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power 12294 * (dBm) used by the station in its latest unicast frame while communicating 12295 * to the AP in the connected state. When queried in the disconnected state, 12296 * this represents the TX power used by the STA with last AP communication 12297 * when in connected state. 12298 * 12299 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity 12300 * level used to adjust the RX sensitivity. Represents the current ANI level 12301 * when queried in the connected state. When queried in the disconnected 12302 * state, this corresponds to the latest ANI level at the instance of 12303 * disconnection. 12304 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode 12305 * only. This represents the number of group addressed robust management frames 12306 * received from this station with an invalid MIC or a missing MME when PMF is 12307 * enabled. 12308 * 12309 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode 12310 * only. This represents the number of group addressed robust management frames 12311 * received from this station with the packet number less than or equal to the 12312 * last received packet number when PMF is enabled. 12313 * 12314 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA 12315 * mode only. This represents the number of Beacon frames received from this 12316 * station with an invalid MIC or a missing MME when beacon protection is 12317 * enabled. 12318 * 12319 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode 12320 * only. This represents number of Beacon frames received from this station with 12321 * the packet number less than or equal to the last received packet number when 12322 * beacon protection is enabled. 12323 * 12324 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in 12325 * STA mode only. Driver uses this attribute to populate the connection failure 12326 * reason codes and the values are defined in 12327 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send 12328 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving 12329 * connection failure from driver. The driver shall not include this attribute 12330 * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no 12331 * connection failure observed in the last attempted connection. 12332 * 12333 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps) 12334 * used by the station in its last TX frame while communicating to the AP in the 12335 * connected state. When queried in the disconnected state, this represents the 12336 * rate used by the STA in the last TX frame to the AP when it was connected. 12337 * This attribute is used for STA mode only. 12338 * 12339 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only. 12340 * This represents the rate index used by the STA for the last TX frame to the 12341 * AP. When queried in the disconnected state, this gives the last RIX used by 12342 * the STA in the last TX frame to the AP when it was connected. 12343 * 12344 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA 12345 * mode only. This represents the number of times the STA TSF goes out of sync 12346 * from the AP after the connection. If queried in the disconnected state, this 12347 * gives the count of TSF out of sync for the last connection. 12348 * 12349 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA 12350 * mode only. This represents the roam trigger reason for the last roaming 12351 * attempted by the firmware. This can be queried either in connected state or 12352 * disconnected state. Each bit of this attribute represents the different 12353 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers. 12354 * 12355 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode 12356 * only. This represents the roam fail reason for the last failed roaming 12357 * attempt by the firmware. Different roam failure reason codes are specified 12358 * in enum qca_vendor_roam_fail_reasons. This can be queried either in 12359 * connected state or disconnected state. 12360 * 12361 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in 12362 * STA mode only. This represents the roam invoke fail reason for the last 12363 * failed roam invoke. Different roam invoke failure reason codes 12364 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be 12365 * queried either in connected state or disconnected state. 12366 * 12367 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only. 12368 * This represents the average congestion duration of uplink frames in MAC 12369 * queue in unit of ms. This can be queried either in connected state or 12370 * disconnected state. 12371 * 12372 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested 12373 * attribute, used in AP mode. This represents the MPDU packet count per MCS 12374 * rate value of TX packets. Every index of this nested attribute corresponds 12375 * to MCS index, for example Index 0 represents MCS0 TX rate. This can be 12376 * queried in connected state. 12377 * 12378 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested 12379 * attribute, used in AP mode. This represents the MPDU packet count per MCS 12380 * rate value of RX packets. Every index of this nested attribute corresponds 12381 * to MCS index, for example Index 0 represents MCS0 RX rate. This can be 12382 * queried in connected state. 12383 */ 12384 enum qca_wlan_vendor_attr_get_sta_info { 12385 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0, 12386 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1, 12387 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2, 12388 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3, 12389 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4, 12390 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5, 12391 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6, 12392 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7, 12393 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8, 12394 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9, 12395 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10, 12396 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11, 12397 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12, 12398 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13, 12399 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14, 12400 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15, 12401 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16, 12402 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17, 12403 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18, 12404 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19, 12405 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20, 12406 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21, 12407 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22, 12408 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23, 12409 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24, 12410 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25, 12411 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26, 12412 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27, 12413 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28, 12414 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29, 12415 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30, 12416 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31, 12417 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32, 12418 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33, 12419 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34, 12420 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35, 12421 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39, 12422 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40, 12423 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41, 12424 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42, 12425 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43, 12426 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44, 12427 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45, 12428 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46, 12429 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47, 12430 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48, 12431 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49, 12432 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50, 12433 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51, 12434 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52, 12435 12436 /* keep last */ 12437 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST, 12438 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX = 12439 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1, 12440 }; 12441 12442 /** 12443 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes. 12444 * Used when the driver triggers the STA to disconnect from the AP. 12445 * 12446 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the 12447 * disconnection with the AP due to unspecified reasons. 12448 * 12449 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the 12450 * disconnection with the AP due to a roaming failure. This roaming is triggered 12451 * internally (host driver/firmware). 12452 * 12453 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from 12454 * the AP when the user/external triggered roaming fails. 12455 * 12456 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used 12457 * by the host driver whenever gateway reachability failure is detected and the 12458 * driver disconnects with AP. 12459 * 12460 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from 12461 * the AP on a channel switch announcement from it with an unsupported channel. 12462 * 12463 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start 12464 * with indoor channels disabled and if the STA is connected on one of these 12465 * disabled channels, the host driver disconnected the STA with this reason 12466 * code. 12467 * 12468 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an 12469 * explicit request from the user to disable the current operating channel. 12470 * 12471 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to 12472 * the internal host driver/firmware recovery. 12473 * 12474 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on 12475 * a timeout for the key installations from the user space. 12476 * 12477 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the 12478 * STA on a band change request from the user space to a different band from the 12479 * current operation channel/band. 12480 * 12481 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an 12482 * interface down trigger from the user space. 12483 * 12484 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the 12485 * STA on getting continuous transmission failures for multiple Data frames. 12486 * 12487 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive 12488 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection 12489 * represents inactivity from AP on such transmissions. 12490 12491 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on 12492 * disconnection when SA Query times out (AP does not respond to SA Query). 12493 * 12494 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the 12495 * STA on missing the beacons continuously from the AP. 12496 * 12497 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not 12498 * able to move to the channel mentioned by the AP in CSA. 12499 * 12500 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection. 12501 */ 12502 enum qca_disconnect_reason_codes { 12503 QCA_DISCONNECT_REASON_UNSPECIFIED = 0, 12504 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1, 12505 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2, 12506 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3, 12507 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4, 12508 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5, 12509 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6, 12510 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7, 12511 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8, 12512 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9, 12513 QCA_DISCONNECT_REASON_IFACE_DOWN = 10, 12514 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11, 12515 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12, 12516 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13, 12517 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14, 12518 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15, 12519 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16, 12520 }; 12521 12522 /** 12523 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes 12524 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command. 12525 * 12526 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute. 12527 * This attribute represents the driver specific reason codes (local 12528 * driver/firmware initiated reasons for disconnection) defined 12529 * in enum qca_disconnect_reason_codes. 12530 */ 12531 enum qca_wlan_vendor_attr_driver_disconnect_reason { 12532 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0, 12533 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1, 12534 12535 /* keep last */ 12536 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST, 12537 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX = 12538 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1, 12539 }; 12540 12541 /** 12542 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request 12543 * 12544 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION. 12545 */ 12546 enum qca_wlan_tspec_operation { 12547 QCA_WLAN_TSPEC_ADD = 0, 12548 QCA_WLAN_TSPEC_DEL = 1, 12549 QCA_WLAN_TSPEC_GET = 2, 12550 }; 12551 12552 /** 12553 * enum qca_wlan_tspec_direction - Direction in TSPEC 12554 * As what is defined in IEEE Std 802.11-2016, Table 9-139. 12555 * 12556 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION. 12557 */ 12558 enum qca_wlan_tspec_direction { 12559 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0, 12560 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1, 12561 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2, 12562 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3, 12563 }; 12564 12565 /** 12566 * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC 12567 * As what is defined in IEEE Std 802.11-2016, Table 9-141. 12568 * 12569 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY. 12570 */ 12571 enum qca_wlan_tspec_ack_policy { 12572 QCA_WLAN_TSPEC_NORMAL_ACK = 0, 12573 QCA_WLAN_TSPEC_NO_ACK = 1, 12574 /* Reserved */ 12575 QCA_WLAN_TSPEC_BLOCK_ACK = 3, 12576 }; 12577 12578 /** 12579 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes 12580 * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command. 12581 * 12582 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION: 12583 * u8 attribute. Specify the TSPEC operation of this request. Possible values 12584 * are defined in enum qca_wlan_tspec_operation. 12585 * Mandatory attribute for all kinds of config TSPEC requests. 12586 * 12587 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID: 12588 * u8 attribute. TS ID. Possible values are 0-7. 12589 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL, 12590 * QCA_WLAN_TSPEC_GET. A mandatory attribute. 12591 * 12592 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION: 12593 * u8 attribute. Direction of data carried by the TS. Possible values are 12594 * defined in enum qca_wlan_tspec_direction. 12595 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12596 * 12597 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD: 12598 * Flag attribute. Indicate whether APSD is enabled for the traffic associated 12599 * with the TS. set - enabled, not set - disabled. 12600 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12601 * 12602 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY: 12603 * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs 12604 * belonging to this TS. Possible values are 0-7. 12605 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12606 * 12607 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY: 12608 * u8 attribute. Indicate whether MAC acknowledgements are required for 12609 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements. 12610 * Possible values are defined in enum qca_wlan_tspec_ack_policy. 12611 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12612 * 12613 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE: 12614 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs 12615 * belonging to this TS. 12616 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12617 * 12618 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE: 12619 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs 12620 * belonging to this TS. 12621 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12622 * 12623 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL: 12624 * u32 attribute. Specify the minimum interval in microseconds between the 12625 * start of two successive SPs. 12626 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12627 * 12628 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL: 12629 * u32 attribute. Specify the maximum interval in microseconds between the 12630 * start of two successive SPs. 12631 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12632 * 12633 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL: 12634 * u32 attribute. Specify the minimum interval in microseconds that can elapse 12635 * without arrival or transfer of an MPDU belonging to the TS before this TS 12636 * is deleted by the MAC entity at the HC. 12637 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12638 * 12639 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL: 12640 * u32 attribute. Specify the minimum interval in microseconds that can elapse 12641 * without arrival or transfer of an MSDU belonging to the TS before the 12642 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of 12643 * 0xFFFFFFFF disables the suspension interval. The value of the suspension 12644 * interval is always less than or equal to the inactivity interval. 12645 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12646 * 12647 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE: 12648 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC 12649 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the 12650 * bounds of this TSPEC. 12651 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12652 * 12653 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE: 12654 * u32 attribute. Indicate the average data rate in bps specified at the MAC 12655 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the 12656 * bounds of this TSPEC. 12657 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12658 * 12659 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE: 12660 * u32 attribute. Indicate the maximum allowable data rate in bps specified at 12661 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within 12662 * the bounds of this TSPEC. 12663 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12664 * 12665 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE: 12666 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs 12667 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A 12668 * value of 0 indicates that there are no bursts. 12669 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12670 * 12671 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE: 12672 * u32 attribute. Indicate the minimum PHY rate in bps for transport of 12673 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC. 12674 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12675 * 12676 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE: 12677 * u16 attribute. Specify the excess allocation of time (and bandwidth) over 12678 * and above the stated application rates required to transport an MSDU/A-MSDU 12679 * belonging to the TS in this TSPEC. 12680 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12681 */ 12682 enum qca_wlan_vendor_attr_config_tspec { 12683 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0, 12684 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1, 12685 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2, 12686 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3, 12687 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4, 12688 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5, 12689 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6, 12690 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7, 12691 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8, 12692 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9, 12693 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10, 12694 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11, 12695 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12, 12696 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13, 12697 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14, 12698 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15, 12699 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16, 12700 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17, 12701 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18, 12702 12703 /* keep last */ 12704 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST, 12705 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX = 12706 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1, 12707 }; 12708 12709 /** 12710 * enum qca_wlan_medium_assess_type - Type of medium assess request 12711 * 12712 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE. 12713 */ 12714 enum qca_wlan_medium_assess_type { 12715 QCA_WLAN_MEDIUM_ASSESS_CCA = 0, 12716 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1, 12717 }; 12718 12719 /** 12720 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by 12721 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command. 12722 * 12723 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE: 12724 * u8 attribute. Mandatory in all kinds of medium assess requests/responses. 12725 * Specify the type of medium assess request and indicate its type in response. 12726 * Possible values are defined in enum qca_wlan_medium_assess_type. 12727 * 12728 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD: 12729 * u32 attribute. Mandatory in CCA request. 12730 * Specify the assessment period in terms of seconds. Assessment result will be 12731 * sent as the response to the CCA request after the assessment period. 12732 * 12733 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT: 12734 * u32 attribute. Mandatory in response to CCA request. 12735 * Total timer tick count of the assessment cycle. 12736 * 12737 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT: 12738 * u32 attribute. Mandatory in response to CCA request. 12739 * Timer tick count of idle time in the assessment cycle. 12740 * 12741 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT: 12742 * u32 attribute. Mandatory in response to CCA request. 12743 * Timer tick count of Intra BSS traffic RX time in the assessment cycle. 12744 * 12745 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT: 12746 * u32 attribute. Mandatory in response to CCA request. 12747 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle. 12748 * 12749 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI: 12750 * s32 attribute. Mandatory in response to CCA request. 12751 * Maximum RSSI of Intra BSS traffic in the assessment cycle. 12752 * 12753 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI: 12754 * s32 attribute. Mandatory in response to CCA request. 12755 * Minimum RSSI of Intra BSS traffic in the assessment cycle. 12756 * 12757 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE: 12758 * u8 attribute. Mandatory in congestion report request. 12759 * 1-enable 0-disable. 12760 * 12761 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD: 12762 * u8 attribute. Mandatory in congestion report enable request and will be 12763 * ignored if present in congestion report disable request. Possible values are 12764 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type 12765 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if 12766 * congestion percentage reaches the configured threshold. 12767 * 12768 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL: 12769 * u8 attribute. Optional in congestion report enable request and will be 12770 * ignored if present in congestion report disable request. 12771 * Specify the interval of congestion report event in terms of seconds. Possible 12772 * values are 1-255. Default value 1 will be used if this attribute is omitted 12773 * or using invalid values. 12774 * 12775 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE: 12776 * u8 attribute. Mandatory in congestion report event. 12777 * Indicate the actual congestion percentage. Possible values are 0-100. 12778 */ 12779 enum qca_wlan_vendor_attr_medium_assess { 12780 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0, 12781 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1, 12782 12783 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2, 12784 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3, 12785 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4, 12786 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5, 12787 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6, 12788 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7, 12789 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8, 12790 12791 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9, 12792 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10, 12793 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11, 12794 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12, 12795 12796 /* keep last */ 12797 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST, 12798 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX = 12799 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1, 12800 }; 12801 12802 /** 12803 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes 12804 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command. 12805 * 12806 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL: 12807 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1 12808 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV, 12809 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events. 12810 * 12811 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT: 12812 * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event. 12813 * 12814 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID: 12815 * u8 attribute, required. indicates group id of Tx VDEV 12816 * 12817 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO: 12818 * Nested attribute. This attribute shall be used by the driver to send 12819 * group information. The attributes defined in enum 12820 * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info 12821 * are nested in this attribute. 12822 */ 12823 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status { 12824 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0, 12825 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1, 12826 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2, 12827 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3, 12828 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4, 12829 12830 /* keep last */ 12831 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST, 12832 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX = 12833 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1, 12834 }; 12835 12836 /** 12837 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used 12838 * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute. 12839 * 12840 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX: 12841 * u32 attribute, required. contains interface index. 12842 * 12843 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS: 12844 * u8 attribute, required. 0 - means vdev is in down state. 12845 * 1- means vdev is in up state. 12846 */ 12847 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info { 12848 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0, 12849 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1, 12850 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2, 12851 12852 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST, 12853 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX = 12854 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1, 12855 }; 12856 12857 /** 12858 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type 12859 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame 12860 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame 12861 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request 12862 * frame 12863 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation 12864 * Request frame. 12865 */ 12866 enum qca_wlan_vendor_oci_override_frame_type { 12867 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1, 12868 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2, 12869 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3, 12870 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4, 12871 }; 12872 12873 /** 12874 * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies 12875 * 12876 * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary 12877 * STA interface has to be given while selecting the connection policies 12878 * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface. 12879 * An interface is set as primary through the attribute 12880 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not 12881 * applicable if the primary interface has not been set earlier. 12882 * 12883 * The intention is not to downgrade the primary STA performance, such as: 12884 * - Do not reduce the number of TX/RX chains of primary connection. 12885 * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of 12886 * chains. 12887 * - If using MCC, should set the MCC duty cycle of the primary connection to 12888 * be higher than the secondary connection. 12889 * 12890 * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the 12891 * subsequent STA connection shall be chosen to balance with the existing 12892 * concurrent STA's performance. 12893 * Such as 12894 * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware 12895 * capability. 12896 * - If using MCC, set the MCC duty cycle of the primary connection to be equal 12897 * to the secondary. 12898 * - Prefer BSSID candidates which will help provide the best "overall" 12899 * performance for all the STA connections. 12900 */ 12901 enum qca_wlan_concurrent_sta_policy_config { 12902 QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0, 12903 QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1, 12904 }; 12905 12906 /** 12907 * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies 12908 * 12909 * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP 12910 * interface. 12911 * 12912 * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies 12913 * to meet gaming audio latency requirements. 12914 * 12915 * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface 12916 * concurrencies to meet lossless audio streaming requirements. 12917 * 12918 * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet 12919 * XR (eXtended Reality) requirements. 12920 */ 12921 enum qca_wlan_concurrent_ap_policy_config { 12922 QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0, 12923 QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1, 12924 QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2, 12925 QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3, 12926 }; 12927 12928 /** 12929 * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes 12930 * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command. 12931 * 12932 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG: 12933 * u8 attribute. Configures the concurrent STA policy configuration. 12934 * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config. 12935 12936 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG: 12937 * u8 attribute. Configures the concurrent AP policy configuration. 12938 * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config. 12939 */ 12940 enum qca_wlan_vendor_attr_concurrent_policy { 12941 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0, 12942 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1, 12943 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2, 12944 12945 /* keep last */ 12946 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST, 12947 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX = 12948 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1, 12949 12950 }; 12951 12952 /* Compatibility defines for previously used enum 12953 * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used 12954 * in any new implementation. 12955 */ 12956 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \ 12957 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG 12958 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \ 12959 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX 12960 #define qca_wlan_vendor_attr_concurrent_sta_policy \ 12961 qca_wlan_vendor_attr_concurrent_policy 12962 12963 /** 12964 * enum qca_sta_connect_fail_reason_codes - Defines values carried 12965 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor 12966 * attribute. 12967 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received 12968 * for unicast probe request. 12969 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request. 12970 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for 12971 * ath request. 12972 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not 12973 * received from AP. 12974 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc 12975 * request. 12976 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for 12977 * assoc request. 12978 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not 12979 * received from AP. 12980 */ 12981 enum qca_sta_connect_fail_reason_codes { 12982 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1, 12983 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2, 12984 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3, 12985 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4, 12986 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5, 12987 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6, 12988 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7, 12989 }; 12990 12991 /** 12992 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for 12993 * OCI override request. These attributes are used inside nested attribute 12994 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command 12995 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 12996 * 12997 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8. 12998 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this 12999 * attribute to specify the frame type in which the OCI is to be overridden. 13000 * 13001 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32) 13002 * OCI frequency (in MHz) to override in the specified frame type. 13003 */ 13004 enum qca_wlan_vendor_attr_oci_override { 13005 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0, 13006 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1, 13007 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2, 13008 13009 /* keep last */ 13010 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST, 13011 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX = 13012 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1, 13013 }; 13014 13015 /** 13016 * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different 13017 * filters defined in this enum are used in attribute 13018 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK. 13019 * 13020 * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver 13021 * shall filter the channels which are not usable because of coexistence with 13022 * cellular radio. 13023 * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver 13024 * shall filter the channels which are not usable because of existing active 13025 * interfaces in the driver and will result in Multi Channel Concurrency, etc. 13026 * 13027 */ 13028 enum qca_wlan_vendor_usable_channels_filter { 13029 QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0, 13030 QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1, 13031 }; 13032 13033 /** 13034 * enum qca_wlan_vendor_attr_chan_info - Attributes used inside 13035 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute. 13036 * 13037 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ: 13038 * u32 attribute, required. Indicates the center frequency of the primary 13039 * channel in MHz. 13040 * 13041 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ: 13042 * u32 attribute. Indicates the center frequency of the primary segment of the 13043 * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz, 13044 * 160 MHz, and 320 MHz channels. 13045 * 13046 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ: 13047 * u32 attribute. Indicates the center frequency of the secondary segment of 13048 * 80+80 channel in MHz. This attribute is required only when 13049 * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80. 13050 * 13051 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH: 13052 * u32 attribute, required. Indicates the bandwidth of the channel, possible 13053 * values are defined in enum nl80211_chan_width. 13054 * 13055 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK: 13056 * u32 attribute, required. Indicates all the interface types for which this 13057 * channel is usable. This attribute encapsulates bitmasks of interface types 13058 * defined in enum nl80211_iftype. 13059 * 13060 */ 13061 enum qca_wlan_vendor_attr_chan_info { 13062 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0, 13063 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1, 13064 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2, 13065 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3, 13066 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4, 13067 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5, 13068 13069 /* keep last */ 13070 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST, 13071 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX = 13072 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1, 13073 }; 13074 13075 /** 13076 * enum qca_wlan_vendor_attr_usable_channels - Attributes used by 13077 * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command. 13078 * 13079 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK: 13080 * u32 attribute. Indicates the bands from which the channels should be reported 13081 * in response. This attribute encapsulates bit masks of bands defined in enum 13082 * nl80211_band. Optional attribute, if not present in the request the driver 13083 * shall return channels from all supported bands. 13084 * 13085 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK: 13086 * u32 attribute. Indicates all the interface types for which the usable 13087 * channels information is requested. This attribute encapsulates bitmasks of 13088 * interface types defined in enum nl80211_iftype. Optional attribute, if not 13089 * present in the request the driver shall send information of all supported 13090 * interface modes. 13091 * 13092 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK: 13093 * u32 attribute. This attribute carries information of all filters that shall 13094 * be applied while populating usable channels information by the driver. This 13095 * attribute carries bit masks of different filters defined in enum 13096 * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present 13097 * in the request the driver shall send information of channels without applying 13098 * any of the filters that can be configured through this attribute. 13099 * 13100 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO: 13101 * Nested attribute. This attribute shall be used by the driver to send 13102 * usability information of each channel. The attributes defined in enum 13103 * qca_wlan_vendor_attr_chan_info are used inside this attribute. 13104 */ 13105 enum qca_wlan_vendor_attr_usable_channels { 13106 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0, 13107 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1, 13108 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2, 13109 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3, 13110 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4, 13111 13112 /* keep last */ 13113 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST, 13114 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX = 13115 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1, 13116 }; 13117 13118 /** 13119 * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command 13120 * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history. 13121 * 13122 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry 13123 * the list of radar history entries. 13124 * Each entry contains freq, timestamp, and radar signal detect flag. 13125 * The driver shall add an entry when CAC has finished, or radar signal 13126 * has been detected post AP beaconing. The driver shall maintain at least 13127 * 8 entries in order to save CAC result for a 160 MHz channel. 13128 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute. 13129 * Channel frequency in MHz. 13130 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds. 13131 * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC 13132 * or radar detection. 13133 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute. 13134 * This flag indicates radar signal has been detected. 13135 */ 13136 enum qca_wlan_vendor_attr_radar_history { 13137 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0, 13138 13139 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1, 13140 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2, 13141 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3, 13142 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4, 13143 13144 /* keep last */ 13145 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST, 13146 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX = 13147 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1, 13148 }; 13149 13150 /** 13151 * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type 13152 * 13153 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the 13154 * target exited MCC state and cleared the quota information. In the 13155 * command it clears MCC quota setting and restores adaptive scheduling. 13156 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and 13157 * will not be changed. 13158 * This quota type is present in command/event. 13159 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic 13160 * and the target may change the quota based on the data activity. 13161 * This quota type is only present in event. 13162 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized 13163 * by the target for low latency. 13164 * This quota type is only present in command. 13165 */ 13166 enum qca_wlan_vendor_mcc_quota_type { 13167 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0, 13168 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1, 13169 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2, 13170 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3, 13171 }; 13172 13173 /** 13174 * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event 13175 * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel 13176 * quota information or as a command to set the required MCC quota for an 13177 * interface. 13178 * 13179 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute. 13180 * The type is defined in enum qca_wlan_vendor_mcc_quota_type. 13181 * In a command this specifies the MCC quota type to be set for the interface. 13182 * In an event this provides the current quota type in force. 13183 * This is required in a command and an event. 13184 * 13185 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry 13186 * the list of channel quota entries. 13187 * In an event each entry contains the frequency and respective time quota for 13188 * all the MCC interfaces. 13189 * In a command it specifies the interface index and respective time quota. 13190 * In a command only one entry (ifindex, quota pair) may be specified. 13191 * 13192 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute. 13193 * Channel frequency in MHz. This is present only in an event. 13194 * 13195 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute. 13196 * Channel time quota expressed as percentage. 13197 * This is present in an event and a command. 13198 * In an command, the user shall specify the quota to be allocated for the 13199 * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX. 13200 * In an event this provides the existing quota for the channel. 13201 * 13202 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute. 13203 * Specifies the interface index (netdev) for which the corresponding 13204 * configurations are applied. This is required in a command only. Only one 13205 * interface index may be specified. If not specified, the configuration is 13206 * rejected. 13207 * 13208 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE 13209 * 8-bit unsigned value to enable/disable Multi-Channel Concurrency 13210 * low latency mode. The firmware will do optimization for low 13211 * latency in Multi-Channel concurrency state if enabled. And all existing 13212 * user quota setting will be overwritten by the target. 13213 * 0 - disable(default), 1 - enable. 13214 * It is only present in a command with quota type of 13215 * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY. 13216 */ 13217 enum qca_wlan_vendor_attr_mcc_quota { 13218 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0, 13219 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1, 13220 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2, 13221 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3, 13222 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4, 13223 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5, 13224 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6, 13225 13226 /* keep last */ 13227 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST, 13228 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX = 13229 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1, 13230 }; 13231 13232 /** 13233 * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values 13234 * are used by the attribute 13235 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON. 13236 * 13237 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target 13238 * invoke roam. 13239 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable 13240 * detection failed when the roam trigger. 13241 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space. 13242 */ 13243 13244 enum qca_wlan_roam_stats_invoke_reason { 13245 QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0, 13246 QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1, 13247 QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2, 13248 }; 13249 13250 /** 13251 * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These 13252 * values are used by the attribute 13253 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON. 13254 * 13255 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when 13256 * roam by kickout. 13257 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam 13258 * trigger by kickout. 13259 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when 13260 * roam trigger by kickout. 13261 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when 13262 * roam trigger by kickout. 13263 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has 13264 * disappeared, and all TX is failing when roam trigger by kickout. 13265 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process 13266 * timeout when roam trigger by kickout. 13267 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected 13268 * peer has roamed to a repeater. 13269 */ 13270 enum qca_wlan_roam_stats_tx_failures_reason { 13271 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0, 13272 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1, 13273 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2, 13274 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3, 13275 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4, 13276 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5, 13277 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6, 13278 }; 13279 13280 /** 13281 * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values 13282 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON. 13283 * 13284 * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the 13285 * detailed reason for roam scan being aborted. 13286 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not 13287 * started due to high data RSSI during LOW-RSSI roaming. 13288 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not 13289 * started due to good link speed during LOW-RSSI roaming. 13290 * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started 13291 * due to high data RSSI during background roaming. 13292 * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not 13293 * started due to high beacon RSSI during background roaming 13294 */ 13295 enum qca_wlan_roam_stats_abort_reason { 13296 QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0, 13297 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1, 13298 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2, 13299 QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3, 13300 QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4, 13301 }; 13302 13303 /** 13304 * enum qca_wlan_roam_stats_scan_type - Roam scan type define. 13305 * These values are used by the attribute 13306 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE. 13307 * 13308 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan 13309 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan 13310 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered. 13311 * This is generally used in BTM events to indicate BTM frame exchange logs. 13312 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan 13313 * from 2.4 GHz to 5 GHz or 6 GHz 13314 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from 13315 * 5 GHz to 6 GHz 13316 */ 13317 enum qca_wlan_roam_stats_scan_type { 13318 QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0, 13319 QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1, 13320 QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2, 13321 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3, 13322 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4, 13323 }; 13324 13325 /** 13326 * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type. 13327 * These values are used by the attribute 13328 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE. 13329 * 13330 * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the 13331 * detailed roam scan type. 13332 * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam. 13333 * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam. 13334 */ 13335 enum qca_wlan_roam_stats_scan_dwell_type { 13336 QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0, 13337 QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1, 13338 QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2, 13339 }; 13340 13341 /** 13342 * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside 13343 * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute. 13344 */ 13345 enum qca_wlan_vendor_attr_roam_stats_scan_chan_info { 13346 /* 32-bit unsigned value to indicate center frequency of the primary 13347 * channel in MHz for each roam scan channel. 13348 */ 13349 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1, 13350 /* 8-bit unsigned value to indicate channel scan type for each 13351 * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type. 13352 */ 13353 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2, 13354 /* 32-bit unsigned value to indicate maximum scan time in milliseconds 13355 * for each roam scan channel. 13356 */ 13357 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3, 13358 13359 /* keep last */ 13360 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST, 13361 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX = 13362 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1, 13363 }; 13364 13365 /** 13366 * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values 13367 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE. 13368 * 13369 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP: Authentication Response frame 13370 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP: Reassociation Response frame 13371 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame 13372 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame 13373 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame 13374 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame 13375 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame 13376 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame 13377 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ: Authentication Request frame 13378 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ: Reassociation Request frame 13379 */ 13380 enum qca_wlan_roam_stats_frame_subtype { 13381 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP = 1, 13382 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP = 2, 13383 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3, 13384 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4, 13385 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5, 13386 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6, 13387 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7, 13388 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8, 13389 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ = 9, 13390 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ = 10, 13391 }; 13392 13393 /* Compatibility defines for previously used names. 13394 * These values should not be used in any new implementation. 13395 */ 13396 #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH \ 13397 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP 13398 #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC \ 13399 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP 13400 13401 /** 13402 * enum roam_frame_status - Specifies the valid values the vendor roam frame 13403 * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take. 13404 * 13405 * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was 13406 * sent or received successfully. 13407 * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or 13408 * receiving failed. 13409 */ 13410 enum qca_wlan_roam_stats_frame_status { 13411 QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0, 13412 QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1, 13413 }; 13414 13415 /** 13416 * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the 13417 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute. 13418 */ 13419 enum qca_wlan_vendor_attr_roam_stats_frame_info { 13420 /* 8-bit unsigned value to indicate the frame subtype during 13421 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype. 13422 */ 13423 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1, 13424 /* 8-bit unsigned value to indicate the frame is successful or failed 13425 * during roaming, one of the values in 13426 * qca_wlan_roam_stats_frame_status. 13427 */ 13428 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2, 13429 /* 64-bit unsigned value to indicate the timestamp for frame of 13430 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4 13431 * when sent or received during roaming, timestamp in milliseconds 13432 * from system boot. 13433 */ 13434 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3, 13435 /* This attribute indicates a 6-byte MAC address representing 13436 * the BSSID of the AP. 13437 * For non-MLO scenario, it indicates the AP BSSID. 13438 * For MLO scenario, it indicates the AP BSSID which may be the primary 13439 * link BSSID or a nonprimary link BSSID. 13440 */ 13441 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_BSSID = 5, 13442 13443 13444 /* keep last */ 13445 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST, 13446 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX = 13447 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1, 13448 }; 13449 13450 /** 13451 * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute 13452 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO. 13453 */ 13454 enum qca_wlan_vendor_attr_roam_stats_info { 13455 /* 64-bit unsigned value to indicate the timestamp when roam was 13456 * triggered by the firmware, timestamp in milliseconds from system 13457 * boot. 13458 */ 13459 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1, 13460 /* 32-bit unsigned value to indicate the roam trigger reason for the 13461 * last roaming attempted by the firmware. This can be queried either 13462 * in a connected state or disconnected state. The values of this 13463 * attribute represent the roam trigger reason codes, which 13464 * are defined in enum qca_roam_reason. 13465 */ 13466 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2, 13467 /* 8-bit unsigned value to indicate percentage of packets for which 13468 * the RX rate is lower than the RX rate threshold in total RX packets, 13469 * used for roaming trigger by per. 13470 */ 13471 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3, 13472 /* 8-bit unsigned value to indicate percentage of packets for which 13473 * the TX rate is lower than TX rate threshold in total TX packets, 13474 * used for roaming trigger by per. 13475 */ 13476 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4, 13477 /* 32-bit unsigned value to indicate final beacon miss count for 13478 * trigger reason of beacon miss. 13479 */ 13480 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5, 13481 /* 32-bit unsigned value to indicate consecutive beacon miss count 13482 * for trigger reason of beacon miss. 13483 */ 13484 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6, 13485 /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger 13486 * reason of beacon miss, 0 - success, 1 - fail. 13487 * If QOS-NULL TX status is successful, beacon miss final count and 13488 * consecutive beacon miss count will be reset to zero, and roam will 13489 * not be triggered. If QOS-NULL TX status is failed, beacon miss final 13490 * count and consecutive beacon miss count continue to calculate until 13491 * roaming trigger by beacon miss. 13492 */ 13493 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7, 13494 /* 8-bit signed value to indicate connected AP RSSI in dBm 13495 * for trigger reason of poor RSSI. 13496 */ 13497 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8, 13498 /* 8-bit signed value to indicate RSSI threshold value in dBm 13499 * for trigger reason of poor RSSI. 13500 */ 13501 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9, 13502 /* 8-bit unsigned value to indicate RX link speed status 13503 * for trigger reason of poor RSSI, 0 - good link speed, 13504 * 1 - bad link speed. 13505 */ 13506 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10, 13507 /* 8-bit signed value to indicate connected AP RSSI in dBm 13508 * for trigger reason of better RSSI. 13509 */ 13510 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11, 13511 /* 8-bit signed value to indicate RSSI threshold value in dBm 13512 * for trigger reason of better RSSI. 13513 */ 13514 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12, 13515 /* 32-bit unsigned value to indicate RX throughput in bytes per second 13516 * for trigger reason of congestion. 13517 */ 13518 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13, 13519 /* 32-bit unsigned value to indicate TX throughput in bytes per second 13520 * for trigger reason of congestion. 13521 */ 13522 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14, 13523 /* 8-bit unsigned value to indicate roamable AP count 13524 * for trigger reason of congestion. 13525 */ 13526 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15, 13527 /* 8-bit unsigned value to indicate invoke reason, one of the values 13528 * defined in qca_wlan_roam_stats_invoke_reason. 13529 */ 13530 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16, 13531 /* 8-bit unsigned value to indicate request mode for trigger reason 13532 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9. 13533 */ 13534 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17, 13535 /* 32-bit unsigned value to indicate disassociate time in milliseconds 13536 * for trigger reason of BTM. 13537 */ 13538 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18, 13539 /* 32-bit unsigned value to indicate preferred candidate list valid 13540 * interval in milliseconds for trigger reason of BTM. 13541 */ 13542 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19, 13543 /* 8-bit unsigned value to indicate the number of preferred 13544 * candidates for trigger reason of BTM. 13545 */ 13546 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20, 13547 /* 8-bit unsigned value to indicate response status for trigger 13548 * reason of BTM, values are defined in IEEE Std 802.11-2020, 13549 * Table 9-428 (BTM status code definitions). 13550 */ 13551 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21, 13552 /* 32-bit unsigned value to indicate BSS termination timeout value 13553 * in milliseconds for trigger reason of BTM. 13554 */ 13555 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22, 13556 /* 32-bit unsigned value to indicate MBO associate retry timeout 13557 * value in milliseconds for trigger reason of BTM. 13558 */ 13559 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23, 13560 /* 8-bit unsigned value to indicate dialog token number 13561 * for trigger reason of BTM. 13562 */ 13563 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24, 13564 /* 8-bit unsigned value to indicate percentage of connected AP 13565 * channel congestion utilization for trigger reason of BSS load. 13566 */ 13567 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25, 13568 /* 8-bit unsigned value to indicate disconnection type 13569 * for trigger reason of disconnection. 1 - Deauthentication, 13570 * 2 - Disassociation. 13571 */ 13572 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26, 13573 /* 16-bit unsigned value to indicate deauthentication or disassociation 13574 * reason for trigger reason of disconnection, values are defined 13575 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes). 13576 */ 13577 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27, 13578 /* 32-bit unsigned value to indicate milliseconds of roam scan 13579 * periodicity when needing to roam to find a better AP for trigger 13580 * reason of periodic timer. 13581 */ 13582 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28, 13583 /* 8-bit signed value to indicate connected AP RSSI in dBm for 13584 * trigger reason of background scan. 13585 */ 13586 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29, 13587 /* 8-bit signed value to indicate data RSSI in dBm for trigger reason 13588 * of background scan. 13589 */ 13590 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30, 13591 /* 8-bit signed value to indicate data RSSI threshold in dBm 13592 * for trigger reason of background scan. 13593 */ 13594 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31, 13595 /* 32-bit unsigned value to indicate consecutive TX failure threshold 13596 * for trigger reason of TX failures. 13597 */ 13598 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32, 13599 /* 8-bit unsigned value to indicate TX failure reason for trigger 13600 * reason of TX failures, one of the values defined in 13601 * qca_wlan_roam_stats_tx_failures_reason. 13602 */ 13603 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33, 13604 /* 8-bit unsigned value to indicate detail abort reason. One of the 13605 * values in enum qca_wlan_roam_stats_abort_reason. 13606 */ 13607 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34, 13608 /* 8-bit signed value to indicate data RSSI in dBm when aborting the 13609 * roam scan. 13610 */ 13611 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35, 13612 /* 8-bit signed value to indicate data RSSI threshold in dBm when 13613 * aborting the roam scan. 13614 */ 13615 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36, 13616 /* 8-bit unsigned value to indicate data RSSI threshold in RX link 13617 * speed status when aborting the roam scan. 13618 * 0 - good link speed, 1 - bad link speed 13619 */ 13620 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37, 13621 /* 8-bit unsigned value to indicate roaming scan type. 13622 * One of the values in enum qca_wlan_roam_stats_scan_type. 13623 */ 13624 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38, 13625 /* 8-bit unsigned value to indicate roaming result, used in STA mode 13626 * only. 13627 * 0-Roaming is successful, 1-Roaming is failed 13628 */ 13629 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39, 13630 /* 8-bit unsigned value to indicate the roam fail reason for the 13631 * last failed roaming attempt by the firmware. Different roam failure 13632 * reason codes are specified in enum qca_vendor_roam_fail_reasons. 13633 * This can be queried either in connected state or disconnected state. 13634 */ 13635 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40, 13636 /* Nested attribute. Indicate roam scan info for each channel, the 13637 * attributes defined in enum 13638 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside 13639 * this attribute. 13640 */ 13641 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41, 13642 /* 32-bit unsigned value to indicate total scan time during roam scan 13643 * all channels, time in milliseconds. 13644 */ 13645 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42, 13646 /* Nested attribute. This attribute shall be used by the driver to 13647 * send roam information of each subtype. The attributes defined in 13648 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside 13649 * this attribute. 13650 */ 13651 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43, 13652 /* 6-byte MAC address used by the driver to send roam stats information 13653 * of the original AP BSSID. The original AP is the connected AP before 13654 * roam happens, regardless of the roam resulting in success or failure. 13655 * This attribute is only present when 13656 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of 13657 * 0 (success) or 1 (failure). 13658 * For non-MLO scenario, it indicates the original connected AP BSSID. 13659 * For MLO scenario, it indicates the original BSSID of the link 13660 * for which the reassociation occurred during the roam. 13661 */ 13662 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45, 13663 /* 6-byte MAC address used by the driver to send roam stats information 13664 * of the roam candidate AP BSSID when roam failed. This is only present 13665 * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of 13666 * 1 (failure). If the firmware updates more than one candidate AP BSSID 13667 * to the driver, the driver only fills the last candidate AP BSSID and 13668 * reports it to user space. 13669 * For non-MLO scenario, it indicates the last candidate AP BSSID. 13670 * For MLO scenario, it indicates the AP BSSID which may be the primary 13671 * link BSSID or a nonprimary link BSSID. 13672 */ 13673 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46, 13674 /* 6-byte MAC address used by the driver to send roam stats information 13675 * of the roamed AP BSSID when roam succeeds. This is only present when 13676 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of 13677 * 0 (success). 13678 * For non-MLO scenario, it indicates the new AP BSSID to which has 13679 * been successfully roamed. 13680 * For MLO scenario, it indicates the new AP BSSID of the link on 13681 * which the reassociation occurred during the roam. 13682 */ 13683 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47, 13684 13685 /* keep last */ 13686 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST, 13687 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX = 13688 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1, 13689 }; 13690 13691 /** 13692 * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to 13693 * report cached roam info from the driver to user space, enum values are used 13694 * for netlink attributes sent with the 13695 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command. 13696 */ 13697 enum qca_wlan_vendor_attr_roam_cached_stats { 13698 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0, 13699 /* Nested attribute, this attribute contains nested array roam info 13700 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info. 13701 */ 13702 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1, 13703 13704 /* keep last */ 13705 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST, 13706 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX = 13707 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1, 13708 }; 13709 13710 /** 13711 * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for 13712 * radio configurations present in each radio combination. 13713 * 13714 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates 13715 * the band info in the radio configuration. Uses the enum qca_set_band values. 13716 * 13717 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates 13718 * the number of antennas info in the radio configuration. 13719 */ 13720 enum qca_wlan_vendor_attr_supported_radio_cfg { 13721 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0, 13722 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1, 13723 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2, 13724 13725 /* keep last */ 13726 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST, 13727 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX = 13728 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1, 13729 }; 13730 13731 /** 13732 * enum qca_wlan_vendor_attr_radio_combination - Attributes for 13733 * radio combinations supported by the device. 13734 * 13735 * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute 13736 * provides the radio configurations present in the radio combination. 13737 * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes. 13738 * This attribute provides the values for radio combination matrix. 13739 * For standalone config, the number of config values is one and the config 13740 * carries the band and antenna information for standalone configuration. For 13741 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode 13742 * configuration the number of config values is two and the config carries the 13743 * band and antenna information for each simultaneous radio. 13744 */ 13745 enum qca_wlan_vendor_attr_radio_combination { 13746 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0, 13747 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1, 13748 13749 /* keep last */ 13750 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST, 13751 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX = 13752 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1, 13753 }; 13754 13755 /** 13756 * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by 13757 * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX 13758 * 13759 * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute 13760 * provides the radio combinations supported by the device. 13761 * Uses the enum qca_wlan_vendor_attr_radio_combination attributes. 13762 * For example, in the radio combination matrix for a device which has two 13763 * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is 13764 * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio 13765 * combinations is 5 and the radio combinations are 13766 * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz 13767 * {{5 GHz 2X2}}, //Standalone 5 GHz 13768 * {{6 GHz 2X2}}, //Standalone 6 GHz 13769 * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS 13770 * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS 13771 * The band and antenna info together as nested data provides one radio config. 13772 * Standalone configuration has one config with band and antenna nested data. 13773 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration 13774 * have two nested band and antenna info data. 13775 */ 13776 enum qca_wlan_vendor_attr_radio_combination_matrix { 13777 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0, 13778 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1, 13779 13780 /* keep last */ 13781 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST, 13782 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX = 13783 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1, 13784 }; 13785 13786 /** 13787 * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by 13788 * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command. 13789 * 13790 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag) 13791 * Enable mDNS offload. This attribute is mandatory to enable 13792 * mDNS offload feature. If this attribute is not present, mDNS offload 13793 * is disabled. 13794 * 13795 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing 13796 * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This 13797 * attribute is mandatory when enabling the feature, and not required when 13798 * disabling the feature. 13799 * 13800 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing 13801 * the following attributes: 13802 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN 13803 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT 13804 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD 13805 * 13806 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute. 13807 * It consists of a hostname and ".local" as the domain name. The character 13808 * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes. 13809 * It is used to compare the domain the in the "QU" query. Only 1 FQDN is 13810 * supported per vdev. 13811 * For example: myphone.local 13812 * 13813 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required 13814 * u16 attribute. It specifies the total number of resource records present 13815 * in the answer section of the answer payload. This attribute is needed by the 13816 * firmware to populate the mDNS response frame for mNDS queries without having 13817 * to parse the answer payload. 13818 * 13819 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob 13820 * attribute sent by the mdnsResponder from userspace. It contains resource 13821 * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This 13822 * payload is passed down to firmware and is transmitted in response to 13823 * mDNS queries. 13824 * The maximum size of the answer payload supported is 512 bytes. 13825 */ 13826 enum qca_wlan_vendor_attr_mdns_offload { 13827 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0, 13828 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1, 13829 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2, 13830 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3, 13831 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4, 13832 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5, 13833 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6, 13834 13835 /* keep last */ 13836 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST, 13837 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX = 13838 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1, 13839 }; 13840 13841 /** 13842 * enum qca_vendor_attr_diag_event_type - Attributes used by 13843 * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute. 13844 * 13845 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from 13846 * driver/firmware during Connection request from Userspace. Uses the 13847 * following attributes of enum qca_wlan_vendor_attr_diag: 13848 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13849 * QCA_WLAN_VENDOR_ATTR_DIAG_SSID, 13850 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13851 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT, 13852 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 13853 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT, 13854 * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE, 13855 * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE, 13856 * QCA_WLAN_VENDOR_ATTR_DIAG_AKM, 13857 * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO, 13858 * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE, 13859 * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE, 13860 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13861 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13862 * 13863 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from 13864 * driver/firmware when a connection is failed. Uses the 13865 * following attributes of enum qca_wlan_vendor_attr_diag: 13866 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13867 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13868 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 13869 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13870 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 13871 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13872 * 13873 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from 13874 * driver/firmware during Authentication request from a device. Uses the 13875 * following attributes of enum qca_wlan_vendor_attr_diag: 13876 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13877 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13878 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13879 * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO, 13880 * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE, 13881 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13882 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 13883 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 13884 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13885 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13886 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13887 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13888 * 13889 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from 13890 * driver/firmware when device receives an authentication response. Uses the 13891 * following attributes of enum qca_wlan_vendor_attr_diag: 13892 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13893 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13894 * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO, 13895 * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE, 13896 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13897 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 13898 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13899 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13900 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13901 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13902 * 13903 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from 13904 * driver/firmware when device sends an association request. Uses the 13905 * following attributes of enum qca_wlan_vendor_attr_diag: 13906 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13907 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13908 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13909 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13910 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 13911 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13912 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13913 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13914 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13915 * 13916 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from 13917 * driver/firmware when device receives an association response. Uses the 13918 * following attributes of enum qca_wlan_vendor_attr_diag: 13919 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13920 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13921 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13922 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 13923 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13924 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13925 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13926 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 13927 * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID. 13928 * 13929 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from 13930 * driver/userspace when device receives a deauthentication response. Uses the 13931 * following attributes of enum qca_wlan_vendor_attr_diag: 13932 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13933 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13934 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13935 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13936 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 13937 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13938 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13939 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13940 * 13941 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from 13942 * driver/userspace when device sends a deauthentication request. Uses the 13943 * following attributes of enum qca_wlan_vendor_attr_diag: 13944 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13945 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13946 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13947 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13948 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 13949 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13950 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13951 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13952 * 13953 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from 13954 * driver/firmware when device receives a disassociation response. Uses the 13955 * following attributes of enum qca_wlan_vendor_attr_diag: 13956 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13957 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13958 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13959 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13960 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 13961 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13962 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13963 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13964 * 13965 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from 13966 * driver/firmware when device sends a disassociation request. Uses the 13967 * following attributes of enum qca_wlan_vendor_attr_diag: 13968 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13969 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13970 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13971 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13972 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 13973 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13974 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13975 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13976 * 13977 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from 13978 * driver/firmware when device did not receive beacon packets during connection. 13979 * Uses the following attributes of enum qca_wlan_vendor_attr_diag: 13980 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13981 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13982 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13983 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 13984 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13985 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13986 * 13987 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from 13988 * driver/firmware when Roaming scan is triggered. Uses the following 13989 * attributes of enum qca_wlan_vendor_attr_diag: 13990 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13991 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON, 13992 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON, 13993 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13994 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU, 13995 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE, 13996 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD, 13997 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13998 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13999 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14000 * 14001 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from 14002 * driver/firmware Roam scanning is processed. Uses the following 14003 * attributes of enum qca_wlan_vendor_attr_diag: 14004 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14005 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK, 14006 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST, 14007 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT, 14008 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 14009 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14010 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14011 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 14012 * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE. 14013 * 14014 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from 14015 * driver/firmware to provide Roam information of the current AP. Uses the 14016 * following attributes of enum qca_wlan_vendor_attr_diag: 14017 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14018 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14019 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 14020 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 14021 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU, 14022 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE, 14023 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14024 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14025 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14026 * 14027 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from 14028 * driver/firmware to provide Roam information of the candid AP. Uses the 14029 * following attributes of enum qca_wlan_vendor_attr_diag: 14030 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14031 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14032 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 14033 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 14034 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU, 14035 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE, 14036 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP, 14037 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK, 14038 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14039 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14040 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14041 * 14042 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from 14043 * driver/firmware to provide Roam result after selecting a candidate. Uses the 14044 * following attributes of enum qca_wlan_vendor_attr_diag: 14045 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14046 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL, 14047 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14048 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14049 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14050 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14051 * 14052 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from 14053 * driver/firmware to indicate Roam Cancellation due to higher priority events. 14054 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14055 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14056 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14057 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 14058 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14059 * 14060 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver 14061 * /firmware when STA sends a BTM request frame. Uses the following attributes 14062 * of enum qca_wlan_vendor_attr_diag: 14063 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14064 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN, 14065 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE, 14066 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER, 14067 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL, 14068 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT, 14069 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14070 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14071 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14072 * 14073 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from 14074 * driver/firmware when STA queries about BTM transition. Uses the following 14075 * attributes of enum qca_wlan_vendor_attr_diag: 14076 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14077 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN, 14078 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON, 14079 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14080 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14081 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14082 * 14083 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver 14084 * /firmware when STA receives BTM response frame. Uses the following 14085 * attributes of enum qca_wlan_vendor_attr_diag: 14086 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14087 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN, 14088 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE, 14089 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY, 14090 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID, 14091 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14092 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14093 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14094 * 14095 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from 14096 * driver/firmware to provide BTM request candidate information. Uses the 14097 * following attributes of enum qca_wlan_vendor_attr_diag: 14098 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14099 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14100 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE, 14101 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK, 14102 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14103 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14104 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14105 * 14106 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver 14107 * /firmware when ROAM WTC trigger happens. Uses the following attributes of 14108 * enum qca_wlan_vendor_attr_diag: 14109 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14110 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE, 14111 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 14112 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION, 14113 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14114 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14115 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14116 * 14117 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER: Diag event sent from 14118 * driver/firmware to indicate DHCP discovery to AP. Uses the following 14119 * attributes of enum qca_wlan_vendor_attr_diag: 14120 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14121 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14122 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14123 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14124 * 14125 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from 14126 * driver/firmware to indicate DHCP offering to AP. Uses the following 14127 * attributes of enum qca_wlan_vendor_attr_diag: 14128 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14129 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14130 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14131 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14132 * 14133 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from 14134 * driver/firmware to indicate driver sent DHCP packets. 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_FRAME_TX_STATUS, 14138 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14139 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14140 * 14141 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver 14142 * /firmware to indicate acknowledgement of DHCP packets. Uses the following 14143 * attributes of enum qca_wlan_vendor_attr_diag: 14144 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14145 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14146 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14147 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14148 * 14149 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver 14150 * /firmware to indicate negative acknowledgement of DHCP packets. Uses the 14151 * following attributes of enum qca_wlan_vendor_attr_diag: 14152 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14153 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14154 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14155 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14156 * 14157 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver 14158 * /firmware to indicate EAPOL M1 message. Uses the following attributes of 14159 * enum qca_wlan_vendor_attr_diag: 14160 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14161 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14162 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14163 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14164 * 14165 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver 14166 * /firmware to indicate EAPOL M2 message. Uses the following attributes of 14167 * enum qca_wlan_vendor_attr_diag: 14168 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14169 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14170 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14171 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14172 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14173 * 14174 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver 14175 * /firmware to indicate EAPOL M3 message. Uses the following attributes of 14176 * enum qca_wlan_vendor_attr_diag: 14177 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14178 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14179 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14180 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14181 * 14182 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver 14183 * /firmware to indicate EAPOL M4 message. Uses the following attributes of 14184 * enum qca_wlan_vendor_attr_diag: 14185 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14186 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14187 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14188 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14189 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14190 * 14191 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver 14192 * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of 14193 * enum qca_wlan_vendor_attr_diag: 14194 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14195 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14196 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14197 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14198 * 14199 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver 14200 * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of 14201 * enum qca_wlan_vendor_attr_diag: 14202 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14203 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14204 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14205 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14206 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14207 * 14208 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver 14209 * /firmware to indicate device sent EAP request. Uses the following attributes 14210 * of enum qca_wlan_vendor_attr_diag: 14211 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14212 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE, 14213 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN, 14214 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14215 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14216 * 14217 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver 14218 * /firmware to indicate device received EAP response. Uses the following 14219 * attributes of enum qca_wlan_vendor_attr_diag: 14220 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14221 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE, 14222 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN, 14223 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14224 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14225 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14226 * 14227 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver 14228 * /firmware to indicate EAP frame transmission is success. Uses the following 14229 * attributes of enum qca_wlan_vendor_attr_diag: 14230 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14231 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14232 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14233 * 14234 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver 14235 * /firmware to indicate EAP frame transmission is failed. Uses the following 14236 * attributes of 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_KERNEL_TIMESTAMP. 14240 * 14241 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver 14242 * /firmware to indicate Reassocation request. Uses the following attributes 14243 * of enum qca_wlan_vendor_attr_diag: 14244 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 14245 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14246 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 14247 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 14248 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14249 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14250 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 14251 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP. 14252 * 14253 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver 14254 * /firmware to indicate Reassocation response. Uses the following attributes 14255 * of enum qca_wlan_vendor_attr_diag: 14256 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 14257 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14258 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 14259 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 14260 * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID, 14261 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14262 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 14263 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP. 14264 */ 14265 enum qca_vendor_attr_diag_event_type { 14266 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0, 14267 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1, 14268 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2, 14269 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3, 14270 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4, 14271 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5, 14272 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6, 14273 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7, 14274 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8, 14275 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9, 14276 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10, 14277 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11, 14278 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12, 14279 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13, 14280 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14, 14281 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15, 14282 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16, 14283 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17, 14284 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18, 14285 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19, 14286 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20, 14287 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21, 14288 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22, 14289 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23, 14290 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24, 14291 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25, 14292 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26, 14293 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27, 14294 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28, 14295 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29, 14296 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30, 14297 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31, 14298 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32, 14299 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33, 14300 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34, 14301 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35, 14302 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36, 14303 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37, 14304 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38, 14305 14306 /* keep last */ 14307 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST, 14308 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX = 14309 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1, 14310 }; 14311 14312 /** 14313 * enum qca_wlan_vendor_tx_status - Used by attribute 14314 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status. 14315 * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air. 14316 * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement 14317 * is not received. 14318 * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and 14319 * acknowledged. 14320 */ 14321 enum qca_wlan_vendor_tx_status { 14322 QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1, 14323 QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2, 14324 QCA_WLAN_VENDOR_TX_STATUS_ACK = 3, 14325 }; 14326 14327 /** 14328 * enum qca_roam_sub_reason - Used by attribute 14329 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON 14330 * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic 14331 * timer expiry 14332 * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due 14333 * to no candidate found during LOW RSSI trigger. 14334 * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc 14335 * Imminent timeout 14336 * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan 14337 * failure 14338 * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to 14339 * emergency like deauth/disassoc. 14340 * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to 14341 * BSS transition management request. 14342 * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI: 14343 * Roam scan triggered due to Low RSSI periodic timer 14344 * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU: 14345 * Roam trigger due to periodic timer after no candidate found during CU 14346 * inactivity timer scan. 14347 * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate 14348 * found in high CU roam trigger. 14349 */ 14350 enum qca_roam_sub_reason { 14351 QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1, 14352 QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2, 14353 QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3, 14354 QCA_ROAM_SUB_REASON_FULL_SCAN = 4, 14355 QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5, 14356 QCA_ROAM_SUB_REASON_CU_PERIODIC = 6, 14357 QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7, 14358 QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8, 14359 QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9, 14360 }; 14361 14362 /* 14363 * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver 14364 * to send diag data to the userspace. The attributes defined in this enum are 14365 * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA. 14366 * 14367 * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used 14368 * by driver/firmware to send diag data. Each instance of this nested attribute 14369 * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other 14370 * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the 14371 * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this 14372 * nested attribute can be sent with one vendor command 14373 * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA. 14374 * 14375 * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This 14376 * attribute indicates the type of the diag event from driver/firmware. Uses 14377 * values from enum qca_vendor_attr_diag_event_type. 14378 * 14379 * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This 14380 * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64() 14381 * API to send time of the day in microseconds to userspace. 14382 * 14383 * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute. 14384 * This attribute indicates firmware timestamp in microseconds. 14385 * 14386 * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute 14387 * indicates wlan interface index. 14388 * 14389 * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute 14390 * indicates 6-byte MAC address representing the BSSID of the AP. 14391 * 14392 * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute 14393 * indicates the 6-byte MAC address representing the BSSID hint sent in 14394 * the connect request. 14395 * 14396 * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute 14397 * indicates the SSID in u8 array with a maximum length of 32. 14398 * 14399 * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute 14400 * indicates the frequency of AP in MHz. 14401 * 14402 * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute 14403 * indicates frequency hint given in the connect request in MHz. 14404 * 14405 * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute. 14406 * This attribute indicates RSSI of the 802.11 frame in dBm. 14407 * 14408 * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute. 14409 * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020 14410 * Table 12-10—Integrity and key wrap algorithms. 14411 * 14412 * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute. 14413 * This attribute indicates Group cipher suite defined in IEEE 802.11 2020 14414 * Table 12-10—Integrity and key wrap algorithms. 14415 * 14416 * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This 14417 * attribute indicates Group management cipher suite defined in IEEE Std 14418 * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms. 14419 * 14420 * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute 14421 * indicates Auth key management suite defined in IEEE Std 802.11‐2020 14422 * Table 9-151—AKM suite selectors. 14423 * 14424 * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute 14425 * indicates authentication algorithm number defined in IEEE Std 802.11‐2020 14426 * Section 9.4.1.1 Authentication Algorithm Number field. 14427 * 14428 * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute 14429 * indicates bluetooth COEX is active or not. 14430 * 14431 * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This 14432 * attribute indicates SAE authentication frame type. The possible values are 14433 * 1 - SAE commit frame 14434 * 2 - SAE confirm frame 14435 * 14436 * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This 14437 * attribute indicates the reason codes defined in IEEE Std 802.11‐2020 14438 * Table 9-49—Reason codes. 14439 * 14440 * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This 14441 * attribute indicates sequence number of the frame defined in IEEE Std 14442 * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number 14443 * field. 14444 * 14445 * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This 14446 * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table 14447 * 9-50—Status codes. 14448 * 14449 * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute. 14450 * Uses enum qca_wlan_vendor_tx_status. 14451 * 14452 * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute 14453 * indicates if frame transmission is retried. 14454 * 14455 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute. 14456 * Uses enum qca_roam_reason. 14457 * 14458 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute. 14459 * Uses enum qca_roam_sub_reason. 14460 * 14461 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute 14462 * indicates channel utilization in percentage. 14463 * 14464 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This 14465 * attribute indicates scan type used. Uses enum qca_roam_scan_scheme. 14466 * 14467 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute. 14468 * This attribute indicates current RSSI threshold in dBm. 14469 * 14470 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute. 14471 * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE 14472 * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ. 14473 * 14474 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute. 14475 * This attribute indicates number of scanned candidate APs. 14476 * 14477 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This 14478 * attribute indicates roam AP rank computed based on connection preference. 14479 * 14480 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute. 14481 * This attribute indicates expected throughput in kbps. 14482 * 14483 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute. 14484 * This attribute indicates the preference value of candidate AP / connected AP 14485 * calculated in the firmware. 14486 * 14487 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute 14488 * indicates connection/roaming is successful or not. 14489 * 14490 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute. 14491 * This attribute indicates BTM WTC sub reason code in the WTC vendor specific 14492 * IE present in the BTM frame. 14493 * 14494 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute. 14495 * This attribute indicates BTM WTC duration in milliseconds. 14496 * 14497 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute 14498 * indicates dialog token value of BTM query/request/response frames. 14499 * 14500 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This 14501 * attribute indicates the Transition Reason field indicates the reason why 14502 * a transition attempt occurred and contains one of the values defined in IEEE 14503 * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons. 14504 * 14505 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute 14506 * indicates BTM mode defined in IEEE Std 802.11‐2020 14507 * Figure 9-924—Request Mode field format. 14508 * 14509 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute. 14510 * This attribute indicates the Disassociation Timer field which is the number 14511 * of beacon transmission times (TBTTs) until the serving AP will send a 14512 * Disassociation frame to this STA. 14513 * 14514 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute. 14515 * This attribute indicates BTM validity interval field in TBTTs defined in 14516 * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame 14517 * Action field format. 14518 * 14519 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute. 14520 * This attribute indicates BTM candidate list entries. 14521 * 14522 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute. 14523 * This attribute indicates network preference for BTM transition defined in 14524 * IEEE Std 802.11‐2020 Table 9-174—Preference field values. 14525 * 14526 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute. 14527 * This attribute indicates BTM transition status code defined in IEEE Std 14528 * 802.11‐2020 Table 9-428—BTM status code definitions. 14529 * 14530 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute. 14531 * This attribute indicates BSS termination delay defined in IEEE Std 14532 * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format. 14533 * 14534 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute. 14535 * This attribute indicates 6-byte MAC address representing the BSSID of the 14536 * BSS that the non-AP STA transitions to. 14537 * 14538 * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute 14539 * indicates EAP frame type. The methods are enumerated by IANA at 14540 * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml. 14541 * 14542 * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute 14543 * indicates EAP frame length. 14544 * 14545 * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This 14546 * attribute indicates the kernel timestamp. Driver uses ktime_get() API 14547 * (Time from boot but not the time spent in suspend) to send in microseconds 14548 * to userspace. 14549 * 14550 * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute 14551 * indicates the association id received in the (re)association response frame 14552 * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format. 14553 */ 14554 enum qca_wlan_vendor_attr_diag { 14555 QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0, 14556 QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1, 14557 QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2, 14558 QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3, 14559 QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4, 14560 QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5, 14561 QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6, 14562 QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7, 14563 QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8, 14564 QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9, 14565 QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10, 14566 QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11, 14567 QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12, 14568 QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13, 14569 QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14, 14570 QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15, 14571 QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16, 14572 QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17, 14573 QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18, 14574 QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19, 14575 QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20, 14576 QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21, 14577 QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22, 14578 QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23, 14579 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24, 14580 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25, 14581 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26, 14582 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27, 14583 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28, 14584 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29, 14585 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30, 14586 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31, 14587 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32, 14588 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33, 14589 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34, 14590 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35, 14591 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36, 14592 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37, 14593 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38, 14594 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39, 14595 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40, 14596 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41, 14597 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42, 14598 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43, 14599 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44, 14600 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45, 14601 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46, 14602 QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47, 14603 QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48, 14604 QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49, 14605 QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50, 14606 14607 /* keep last */ 14608 QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST, 14609 QCA_WLAN_VENDOR_ATTR_DIAG_MAX = 14610 QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1, 14611 }; 14612 14613 /** 14614 * qca_wlan_vendor_monitor_data_frame_type - Represent the various 14615 * data types to be sent over the monitor interface. 14616 */ 14617 enum qca_wlan_vendor_monitor_data_frame_type { 14618 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0), 14619 14620 /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is 14621 not set */ 14622 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1), 14623 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2), 14624 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3), 14625 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4), 14626 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5), 14627 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6), 14628 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7), 14629 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8), 14630 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9), 14631 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10), 14632 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11), 14633 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12), 14634 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13), 14635 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14), 14636 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15), 14637 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16), 14638 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17), 14639 }; 14640 14641 /** 14642 * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various 14643 * mgmt types to be sent over the monitor interface. 14644 * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames. 14645 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames 14646 * except the Beacons. Valid only in the Connect state. 14647 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected 14648 * BSSID Beacons. Valid only in the Connect state. 14649 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents 14650 * the Beacons obtained during the scan (off channel and connected channel) 14651 * when in connected state. 14652 */ 14653 14654 enum qca_wlan_vendor_monitor_mgmt_frame_type { 14655 QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0), 14656 /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */ 14657 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1), 14658 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2), 14659 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3), 14660 }; 14661 14662 /** 14663 * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various 14664 * ctrl types to be sent over the monitor interface. 14665 * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames. 14666 * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame. 14667 */ 14668 enum qca_wlan_vendor_monitor_ctrl_frame_type { 14669 QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0), 14670 /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */ 14671 QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1), 14672 }; 14673 14674 /** 14675 * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the 14676 * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the 14677 * monitor mode. 14678 * 14679 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute, 14680 * Represents the tx data packet type to be monitored (u32). These data packets 14681 * are represented by enum qca_wlan_vendor_monitor_data_frame_type. 14682 * 14683 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute, 14684 * Represents the tx data packet type to be monitored (u32). These data packets 14685 * are represented by enum qca_wlan_vendor_monitor_data_frame_type. 14686 * 14687 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute, 14688 * Represents the tx data packet type to be monitored (u32). These mgmt packets 14689 * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type. 14690 * 14691 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute, 14692 * Represents the tx data packet type to be monitored (u32). These mgmt packets 14693 * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type. 14694 * 14695 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute, 14696 * Represents the tx data packet type to be monitored (u32). These ctrl packets 14697 * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type. 14698 * 14699 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute, 14700 * Represents the tx data packet type to be monitored (u32). These ctrl packets 14701 * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type. 14702 * 14703 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: 14704 * u32 attribute, An interval only for the connected beacon interval, which 14705 * expects that the connected BSSID's beacons shall be sent on the monitor 14706 * interface only on this specific interval. 14707 */ 14708 enum qca_wlan_vendor_attr_set_monitor_mode { 14709 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0, 14710 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1, 14711 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2, 14712 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3, 14713 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4, 14714 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5, 14715 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6, 14716 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7, 14717 14718 /* keep last */ 14719 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST, 14720 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX = 14721 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1, 14722 14723 }; 14724 14725 /** 14726 * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags. 14727 * Bits will be set to 1 if the corresponding state is enabled. 14728 * 14729 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start. 14730 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end. 14731 */ 14732 enum qca_wlan_vendor_roam_scan_state { 14733 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0), 14734 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1), 14735 }; 14736 14737 /** 14738 * enum qca_wlan_vendor_roam_event_type - Roam event type flags. 14739 * Bits will be set to 1 if the corresponding event is notified. 14740 * 14741 * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event 14742 * carries the trigger reason. When set, it is expected that the roam event 14743 * carries the respective reason via the attribute 14744 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries 14745 * the BSSID, RSSI, frequency info of the AP to which the roam is attempted. 14746 * 14747 * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event 14748 * carries the roam fail reason. When set, it is expected that the roam event 14749 * carries the respective reason via the attribute 14750 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the 14751 * BSSID, RSSI, frequency info of the AP to which the roam was attempted. 14752 * 14753 * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam 14754 * event carries the roam invoke fail reason. When set, it is expected that 14755 * the roam event carries the respective reason via the attribute 14756 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON. 14757 * 14758 * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event 14759 * carries the roam scan state. When set, it is expected that the roam event 14760 * carries the respective scan state via the attribute 14761 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding 14762 * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST. 14763 */ 14764 enum qca_wlan_vendor_roam_event_type { 14765 QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0), 14766 QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1), 14767 QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2), 14768 QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3), 14769 }; 14770 14771 /** 14772 * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info. 14773 * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO. 14774 * 14775 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address 14776 * representing the BSSID of the AP to which the Roam is attempted. 14777 * 14778 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value 14779 * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is 14780 * attempted. 14781 * 14782 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz 14783 * on which the roam is attempted. 14784 * 14785 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in 14786 * STA mode only. This represents the roam fail reason for the last failed 14787 * roaming attempt by the firmware for the specific BSSID. Different roam 14788 * failure reason codes are specified in enum qca_vendor_roam_fail_reasons. 14789 */ 14790 enum qca_wlan_vendor_attr_roam_events_candidate_info { 14791 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0, 14792 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1, 14793 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2, 14794 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3, 14795 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4, 14796 14797 /* keep last */ 14798 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST, 14799 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX = 14800 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1, 14801 }; 14802 14803 /** 14804 * enum qca_wlan_vendor_attr_roam_events - Used by the 14805 * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the 14806 * roam events to the driver or notify these events from the driver. 14807 * 14808 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the 14809 * driver/firmware to enable/disable the notification of roam events. It's a 14810 * mandatory attribute and used only in the request from the userspace to the 14811 * host driver. 1-Enable, 0-Disable. 14812 * If the roaming is totally offloaded to the firmware, this request when 14813 * enabled shall mandate the firmware to notify all the relevant roam events 14814 * represented by the below attributes. If the host is in the suspend mode, 14815 * the behavior of the firmware to notify these events is guided by 14816 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get 14817 * these events in the suspend state, the firmware is expected to wake up the 14818 * host before the respective events are notified. Please note that such a 14819 * request to get the events in the suspend state will have a definite power 14820 * implication. 14821 * 14822 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents 14823 * that the roam events need to be notified in the suspend state too. By 14824 * default, these roam events are notified in the resume state. With this flag, 14825 * the roam events are notified in both resume and suspend states. 14826 * This attribute is used in the request from the userspace to the host driver. 14827 * 14828 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only. 14829 * Represents the different roam event types, signified by the enum 14830 * qca_wlan_vendor_roam_event_type. 14831 * Each bit of this attribute represents the different roam even types reported 14832 * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14833 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14834 * 14835 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA 14836 * mode only. This represents the roam trigger reason for the last roaming 14837 * attempted by the firmware. Each bit of this attribute represents the 14838 * different roam trigger reason code which are defined in enum 14839 * qca_vendor_roam_triggers. 14840 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14841 * 14842 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in 14843 * STA mode only. This represents the roam invoke fail reason for the last 14844 * failed roam invoke. Different roam invoke failure reason codes 14845 * are specified in enum qca_vendor_roam_invoke_fail_reasons. 14846 * 14847 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info 14848 * for which the roam is attempted. Each entry is a nested attribute defined 14849 * by enum qca_wlan_vendor_attr_roam_events_candidate_info. 14850 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14851 * 14852 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents 14853 * the scan state on which the roam events need to be notified. The values for 14854 * this attribute are referred from enum qca_wlan_vendor_roam_scan_state. 14855 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14856 * 14857 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of 14858 * u32 values. List of frequencies in MHz considered for a roam scan. 14859 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14860 */ 14861 14862 enum qca_wlan_vendor_attr_roam_events { 14863 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0, 14864 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1, 14865 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2, 14866 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3, 14867 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4, 14868 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5, 14869 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6, 14870 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7, 14871 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8, 14872 14873 /* keep last */ 14874 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST, 14875 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX = 14876 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1, 14877 }; 14878 14879 /* 14880 * enum qca_wlan_ratemask_params_type - Rate mask config type. 14881 * 14882 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config 14883 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config 14884 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config 14885 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config 14886 */ 14887 enum qca_wlan_ratemask_params_type { 14888 QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0, 14889 QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1, 14890 QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2, 14891 QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3, 14892 }; 14893 14894 /* enum qca_wlan_vendor_attr_ratemask_params - Used by the 14895 * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG. 14896 * This is used to set the rate mask value to be used in rate selection. 14897 * 14898 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST: 14899 * Array of nested containing attributes 14900 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and 14901 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP. 14902 * 14903 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents 14904 * the different phy types to which the rate mask config is to be applied. 14905 * The values for this attribute are referred from enum 14906 * qca_wlan_vendor_ratemask_params_type. 14907 * 14908 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap. 14909 * A bit value of 1 represents rate is enabled and a value of 0 14910 * represents rate is disabled. 14911 * For HE targets, 12 bits correpond to one NSS setting. 14912 * b0-13 => NSS1, MCS 0-13 14913 * b14-27 => NSS2, MCS 0-13 and so on for other NSS. 14914 * For VHT targets, 10 bits correspond to one NSS setting. 14915 * b0-9 => NSS1, MCS 0-9 14916 * b10-19 => NSS2, MCS 0-9 and so on for other NSS. 14917 * For HT targets, 8 bits correspond to one NSS setting. 14918 * b0-7 => NSS1, MCS 0-7 14919 * b8-15 => NSS2, MCS 0-7 and so on for other NSS. 14920 * For OFDM/CCK targets, 8 bits correspond to one NSS setting. 14921 */ 14922 14923 enum qca_wlan_vendor_attr_ratemask_params { 14924 QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0, 14925 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1, 14926 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2, 14927 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3, 14928 14929 /* keep last */ 14930 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST, 14931 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX = 14932 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1, 14933 }; 14934 14935 /** 14936 * enum qca_wlan_vendor_flush_pending_policy: Represents values for 14937 * the policy to flush pending frames, configured via 14938 * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the 14939 * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY. 14940 * 14941 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all 14942 * the flush policy configured before. This command basically disables the 14943 * flush config set by the user. 14944 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures 14945 * the flush policy to be immediate. All pending packets for the peer/TID are 14946 * flushed when this command/policy is received. 14947 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures 14948 * the flush policy to the end of TWT SP. All pending packets for the peer/TID 14949 * are flushed when the end of TWT SP is reached. 14950 */ 14951 enum qca_wlan_vendor_flush_pending_policy { 14952 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0, 14953 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1, 14954 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2, 14955 }; 14956 14957 /** 14958 * enum qca_wlan_vendor_attr_flush_pending - Attributes for 14959 * flushing pending traffic in firmware. 14960 * 14961 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address. 14962 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending 14963 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK, 14964 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to 14965 * flush packets with access category. This is optional. See below. 14966 * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets. 14967 * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding 14968 * bit to 1 to act upon the TID. This is optional. Either this attribute or 14969 * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided, 14970 * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided 14971 * it is an error. 14972 * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending 14973 * packets corresponding to the peer/TID provided. It is a u32 value, 14974 * represented by %enum qca_wlan_vendor_flush_pending_policy. This 14975 * value is honored only when TID mask is provided. This is not honored when AC 14976 * mask is provided. 14977 */ 14978 enum qca_wlan_vendor_attr_flush_pending { 14979 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0, 14980 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1, 14981 QCA_WLAN_VENDOR_ATTR_AC = 2, 14982 QCA_WLAN_VENDOR_ATTR_TID_MASK = 3, 14983 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4, 14984 /* keep last */ 14985 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST, 14986 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX = 14987 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1, 14988 }; 14989 14990 /** 14991 * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys 14992 * for) or drop existing PASN security association for the listed the 14993 * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver 14994 * to userspace. 14995 * 14996 * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer 14997 * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR. 14998 * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from 14999 * the driver to userspace to inform that the existing PASN keys of the 15000 * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are 15001 * not valid anymore. 15002 */ 15003 enum qca_wlan_vendor_pasn_action { 15004 QCA_WLAN_VENDOR_PASN_ACTION_AUTH, 15005 QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT, 15006 }; 15007 15008 /** 15009 * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in 15010 * QCA_WLAN_VENDOR_ATTR_PASN_PEERS. 15011 * 15012 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the 15013 * event from the driver to userspace and represents the local MAC address 15014 * to be used for PASN handshake. When this attribute is present, userspace 15015 * shall use the source address specified in this attribute by the driver 15016 * for PASN handshake with peer device. 15017 * This attribute is required in a command response from userspace to the 15018 * driver and represents the MAC address that was used in PASN handshake 15019 * with the peer device. 15020 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the 15021 * peer device to which PASN handshake is requested in an event from the 15022 * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to 15023 * QCA_WLAN_VENDOR_PASN_ACTION_AUTH. 15024 * Indicates the MAC address of the peer device for which the keys are to 15025 * be invalidated in an event from the driver to userspace when 15026 * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to 15027 * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT. 15028 * Indicates the MAC address of the peer device for which the status is 15029 * being sent in a status report from userspace to the driver. 15030 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used 15031 * in the event from the driver to userspace. When set, userspace is 15032 * required to derive LTF key seed from KDK and set it to the driver. 15033 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This 15034 * attribute is used in the command response from userspace to the driver. 15035 * If present, it indicates the successful PASN handshake with the peer. If 15036 * this flag is not present, it indicates that the PASN handshake with the 15037 * peer device failed. 15038 */ 15039 enum qca_wlan_vendor_attr_pasn_peer { 15040 QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0, 15041 QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1, 15042 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2, 15043 QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3, 15044 QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4, 15045 15046 /* keep last */ 15047 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST, 15048 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX = 15049 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1, 15050 }; 15051 15052 /** 15053 * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the 15054 * QCA_NL80211_VENDOR_SUBCMD_PASN command. 15055 * 15056 * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are 15057 * defined in enum qca_wlan_vendor_pasn_action and used only in an event 15058 * from the driver to userspace. 15059 * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer 15060 * details for each peer and used in both an event and a command response. 15061 * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are 15062 * defined in enum qca_wlan_vendor_attr_pasn_peer. 15063 */ 15064 enum qca_wlan_vendor_attr_pasn { 15065 QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0, 15066 QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1, 15067 QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2, 15068 15069 /* keep last */ 15070 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST, 15071 QCA_WLAN_VENDOR_ATTR_PASN_MAX = 15072 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1, 15073 }; 15074 15075 /** 15076 * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete 15077 * the ranging security context derived from PASN for each peer. Used in 15078 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION. 15079 * 15080 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging 15081 * context for the peer. 15082 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging 15083 * context for the peer. 15084 */ 15085 enum qca_wlan_vendor_secure_ranging_ctx_action { 15086 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD, 15087 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE, 15088 }; 15089 15090 /** 15091 * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type 15092 * used for deriving PASN keys to the driver. Used in 15093 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE 15094 * @QCA_WLAN_VENDOR_SHA_256: SHA-256 15095 * @QCA_WLAN_VENDOR_SHA_384: SHA-384 15096 */ 15097 enum qca_wlan_vendor_sha_type { 15098 QCA_WLAN_VENDOR_SHA_256, 15099 QCA_WLAN_VENDOR_SHA_384, 15100 }; 15101 15102 /** 15103 * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used 15104 * to set security context for the PASN peer from userspace to the driver. 15105 * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT. 15106 * 15107 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible 15108 * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action 15109 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that 15110 * was used during the PASN handshake. 15111 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of 15112 * the peer device for which secure ranging context is being configured. 15113 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the 15114 * hash algorithm to be used, possible values are defined in enum 15115 * qca_wlan_vendor_sha_type. 15116 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds 15117 * the temporal key generated from the PASN handshake. The length of this 15118 * attribute is dependent on the value of 15119 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER. 15120 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the 15121 * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites) 15122 * (e.g., 0x000FAC04). 15123 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length 15124 * attribute, holds the LTF keyseed derived from KDK of PASN handshake. 15125 * The length of this attribute is dependent on the value of 15126 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE. 15127 * 15128 */ 15129 enum qca_wlan_vendor_attr_secure_ranging_ctx { 15130 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0, 15131 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1, 15132 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2, 15133 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3, 15134 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4, 15135 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5, 15136 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6, 15137 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7, 15138 15139 /* keep last */ 15140 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST, 15141 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX = 15142 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1, 15143 }; 15144 15145 /** 15146 * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used 15147 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER 15148 * nested attribute. The packets that match a filter will be replied with 15149 * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY. 15150 * 15151 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4: 15152 * u32 attribute. Destination IPv4 address in network byte order, the 15153 * IPv4 packets with different address will be filtered out. 15154 * This attribute is optional. 15155 * 15156 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC: 15157 * Flag attribute. If it's present, indicates that 15158 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast 15159 * address; while if not, indicates that the address is a unicast/multicast 15160 * address. 15161 * This attribute is optional. 15162 * 15163 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6: 15164 * NLA_BINARY attribute, length is 16 bytes. 15165 * Destination IPv6 address in network byte order, the IPv6 packets 15166 * with different destination address will be filtered out. 15167 * This attribute is optional. 15168 * 15169 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and 15170 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured. 15171 * Packets on both IPv4 and IPv6 will be processed if both are configured. 15172 * 15173 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT: 15174 * u16 attribute. Destination UDP port, the packets with different destination 15175 * UDP port will be filtered out. 15176 * This attribute is mandatory. 15177 * 15178 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET: 15179 * u32 attribute. Represents the offset (in UDP payload) of the data 15180 * to be matched. 15181 * This attribute is mandatory. 15182 * 15183 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA: 15184 * NLA_BINARY attribute, the maximum allowed size is 16 bytes. 15185 * Binary data that is compared bit-by-bit against the data (specified 15186 * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP 15187 * payload, the packets don't match will be filtered out. 15188 * This attribute is mandatory. 15189 */ 15190 enum qca_wlan_vendor_attr_coap_offload_filter { 15191 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0, 15192 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1, 15193 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2, 15194 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3, 15195 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4, 15196 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5, 15197 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6, 15198 15199 /* keep last */ 15200 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST, 15201 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX = 15202 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1, 15203 }; 15204 15205 /** 15206 * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used 15207 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute. 15208 * 15209 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4: 15210 * u32 attribute. Source address (in network byte order) for replying 15211 * the matching broadcast/multicast IPv4 packets. 15212 * This attribute is optional. 15213 * 15214 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6: 15215 * NLA_BINARY attribute, length is 16 bytes. 15216 * Source address (in network byte order) for replying the matching 15217 * multicast IPv6 packets. 15218 * This attribute is optional. 15219 * 15220 * For broadcast/multicast offload reply, one of 15221 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and 15222 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be 15223 * configured according to version of the IP address(es) configured in 15224 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER; 15225 * while for unicast case, firmware will take the destination IP address 15226 * in the received matching packet as the source address for replying. 15227 * 15228 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER: 15229 * Nested attribute. Filter for the received UDP packets, only the matching 15230 * packets will be replied and cached. 15231 * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported 15232 * attributes. 15233 * This attribute is mandatory. 15234 * 15235 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG: 15236 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 15237 * CoAP message (UDP payload) to be sent upon receiving matching packets. 15238 * Firmware is responsible for adding any necessary protocol headers. 15239 * This attribute is mandatory. 15240 * 15241 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME: 15242 * u32 attribute. Expiration time in milliseconds of the cached CoAP messages. 15243 * A cached message will be dropped by firmware if it's expired. 15244 * This attribute is optional. A default value of 40000 will be used in the 15245 * absence of it. 15246 */ 15247 enum qca_wlan_vendor_attr_coap_offload_reply { 15248 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0, 15249 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1, 15250 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2, 15251 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3, 15252 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4, 15253 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5, 15254 15255 /* keep last */ 15256 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST, 15257 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX = 15258 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1, 15259 }; 15260 15261 /** 15262 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for 15263 * CoAP message (UDP) transmitting on IPv4. 15264 * 15265 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR: 15266 * u32 attribute. Source address (in network byte order) for transmitting 15267 * packets on IPv4. 15268 * This attribute is mandatory. 15269 * 15270 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT: 15271 * u16 attribute. Source UDP port. 15272 * This attribute is optional, a random port is taken if it's not present. 15273 * 15274 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR: 15275 * u32 attribute. Destination IPv4 address (in network byte order). 15276 * This attribute is mandatory. 15277 * 15278 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC: 15279 * Flag attribute. If it's present, indicates that 15280 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast 15281 * address; while if not, indicates that the address is unicast/multicast 15282 * address. 15283 * This attribute is optional. 15284 * 15285 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT: 15286 * u16 attribute. Destination UDP port. 15287 * This attribute is mandatory. 15288 */ 15289 enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 { 15290 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0, 15291 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1, 15292 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2, 15293 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3, 15294 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4, 15295 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5, 15296 15297 /* keep last */ 15298 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST, 15299 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX = 15300 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1, 15301 }; 15302 15303 /** 15304 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for 15305 * CoAP message (UDP) transmitting on IPv6. 15306 * 15307 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR: 15308 * NLA_BINARY attribute, length is 16 bytes. 15309 * Source address (in network byte order) for transmitting packets on IPv6. 15310 * This attribute is mandatory. 15311 * 15312 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT: 15313 * u16 attribute. Source UDP port. 15314 * This attribute is optional, a random port is taken if it's not present. 15315 * 15316 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR: 15317 * NLA_BINARY attribute, length is 16 bytes. 15318 * Destination IPv6 address (in network byte order). 15319 * This attribute is mandatory. 15320 * 15321 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT: 15322 * u16 attribute. Destination UDP port. 15323 * This attribute is mandatory. 15324 */ 15325 enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 { 15326 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0, 15327 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1, 15328 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2, 15329 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3, 15330 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4, 15331 15332 /* keep last */ 15333 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST, 15334 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX = 15335 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1, 15336 }; 15337 15338 /** 15339 * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used 15340 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute. 15341 * 15342 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4: 15343 * Nested attribute. The IPv4 source/destination address/port for offload 15344 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list 15345 * of supported attributes. 15346 * This attribute is optional. 15347 * 15348 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6: 15349 * Nested attribute. The IPv6 source/destination address/port for offload 15350 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list 15351 * of supported attributes. 15352 * This attribute is optional. 15353 * 15354 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and 15355 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured. 15356 * Firmware will transmit the packets on both IPv4 and IPv6 if both are 15357 * configured. 15358 * 15359 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD: 15360 * u32 attribute. Period in milliseconds for the periodic transmitting. 15361 * This attribute is mandatory. 15362 * 15363 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG: 15364 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 15365 * CoAP message (UDP payload) to be periodically transmitted. Firmware 15366 * is responsible for adding any necessary protocol headers. 15367 * This attribute is mandatory. 15368 */ 15369 enum qca_wlan_vendor_attr_coap_offload_periodic_tx { 15370 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0, 15371 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1, 15372 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2, 15373 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3, 15374 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4, 15375 15376 /* keep last */ 15377 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST, 15378 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX = 15379 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1, 15380 }; 15381 15382 /** 15383 * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used 15384 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute. 15385 * 15386 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS: 15387 * u64 attribute. Received time (since system booted in microseconds) of 15388 * the cached CoAP message. 15389 * This attribute is mandatory. 15390 * 15391 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4: 15392 * u32 attribute. Source IPv4 address (in network byte order) of the cached 15393 * CoAP message. 15394 * This attribute is optional. 15395 * 15396 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6: 15397 * NLA_BINARY attribute, length is 16 bytes. 15398 * Source IPv6 address (in network byte order) of the cached CoAP message. 15399 * This attribute is optional. 15400 * 15401 * At most and at least one of 15402 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and 15403 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for 15404 * an entry. 15405 * 15406 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG: 15407 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 15408 * The cached CoAP message (UDP payload). If the actual message size is 15409 * greater than the maximum size, it will be truncated and leaving only 15410 * the first 1152 bytes. 15411 * This attribute is mandatory. 15412 */ 15413 enum qca_wlan_vendor_attr_coap_offload_cache_info { 15414 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0, 15415 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1, 15416 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2, 15417 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3, 15418 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4, 15419 15420 /* keep last */ 15421 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST, 15422 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX = 15423 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1, 15424 }; 15425 15426 /** 15427 * enum qca_wlan_vendor_coap_offload_action - Actions for 15428 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD. 15429 * 15430 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE: 15431 * Enable CoAP offload reply. 15432 * If it's enabled, firmware will start offload processing on each suspend 15433 * and stop on each resume. 15434 * 15435 * Offload reply on match works as follows: 15436 * Reply the packets that match the filter with the given CoAP 15437 * message (with necessary protocol headers), increase the CoAP message 15438 * ID in the given CoAP message by one for the next use after each successful 15439 * transmission, and try to store the information of the received packet, 15440 * including the received time, source IP address, and CoAP message (UDP 15441 * payload). 15442 * 15443 * Firmware has a limit to the maximum stored entries, it takes the source IP 15444 * address as the key of an entry, and keeps at most one entry for each key. 15445 * A packet won't be stored if no entry for the same key is present and the 15446 * total number of the existing unexpired entries reaches the maximum value. 15447 * 15448 * If any configured item is changed, user space should disable offload reply 15449 * first and then issue a new enable request. 15450 * 15451 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE: 15452 * Disable CoAP offload reply and return information of any cached CoAP 15453 * messages. 15454 * 15455 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE: 15456 * Enable CoAP offload periodic transmitting. 15457 * If it's enabled, firmware will start offload periodic transmitting on 15458 * each suspend and stop on each resume. 15459 * 15460 * Offload periodic transmitting works as follows: 15461 * Send the given CoAP message (with necessary protocol headers) with the given 15462 * source/destination IP address/UDP port periodically based on the given 15463 * period and increase the CoAP message ID in the given CoAP message by one 15464 * for the next use after each successful transmission. 15465 * 15466 * If any configured item is changed, user space should disable offload 15467 * periodic transmitting first and then issue a new enable request. 15468 * 15469 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE: 15470 * Disable CoAP offload periodic transmitting. 15471 * 15472 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET: 15473 * Get information of the CoAP messages cached during offload reply 15474 * processing. The cache is cleared after retrieval. 15475 */ 15476 enum qca_wlan_vendor_coap_offload_action { 15477 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0, 15478 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1, 15479 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2, 15480 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3, 15481 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4, 15482 }; 15483 15484 /** 15485 * enum qca_wlan_vendor_attr_coap_offload - Used by the 15486 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD. 15487 * This is used to set parameters for CoAP offload processing, or get 15488 * cached CoAP messages from firmware. 15489 * 15490 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION: 15491 * u32 attribute. Action to take in this vendor command. 15492 * See enum qca_wlan_vendor_coap_offload_action for supported actions. 15493 * This attribute is mandatory. 15494 * 15495 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID: 15496 * u32 attribute. Represents the Request ID for the CoAP offload 15497 * configuration, which can help to identify the user entity starting 15498 * the CoAP offload processing and accordingly stop the respective 15499 * ones/get the cached CoAP messages with the matching ID. 15500 * This attribute is mandatory. 15501 * 15502 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY: 15503 * Nested attribute. Parameters for offload reply. 15504 * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of 15505 * supported attributes. 15506 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION 15507 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored 15508 * otherwise. 15509 * 15510 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX: 15511 * Nested attribute. Parameters for offload periodic transmitting. 15512 * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of 15513 * supported attributes. 15514 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is 15515 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored 15516 * otherwise. 15517 * 15518 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES: 15519 * Array of nested attributes. Information of the cached CoAP messages, 15520 * where each entry is taken from 15521 * enum qca_wlan_vendor_attr_coap_offload_cache_info. 15522 * This attribute is used for reporting the cached CoAP messages 15523 * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION 15524 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or 15525 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no 15526 * cached item if this attribute is not present. 15527 */ 15528 enum qca_wlan_vendor_attr_coap_offload { 15529 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0, 15530 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1, 15531 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2, 15532 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3, 15533 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4, 15534 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5, 15535 15536 /* keep last */ 15537 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST, 15538 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX = 15539 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1, 15540 }; 15541 15542 /** 15543 * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command 15544 * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification 15545 * Service (SCS) rule. 15546 * 15547 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute. 15548 * Represents the unique id of SCS rule to be configured. 15549 15550 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute. 15551 * Represents the request type: add, remove, or change. 15552 * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request 15553 * Type definitions). 15554 * 15555 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute 15556 * in case of add/change request type. 15557 * Represents the output traffic identifier (TID) to be assigned to the flow 15558 * matching the rule. 15559 * 15560 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8 15561 * attribute in case of add/change request type. 15562 * Represents type of classifier parameters present in SCS rule. 15563 * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type). 15564 * Only classifier types 4 and 10 are supported for SCS. 15565 * 15566 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute 15567 * in case of add/change request type when classifier type is TCLAS4. 15568 * Represents the IP version (4: IPv4, 6: IPv6) of the rule. 15569 * 15570 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional 15571 * attribute in case of add/change request type when classifier type is TCLAS4 15572 * and version attribute is IPv4. 15573 * Represents the source IPv4 address in the rule which is to be compared 15574 * against the source IP address in the IPv4 header. 15575 * 15576 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional 15577 * attribute in case of add/change request type when classifier type is TCLAS4 15578 * and version attribute is IPv4. 15579 * Represents the destination IPv4 address in the rule which is to be compared 15580 * against the destination IP address in the IPv4 header. 15581 * 15582 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional 15583 * attribute in case of add/change request type when classifier type is TCLAS4 15584 * and version attribute is IPv6. 15585 * Represents the source IPv6 address in the rule which is to be compared 15586 * against the source IP address in the IPv6 header. 15587 * 15588 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional 15589 * attribute in case of add/change request type when classifier type is TCLAS4 15590 * and version attribute is IPv6. 15591 * Represents the destination IPv6 address in the rule which is to be compared 15592 * against the destination IP address in the IPv6 header. 15593 * 15594 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute 15595 * in case of add/change request type when classifier type is TCLAS4. 15596 * Represents the source port number in the rule which is to be compared against 15597 * the source port number in the protocol header. 15598 * 15599 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute 15600 * in case of add/change request type when classifier type is TCLAS4. 15601 * Represents the destination port number in the rule which is to be compared 15602 * against the destination port number in the protocol header. 15603 * 15604 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute 15605 * in case of add/change request type when classifier type is TCLAS4. 15606 * Represents the DSCP value in the rule which is to be compared against the 15607 * DSCP field present in the IP header. 15608 * 15609 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8 15610 * attribute in case of add/change request type when classifier type is TCLAS4. 15611 * Represents the protocol/next header in the rule which is to be compared 15612 * against the protocol/next header field present in the IPv4/IPv6 header. 15613 * 15614 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional 15615 * attribute of size 3 bytes present in case of add/change request type 15616 * when classifier type is TCLAS4 and version is IPv6. 15617 * Represents the flow label value in the rule which is to be compared against 15618 * the flow label field present in the IPv6 header. 15619 * 15620 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8 15621 * attribute in case of add/change request type when classifier type is TCLAS10. 15622 * Represents the protocol instance number in the rule. 15623 * 15624 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8 15625 * attribute in case of add/change request type when classifier type is TCLAS10. 15626 * Represents the protocol/next header in the rule which is to be compared 15627 * against the protocol/next header field present in the IPv4/IPv6 header. 15628 * 15629 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional 15630 * attribute of variable length present when request type is add/change and 15631 * classifier type is TCLAS10. 15632 * Represents the mask to be used for masking the header contents of the header 15633 * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER 15634 * attribute. 15635 * 15636 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional 15637 * attribute of variable length present when request type is add/change and 15638 * classifier type is TCLAS10. 15639 * Represents the value to be compared against after masking the header contents 15640 * of the header specified by the 15641 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the 15642 * filter mask specified by the 15643 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute. 15644 * 15645 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16 15646 * attribute. 15647 * Represents the service class id of the configured SCS rule. 15648 * 15649 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes 15650 * MAC address. 15651 * Represents the destination MAC address in the rule. 15652 * 15653 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute 15654 * Represents the netdevice interface index in the rule. 15655 */ 15656 enum qca_wlan_vendor_attr_scs_rule_config { 15657 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0, 15658 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1, 15659 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2, 15660 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3, 15661 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4, 15662 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5, 15663 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6, 15664 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7, 15665 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8, 15666 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9, 15667 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10, 15668 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11, 15669 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12, 15670 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13, 15671 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14, 15672 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15, 15673 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16, 15674 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17, 15675 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18, 15676 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19, 15677 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20, 15678 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21, 15679 15680 /* Keep last */ 15681 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST, 15682 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX = 15683 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1, 15684 }; 15685 15686 /** 15687 * enum qca_wlan_vendor_sar_version - This describes the current SAR version 15688 * used in the firmware. 15689 * 15690 * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR. 15691 * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits. 15692 * 15693 * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2, 15694 * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for 15695 * each CTL group. So user can select up to 6 SAR indexes from the current CTL 15696 * groups. 15697 * 15698 * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3, 15699 * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each 15700 * CTL group but user can choose up to 3 SAR set index only, as the top half 15701 * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of 15702 * the SAR index (3 to 5) is used for DBS mode. 15703 */ 15704 enum qca_wlan_vendor_sar_version { 15705 QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0, 15706 QCA_WLAN_VENDOR_SAR_VERSION_1 = 1, 15707 QCA_WLAN_VENDOR_SAR_VERSION_2 = 2, 15708 QCA_WLAN_VENDOR_SAR_VERSION_3 = 3, 15709 }; 15710 15711 /** 15712 * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether 15713 * CTL grouping is enabled or disabled in the firmware. 15714 * 15715 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping 15716 * is enabled in firmware. 15717 * 15718 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping 15719 * is disabled in firmware. 15720 * 15721 */ 15722 enum qca_wlan_vendor_sar_ctl_group_state { 15723 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0, 15724 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1, 15725 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2, 15726 }; 15727 15728 /** 15729 * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command 15730 * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities 15731 * supported by the firmware. 15732 15733 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION: 15734 * u32 attribute. This field describes current SAR version supported by the 15735 * firmware. 15736 * See enum qca_wlan_vendor_sar_version for more information. 15737 * This attribute is mandatory. 15738 15739 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE: 15740 * u32 attribute. This field describes whether CTL groups are enabled 15741 * or disabled in the firmware. 15742 * See enum qca_wlan_vendor_sar_ctl_group_state for more information. 15743 * This attribute is optional. 15744 */ 15745 15746 enum qca_wlan_vendor_attr_sar_capability { 15747 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0, 15748 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1, 15749 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2, 15750 15751 /* Keep last */ 15752 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST, 15753 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX = 15754 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1, 15755 }; 15756 15757 /** 15758 * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics. 15759 * These statistics are sent from the driver in a response when userspace 15760 * queries to get the statistics using the operation 15761 * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset 15762 * by the driver when the SR feature is enabled, when the driver receives 15763 * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected. 15764 * 15765 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute. 15766 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15767 * This represents the number of non-SRG TX opportunities. 15768 * 15769 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute. 15770 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15771 * This represents the number of non-SRG PPDUs tried to transmit. 15772 * 15773 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute. 15774 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15775 * This represents the number of non-SRG PPDUs successfully transmitted. 15776 * 15777 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute. 15778 * Mandatory only when SRG is supported by the AP and optional otherwise. 15779 * This represents the number of SRG TX opportunities. 15780 * 15781 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute. 15782 * Mandatory only when SRG is supported by the AP and optional otherwise. 15783 * This represents the number of SRG PPDUs tried to transmit. 15784 * 15785 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute. 15786 * Mandatory only when SRG is supported by the AP and optional otherwise. 15787 * This represents the number of SRG PPDUs successfully transmitted. 15788 */ 15789 enum qca_wlan_vendor_attr_sr_stats { 15790 QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0, 15791 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1, 15792 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2, 15793 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3, 15794 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4, 15795 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5, 15796 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6, 15797 15798 /* Keep last */ 15799 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST, 15800 QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX = 15801 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1, 15802 }; 15803 15804 /** 15805 * enum qca_wlan_sr_reason_code - Defines the different reason codes used in 15806 * Spatial Reuse feature. 15807 * 15808 * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to 15809 * roaming to an AP that doesn't support/supports SR feature, respectively. 15810 * 15811 * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due 15812 * to change in concurrent interfaces that are supported by the driver. 15813 */ 15814 enum qca_wlan_sr_reason_code { 15815 QCA_WLAN_SR_REASON_CODE_ROAMING = 0, 15816 QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1, 15817 }; 15818 15819 /** 15820 * enum qca_wlan_sr_operation - Defines the different types of SR operations. 15821 * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION. 15822 * 15823 * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the 15824 * driver to enable the Spatial Reuse feature. Attributes 15825 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and 15826 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this 15827 * operation. 15828 * 15829 * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the 15830 * driver to disable the Spatial Reuse feature. 15831 * 15832 * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an 15833 * asynchronous event sent to userspace when the SR feature is disabled. 15834 * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE 15835 * and sent along with the asynchronous event. 15836 * 15837 * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an 15838 * asynchronous event when the SR feature is enabled again after the SR feature 15839 * was suspended by the driver earlier. The enable reason is 15840 * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are 15841 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and 15842 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD. 15843 * 15844 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is 15845 * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial 15846 * reuse transmissions. Userspace sends this operation to the driver. 15847 * The driver/firmware upon receiving this operation shall prohibit PSR-based 15848 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions. 15849 * 15850 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is 15851 * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial 15852 * reuse transmissions. Userspace sends this operation to the driver. 15853 * The driver/firmware upon receiving this operation shall allow PSR-based 15854 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions. 15855 * 15856 * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the 15857 * driver to get the SR statistics and the driver sends a synchronous response 15858 * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the 15859 * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS. 15860 * 15861 * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the 15862 * driver to clear the SR statistics and upon receiving this operation 15863 * the driver/firmware shall clear the SR statistics. 15864 * 15865 * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the 15866 * driver to get the SR parameters and the driver sends the synchronous response 15867 * with the following required attributes: 15868 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET, 15869 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET, 15870 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET, 15871 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE, 15872 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW. 15873 * 15874 * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an 15875 * asynchronous event to userspace to update any changes in SR parameters. 15876 * The following attributes are used with this operation: 15877 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET, 15878 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET, 15879 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET, 15880 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE, 15881 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW. 15882 */ 15883 enum qca_wlan_sr_operation { 15884 QCA_WLAN_SR_OPERATION_SR_ENABLE = 0, 15885 QCA_WLAN_SR_OPERATION_SR_DISABLE = 1, 15886 QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2, 15887 QCA_WLAN_SR_OPERATION_SR_RESUME = 3, 15888 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4, 15889 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5, 15890 QCA_WLAN_SR_OPERATION_GET_STATS = 6, 15891 QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7, 15892 QCA_WLAN_SR_OPERATION_GET_PARAMS = 8, 15893 QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9, 15894 }; 15895 15896 /** 15897 * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration 15898 * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS. 15899 * 15900 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute. 15901 * This attribute is optionally set in response to 15902 * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to 15903 * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std 15904 * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more 15905 * about HESIGA_Spatial_reuse_value15_allowed. 15906 * 15907 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute. 15908 * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS 15909 * operation. This indicates whether non-SRG OBSS PD SR transmissions are 15910 * allowed or not at non-AP STAs that are associated with the AP. If present 15911 * non-SRG OBSS PD SR transmissions are not allowed else are allowed. 15912 * 15913 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8 15914 * attribute. This attribute is used in response to 15915 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD 15916 * Min Offset field which contains an unsigned integer that is added to -82 dBm 15917 * to generate the value of the SRG OBSS PD Min parameter. 15918 * 15919 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8 15920 * attribute. This attribute is used in response to 15921 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD 15922 * Max Offset field which contains an unsigned integer that is added to -82 dBm 15923 * to generate the value of the SRG OBSS PD Max parameter. 15924 * 15925 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8 15926 * attribute. This attribute is used in response to 15927 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS 15928 * PD Max Offset field which contains an unsigned integer that is added to -82 15929 * dBm to generate the value of the Non-SRG OBSS PD Max parameter. 15930 * 15931 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm). 15932 * Userspace optionally sends this attribute with 15933 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the 15934 * preferred SRG PD threshold. The driver shall send this attribute to 15935 * userspace in SR resume event to indicate the PD threshold being used for SR. 15936 * When there is change in SRG PD threshold (for example, due to roaming, etc.) 15937 * the driver shall indicate the userspace the newly configured SRG PD threshold 15938 * using an asynchronous event. 15939 * 15940 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm). 15941 * Userspace optionally sends this attribute with 15942 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the 15943 * preferred non-SRG PD threshold. The driver shall send this attribute to 15944 * userspace in SR resume event to indicate the PD threshold being used for SR. 15945 * When there is change in non-SRG PD threshold (for example, due to roaming, 15946 * etc.) the driver shall indicate the userspace the newly configured non-SRG PD 15947 * threshold using an asynchronous event. 15948 * 15949 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible 15950 * values are defined in enum qca_wlan_sr_reason_code. This 15951 * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and 15952 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations. 15953 */ 15954 enum qca_wlan_vendor_attr_sr_params { 15955 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0, 15956 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1, 15957 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2, 15958 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3, 15959 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4, 15960 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5, 15961 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6, 15962 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7, 15963 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8, 15964 15965 /* keep last */ 15966 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST, 15967 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX = 15968 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1, 15969 }; 15970 15971 /** 15972 * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor 15973 * command QCA_NL80211_VENDOR_SUBCMD_SR. 15974 * 15975 * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests 15976 * from userspace to the driver. Possible values are defined in enum 15977 * qca_wlan_sr_operation. 15978 * 15979 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR 15980 * configuration parameters. The possible attributes inside this attribute are 15981 * defined in enum qca_wlan_vendor_attr_sr_params. 15982 * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to 15983 * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and 15984 * also in response from the driver to userspace when the response is sent for 15985 * %QCA_WLAN_SR_OPERATION_GET_PARAMS. 15986 * The driver uses this attribute in asynchronous events in which the operation 15987 * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME, 15988 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS. 15989 * 15990 * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR 15991 * statistics. These attributes used inside this are defined in enum 15992 * qca_wlan_vendor_attr_sr_stats. 15993 * This attribute is used in response from the driver to a command in which 15994 * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to 15995 * %QCA_WLAN_SR_OPERATION_GET_STATS. 15996 */ 15997 enum qca_wlan_vendor_attr_sr { 15998 QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0, 15999 QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1, 16000 QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2, 16001 QCA_WLAN_VENDOR_ATTR_SR_STATS = 3, 16002 16003 /* Keep last */ 16004 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST, 16005 QCA_WLAN_VENDOR_ATTR_SR_MAX = 16006 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1, 16007 }; 16008 16009 /** 16010 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes 16011 * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand. 16012 * 16013 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address 16014 * used by the peer on the link that corresponds to the link used for sending 16015 * the event notification. 16016 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte 16017 * MLD MAC address of the peer. 16018 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute, 16019 * used to pass ifindex of the primary netdev. 16020 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX: u32 attribute, 16021 * used to pass ifindex of the MLD netdev. 16022 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS: u8 attribute, 16023 * used to indicate the number of links that the non-AP MLD negotiated to be 16024 * used in the ML connection. 16025 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO: Nested 16026 * attribute, contains information regarding links of the non-AP MLD. 16027 * User applications need to know all the links of a non-AP MLD that are 16028 * participating in the ML association. The possible attributes inside this 16029 * attribute are defined in enum qca_wlan_vendor_attr_mlo_link_info. 16030 */ 16031 enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event { 16032 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0, 16033 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1, 16034 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2, 16035 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3, 16036 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX = 4, 16037 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS = 5, 16038 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO = 6, 16039 16040 /* keep last */ 16041 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST, 16042 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX = 16043 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1, 16044 }; 16045 16046 /** 16047 * enum qca_wlan_vendor_attr_mlo_link_info - Defines attributes for 16048 * non-AP MLD link parameters used by the attribute 16049 * %QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO. 16050 * 16051 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX: u32 attribute, used 16052 * to pass the netdev ifindex of the non-AP MLD link. 16053 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR: 6 byte MAC address of 16054 * the non-AP MLD link. 16055 */ 16056 enum qca_wlan_vendor_attr_mlo_link_info { 16057 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_INVALID = 0, 16058 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX = 1, 16059 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR = 2, 16060 16061 /* keep last */ 16062 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST, 16063 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MAX = 16064 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST - 1, 16065 }; 16066 16067 /** 16068 * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with 16069 * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and 16070 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range 16071 * and PSD information. 16072 * 16073 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is 16074 * u32. This attribute is used to indicate the start of the queried frequency 16075 * range in MHz. 16076 * 16077 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32. 16078 * This attribute is used to indicate the end of the queried frequency range 16079 * in MHz. 16080 * 16081 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32. 16082 * This attribute will contain the PSD information for a single range as 16083 * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and 16084 * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes. 16085 * 16086 * The PSD power info (dBm/MHz) from user space should be multiplied 16087 * by a factor of 100 when sending to the driver to preserve granularity 16088 * up to 2 decimal places. 16089 * Example: 16090 * PSD power value: 10.21 dBm/MHz 16091 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021. 16092 * 16093 * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only 16094 * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with 16095 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when 16096 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16097 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE. 16098 * 16099 * The following set of attributes will be used to exchange frequency and 16100 * corresponding PSD information for AFC between the user space and the driver. 16101 */ 16102 enum qca_wlan_vendor_attr_afc_freq_psd_info { 16103 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0, 16104 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1, 16105 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2, 16106 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3, 16107 16108 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST, 16109 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX = 16110 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1, 16111 }; 16112 16113 /** 16114 * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with 16115 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the 16116 * channel list and corresponding EIRP information. 16117 * 16118 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8. 16119 * This attribute is used to indicate queried channel from 16120 * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO. 16121 * 16122 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32. 16123 * This attribute is used to configure the EIRP power info corresponding 16124 * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM. 16125 * The EIRP power info(dBm) from user space should be multiplied 16126 * by a factor of 100 when sending to Driver to preserve granularity up to 16127 * 2 decimal places. 16128 * Example: 16129 * EIRP power value: 34.23 dBm 16130 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423. 16131 * 16132 * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with 16133 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 16134 * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when 16135 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16136 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: 16137 * 16138 * The following set of attributes will be used to exchange Channel and 16139 * corresponding EIRP information for AFC between the user space and Driver. 16140 */ 16141 enum qca_wlan_vendor_attr_afc_chan_eirp_info { 16142 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0, 16143 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1, 16144 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2, 16145 16146 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST, 16147 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX = 16148 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1, 16149 }; 16150 16151 /** 16152 * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested 16153 * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 16154 * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class, 16155 * channel, and EIRP related information. 16156 * 16157 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8. 16158 * This attribute is used to indicate the operating class, as listed under 16159 * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list. 16160 * 16161 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes 16162 * for updating the channel number and EIRP power information. 16163 * It uses the attributes defined in 16164 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. 16165 * 16166 * Operating class information packing format for 16167 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when 16168 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16169 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY. 16170 * 16171 * m - Total number of operating classes. 16172 * n, j - Number of queried channels for the corresponding operating class. 16173 * 16174 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0] 16175 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0] 16176 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 16177 * ..... 16178 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1] 16179 * .... 16180 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m] 16181 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m] 16182 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 16183 * .... 16184 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1] 16185 * 16186 * Operating class information packing format for 16187 * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 16188 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when 16189 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16190 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE. 16191 * 16192 * m - Total number of operating classes. 16193 * n, j - Number of channels for the corresponding operating class. 16194 * 16195 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0] 16196 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0] 16197 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 16198 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0] 16199 * ..... 16200 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1] 16201 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1] 16202 * .... 16203 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m] 16204 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m] 16205 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 16206 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0] 16207 * .... 16208 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1] 16209 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1] 16210 * 16211 * The following set of attributes will be used to exchange operating class 16212 * information for AFC between the user space and the driver. 16213 */ 16214 enum qca_wlan_vendor_attr_afc_opclass_info { 16215 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0, 16216 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1, 16217 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2, 16218 16219 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST, 16220 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX = 16221 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1, 16222 }; 16223 16224 /** 16225 * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type. 16226 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute. 16227 * 16228 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the 16229 * driver to userspace in order to query the new AFC power values. 16230 * 16231 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update 16232 * complete event will be sent from the driver to userspace to indicate 16233 * processing of the AFC response. 16234 * 16235 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event 16236 * will be sent from the driver to userspace to indicate last received 16237 * AFC response data has been cleared on the AP due to invalid data 16238 * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. 16239 * 16240 * The following enum defines the different event types that will be 16241 * used by the driver to help trigger corresponding AFC functionality in user 16242 * space. 16243 */ 16244 enum qca_wlan_vendor_afc_event_type { 16245 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0, 16246 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1, 16247 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2, 16248 }; 16249 16250 /** 16251 * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP 16252 * deployment type. 16253 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute. 16254 * 16255 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment. 16256 * 16257 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment. 16258 * 16259 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment. 16260 * 16261 * The following enum defines different deployment modes that the AP might 16262 * come up in. This information will be essential to retrieve deployment-type 16263 * specific SP power values for AFC operation. 16264 */ 16265 enum qca_wlan_vendor_afc_ap_deployment_type { 16266 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0, 16267 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1, 16268 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2, 16269 }; 16270 16271 /** 16272 * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to 16273 * indicate AFC response status. 16274 * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute. 16275 * 16276 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success 16277 * 16278 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication 16279 * command was not received within the expected time of the AFC expiry event 16280 * being triggered. 16281 * 16282 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data 16283 * parsing error by the driver. 16284 * 16285 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local 16286 * error. 16287 * 16288 * The following enum defines the status codes that the driver will use to 16289 * indicate whether the AFC data is valid or not. 16290 */ 16291 enum qca_wlan_vendor_afc_evt_status_code { 16292 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0, 16293 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1, 16294 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2, 16295 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3, 16296 }; 16297 16298 /** 16299 * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with 16300 * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will 16301 * support sending only a single request to the user space at a time. 16302 * 16303 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute. 16304 * Used with event to notify the type of AFC event received. 16305 * Valid values are defined in enum qca_wlan_vendor_afc_event_type. 16306 * 16307 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when 16308 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, 16309 * otherwise unused. 16310 * 16311 * This attribute is used to indicate the AP deployment type in the AFC request. 16312 * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type. 16313 * 16314 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute. 16315 * Unique request identifier generated by the AFC client for every 16316 * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID. 16317 * The user space application is responsible for ensuring no duplicate values 16318 * are in-flight with the server, e.g., by delaying a request, should the same 16319 * value be received from different radios in parallel. 16320 * 16321 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional. 16322 * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16323 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused. 16324 * 16325 * This attribute indicates the AFC spec version information. This will 16326 * indicate the AFC version AFC client must use to query the AFC data. 16327 * Bits 15:0 - Minor version 16328 * Bits 31:16 - Major version 16329 * 16330 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when 16331 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, 16332 * otherwise unused. 16333 * This attribute indicates the minimum desired power (in dBm) for 16334 * the queried spectrum. 16335 * 16336 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when 16337 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16338 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16339 * 16340 * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code. 16341 * This attribute is used to indicate if there were any errors parsing the 16342 * AFC response. 16343 * 16344 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required 16345 * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16346 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16347 * 16348 * This attribute indicates the AFC response code. The AFC response codes are 16349 * in the following categories: 16350 * -1: General Failure. 16351 * 0: Success. 16352 * 100 - 199: General errors related to protocol. 16353 * 300 - 399: Error events specific to message exchange 16354 * for the Available Spectrum Inquiry. 16355 * 16356 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when 16357 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16358 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16359 * 16360 * This attribute indicates the date until which the current response is 16361 * valid for in UTC format. 16362 * Date format: bits 7:0 - DD (Day 1-31) 16363 * bits 15:8 - MM (Month 1-12) 16364 * bits 31:16 - YYYY (Year) 16365 * 16366 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when 16367 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16368 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16369 * 16370 * This attribute indicates the time until which the current response is 16371 * valid for in UTC format. 16372 * Time format: bits 7:0 - SS (Seconds 0-59) 16373 * bits 15:8 - MM (Minutes 0-59) 16374 * bits 23:16 - HH (Hours 0-23) 16375 * bits 31:24 - Reserved 16376 * 16377 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes 16378 * for updating the list of frequency ranges to be queried. 16379 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16380 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or 16381 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16382 * It uses the attributes defined in 16383 * enum qca_wlan_vendor_attr_afc_freq_psd_info. 16384 * 16385 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes 16386 * for updating the list of operating classes and corresponding channels to be 16387 * queried. 16388 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16389 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or 16390 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16391 * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info. 16392 */ 16393 enum qca_wlan_vendor_attr_afc_event { 16394 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0, 16395 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1, 16396 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2, 16397 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3, 16398 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4, 16399 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5, 16400 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6, 16401 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7, 16402 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8, 16403 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9, 16404 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10, 16405 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11, 16406 16407 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST, 16408 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX = 16409 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1, 16410 }; 16411 16412 /** 16413 * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used 16414 * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes 16415 * will support sending only a single AFC response to the driver at a time. 16416 * 16417 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute. 16418 * This attribute will be used to send a single Spectrum Inquiry response object 16419 * from the 'availableSpectrumInquiryResponses' array object from the response 16420 * JSON. 16421 * 16422 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute. 16423 * 16424 * This attribute indicates the period (in seconds) for which the response 16425 * data received is valid for. 16426 * 16427 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute. 16428 * 16429 * This attribute indicates the request ID for which the corresponding 16430 * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID. 16431 * 16432 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute. 16433 * 16434 * This attribute indicates the date until which the current response is 16435 * valid for in UTC format. 16436 * Date format: bits 7:0 - DD (Day 1-31) 16437 * bits 15:8 - MM (Month 1-12) 16438 * bits 31:16 - YYYY (Year) 16439 * 16440 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute. 16441 * 16442 * This attribute indicates the time until which the current response is 16443 * valid for in UTC format. 16444 * Time format: bits 7:0 - SS (Seconds 0-59) 16445 * bits 15:8 - MM (Minutes 0-59) 16446 * bits 23:16 - HH (Hours 0-23) 16447 * bits 31:24 - Reserved 16448 * 16449 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute. 16450 * 16451 * This attribute indicates the AFC response code. The AFC response codes are 16452 * in the following categories: 16453 * -1: General Failure. 16454 * 0: Success. 16455 * 100 - 199: General errors related to protocol. 16456 * 300 - 399: Error events specific to message exchange 16457 * for the Available Spectrum Inquiry. 16458 * 16459 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes 16460 * for PSD info of all the queried frequency ranges. It uses the attributes 16461 * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute. 16462 * 16463 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested 16464 * attributes for EIRP info of all queried operating class/channels. It uses 16465 * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and 16466 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute. 16467 * 16468 */ 16469 enum qca_wlan_vendor_attr_afc_response { 16470 QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0, 16471 QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1, 16472 QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2, 16473 QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3, 16474 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4, 16475 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5, 16476 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6, 16477 QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7, 16478 QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8, 16479 16480 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST, 16481 QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX = 16482 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1, 16483 }; 16484 16485 /** 16486 * enum qca_wlan_dozed_ap_state - Doze states for AP interface 16487 * 16488 * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface. 16489 * 16490 * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts 16491 * beaconing at higher beacon interval with Rx disabled. 16492 */ 16493 enum qca_wlan_dozed_ap_state { 16494 QCA_WLAN_DOZED_AP_DISABLE = 0, 16495 QCA_WLAN_DOZED_AP_ENABLE = 1, 16496 }; 16497 16498 /** 16499 * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command 16500 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode 16501 * configuration. 16502 * 16503 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute. 16504 * Configures the doze state for an AP interface. Possible values are defined 16505 * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event 16506 * gets triggered asynchronously to provide updated AP interface configuration. 16507 * 16508 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by 16509 * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP 16510 * command, which is used later to maintain synchronization between commands 16511 * and asynchronous events. 16512 * 16513 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute. 16514 * Used in event to indicate the next TBTT TSF timer value after applying the 16515 * doze mode configuration. Next TBTT TSF is the time at which the AP sends 16516 * the first beacon after entering or exiting dozed mode. 16517 * 16518 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute. 16519 * Used with event to inform the periodicity of beacon transmission that would 16520 * be skipped at all TBTTs in between. 16521 */ 16522 enum qca_wlan_vendor_attr_dozed_ap { 16523 QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0, 16524 QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1, 16525 QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2, 16526 QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3, 16527 QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4, 16528 16529 /* Keep last */ 16530 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST, 16531 QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX = 16532 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1, 16533 }; 16534 16535 /** 16536 * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes 16537 * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE. 16538 * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no 16539 * capture running status. 16540 * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate 16541 * capture running status. 16542 **/ 16543 16544 enum qca_wlan_vendor_monitor_mode_status { 16545 QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0, 16546 QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1, 16547 }; 16548 16549 /** 16550 * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the 16551 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report 16552 * information regarding the local packet capture over the monitor mode. 16553 * 16554 * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute 16555 * represents the status of the start capture commands. The values used with 16556 * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This 16557 * is returned by the driver in the response to the command. 16558 */ 16559 16560 enum qca_wlan_vendor_attr_get_monitor_mode { 16561 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0, 16562 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1, 16563 16564 /* Keep last */ 16565 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST, 16566 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX = 16567 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1, 16568 }; 16569 16570 /** 16571 * enum qca_wlan_vendor_link_state_op_types - Defines different types of 16572 * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used. 16573 * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute. 16574 * 16575 * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information. 16576 * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information. 16577 */ 16578 enum qca_wlan_vendor_link_state_op_types { 16579 QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0, 16580 QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1, 16581 }; 16582 16583 /** 16584 * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO 16585 * links state control modes. This enum is used by 16586 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute. 16587 * 16588 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled 16589 * by the driver. 16590 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by 16591 * user space. 16592 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the 16593 * desired number of MLO links to operate in active state at any given time. 16594 * The driver will choose which MLO links should operate in the active state. 16595 * See enum qca_wlan_vendor_link_state for active state definition. 16596 */ 16597 enum qca_wlan_vendor_link_state_control_modes { 16598 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0, 16599 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1, 16600 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2, 16601 }; 16602 16603 /** 16604 * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO 16605 * links state operation modes. This enum is used by 16606 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute. 16607 * 16608 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation 16609 * mode, the driver selects the operating mode of the links, without any 16610 * guidance from the user space. 16611 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency 16612 * operation mode the driver should select MLO links that will achieve low 16613 * latency. 16614 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high 16615 * throughput operation mode the driver should select MLO links that will 16616 * achieve higher throughput. 16617 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power 16618 * operation mode the driver should select MLO links that will achieve low 16619 * power. 16620 */ 16621 enum qca_wlan_vendor_link_state_operation_modes { 16622 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0, 16623 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1, 16624 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2, 16625 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3, 16626 }; 16627 16628 /** 16629 * enum qca_wlan_vendor_link_state - Represents the possible link states of an 16630 * MLO link. 16631 * 16632 * @QCA_WLAN_VENDOR_LINK_STATE_INACTIVE: In this state, the link will not 16633 * be used for data transmission but it can have TIDs mapped to it. It will be 16634 * in doze state always and does not monitor the beacons. 16635 * @QCA_WLAN_VENDOR_LINK_STATE_ACTIVE: In this state, the link will be 16636 * used for data TX/RX and monitors the beacons to check TIM bit indication. 16637 * It may enter doze state and comes out based on the transmit data traffic and 16638 * TIM bit indication in the beacon. 16639 */ 16640 enum qca_wlan_vendor_link_state { 16641 QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0, 16642 QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1, 16643 }; 16644 16645 /** 16646 * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used 16647 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG. 16648 * 16649 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the 16650 * MLO link. 16651 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See 16652 * enum qca_wlan_vendor_link_state for possible MLO link states. 16653 */ 16654 16655 enum qca_wlan_vendor_attr_link_state_config { 16656 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0, 16657 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1, 16658 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2, 16659 16660 /* Keep last */ 16661 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST, 16662 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX = 16663 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1, 16664 }; 16665 16666 /** 16667 * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by 16668 * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command. 16669 * 16670 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type 16671 * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for. 16672 * Required only in a command. Possible values for this attribute are defined in 16673 * enum qca_wlan_vendor_link_state_op_types. 16674 * 16675 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO 16676 * links control mode type. Optional attribute in a command when 16677 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16678 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when 16679 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16680 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 16681 * See enum qca_wlan_vendor_link_state_control_modes for possible control modes. 16682 * 16683 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes. 16684 * Indicates the state of the each MLO link affiliated with the interface. 16685 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE 16686 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and 16687 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to 16688 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a 16689 * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16690 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 16691 * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes. 16692 * 16693 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute. 16694 * Represents the number of active state links. See enum 16695 * qca_wlan_vendor_link_state for active state definition. 16696 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE 16697 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and 16698 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to 16699 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED. 16700 * 16701 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO 16702 * links operation mode type. Optional attribute in a command when 16703 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16704 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when 16705 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16706 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 16707 * See enum qca_wlan_vendor_link_state_operation_modes for possible operation 16708 * modes. 16709 */ 16710 enum qca_wlan_vendor_attr_mlo_link_state { 16711 QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0, 16712 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1, 16713 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2, 16714 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3, 16715 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4, 16716 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5, 16717 16718 /* keep last */ 16719 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST, 16720 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX = 16721 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1, 16722 }; 16723 16724 /** 16725 * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used 16726 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS. 16727 * 16728 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute 16729 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS. 16730 * Indicates the link mapping bitmap of a TID for uplink traffic. It is a 16731 * bitmask of the link IDs in which a bit set means that the TID is mapped with 16732 * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink 16733 * traffic for that link. 16734 * 16735 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute 16736 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS. 16737 * Indicates the link mapping bitmap of a TID for downlink traffic. It is a 16738 * bitmask of the link IDs in which a bit set means that the TID is mapped with 16739 * that link ID in downlink traffic. Otherwise, the TID is not mapped to 16740 * downlink traffic for that link. 16741 */ 16742 enum qca_wlan_vendor_attr_tid_link_map_status { 16743 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0, 16744 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1, 16745 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2, 16746 16747 /* keep last */ 16748 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST, 16749 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX = 16750 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1, 16751 }; 16752 16753 /* 16754 * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with 16755 * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event. 16756 * 16757 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte 16758 * AP MLD address with which this TID-to-link negotiation mapping is 16759 * established/updated. 16760 * 16761 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of 16762 * nested attributes containing TID-to-links mapping information. This will have 16763 * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink 16764 * map information. If this attribute is not present the default TID-to-link 16765 * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and 16766 * downlink traffic. 16767 * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes. 16768 */ 16769 enum qca_wlan_vendor_attr_tid_to_link_map { 16770 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0, 16771 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1, 16772 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2, 16773 16774 /* keep last */ 16775 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST, 16776 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX = 16777 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1, 16778 }; 16779 16780 /** 16781 * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used 16782 * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event. 16783 * 16784 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute. 16785 * 6-byte AP MLD address of the AP which indicated the link reconfiguration. 16786 * 16787 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute. 16788 * A bitmap of the removed setup links link IDs. 16789 */ 16790 enum qca_wlan_vendor_attr_link_reconfig { 16791 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0, 16792 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1, 16793 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2, 16794 16795 /* keep last */ 16796 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST, 16797 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX = 16798 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1, 16799 }; 16800 16801 /** 16802 * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by 16803 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command. 16804 * 16805 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute. 16806 * Indicates the MLO link id on which the TDLS discovery response 16807 * frame is to be transmitted. 16808 */ 16809 enum qca_wlan_vendor_attr_tdls_disc_rsp_ext { 16810 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0, 16811 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1, 16812 16813 /* Keep last */ 16814 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST, 16815 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX = 16816 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1, 16817 }; 16818 16819 /** 16820 * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states. 16821 * 16822 * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status 16823 * for all stations. 16824 * 16825 * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to 16826 * establish the session. 16827 * 16828 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is 16829 * established. 16830 * 16831 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS 16832 * session is established using MCC. 16833 * 16834 * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was 16835 * established, but is temporarily dropped currently. 16836 * 16837 * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish. 16838 */ 16839 enum qca_wlan_vendor_tdls_state { 16840 QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1, 16841 QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2, 16842 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3, 16843 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4, 16844 QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5, 16845 QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6, 16846 }; 16847 16848 /** 16849 * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons. 16850 * 16851 * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established. 16852 * 16853 * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason. 16854 * 16855 * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported. 16856 * 16857 * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported. 16858 * 16859 * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better 16860 * than through direct link. 16861 * 16862 * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS 16863 * session anymore. 16864 */ 16865 16866 enum qca_wlan_vendor_tdls_reason { 16867 QCA_WLAN_TDLS_REASON_SUCCESS = 0, 16868 QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1, 16869 QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2, 16870 QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3, 16871 QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4, 16872 QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5, 16873 }; 16874 16875 /** 16876 * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by 16877 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command. 16878 * 16879 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer 16880 * station to enable the TDLS session. Optional attribute. The driver sends the 16881 * TDLS session result as an asynchronous response using the command 16882 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in 16883 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command. 16884 * 16885 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the 16886 * channel on which the TDLS session to be established. Required only when 16887 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present. 16888 * 16889 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute. 16890 * Indicates the global operating class of the TDLS session to be established. 16891 * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present. 16892 * 16893 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates 16894 * the maximum latency of the WLAN packets to be transmitted/received in 16895 * milliseconds on TDLS session. Required only when 16896 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present. 16897 * 16898 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute. 16899 * Indicates the minimum bandwidth to be used to establish the TDLS session 16900 * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is 16901 * present. 16902 */ 16903 enum qca_wlan_vendor_attr_tdls_enable { 16904 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0, 16905 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1, 16906 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2, 16907 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3, 16908 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4, 16909 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5, 16910 16911 /* keep last */ 16912 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST, 16913 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX = 16914 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1, 16915 }; 16916 16917 /** 16918 * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by 16919 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command. 16920 * 16921 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer 16922 * station to disable the TDLS session. Optional attribute. 16923 */ 16924 enum qca_wlan_vendor_attr_tdls_disable { 16925 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0, 16926 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1, 16927 16928 /* keep last */ 16929 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST, 16930 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX = 16931 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1, 16932 }; 16933 16934 /** 16935 * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by 16936 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command. 16937 * 16938 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the 16939 * peer station. Optional attribute. Used in 16940 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response. 16941 * 16942 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the 16943 * TDLS session state with the peer specified in 16944 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from 16945 * enum qca_wlan_vendor_tdls_state. Used in 16946 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 16947 * 16948 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the 16949 * reason for the TDLS session state indicated in 16950 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum 16951 * qca_wlan_vendor_tdls_reason. Used in 16952 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 16953 * 16954 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the 16955 * channel of the TDLS session established with 16956 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in 16957 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 16958 * 16959 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute. 16960 * Indicates the global operating class of the TDLS session established with 16961 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in 16962 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 16963 * 16964 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates 16965 * the current number of active TDLS sessions. This is indicated in the response 16966 * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with 16967 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute. 16968 * 16969 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates 16970 * whether the driver can initiate new TDLS session. This is indicated in the 16971 * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with 16972 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute. 16973 */ 16974 enum qca_wlan_vendor_attr_tdls_get_status { 16975 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0, 16976 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1, 16977 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2, 16978 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3, 16979 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4, 16980 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5, 16981 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6, 16982 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7, 16983 16984 /* keep last */ 16985 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST, 16986 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX = 16987 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1, 16988 }; 16989 16990 /** 16991 * enum qca_wlan_vendor_attr_tdls_state - Attributes used by 16992 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command. 16993 * 16994 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the 16995 * peer station. Required attribute. 16996 * 16997 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates 16998 * the current TDLS state. Required attribute. Uses the values from 16999 * enum qca_wlan_vendor_tdls_state. 17000 * 17001 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the 17002 * reason of the current TDLS session state. Required attribute. Uses the values 17003 * from enum qca_wlan_vendor_tdls_reason. 17004 * 17005 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the 17006 * TDLS session channel. Required attribute. 17007 * 17008 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute. 17009 * Indicates the TDLS session global operating class. Required attribute. 17010 */ 17011 enum qca_wlan_vendor_attr_tdls_state { 17012 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0, 17013 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1, 17014 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2, 17015 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3, 17016 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4, 17017 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5, 17018 17019 /* keep last */ 17020 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST, 17021 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX = 17022 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1, 17023 }; 17024 17025 /* 17026 * enum qca_wlan_vendor_opm_mode - Modes supported by 17027 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute. 17028 * 17029 * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled 17030 * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled 17031 * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user 17032 * to configure power save inactivity timeout and speculative wake up 17033 * interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and 17034 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes. 17035 */ 17036 17037 enum qca_wlan_vendor_opm_mode { 17038 QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0, 17039 QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1, 17040 QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2, 17041 }; 17042 17043 /* enum qca_wlan_audio_transport_switch_type - Represents the possible transport 17044 * switch types. 17045 * 17046 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN: Request to route audio data 17047 * via non-WLAN transport (ex: bluetooth). 17048 * 17049 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN: Request to route audio data via 17050 * WLAN transport. 17051 */ 17052 enum qca_wlan_audio_transport_switch_type { 17053 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN = 0, 17054 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN = 1, 17055 }; 17056 17057 /** 17058 * enum qca_wlan_audio_transport_switch_status - Represents the status of audio 17059 * transport switch request. 17060 * 17061 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED: Request to switch transport 17062 * has been rejected. For ex: when transport switch is requested from WLAN 17063 * to non-WLAN transport, user space modules and peers would evaluate the switch 17064 * request and may not be ready for switch and hence switch to non-WLAN transport 17065 * gets rejected. 17066 * 17067 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED: Request to switch transport 17068 * has been completed. This is sent only in command path. Ex: when host driver 17069 * had requested for audio transport switch and userspace modules as well as 17070 * peers are ready for the switch, userspace module switches the transport and 17071 * sends subcommand with status completed to host driver. 17072 */ 17073 enum qca_wlan_audio_transport_switch_status { 17074 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED = 0, 17075 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED = 1, 17076 }; 17077 17078 /** 17079 * enum qca_wlan_vendor_attr_audio_transport_switch - Attributes used by 17080 * %QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH vendor command. 17081 * 17082 * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE: u8 attribute. Indicates 17083 * the transport switch type from one of the values in enum 17084 * qca_wlan_audio_transport_switch_type. This is mandatory param in both 17085 * command and event path. This attribute is included in both requests and 17086 * responses. 17087 * 17088 * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS: u8 attribute. Indicates 17089 * the transport switch status from one of the values in enum 17090 * qca_wlan_audio_transport_switch_status. This is optional param and used in 17091 * both command and event path. This attribute must not be included in requests. 17092 */ 17093 enum qca_wlan_vendor_attr_audio_transport_switch { 17094 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_INVALID = 0, 17095 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE = 1, 17096 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS = 2, 17097 /* keep last */ 17098 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST, 17099 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_MAX = 17100 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST - 1, 17101 }; 17102 17103 /* 17104 * enum qca_wlan_vendor_tx_latency_type - Represents the possible latency 17105 * types. 17106 * 17107 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER: Per MSDU latency 17108 * from: An MSDU is presented to the driver 17109 * to: the MSDU is queued into TCL SRNG 17110 * 17111 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING: Per MSDU latency 17112 * from: the MSDU is queued into TCL SRNG 17113 * to: the MSDU is released by the driver 17114 * 17115 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW: Per MSDU latency 17116 * from: the MSDU is presented to the hardware 17117 * to: the MSDU is released by the hardware 17118 * 17119 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA: Per PPDU latency 17120 * The time spent on Clear Channel Assessment, the maximum value is 50000 (us) 17121 * from: A PPDU is presented to the hardware LMAC 17122 * to: over-the-air transmission is started for the PPDU 17123 */ 17124 enum qca_wlan_vendor_tx_latency_type { 17125 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER = 0, 17126 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING = 1, 17127 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW = 2, 17128 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA = 3, 17129 }; 17130 17131 /** 17132 * enum qca_wlan_vendor_attr_tx_latency_bucket - Definition of attributes 17133 * used inside nested attributes 17134 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS and 17135 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS. 17136 * 17137 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE: u8 attribute. 17138 * Indicates the latency type. 17139 * See enum qca_wlan_vendor_tx_latency_type for the supported types. 17140 * 17141 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY: u32 attribute. 17142 * Indicates the granularity (in microseconds) of the distribution for the 17143 * type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE), the value 17144 * must be positive. 17145 * If %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE is 17146 * %QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA, the value must be an integer multiple 17147 * of 1000, and the maximum allowed value is 15000 (us). 17148 * 17149 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE: u32 attribute. 17150 * Indicates the average of the latency (in microseconds) for the type 17151 * (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE) within a cycle. 17152 * If there is no transmitted MSDUs/MPDUs during a cycle, this average is 0; 17153 * otherwise, it represents the quotient of <accumulated latency of the 17154 * transmitted MSDUs/MPDUs in a cycle> divided by <the number of the transmitted 17155 * MSDUs/MPDUs in a cycle>. 17156 * 17157 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION: 17158 * Array of u32, 4 elements in total, represents the latency distribution for 17159 * the type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE). 17160 * Each element holds the count of MSDUs/PPDUs (according to the latency type) 17161 * within a range: 17162 * element[0]: latency >= 0 && latency < granularity 17163 * element[1]: latency >= granularity && latency < granularity * 2 17164 * element[2]: latency >= granularity * 2 && latency < granularity * 3 17165 * element[3]: latency >= granularity * 3 17166 */ 17167 enum qca_wlan_vendor_attr_tx_latency_bucket { 17168 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_INVALID = 0, 17169 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE = 1, 17170 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY = 2, 17171 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE = 3, 17172 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION = 4, 17173 17174 /* keep last */ 17175 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST, 17176 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_MAX = 17177 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST - 1, 17178 }; 17179 17180 /** 17181 * enum qca_wlan_vendor_attr_tx_latency_link - Definition of attributes 17182 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS. 17183 * 17184 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE: 6-byte MAC address. 17185 * Indicates link MAC address of the remote peer. For example, when running 17186 * in station mode, it's the BSSID of the link; while when running in AP 17187 * mode, it's the link MAC address of the remote station. 17188 * 17189 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS: 17190 * Array of nested attribute. 17191 * Represents the transmit latency statistics for the link specified by 17192 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE. 17193 * Each entry represents the statistics for one of the types defined in 17194 * enum qca_wlan_vendor_tx_latency_type. 17195 * Each defined type has and must have one entry. 17196 * See enum qca_wlan_vendor_attr_tx_latency_bucket for nested attributes. 17197 */ 17198 enum qca_wlan_vendor_attr_tx_latency_link { 17199 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_INVALID = 0, 17200 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE = 1, 17201 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS = 2, 17202 17203 /* keep last */ 17204 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST, 17205 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAX = 17206 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST - 1, 17207 }; 17208 17209 /** 17210 * enum qca_wlan_vendor_tx_latency_action - Represents the possible actions 17211 * for %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY. 17212 * 17213 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE: 17214 * Disable transmit latency monitoring. 17215 * 17216 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE: 17217 * Enable transmit latency monitoring. 17218 * 17219 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET: 17220 * Get transmit latency statistics of the last cycle (period is specified by 17221 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD). 17222 */ 17223 enum qca_wlan_vendor_tx_latency_action { 17224 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE = 0, 17225 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE = 1, 17226 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET = 2, 17227 }; 17228 17229 /** 17230 * enum qca_wlan_vendor_attr_tx_latency - Definition of attributes used by 17231 * %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY to configure, retrieve, and report 17232 * per-link transmit latency statistics. 17233 * 17234 * There are 6 uses of %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY: 17235 * 1) used as a command to enable the feature 17236 * Precondition(s): 17237 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 17238 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE 17239 * Mandatory attribute(s): 17240 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION, 17241 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD, 17242 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS with nested attributes 17243 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE, 17244 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY. 17245 * Notes: 17246 * The driver will monitor the transmit latency for the active links 17247 * and save the statistics for each cycle (period is set by 17248 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD) when the feature is enabled. 17249 * Set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT if periodical 17250 * report is required. 17251 * 17252 * 2) used as a command to disable the feature 17253 * Precondition(s): 17254 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 17255 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE 17256 * Mandatory attribute(s): 17257 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION 17258 * 17259 * 3) used as a command to retrieve the statistics for all the active links on 17260 * the requested interface 17261 * Precondition(s): 17262 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 17263 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and 17264 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is NOT present. 17265 * Mandatory attribute(s): 17266 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION 17267 * Notes: 17268 * The driver returns failure directly if the feature is not enabled or 17269 * there is no active link. 17270 * The driver returns the statistics of the last cycle in the case of 17271 * success. 17272 * 17273 * 4) used as a command to retrieve the statistics for the specified links 17274 * Precondition(s): 17275 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 17276 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and 17277 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is present. 17278 * Mandatory attribute(s): 17279 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION, 17280 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attribute 17281 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE. 17282 * Notes: 17283 * The driver returns failure directly if the feature is not enabled or 17284 * any of the links (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS) 17285 * does not exist or is not in active state. 17286 * 17287 * 5) used as a command response for #3 or #4 17288 * Precondition(s): 17289 * Userspace issues command #3 or #4, and the driver gets corresponding 17290 * statistics successfully. 17291 * Mandatory attribute(s): 17292 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes 17293 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE, 17294 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested 17295 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE, 17296 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY, 17297 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and 17298 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION. 17299 * 17300 * 6) used as an asynchronous event to report the statistics periodically 17301 * Precondition(s): 17302 * Userspace set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT in 17303 * #1. 17304 * One or more links are in active state. 17305 * Mandatory attribute(s): 17306 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes 17307 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE, 17308 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested 17309 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE, 17310 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY, 17311 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and 17312 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION. 17313 * 17314 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID: Invalid attribute 17315 * 17316 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION: u32 attribute. 17317 * Action to take in this vendor command. 17318 * See enum qca_wlan_vendor_tx_latency_action for supported actions. 17319 * 17320 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT: Flag attribute. 17321 * Enable (flag attribute present) - The driver needs to report transmit latency 17322 * statistics at the end of each statistical period. 17323 * Disable (flag attribute not present) - The driver doesn't need to report 17324 * transmit latency statistics periodically. 17325 * 17326 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD: u32 attribute. 17327 * Indicates statistical period for transmit latency in terms of milliseconds, 17328 * the minimal allowed value is 100 and the maximum allowed value is 60000. 17329 * 17330 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS: Array of nested attribute. 17331 * Each entry represents the latency buckets configuration for one of the types 17332 * defined in enum qca_wlan_vendor_tx_latency_type. 17333 * Each defined type has and must have one entry. 17334 * See enum qca_wlan_vendor_attr_tx_latency_bucket for the list of 17335 * supported attributes. 17336 * 17337 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS: Array of nested attribute. 17338 * Information of the links, each entry represents for one link. 17339 * See enum qca_wlan_vendor_attr_tx_latency_link for the list of 17340 * supported attributes for each entry. 17341 */ 17342 enum qca_wlan_vendor_attr_tx_latency { 17343 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID = 0, 17344 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION = 1, 17345 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT = 2, 17346 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD = 3, 17347 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS = 4, 17348 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS = 5, 17349 17350 /* keep last */ 17351 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST, 17352 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_MAX = 17353 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST - 1, 17354 }; 17355 17356 /** 17357 * qca_wlan_vendor_attr_RECONFIG_REMOVE_COMPLETE_EVENT - Defines attributes for 17358 * ML Reconfig (Mlo Link removal) parameters used by the attribute 17359 * @QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_IFINDEX: u32 attribute 17360 * used to pass the netdev ifindex of the MLO Reconfiguration link. 17361 */ 17362 enum qca_wlan_vendor_attr_reconfig_remove_complete_EVENT { 17363 QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_IFINDEX = 0, 17364 17365 /* keep last */ 17366 QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_AFTER_LAST, 17367 QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_MAX = 17368 QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_AFTER_LAST - 1, 17369 }; 17370 17371 #endif 17372