1 /* 2 * Copyright (c) 2012-2021 The Linux Foundation. All rights reserved. 3 * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved. 4 * 5 * Permission to use, copy, modify, and/or distribute this software for 6 * any purpose with or without fee is hereby granted, provided that the 7 * above copyright notice and this permission notice appear in all 8 * copies. 9 * 10 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL 11 * WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED 12 * WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE 13 * AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 16 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 17 * PERFORMANCE OF THIS SOFTWARE. 18 */ 19 20 /** 21 * DOC: declares vendor commands interfacing with linux kernel 22 */ 23 24 25 #ifndef _WLAN_QCA_VENDOR_H_ 26 #define _WLAN_QCA_VENDOR_H_ 27 28 /* Vendor id to be used in vendor specific command and events 29 * to user space. 30 * NOTE: The authoritative place for definition of QCA_NL80211_VENDOR_ID, 31 * vendor subcmd definitions prefixed with QCA_NL80211_VENDOR_SUBCMD, and 32 * qca_wlan_vendor_attr is open source file src/common/qca-vendor.h in 33 * git://w1.fi/srv/git/hostap.git; the values here are just a copy of that 34 */ 35 36 #define QCA_NL80211_VENDOR_ID 0x001374 37 38 #ifndef BIT 39 #define BIT(x) (1U << (x)) 40 #endif 41 42 /** 43 * enum qca_nl80211_vendor_subcmds: NL 80211 vendor sub command 44 * 45 * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Unspecified 46 * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test 47 * Sub commands 2 to 8 are not used 48 * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Roaming 49 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Avoid frequency. 50 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: DFS capability 51 * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass 52 * NAN Request/Response and NAN Indication messages. These messages are 53 * interpreted between the framework and the firmware component. While 54 * sending the command from userspace to the driver, payload is not 55 * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN 56 * is used when receiving vendor events in userspace from the driver. 57 * @QCA_NL80211_VENDOR_SUBCMD_STATS_EXT: Ext stats 58 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET: Link layer stats set 59 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET: Link layer stats get 60 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR: Link layer stats clear 61 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS: Link layer stats radio 62 * results 63 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS: Link layer stats interface 64 * results 65 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS: Link layer stats peer 66 * results 67 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START: Ext scan start 68 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP: Ext scan stop 69 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS: Ext scan get valid 70 * channels 71 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES: Ext scan get capability 72 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS: Ext scan get cached 73 * results 74 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE: Ext scan results 75 * available. Used when report_threshold is reached in scan cache. 76 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT: Ext scan full scan 77 * result. Used to report scan results when each probe rsp. is received, 78 * if report_events enabled in wifi_scan_cmd_params. 79 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT: Ext scan event from target. 80 * Indicates progress of scanning state-machine. 81 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND: Ext scan hotlist 82 * ap found 83 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST: Ext scan set hotlist 84 * bssid 85 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST: Ext scan reset 86 * hotlist bssid 87 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE: Ext scan significant 88 * change 89 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE: Ext scan set 90 * significant change 91 * ap found 92 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE: Ext scan reset 93 * significant change 94 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: This command is used to enable TDLS 95 * capability or to form a session with the specified peer. 96 * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this 97 * indicates to enable TDLS capability on the interface. 98 * If %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is nested in 99 * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to 100 * form a TDLS session with the specified peer MAC address. 101 * The attributes used with this command are defined in 102 * enum qca_wlan_vendor_attr_tdls_enable. 103 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: This command is used to disable TDLS 104 * capability or to terminate the session with the specified peer. 105 * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this 106 * indicates to disable TDLS capability on the interface. 107 * If %QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR is nested in 108 * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to 109 * terminate TDLS session with the specified peer MAC address. 110 * The attributes used with this command are defined in 111 * enum qca_wlan_vendor_attr_tdls_disable. 112 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: This command is to get the TDLS 113 * status at the interface level or with the specific peer. 114 * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this 115 * indicates the TDLS status query is at interface level. 116 * If %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR is nested in 117 * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to 118 * get TDLS session status with the specified peer MAC address. 119 * The attributes used with this command are defined in 120 * enum qca_wlan_vendor_attr_tdls_get_status. 121 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: This event is to indicate the result 122 * of the TDLS session request with the peer sent by userspace in 123 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE. 124 * The attributes used with this command are defined in 125 * enum qca_wlan_vendor_attr_tdls_state. 126 * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES: Get supported features 127 * @QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI: Set scanning_mac_oui 128 * @QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG: No DFS flag 129 * @QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX: Get Concurrency Matrix 130 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Get the key mgmt offload keys 131 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: After roaming, send the 132 * roaming and auth information. 133 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED: Set OCB schedule 134 * 135 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to 136 * invoke the ACS function in device and pass selected channels to 137 * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes. 138 * 139 * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Get the supported features by the 140 * driver. 141 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Indicate that driver 142 * started CAC on DFS channel 143 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Indicate that driver 144 * completed the CAC check on DFS channel 145 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Indicate that the CAC 146 * check was aborted by the driver 147 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Indicate that the 148 * driver completed NOP 149 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Indicate that the 150 * driver detected radar signal on the current operating channel 151 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: get wlan driver information 152 * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: This command is used to 153 * configure various wiphy or interface level configurations. Attributes 154 * are defined in enum qca_wlan_vendor_attr_config. Userspace can send one 155 * or more configuration attributes with a single command. The driver 156 * accepts the command only if all the configurations are known, otherwise 157 * it rejects the command. The driver returns success only if processing of 158 * all the configurations succeeds. The driver continues to process all the 159 * configurations even if processing of some configurations failed and 160 * returns the last error occurred while processing the failed 161 * configurations. 162 * 163 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: This command is used to 164 * get the current values of the various wiphy or interface level 165 * configurations. Attributes are defined in enum 166 * qca_wlan_vendor_attr_config. Userspace needs to specify the 167 * configuration attributes for which it wants to get the values in the 168 * command, there is no significance for the value sent in the attribute 169 * unless explicitly specified in the corresponding configuration 170 * attribute documentation. The driver accepts the command only if all the 171 * configurations are known, otherwise it rejects the command. The driver 172 * returns success only if fetching of all configuration values succeeds 173 * and indicates the configuration values in corresponding attributes in 174 * the response. The driver continues to process all the configurations 175 * even if processing of some configurations failed and returns the last 176 * error occurred while processing the failed configurations. 177 * 178 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START: start wifi logger 179 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP: memory dump request 180 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logger feature set 181 * @QCA_NL80211_VENDOR_SUBCMD_ROAM: roam 182 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST: extscan set ssid hotlist 183 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST: 184 * extscan reset ssid hotlist 185 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND: hotlist ssid found 186 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST: hotlist ssid lost 187 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST: set pno list 188 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST: set passpoint list 189 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST: 190 * reset passpoint list 191 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND: pno network found 192 * @QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND: 193 * passpoint network found 194 * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: set wifi config 195 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: get wifi config 196 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: get logging features 197 * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: get link properties 198 * @QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG: set gateway parameters 199 * @QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST: get preferred channel 200 list 201 * @QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL: channel hint 202 * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the band 203 * to the host driver. This command sets the band through either 204 * the attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or 205 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE 206 * refers enum qca_set_band as unsigned integer values and 207 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 bit unsigned BitMask 208 * values. Also, the acceptable values for 209 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are only till QCA_SETBAND_2G. Further 210 * values/bitmask's are valid for QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The 211 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the 212 * recommendation is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the 213 * implementations configure using both the attributes, the configurations 214 * through QCA_WLAN_VENDOR_ATTR_SETBAND_MASK shall always take the 215 * precedence. 216 * @QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN: venodr scan command 217 * @QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE: vendor scan complete 218 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: vendor abort scan 219 * @QCA_NL80211_VENDOR_SUBCMD_OTA_TEST: enable OTA test 220 * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE: set tx power by percentage 221 * @QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB: reduce tx power by DB 222 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG: SAP configuration 223 * @QCA_NL80211_VENDOR_SUBCMD_TSF: TSF operations command 224 * @QCA_NL80211_VENDOR_SUBCMD_WISA: WISA mode configuration 225 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to 226 * start the P2P Listen Offload function in device and pass the listen 227 * channel, period, interval, count, number of device types, device 228 * types and vendor information elements to device driver and firmware. 229 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to 230 * indicate stop request/response of the P2P Listen Offload function in 231 * device. As an event, it indicates either the feature stopped after it 232 * was already running or feature has actually failed to start. 233 * @QCA_NL80211_VENDOR_SUBCMD_GET_STATION: send BSS Information 234 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After SAP starts 235 * beaconing, this sub command provides the driver, the frequencies on the 236 * 5 GHz to check for any radar activity. Driver selects one channel from 237 * this priority list provided through 238 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts 239 * to check for radar activity on it. If no radar activity is detected 240 * during the channel availability check period, driver internally switches 241 * to the selected frequency of operation. If the frequency is zero, driver 242 * internally selects a channel. The status of this conditional switch is 243 * indicated through an event using the same sub command through 244 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are 245 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch 246 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Command/event used to config 247 * indication period and threshold for MAC layer counters. 248 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior 249 * in the host driver. The different TDLS configurations are defined 250 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration. 251 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Get HE related capabilities 252 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS:Set the Specific Absorption Rate 253 * (SAR) power limits. A critical regulation for FCC compliance, OEMs 254 * require methods to set SAR limits on TX power of WLAN/WWAN. 255 * enum qca_vendor_attr_sar_limits attributes are used with this command. 256 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: Vendor command used to get/set 257 * configuration of vendor ACS. 258 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the 259 * requisite information leading to a power save failure. The information 260 * carried as part of this event is represented by the 261 * enum qca_attr_chip_power_save_failure attributes. 262 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics 263 * collection. Uses attributes defined in enum qca_attr_nud_stats_set. 264 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These 265 * statistics are represented by the enum qca_attr_nud_stats_get 266 * attributes. 267 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch 268 * the BSS transition status, whether accept or reject, for a list of 269 * candidate BSSIDs provided by the userspace. This uses the vendor 270 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and 271 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify 272 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an 273 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in 274 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response 275 * the driver shall specify array of 276 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and 277 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in 278 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. 279 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a 280 * specific QCA module. The trace levels are represented by 281 * enum qca_attr_trace_level attributes. 282 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement 283 * Protocol antenna limit in different modes. See enum 284 * qca_wlan_vendor_attr_brp_ant_limit_mode. 285 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan 286 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan. 287 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) 288 * identifying the operation in success case. In failure cases an 289 * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE) 290 * describing the reason for the failure is returned. 291 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses 292 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from 293 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to 294 * be stopped. 295 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the 296 * specific interface. This can be used to modify some of the low level 297 * scan parameters (off channel dwell time, home channel time) in the 298 * driver/firmware. These parameters are maintained within the host 299 * driver. 300 * This command is valid only when the interface is in the connected 301 * state. 302 * These scan parameters shall be reset by the driver/firmware once 303 * disconnected. The attributes used with this command are defined in 304 * enum qca_wlan_vendor_attr_active_tos. 305 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the 306 * driver has detected an internal failure. This event carries the 307 * information indicating the reason that triggered this detection. The 308 * attributes for this command are defined in 309 * enum qca_wlan_vendor_attr_hang. 310 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values 311 * of spectral parameters used. The spectral scan parameters are specified 312 * by enum qca_wlan_vendor_attr_spectral_scan. 313 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats 314 * for spectral scan functionality. The debug stats are specified by 315 * enum qca_wlan_vendor_attr_spectral_diag_stats. 316 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral 317 * scan system capabilities. The capabilities are specified 318 * by enum qca_wlan_vendor_attr_spectral_cap. 319 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current 320 * status of spectral scan. The status values are specified 321 * by enum qca_wlan_vendor_attr_spectral_scan_status. 322 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush 323 * peer pending packets. Specify the peer MAC address in 324 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets 325 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed 326 * in enum qca_wlan_vendor_attr_flush_pending. 327 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative 328 * RF Operating Parameter (RROP) information. The attributes for this 329 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is 330 * intended for use by external Auto Channel Selection applications. 331 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate 332 * (SAR) power limits. This is a companion to the command 333 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the 334 * settings currently in use. The attributes returned by this command are 335 * defined by enum qca_vendor_attr_sar_limits. 336 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behaviour of 337 * the WLAN hardware MAC's associated with each WLAN netdev interface. 338 * This works both as a query (user space asks the current mode) or event 339 * interface (driver advertizing the current mode to the user space). 340 * Driver does not trigger this event for temporary hardware mode changes. 341 * Mode changes w.r.t Wi-Fi connection updation ( VIZ creation / deletion, 342 * channel change etc ) are updated with this event. Attributes for this 343 * interface are defined in enum qca_wlan_vendor_attr_mac. 344 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold 345 * per peer per TID. Attributes for this command are define in 346 * enum qca_wlan_set_qdepth_thresh_attr 347 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action 348 * guide for WLAN driver. Request to suspend of driver and FW if the 349 * temperature is higher than the suspend threshold; resume action is 350 * requested to driver if the temperature is lower than the resume 351 * threshold. In user poll mode, request temperature data by user. For test 352 * purpose, getting thermal shutdown configuration parameters is needed. 353 * Attributes for this interface are defined in 354 * enum qca_wlan_vendor_attr_thermal_cmd. 355 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from 356 * driver. Thermal temperature and indication of resume completion are 357 * reported as thermal events. The attributes for this command are defined 358 * in enum qca_wlan_vendor_attr_thermal_event. 359 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi 360 * test configuration. Attributes for this command are defined in 361 * enum qca_wlan_vendor_attr_wifi_test_config. 362 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor 363 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN, 364 * carried a payload which was a binary blob of data. The command was not 365 * extendable to send more information. The newer version carries the 366 * legacy blob encapsulated within an attribute and can be extended with 367 * additional vendor attributes that can enhance the NAN command 368 * interface. 369 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to 370 * configure parameters per peer to capture Channel Frequency Response 371 * (CFR) and enable Periodic CFR capture. The attributes for this command 372 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command 373 * can also be used to send CFR data from the driver to userspace when 374 * netlink events are used to send CFR data. 375 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: Sub command to get firmware state. 376 * The returned firmware state is specified in the attribute 377 * QCA_WLAN_VENDOR_ATTR_FW_STATE. 378 * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand 379 * is used by host driver to flush per-peer cached statistics to user space 380 * application. This interface is used as an event from host driver to 381 * user space application. Attributes for this event are specified in 382 * enum qca_wlan_vendor_attr_peer_stats_cache_params. 383 * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be 384 * sent as event from host driver. 385 * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to 386 * improve the success rate of Zigbee joining network. 387 * Due to PTA master limitation, zigbee joining network success rate is 388 * low while wlan is working. Wlan host driver need to configure some 389 * parameters including Zigbee state and specific WLAN periods to enhance 390 * PTA master. All this parameters are delivered by the NetLink attributes 391 * defined in "enum qca_mpta_helper_vendor_attr". 392 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to 393 * implement Beacon frame reporting feature. 394 * 395 * Userspace can request the driver/firmware to periodically report 396 * received Beacon frames whose BSSID is same as the current connected 397 * BSS's MAC address. 398 * 399 * In case the STA seamlessly (without sending disconnect indication to 400 * userspace) roams to a different BSS, Beacon frame reporting will be 401 * automatically enabled for the Beacon frames whose BSSID is same as the 402 * MAC address of the new BSS. Beacon reporting will be stopped when the 403 * STA is disconnected (when the disconnect indication is sent to 404 * userspace) and need to be explicitly enabled by userspace for next 405 * connection. 406 * 407 * When a Beacon frame matching configured conditions is received, and if 408 * userspace has requested to send asynchronous beacon reports, the 409 * driver/firmware will encapsulate the details of the Beacon frame in an 410 * event and send it to userspace along with updating the BSS information 411 * in cfg80211 scan cache, otherwise driver will only update the cfg80211 412 * scan cache with the information from the received Beacon frame but 413 * will not send any active report to userspace. 414 * 415 * The userspace can request the driver/firmware to stop reporting Beacon 416 * frames. If the driver/firmware is not able to receive Beacon frames 417 * due to other Wi-Fi operations such as off-channel activities, etc., 418 * the driver/firmware will send a pause event to userspace and stop 419 * reporting Beacon frames. Whether the beacon reporting will be 420 * automatically resumed or not by the driver/firmware later will be 421 * reported to userspace using the 422 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES flag. The beacon 423 * reporting shall be resumed for all the cases except either when 424 * userspace sets QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag 425 * in the command which triggered the current beacon reporting or during 426 * any disconnection case as indicated by setting 427 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to 428 * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the 429 * driver. 430 * 431 * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received 432 * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES 433 * flag not set, the next first 434 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver 435 * shall be considered as un-pause event. 436 * 437 * All the attributes used with this command are defined in 438 * enum qca_wlan_vendor_attr_beacon_reporting_params. 439 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some aps have 440 * interop issues with the DUT. This sub command is used to transfer the 441 * ap info between driver and user space. This works both as a command 442 * or event. As a command, it configs the stored list of aps from user 443 * space to firmware; as an event, it indicates the ap info detected by 444 * firmware to user space for persistent storage. The attributes defined 445 * in enum qca_vendor_attr_interop_issues_ap are used to deliver the 446 * parameters. 447 * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command is used to send OEM data 448 * binary blobs from application/service to firmware. The attributes 449 * defined in enum qca_wlan_vendor_attr_oem_data_params are used to 450 * deliver the parameters. 451 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used 452 * to send/receive avoid frequency data using 453 * enum qca_wlan_vendor_attr_avoid_frequency_ext. 454 * This new command is alternative to existing command 455 * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event 456 * is using stream of bytes instead of structured data using vendor 457 * attributes. User space sends unsafe frequency ranges to the driver using 458 * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On 459 * reception of this command, the driver shall check if an interface is 460 * operating on an unsafe frequency and the driver shall try to move to a 461 * safe channel when needed. If the driver is not able to find a safe 462 * channel the interface can keep operating on an unsafe channel with the 463 * TX power limit derived based on internal configurations like 464 * regulatory/SAR rules. 465 * 466 * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to 467 * add the STA node details in driver/firmware. Attributes for this event 468 * are specified in enum qca_wlan_vendor_attr_add_sta_node_params. 469 * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT 470 * coex chain mode from application/service. 471 * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used 472 * to deliver the parameters. 473 * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to 474 * get information of a station from driver to userspace. This command can 475 * be used in both STA and AP modes. For STA mode, it provides information 476 * of the current association when in connected state or the last 477 * association when in disconnected state. For AP mode, only information 478 * of the currently connected stations is available. This command uses 479 * attributes defined in enum qca_wlan_vendor_attr_get_sta_info. 480 * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event. 481 * Host drivers can request the user space entity to set the SAR power 482 * limits with this event. Accordingly, the user space entity is expected 483 * to set the SAR power limits. Host drivers can retry this event to the 484 * user space for the SAR power limits configuration from user space. If 485 * the driver does not get the SAR power limits from user space for all 486 * the retried attempts, it can configure a default SAR power limit. 487 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and 488 * is used to update the information about the station from the driver to 489 * userspace. Uses attributes from enum 490 * qca_wlan_vendor_attr_update_sta_info. 491 * 492 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event. 493 * The host driver initiates the disconnection for scenarios such as beacon 494 * miss, NUD failure, peer kick out, etc. The disconnection indication 495 * through cfg80211_disconnected() expects the reason codes from enum 496 * ieee80211_reasoncode which does not signify these various reasons why 497 * the driver has triggered the disconnection. This event will be used to 498 * send the driver specific reason codes by the host driver to userspace. 499 * Host drivers should trigger this event and pass the respective reason 500 * code immediately prior to triggering cfg80211_disconnected(). The 501 * attributes used with this event are defined in enum 502 * qca_wlan_vendor_attr_driver_disconnect_reason. 503 * 504 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to 505 * add/delete TSPEC for each AC. One command is for one specific AC only. 506 * This command can only be used in STA mode and the STA must be 507 * associated with an AP when the command is issued. Uses attributes 508 * defined in enum qca_wlan_vendor_attr_config_tspec. 509 * 510 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT. 511 * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt. 512 * 513 * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the configured band from 514 * the host driver. The band configurations obtained are referred through 515 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. 516 * 517 * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium 518 * assessment. 519 * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess. 520 * 521 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is 522 * used to update SSID information in hostapd when it is updated in the 523 * driver. Uses the attribute NL80211_ATTR_SSID. 524 * 525 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by 526 * the driver to send opaque data from the firmware to userspace. The 527 * driver sends an event to userspace whenever such data is received from 528 * the firmware. 529 * 530 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to 531 * send this opaque data for this event. 532 * 533 * The format of the opaque data is specific to the particular firmware 534 * version and there is no guarantee of the format remaining same. 535 * 536 * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event. 537 * The host driver selects Tx VDEV, and notifies user. The attributes 538 * used with this event are defined in enum 539 * qca_wlan_vendor_attr_mbssid_tx_vdev_status. 540 * This event contains Tx VDEV group information contains other VDEVs 541 * interface index and status information. 542 * 543 * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to 544 * configure the concurrent session policies when multiple interfaces 545 * are (getting) active. The attributes used by this command are defined 546 * in enum qca_wlan_vendor_attr_concurrent_policy. 547 * 548 * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command 549 * to query usable channels for different interface types such as STA, 550 * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable 551 * channels in the response based on country code, different static 552 * configurations, concurrency combinations, etc. The attributes used 553 * with this command are defined in 554 * enum qca_wlan_vendor_attr_usable_channels. 555 * 556 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used 557 * to get DFS radar history from the driver to userspace. The driver 558 * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an 559 * array of nested entries. 560 * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to 561 * enable/disable mDNS offload to the firmware. The attributes used with 562 * this command are defined in enum qca_wlan_vendor_attr_mdns_offload. 563 * 564 * @QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA: Driver uses this command to send 565 * important debug events that are required for various issues. The 566 * attributes used with this command are defined in 567 * enum qca_wlan_vendor_attr_diag. 568 * This command is defined for temporary usage until this interface is 569 * moved to the existing diag infra with cnss diag events. This command 570 * will be deprecated soon and it is not recommended to do any further 571 * enhancements to this command. 572 * 573 * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used 574 * to set packet monitor mode that aims to send the specified set of TX and 575 * RX frames on the current client interface to an active monitor interface. 576 * If this Monitor mode is set, the driver will send the configured frames, 577 * from the interface on which the command is issued, to an active monitor 578 * interface. The attributes used with this command are defined in 579 * enum qca_wlan_vendor_attr_set_monitor_mode. 580 * 581 * Though the monitor mode is configured for the respective data/mgmt/ctrl 582 * frames, it is up to the respective WLAN driver/firmware/hardware designs 583 * to consider the possibility of sending these frames over the monitor 584 * interface. For example, the control frames are handled with in the 585 * hardware and thus passing such frames over the monitor interface is left 586 * to the respective designs. 587 * 588 * Also, this monitor mode is governed to behave accordingly in 589 * suspend/resume states. If the firmware handles any of such frames 590 * in suspend state without waking up the host and if the monitor mode 591 * is configured to notify all such frames, then the firmware is expected 592 * to resume the host and forward the respective frames to the monitor 593 * interface. Please note that such a request to get the frames over the 594 * monitor interface will have a definite power implications. 595 * 596 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both 597 * as a request to set the driver/firmware with the parameters to trigger 598 * the roaming events, and also used by the driver/firmware to pass on the 599 * various roam events to userspace. 600 * Applicable only for the STA mode. The attributes used with this command 601 * are defined in enum qca_wlan_vendor_attr_roam_events. 602 * 603 * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Sub-command to set or reset the 604 * rate mask config for a list of phy types. Userspace shall provide 605 * an array of the vendor attributes defined in 606 * enum QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS. 607 * 608 * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs 609 * when two interfaces are active on the same band, using two different 610 * home channels, and only supported by a single radio. In this scenario 611 * the device must split the use of the radio between the two interfaces. 612 * The percentage of time allocated to a given interface is the quota. 613 * Depending on the configuration, the quota can either be fixed or 614 * dynamic. 615 * 616 * When used as an event, the device will report the quota type, and for 617 * all interfaces operating in MCC it will report the current quota. 618 * When used as a command, the device can be configured for a specific 619 * quota type, and in the case of a fixed quota, the quota to apply to one 620 * of the interfaces. 621 * 622 * Applications can use the event to do TX bitrate control based on the 623 * information, and can use the command to explicitly set the quota to 624 * enhance performance in specific scenarios. 625 * 626 * The attributes used with this command are defined in 627 * enum qca_wlan_vendor_attr_mcc_quota. 628 * 629 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the 630 * user space that the driver is ready for operations again after 631 * recovering from internal failures. This occurs following a failure 632 * that was indicated by @QCA_NL80211_VENDOR_SUBCMD_HANG. 633 * 634 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to 635 * get the WLAN radio combinations matrix supported by the device which 636 * provides the device simultaneous radio configurations such as 637 * standalone, dual band simultaneous, and single band simultaneous. 638 * 639 * The attributes used with this command are defined in 640 * enum qca_wlan_vendor_attr_radio_combination_matrix. 641 * 642 * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation 643 * security negotiation and key generation to user space. 644 * 645 * When used as an event, the driver requests userspace to trigger the PASN 646 * authentication or dropping of a PTKSA for the indicated peer devices. 647 * When used as a command response, userspace indicates a consolidated 648 * status report for all the peers that were requested for. 649 * 650 * The attributes used with this command are defined in 651 * enum qca_wlan_vendor_attr_pasn. 652 * 653 * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set 654 * secure ranging context such as TK and LTF keyseed for each peer 655 * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event. 656 * 657 * The attributes used with this command are defined in 658 * enum qca_wlan_vendor_attr_secure_ranging_ctx. 659 * 660 * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to 661 * enable/disable offload processing in firmware during system/runtime 662 * suspend for CoAP messages (see RFC7252: The Constrained Application 663 * Protocol) and fetch information of the CoAP messages cached during 664 * offload processing. 665 * 666 * The attributes used with this command are defined in 667 * enum qca_wlan_vendor_attr_coap_offload. 668 * 669 * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure 670 * (add, remove, or change) a Stream Classification Service (SCS) rule. 671 * 672 * The attributes used with this event are defined in 673 * enum qca_wlan_vendor_attr_scs_rule_config. 674 * 675 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities 676 * supported by the WLAN firmware. 677 * 678 * The attributes used with this command are defined in 679 * enum qca_wlan_vendor_attr_sar_capability. 680 * 681 * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse 682 * (SR) feature. This command is used by userspace to configure SR 683 * parameters to the driver and to get the SR related parameters and 684 * statistics with synchronous responses from the driver. 685 * The driver also uses this command to send asynchronous events to 686 * userspace to indicate suspend/resume of SR feature and changes 687 * in SR parameters. 688 * 689 * The attributes used with this command are defined in 690 * enum qca_wlan_vendor_attr_sr. 691 * 692 * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to 693 * notify application layer about the primary netdev of an MLO connection. 694 * In some implementations, MLO has multiple netdevs out of which one 695 * netdev is designated as primary to provide a unified interface to the 696 * bridge. In those implementations this event is sent on every MLO peer 697 * connection. User applications on an AP MLD will use this event to get 698 * info for all the links from non-AP MLD that were negotiated to be used 699 * for the ML association. 700 * 701 * The attributes used with this event are defined in 702 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event. 703 * 704 * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the 705 * driver to notify different AFC events to userspace. The attributes used 706 * with this command are defined in enum qca_wlan_vendor_attr_afc_event. 707 * 708 * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by 709 * userspace to deliver AFC response data to driver. The attributes used 710 * with this command are defined in enum qca_wlan_vendor_attr_afc_response. 711 * 712 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to 713 * operate in doze mode. 714 * 715 * Userspace uses this command to configure the AP interface to enter or 716 * exit from doze mode. The driver sends this event after it enters or 717 * exits the doze mode with the updated AP doze mode settings. 718 * 719 * The attributes used with this subcommand are defined in 720 * enum qca_wlan_vendor_attr_dozed_ap. 721 * 722 * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used 723 * to get the status of local packet capture of monitor mode. The monitor 724 * mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE 725 * subcommand. 726 * 727 * The attributes used with this command are defined in enum 728 * qca_wlan_vendor_attr_get_monitor_mode. 729 * 730 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to 731 * get roam information from the driver to user space. It provides the 732 * latest several instances of roam information cached in the driver. 733 * The command is only used for STA mode. The attributes used with this 734 * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats. 735 * 736 * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to 737 * configure and fetch the state information of the MLO links affiliated 738 * with the STA interface. The attributes used with this command are 739 * defined in enum qca_wlan_vendor_attr_mlo_link_state. 740 * 741 * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this 742 * vendor subcommand to trigger channel utilization measurement on entire 743 * channel width of the connected channel(s). For MLO connection, connected 744 * channel utilization measurement shall be done on all the MLO links. 745 * The driver may use regular scan or wideband energy detection feature 746 * based on the hardware capability for connected channel(s) utilization 747 * measurement. The driver indicates the connected channel(s) utilization 748 * measurement completion as an asynchronous event with this command ID to 749 * userspace. Upon receiving this event, userspace can use 750 * %NL80211_CMD_GET_INTERFACE to determine the channel width of the current 751 * connected channel(s) and can derive the channel utilization percentage 752 * (CU) of each 20 MHz sub-channel of the entire connected channel using 753 * %NL80211_CMD_GET_SURVEY response. 754 * CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME. 755 * This command is only used for STA mode. 756 * 757 * @QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP: This vendor subcommand is 758 * used as an event to notify the userspace of TID-to-link map changes 759 * negotiated by the driver or updated by associated AP MLD with Beacon, 760 * Probe Response, or Action frames. The attributes used with this command 761 * are defined in enum qca_wlan_vendor_attr_tid_to_link_map. 762 * 763 * Note that the attribute 764 * %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to 765 * the current connected AP MLD address. 766 * 767 * @QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG: Notify userspace about the removal 768 * of STA MLD setup links due to AP MLD removing the corresponding 769 * affiliated APs with Multi-Link reconfiguration. If all the STA MLD setup 770 * links are removed during Multi-Link reconfiguration, the driver shall 771 * use %NL80211_CMD_DISCONNECT instead of this command since it is a 772 * connection drop. The attributes used with this command are defined in 773 * enum qca_wlan_vendor_attr_link_reconfig. 774 * Note that the attribute 775 * %QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR may not correspond to 776 * the current connected AP MLD address. 777 * 778 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT: Vendor command to configure 779 * the driver with MLO link id information on which to transmit the TDLS 780 * discovery response frame on the configured MLO BSS link when the 781 * local station is connected in MLO mode. This command is sent to the 782 * driver prior to the TDLS discovery response management transmit 783 * operation and is followed immediately by the TDLS discovery response 784 * management frame transmit command. 785 * 786 * The driver saves the configured MLO link id information and uses it for 787 * the following TDLS discovery response frame transmission on the 788 * configured MLO BSS link and the link id information is cleared in the 789 * driver after the TDLS discovery response frame is successfully 790 * transmitted. This behavior is independent of the TDLS peer STA connection 791 * mode (MLO or non-MLO). 792 * 793 * Uses the attributes defined in 794 * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext. 795 * 796 * @QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH: This vendor subcommand is 797 * used to configure and indicate the audio transport switch in both 798 * command and event paths. This is used when two or more audio transports 799 * (ex: WLAN and bluetooth) are available between peers. 800 * 801 * If the driver needs to perform operations like scan, connection, 802 * roaming, RoC etc. and AP concurrency policy is set to either 803 * QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO or 804 * QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING, the driver sends 805 * audio transport switch event to userspace. Userspace application upon 806 * receiving the event, can try to switch to requested audio transport. 807 * The userspace uses this command to send the status of transport 808 * switching (either confirm or reject) to the driver using this 809 * subcommand. The driver continues with the pending operation either upon 810 * receiving the command from userspace or after waiting for timeout since 811 * sending the event to userspace. The driver can request userspace to 812 * switch to WLAN upon availability of WLAN audio transport once after the 813 * concurrent operations are completed. 814 * 815 * Userspace can also request audio transport switch from non-WLAN to WLAN 816 * using this subcommand to the driver. The driver can accept or reject 817 * depending on other concurrent operations in progress. The driver returns 818 * success if it can allow audio transport when it receives the command or 819 * appropriate kernel error code otherwise. Userspace indicates the audio 820 * transport switch from WLAN to non-WLAN using this subcommand and the 821 * driver can do other concurrent operations without needing to send any 822 * event to userspace. This subcommand is used by userspace only when the 823 * driver advertises support for 824 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN. 825 * 826 * The attributes used with this command are defined in enum 827 * qca_wlan_vendor_attr_audio_transport_switch. 828 * 829 * @QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY: This vendor subcommand is used to 830 * configure, retrieve, and report per-link transmit latency statistics. 831 * 832 * The attributes used with this subcommand are defined in 833 * enum qca_wlan_vendor_attr_tx_latency. 834 * 835 * @QCA_NL80211_VENDOR_SUBCMD_RECONFIG_REMOVE_COMPLETE_EVENT: This vendor 836 * subcommand is used to send event to the user space once the MLD remove 837 * link process is completed in the API mlme_ext_vap_down and the event 838 * is sent through wlan_cfg80211_reconfig_remove_complete_event. 839 * 840 * @QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO: Vendor command is used to 841 * query transmit power information on STA interface from the driver for a 842 * connected AP. The attributes included in response are defined in 843 * enum qca_wlan_vendor_attr_tpc_links. In case of MLO STA, multiple links 844 * TPC info may be returned. The information includes regulatory maximum 845 * transmit power limit, AP local power constraint advertised from AP's 846 * Beacon and Probe Response frames. For PSD power mode, the information 847 * includes PSD power levels for each subchannel of operating bandwidth. 848 * The information is driver calculated power limits based on the current 849 * regulatory domain, AP local power constraint, and other IEs. The 850 * information will be set to target. Target will decide the final TX power 851 * based on this and chip specific power conformance test limits (CTL), and 852 * SAR limits. 853 * 854 * @QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT: Event indication from the 855 * driver to user space which is carrying firmware page fault related 856 * summary report. The attributes for this command are defined in 857 * enum qca_wlan_vendor_attr_fw_page_fault_report. 858 */ 859 860 enum qca_nl80211_vendor_subcmds { 861 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, 862 QCA_NL80211_VENDOR_SUBCMD_TEST = 1, 863 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9, 864 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10, 865 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11, 866 QCA_NL80211_VENDOR_SUBCMD_NAN = 12, 867 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13, 868 869 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14, 870 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15, 871 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16, 872 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17, 873 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18, 874 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19, 875 876 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START = 20, 877 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_STOP = 21, 878 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS = 22, 879 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CAPABILITIES = 23, 880 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS = 24, 881 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE = 25, 882 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT = 26, 883 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT = 27, 884 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND = 28, 885 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_BSSID_HOTLIST = 29, 886 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_BSSID_HOTLIST = 30, 887 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE = 31, 888 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SIGNIFICANT_CHANGE = 32, 889 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SIGNIFICANT_CHANGE = 33, 890 891 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34, 892 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35, 893 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36, 894 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37, 895 896 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38, 897 898 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39, 899 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40, 900 901 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_LOST = 41, 902 903 /* Get Concurrency Matrix */ 904 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42, 905 906 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50, 907 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51, 908 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52, 909 910 /* Deprecated */ 911 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_SCHED = 53, 912 913 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54, 914 915 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55, 916 917 /* Off loaded DFS events */ 918 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56, 919 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57, 920 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58, 921 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59, 922 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60, 923 924 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61, 925 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62, 926 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63, 927 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64, 928 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST = 65, 929 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_RESET_SSID_HOTLIST = 66, 930 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_FOUND = 67, 931 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_SSID_LOST = 68, 932 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_LIST = 69, 933 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_SET_PASSPOINT_LIST = 70, 934 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_RESET_PASSPOINT_LIST = 71, 935 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_NETWORK_FOUND = 72, 936 QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_PNO_PASSPOINT_NETWORK_FOUND = 73, 937 938 /* Wi-Fi Configuration subcommands */ 939 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74, 940 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75, 941 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76, 942 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77, 943 944 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78, 945 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79, 946 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80, 947 QCA_NL80211_VENDOR_SUBCMD_NDP = 81, 948 949 /* NS Offload enable/disable cmd */ 950 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82, 951 952 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83, 953 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84, 954 955 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85, 956 957 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91, 958 /* OCB commands */ 959 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92, 960 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93, 961 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94, 962 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95, 963 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96, 964 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97, 965 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98, 966 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99, 967 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100, 968 969 /* subcommand to get link properties */ 970 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101, 971 /* LFR Subnet Detection */ 972 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102, 973 974 /* DBS subcommands */ 975 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103, 976 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104, 977 978 /* Vendor setband command */ 979 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105, 980 981 /* Vendor scan commands */ 982 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106, 983 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107, 984 985 /* OTA test subcommand */ 986 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108, 987 /* Tx power scaling subcommands */ 988 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109, 989 /* Tx power scaling in db subcommands */ 990 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE_DECR_DB = 115, 991 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116, 992 QCA_NL80211_VENDOR_SUBCMD_STA_CONNECT_ROAM_POLICY = 117, 993 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118, 994 QCA_NL80211_VENDOR_SUBCMD_TSF = 119, 995 QCA_NL80211_VENDOR_SUBCMD_WISA = 120, 996 QCA_NL80211_VENDOR_SUBCMD_GET_STATION = 121, 997 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122, 998 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123, 999 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124, 1000 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125, 1001 1002 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126, 1003 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127, 1004 /* FTM/indoor location subcommands */ 1005 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128, 1006 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129, 1007 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130, 1008 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131, 1009 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132, 1010 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133, 1011 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134, 1012 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135, 1013 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136, 1014 1015 /* Encrypt/Decrypt command */ 1016 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137, 1017 1018 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138, 1019 /* DMG low level RF sector operations */ 1020 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139, 1021 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140, 1022 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141, 1023 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142, 1024 1025 /* Configure the TDLS mode from user space */ 1026 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143, 1027 1028 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144, 1029 1030 /* Vendor abort scan command */ 1031 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145, 1032 1033 /* Set Specific Absorption Rate(SAR) Power Limits */ 1034 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146, 1035 1036 /* External Auto channel configuration setting */ 1037 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147, 1038 1039 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148, 1040 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149, 1041 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150, 1042 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151, 1043 1044 /* Set the trace level for QDF */ 1045 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152, 1046 1047 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153, 1048 1049 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154, 1050 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155, 1051 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156, 1052 QCA_NL80211_VENDOR_SUBCMD_HANG = 157, 1053 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158, 1054 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159, 1055 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160, 1056 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161, 1057 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162, 1058 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163, 1059 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164, 1060 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165, 1061 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166, 1062 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167, 1063 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168, 1064 /* Wi-Fi test configuration subcommand */ 1065 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169, 1066 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171, 1067 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173, 1068 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174, 1069 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175, 1070 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177, 1071 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178, 1072 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179, 1073 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180, 1074 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181, 1075 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182, 1076 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183, 1077 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184, 1078 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185, 1079 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186, 1080 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187, 1081 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188, 1082 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189, 1083 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190, 1084 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191, 1085 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192, 1086 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193, 1087 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194, 1088 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195, 1089 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196, 1090 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197, 1091 QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198, 1092 QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199, 1093 QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200, 1094 QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA = 201, 1095 QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202, 1096 QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203, 1097 QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204, 1098 QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205, 1099 /* 206..212 - reserved for QCA */ 1100 QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213, 1101 QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214, 1102 QCA_NL80211_VENDOR_SUBCMD_PASN = 215, 1103 QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216, 1104 QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217, 1105 QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218, 1106 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219, 1107 QCA_NL80211_VENDOR_SUBCMD_SR = 220, 1108 QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221, 1109 QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222, 1110 QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223, 1111 QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224, 1112 QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225, 1113 QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226, 1114 QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227, 1115 QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228, 1116 QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229, 1117 QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230, 1118 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231, 1119 QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH = 232, 1120 QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY = 233, 1121 QCA_NL80211_VENDOR_SUBCMD_RECONFIG_REMOVE_COMPLETE_EVENT = 234, 1122 QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO = 237, 1123 QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT = 238, 1124 }; 1125 1126 enum qca_wlan_vendor_tos { 1127 QCA_WLAN_VENDOR_TOS_BK = 0, 1128 QCA_WLAN_VENDOR_TOS_BE = 1, 1129 QCA_WLAN_VENDOR_TOS_VI = 2, 1130 QCA_WLAN_VENDOR_TOS_VO = 3, 1131 }; 1132 1133 /** 1134 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command 1135 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS. 1136 */ 1137 enum qca_wlan_vendor_attr_active_tos { 1138 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0, 1139 /* Type Of Service - Represented by qca_wlan_vendor_tos */ 1140 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1, 1141 /* Flag attribute representing the start (attribute included) or stop 1142 * (attribute not included) of the respective TOS. 1143 */ 1144 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2, 1145 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_MAX = 3, 1146 }; 1147 1148 enum qca_wlan_vendor_hang_reason { 1149 /* Unspecified reason */ 1150 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0, 1151 /* No Map for the MAC entry for the received frame */ 1152 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1, 1153 /* peer deletion timeout happened */ 1154 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2, 1155 /* peer unmap timeout */ 1156 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3, 1157 /* Scan request timed out */ 1158 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4, 1159 /* Consecutive Scan attempt failures */ 1160 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5, 1161 /* Unable to get the message buffer */ 1162 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6, 1163 /* Current command processing is timedout */ 1164 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7, 1165 /* Timeout for an ACK from FW for suspend request */ 1166 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8, 1167 /* Timeout for an ACK from FW for resume request */ 1168 QCA_WLAN_HANG_RESUME_TIMEOUT = 9, 1169 /* Transmission timeout for consecutive data frames */ 1170 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10, 1171 /* Timeout for the TX completion status of data frame */ 1172 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11, 1173 /* DXE failure for tx/Rx, DXE resource unavailability */ 1174 QCA_WLAN_HANG_DXE_FAILURE = 12, 1175 /* WMI pending commands exceed the maximum count */ 1176 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13, 1177 /* Timeout for peer STA connection accept command's response from the 1178 * FW in AP mode. This command is triggered when a STA (peer) connects 1179 * to AP (DUT). 1180 */ 1181 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14, 1182 /* Timeout for the AP connection accept command's response from the FW 1183 * in STA mode. This command is triggered when the STA (DUT) connects 1184 * to an AP (peer). 1185 */ 1186 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15, 1187 /* Timeout waiting for the response to the MAC HW mode change command 1188 * sent to FW as a part of MAC mode switch among DBS (Dual Band 1189 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi 1190 * Channel Concurrency) mode. 1191 */ 1192 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16, 1193 /* Timeout waiting for the response from FW to configure the MAC HW's 1194 * mode. This operation is to configure the single/two MACs in either 1195 * SCC/MCC/DBS mode. 1196 */ 1197 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17, 1198 /* Timeout waiting for response of VDEV start command from the FW */ 1199 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18, 1200 /* Timeout waiting for response of VDEV restart command from the FW */ 1201 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19, 1202 /* Timeout waiting for response of VDEV stop command from the FW */ 1203 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20, 1204 /* Timeout waiting for response of VDEV delete command from the FW */ 1205 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21, 1206 /* Timeout waiting for response of peer all delete request command to 1207 * the FW on a specific VDEV. 1208 */ 1209 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22, 1210 /* WMI sequence mismatch between WMI command and Tx completion */ 1211 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23, 1212 /* Write to Device HAL register failed */ 1213 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24, 1214 /* No credit left to send the wow_wakeup_from_sleep to firmware */ 1215 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25, 1216 /* Bus failure */ 1217 QCA_WLAN_HANG_BUS_FAILURE = 26, 1218 /* tasklet/credit latency found */ 1219 QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27, 1220 /* MSDU buffers received in REO error ring, exceeding certain 1221 * threshold 1222 */ 1223 QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28, 1224 /* Vdev SM is out of sync and connect req received 1225 * when already connected 1226 */ 1227 QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29, 1228 /* Stats request timeout */ 1229 QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30, 1230 /* Leak in TX descriptor for a packet */ 1231 QCA_WLAN_HANG_TX_DESC_LEAK = 31, 1232 /* Scheduler watchdog timeout */ 1233 QCA_WLAN_HANG_SCHED_TIMEOUT = 32, 1234 /* Failed to send self peer deletion cmd to firmware */ 1235 QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33, 1236 /* Received del self sta without del bss */ 1237 QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34, 1238 /* Recovery needed when sending flush completion to userspace */ 1239 QCA_WLAN_HANG_FLUSH_LOGS = 35, 1240 /* Host wakeup because of page fault */ 1241 QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36, 1242 }; 1243 1244 /** 1245 * enum qca_wlan_vendor_attr_fw_page_fault_report - Used by the vendor 1246 * command %QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT. 1247 * 1248 * @QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA: The binary blob data 1249 * associated with the firmware page fault that is expected to contain the 1250 * required dump to analyze frequent page faults. 1251 * NLA_BINARY attribute, the maximum size is QDF_HANG_EVENT_DATA_SIZE 1252 */ 1253 enum qca_wlan_vendor_attr_fw_page_fault_report { 1254 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_INVALID = 0, 1255 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA = 1, 1256 1257 /* keep last */ 1258 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST, 1259 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_MAX = 1260 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST - 1, 1261 }; 1262 1263 /** 1264 * enum qca_wlan_vendor_attr_hang - Used by the vendor command 1265 * QCA_NL80211_VENDOR_SUBCMD_HANG. 1266 */ 1267 enum qca_wlan_vendor_attr_hang { 1268 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0, 1269 /* 1270 * Reason for the Hang - Represented by enum 1271 * qca_wlan_vendor_hang_reason. 1272 */ 1273 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1, 1274 /* The binary blob data associated with the hang reason specified by 1275 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to 1276 * contain the required dump to analyze the reason for the hang. 1277 * NLA_BINARY attribute, the max size is 1024 bytes. 1278 */ 1279 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2, 1280 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST, 1281 QCA_WLAN_VENDOR_ATTR_HANG_MAX = 1282 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1, 1283 }; 1284 1285 /** 1286 * enum qca_vendor_attr_set_trace_level - Config params for QDF set trace level 1287 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID: Invalid trace level 1288 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM : Trace level parameters 1289 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID : Module of which trace 1290 level needs to be updated. 1291 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK : verbose mask, which need 1292 * to be set. 1293 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST : after last. 1294 * @QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX : Max attribute. 1295 */ 1296 enum qca_vendor_attr_set_trace_level { 1297 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_INVALID = 0, 1298 /* 1299 * Array of QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM 1300 * attributes. 1301 */ 1302 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_PARAM = 1, 1303 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MODULE_ID = 2, 1304 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_TRACE_MASK = 3, 1305 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST, 1306 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_MAX = 1307 QCA_WLAN_VENDOR_ATTR_SET_TRACE_LEVEL_AFTER_LAST - 1, 1308 }; 1309 1310 /** 1311 * enum qca_wlan_vendor_attr_get_station - Sub commands used by 1312 * QCA_NL80211_VENDOR_SUBCMD_GET_STATION to get the corresponding 1313 * station information. The information obtained through these 1314 * commands signify the current info in connected state and 1315 * latest cached information during the connected state , if queried 1316 * when in disconnected state. 1317 * 1318 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID: Invalid attribute 1319 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO: bss info 1320 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON: assoc fail reason 1321 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE: remote station info 1322 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST: After last 1323 */ 1324 enum qca_wlan_vendor_attr_get_station { 1325 QCA_WLAN_VENDOR_ATTR_GET_STATION_INVALID = 0, 1326 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO, 1327 QCA_WLAN_VENDOR_ATTR_GET_STATION_ASSOC_FAIL_REASON, 1328 QCA_WLAN_VENDOR_ATTR_GET_STATION_REMOTE, 1329 1330 /* keep last */ 1331 QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST, 1332 QCA_WLAN_VENDOR_ATTR_GET_STATION_MAX = 1333 QCA_WLAN_VENDOR_ATTR_GET_STATION_AFTER_LAST - 1, 1334 }; 1335 1336 /** 1337 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes 1338 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command. 1339 * 1340 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC. 1341 * Used in STA mode. This attribute represents the list of channel center 1342 * frequencies in MHz (u32) the station has learnt during the last connection 1343 * or roaming attempt. This information shall not signify the channels for 1344 * an explicit scan request from the user space. Host drivers can update this 1345 * information to the user space in both connected and disconnected state. 1346 * In the disconnected state this information shall signify the channels 1347 * scanned in the last connection/roam attempt that lead to the disconnection. 1348 */ 1349 enum qca_wlan_vendor_attr_update_sta_info { 1350 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0, 1351 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1, 1352 1353 /* keep last */ 1354 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST, 1355 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX = 1356 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1, 1357 }; 1358 1359 /** 1360 * enum qca_wlan_802_11_mode - dot11 mode 1361 * @QCA_WLAN_802_11_MODE_11B: mode B 1362 * @QCA_WLAN_802_11_MODE_11G: mode G 1363 * @QCA_WLAN_802_11_MODE_11N: mode N 1364 * @QCA_WLAN_802_11_MODE_11A: mode A 1365 * @QCA_WLAN_802_11_MODE_11AC: mode AC 1366 * @QCA_WLAN_802_11_MODE_11AX: mode AX 1367 * @QCA_WLAN_802_11_MODE_11BE: mode BE 1368 * @QCA_WLAN_802_11_MODE_INVALID: Invalid dot11 mode 1369 */ 1370 enum qca_wlan_802_11_mode { 1371 QCA_WLAN_802_11_MODE_11B, 1372 QCA_WLAN_802_11_MODE_11G, 1373 QCA_WLAN_802_11_MODE_11N, 1374 QCA_WLAN_802_11_MODE_11A, 1375 QCA_WLAN_802_11_MODE_11AC, 1376 QCA_WLAN_802_11_MODE_11AX, 1377 QCA_WLAN_802_11_MODE_11BE, 1378 QCA_WLAN_802_11_MODE_INVALID, 1379 }; 1380 1381 /** 1382 * enum qca_wlan_auth_type - Authentication key management type 1383 * @QCA_WLAN_AUTH_TYPE_INVALID: Invalid key management type 1384 * @QCA_WLAN_AUTH_TYPE_OPEN: Open key 1385 * @QCA_WLAN_AUTH_TYPE_SHARED: shared key 1386 * @QCA_WLAN_AUTH_TYPE_WPA: wpa key 1387 * @QCA_WLAN_AUTH_TYPE_WPA_PSK: wpa psk key 1388 * @QCA_WLAN_AUTH_TYPE_WPA_NONE: wpa none key 1389 * @QCA_WLAN_AUTH_TYPE_RSN: rsn key 1390 * @QCA_WLAN_AUTH_TYPE_RSN_PSK: rsn psk key 1391 * @QCA_WLAN_AUTH_TYPE_FT: ft key 1392 * @QCA_WLAN_AUTH_TYPE_FT_PSK: ft psk key 1393 * @QCA_WLAN_AUTH_TYPE_SHA256: shared 256 key 1394 * @QCA_WLAN_AUTH_TYPE_SHA256_PSK: shared 256 psk 1395 * @QCA_WLAN_AUTH_TYPE_WAI: wai key 1396 * @QCA_WLAN_AUTH_TYPE_WAI_PSK wai psk key 1397 * @QCA_WLAN_AUTH_TYPE_CCKM_WPA: cckm wpa key 1398 * @QCA_WLAN_AUTH_TYPE_CCKM_RSN: cckm rsn key 1399 * @QCA_WLAN_AUTH_TYPE_AUTOSWITCH: Autoswitch key 1400 * @QCA_WLAN_AUTH_TYPE_FT_SAE: FT sae akm 1401 * @QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384: FT suite B SHA384 1402 * @QCA_WLAN_AUTH_TYPE_SAE: SAE key 1403 * @QCA_WLAN_AUTH_TYPE_FILS_SHA256: FILS SHA 256 key 1404 * @QCA_WLAN_AUTH_TYPE_FILS_SHA384: FILS SAH 384 key 1405 * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256: FT FILS SHA 256 key 1406 * @QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384: FT FILS SHA 384 key 1407 * @QCA_WLAN_AUTH_TYPE_DPP_RSN: DPP RSN key 1408 * @QCA_WLAN_AUTH_TYPE_OWE: owe key 1409 * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256 : EAP SHA 256 key 1410 * @QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384 : EAP SHA 384 key 1411 */ 1412 enum qca_wlan_auth_type { 1413 QCA_WLAN_AUTH_TYPE_INVALID, 1414 QCA_WLAN_AUTH_TYPE_OPEN, 1415 QCA_WLAN_AUTH_TYPE_SHARED, 1416 QCA_WLAN_AUTH_TYPE_WPA, 1417 QCA_WLAN_AUTH_TYPE_WPA_PSK, 1418 QCA_WLAN_AUTH_TYPE_WPA_NONE, 1419 QCA_WLAN_AUTH_TYPE_RSN, 1420 QCA_WLAN_AUTH_TYPE_RSN_PSK, 1421 QCA_WLAN_AUTH_TYPE_FT, 1422 QCA_WLAN_AUTH_TYPE_FT_PSK, 1423 QCA_WLAN_AUTH_TYPE_SHA256, 1424 QCA_WLAN_AUTH_TYPE_SHA256_PSK, 1425 QCA_WLAN_AUTH_TYPE_WAI, 1426 QCA_WLAN_AUTH_TYPE_WAI_PSK, 1427 QCA_WLAN_AUTH_TYPE_CCKM_WPA, 1428 QCA_WLAN_AUTH_TYPE_CCKM_RSN, 1429 QCA_WLAN_AUTH_TYPE_AUTOSWITCH, 1430 QCA_WLAN_AUTH_TYPE_FT_SAE, 1431 QCA_WLAN_AUTH_TYPE_FT_SUITEB_EAP_SHA384, 1432 QCA_WLAN_AUTH_TYPE_SAE, 1433 QCA_WLAN_AUTH_TYPE_FILS_SHA256, 1434 QCA_WLAN_AUTH_TYPE_FILS_SHA384, 1435 QCA_WLAN_AUTH_TYPE_FT_FILS_SHA256, 1436 QCA_WLAN_AUTH_TYPE_FT_FILS_SHA384, 1437 QCA_WLAN_AUTH_TYPE_DPP_RSN, 1438 QCA_WLAN_AUTH_TYPE_OWE, 1439 QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA256, 1440 QCA_WLAN_AUTH_TYPE_SUITEB_EAP_SHA384, 1441 }; 1442 1443 /** 1444 * enum qca_wlan_vendor_attr_get_station_info - Station Info queried 1445 * through QCA_NL80211_VENDOR_SUBCMD_GET_STATION. 1446 * 1447 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID: Invalid Attribute 1448 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR: 1449 * Get the standard NL attributes Nested with this attribute. 1450 * Ex : Query BW , BITRATE32 , NSS , Signal , Noise of the Link - 1451 * NL80211_ATTR_SSID / NL80211_ATTR_SURVEY_INFO (Connected Channel) / 1452 * NL80211_ATTR_STA_INFO 1453 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR: 1454 * Get the standard NL attributes Nested with this attribute. 1455 * Ex : Query HT/VHT Capability advertised by the AP. 1456 * NL80211_ATTR_VHT_CAPABILITY / NL80211_ATTR_HT_CAPABILITY 1457 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT: 1458 * Number of successful Roam attempts before a 1459 * disconnect, Unsigned 32 bit value 1460 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM: 1461 * Authentication Key Management Type used for the connected session. 1462 * Signified by enum qca_wlan_auth_type 1463 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE: 802.11 Mode of the 1464 * connected Session, signified by enum qca_wlan_802_11_mode 1465 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION: 1466 * HS20 Indication Element 1467 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON: 1468 * Status Code Corresponding to the Association Failure. 1469 * Unsigned 32 bit value. 1470 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE: 1471 * Max phy rate of remote station 1472 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS: 1473 * TX packets to remote station 1474 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES: 1475 * TX bytes to remote station 1476 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS: 1477 * RX packets from remote station 1478 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES: 1479 * RX bytes from remote station 1480 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE: 1481 * Last TX rate with remote station 1482 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE: 1483 * Last RX rate with remote station 1484 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM: 1485 * Remote station enable/disable WMM 1486 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE: 1487 * Remote station connection mode 1488 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU: 1489 * Remote station AMPDU enable/disable 1490 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC: 1491 * Remote station TX Space-time block coding enable/disable 1492 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC: 1493 * Remote station RX Space-time block coding enable/disable 1494 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH: 1495 * Remote station channel width 1496 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE: 1497 * Remote station short GI enable/disable 1498 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD: Attribute type for padding 1499 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES: Binary attribute 1500 * containing the raw information elements from Beacon frames. Represents 1501 * the Beacon frames of the current BSS in the connected state. When queried 1502 * in the disconnected state, these IEs correspond to the last connected BSSID. 1503 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON: u32, Driver 1504 * disconnect reason for the last disconnection if the disconnection is 1505 * triggered from the host driver. The values are referred from 1506 * enum qca_disconnect_reason_codes. If the disconnect is from 1507 * peer/userspace this value is QCA_DISCONNECT_REASON_UNSPECIFIED. 1508 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES: Binary attribute 1509 * Applicable in AP mode only. It contains the raw information elements 1510 * from assoc request frame of the given peer station. User queries with the 1511 * mac address of peer station when it disconnects. Host driver sends 1512 * assoc request frame of the given station. Host driver doesn't provide 1513 * the IEs when the peer station is still in connected state. 1514 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION: Attribute type for 1515 * sending HE operation info. 1516 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2: Attribute 1517 * type for remote channel width greater than 160 MHz. 1518 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION: Attribute type for 1519 * sending EHT operation info. 1520 * @QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST: After last 1521 * 1522 */ 1523 enum qca_wlan_vendor_attr_get_station_info { 1524 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_INVALID = 0, 1525 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_LINK_STANDARD_NL80211_ATTR, 1526 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_STANDARD_NL80211_ATTR, 1527 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ROAM_COUNT, 1528 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AKM, 1529 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_802_11_MODE, 1530 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AP_HS20_INDICATION, 1531 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HT_OPERATION, 1532 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_VHT_OPERATION, 1533 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_FAIL_REASON, 1534 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_MAX_PHY_RATE, 1535 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_PACKETS, 1536 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_BYTES, 1537 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_PACKETS, 1538 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BYTES, 1539 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_TX_RATE, 1540 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_LAST_RX_RATE, 1541 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_WMM, 1542 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SUPPORTED_MODE, 1543 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AMPDU, 1544 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_STBC, 1545 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_STBC, 1546 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH, 1547 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_SGI_ENABLE, 1548 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_PAD, 1549 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_RETRY_COUNT, 1550 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_BC_MC_COUNT, 1551 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_FAILURE, 1552 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_AVG_RSSI_PER_CHAIN, 1553 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_SUCCEED, 1554 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_RX_LAST_PKT_RSSI, 1555 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY, 1556 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST, 1557 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_TOTAL_FW, 1558 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_FW, 1559 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_TX_RETRY_EXHAUST_FW, 1560 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_BEACON_IES, 1561 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_DRIVER_DISCONNECT_REASON, 1562 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_ASSOC_REQ_IES, 1563 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_HE_OPERATION, 1564 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_REMOTE_CH_WIDTH_V2, 1565 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_EHT_OPERATION, 1566 1567 /* keep last */ 1568 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST, 1569 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_MAX = 1570 QCA_WLAN_VENDOR_ATTR_GET_STATION_INFO_AFTER_LAST - 1, 1571 }; 1572 1573 /** 1574 * qca_chip_power_save_failure_reason: Power save failure reason 1575 * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL: Indicates power save failure 1576 * due to protocol/module. 1577 * @QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE: power save failure 1578 * due to hardware 1579 */ 1580 enum qca_chip_power_save_failure_reason { 1581 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0, 1582 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1, 1583 }; 1584 1585 /** 1586 * qca_attr_chip_power_save_failure: attributes to vendor subcmd 1587 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carry the requisite 1588 * information leading to the power save failure. 1589 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID : invalid 1590 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON : power save failure reason 1591 * represented by enum qca_chip_power_save_failure_reason 1592 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST : Last 1593 * @QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX : Max value 1594 */ 1595 enum qca_attr_chip_power_save_failure { 1596 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0, 1597 1598 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1, 1599 1600 /* keep last */ 1601 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST, 1602 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX = 1603 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1, 1604 }; 1605 1606 /* enum's to provide TDLS capabilities */ 1607 enum qca_wlan_vendor_attr_get_tdls_capabilities { 1608 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0, 1609 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS = 1, 1610 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED = 2, 1611 1612 /* keep last */ 1613 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST, 1614 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX = 1615 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1, 1616 }; 1617 1618 /* Compatibility defines for previously used subcmd names. 1619 * These values should not be used in any new implementation. 1620 */ 1621 #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \ 1622 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY 1623 1624 enum qca_wlan_vendor_attr { 1625 QCA_WLAN_VENDOR_ATTR_INVALID = 0, 1626 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */ 1627 QCA_WLAN_VENDOR_ATTR_DFS = 1, 1628 /* used by QCA_NL80211_VENDOR_SUBCMD_NAN */ 1629 QCA_WLAN_VENDOR_ATTR_NAN = 2, 1630 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 1631 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3, 1632 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 1633 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4, 1634 /* 1635 * used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined 1636 * by enum qca_roaming_policy. 1637 */ 1638 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5, 1639 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6, 1640 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ 1641 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7, 1642 QCA_WLAN_VENDOR_ATTR_TEST = 8, 1643 /* 1644 * used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES 1645 * Unsigned 32-bit value. 1646 */ 1647 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9, 1648 /* Unsigned 32-bit value */ 1649 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10, 1650 /* Unsigned 32-bit value */ 1651 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11, 1652 /* Unsigned 32-bit value from enum qca_set_band. Also, the acceptable 1653 * value for this attribute are only till QCA_SETBAND_2G. This attribute 1654 * is deprecated. Recommendation is to use 1655 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. If the band is configured 1656 * using both the attributes, the ones configured through 1657 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK take the precedence. 1658 */ 1659 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12, 1660 /* Dummy (NOP) attribute for 64 bit padding */ 1661 QCA_WLAN_VENDOR_ATTR_PAD = 13, 1662 /* 1663 * Unique FTM session cookie (Unsigned 64 bit). Specified in 1664 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in 1665 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and 1666 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE. 1667 */ 1668 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14, 1669 /* 1670 * Indoor location capabilities, returned by 1671 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA. 1672 * see enum qca_wlan_vendor_attr_loc_capa. 1673 */ 1674 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15, 1675 /* 1676 * Array of nested attributes containing information about each peer 1677 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info 1678 * for supported attributes for each peer. 1679 */ 1680 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16, 1681 /* 1682 * Array of nested attributes containing measurement results for 1683 * one or more peers, reported by the 1684 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event. 1685 * See enum qca_wlan_vendor_attr_peer_result for list of supported 1686 * attributes. 1687 */ 1688 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17, 1689 /* Flag attribute for enabling or disabling responder functionality. */ 1690 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18, 1691 /* 1692 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 1693 * command to specify the LCI report that will be sent by 1694 * the responder during a measurement exchange. The format is 1695 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10. 1696 */ 1697 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19, 1698 /* 1699 * Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 1700 * command to specify the location civic report that will 1701 * be sent by the responder during a measurement exchange. 1702 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13. 1703 */ 1704 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20, 1705 /* 1706 * Session/measurement completion status code, 1707 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and 1708 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT 1709 * see enum qca_vendor_attr_loc_session_status. 1710 */ 1711 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21, 1712 /* 1713 * Initial dialog token used by responder (0 if not specified), 1714 * unsigned 8 bit value. 1715 */ 1716 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22, 1717 /* 1718 * AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS 1719 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if 1720 * AOA measurements are needed as part of an FTM session. 1721 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See 1722 * enum qca_wlan_vendor_attr_aoa_type. 1723 */ 1724 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23, 1725 /* 1726 * A bit mask (unsigned 32 bit value) of antenna arrays used 1727 * by indoor location measurements. Refers to the antenna 1728 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS. 1729 */ 1730 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24, 1731 /* 1732 * AOA measurement data. Its contents depends on the AOA measurement 1733 * type and antenna array mask: 1734 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values, 1735 * phase of the strongest CIR path for each antenna in the measured 1736 * array(s). 1737 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16 1738 * values, phase and amplitude of the strongest CIR path for each 1739 * antenna in the measured array(s). 1740 */ 1741 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25, 1742 /* 1743 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1744 * to specify the chain number (unsigned 32 bit value) to inquire 1745 * the corresponding antenna RSSI value */ 1746 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26, 1747 /* 1748 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1749 * to report the specific antenna RSSI value (unsigned 32 bit value) */ 1750 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27, 1751 /* Frequency in MHz, various uses. Unsigned 32 bit value */ 1752 QCA_WLAN_VENDOR_ATTR_FREQ = 28, 1753 /* 1754 * TSF timer value, unsigned 64 bit value. 1755 * May be returned by various commands. 1756 */ 1757 QCA_WLAN_VENDOR_ATTR_TSF = 29, 1758 /* 1759 * DMG RF sector index, unsigned 16 bit number. Valid values are 1760 * 0..127 for sector indices or 65535 as special value used to 1761 * unlock sector selection in 1762 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR. 1763 */ 1764 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30, 1765 /* 1766 * DMG RF sector type, unsigned 8 bit value. One of the values 1767 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type. 1768 */ 1769 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31, 1770 /* 1771 * Bitmask of DMG RF modules for which information is requested. Each 1772 * bit corresponds to an RF module with the same index as the bit 1773 * number. Unsigned 32 bit number but only low 8 bits can be set since 1774 * all DMG chips currently have up to 8 RF modules. 1775 */ 1776 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32, 1777 /* 1778 * Array of nested attributes where each entry is DMG RF sector 1779 * configuration for a single RF module. 1780 * Attributes for each entry are taken from enum 1781 * qca_wlan_vendor_attr_dmg_rf_sector_cfg. 1782 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG 1783 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG. 1784 */ 1785 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33, 1786 /* 1787 * Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command 1788 * to report frame aggregation statistics to userspace. 1789 */ 1790 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34, 1791 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35, 1792 /* 1793 * Unsigned 8-bit value representing MBO transition reason code as 1794 * provided by the AP used by subcommand 1795 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is 1796 * specified by the userspace in the request to the driver. 1797 */ 1798 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36, 1799 /* 1800 * Array of nested attributes, BSSID and status code, used by subcommand 1801 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each 1802 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info. 1803 * The userspace space specifies the list/array of candidate BSSIDs in 1804 * the order of preference in the request. The driver specifies the 1805 * status code, for each BSSID in the list, in the response. The 1806 * acceptable candidates are listed in the order preferred by the 1807 * driver. 1808 */ 1809 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37, 1810 /* 1811 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 1812 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode. 1813 */ 1814 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38, 1815 /* 1816 * Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 1817 * to define the number of antennas to use for BRP. 1818 * different purpose in each ANT_LIMIT_MODE: 1819 * DISABLE - ignored 1820 * EFFECTIVE - upper limit to number of antennas to be used 1821 * FORCE - exact number of antennas to be used 1822 * unsigned 8 bit value 1823 */ 1824 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39, 1825 /* 1826 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1827 * to report the corresponding antenna index to the chain RSSI value 1828 */ 1829 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40, 1830 /* 1831 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1832 * to report the specific antenna EVM value (unsigned 32 bit value). 1833 * With a determinate group of antennas, the driver specifies the 1834 * EVM value for each antenna ID, and application extract them 1835 * in user space. 1836 */ 1837 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41, 1838 /* 1839 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report 1840 * wlan firmware current state. FW state is an unsigned 8 bit value, 1841 * one of the values in enum qca_wlan_vendor_attr_fw_state. 1842 */ 1843 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42, 1844 1845 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the 1846 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only the 1847 * integer values of enum qca_set_band till QCA_SETBAND_2G are valid. 1848 * This attribute shall consider the bitmask combinations to define 1849 * the respective Band combinations and always takes precedence over 1850 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE. 1851 */ 1852 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43, 1853 1854 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES. 1855 * This field describes the maximum number of links supported by the 1856 * chip for MLO association. 1857 * This is an optional attribute. 1858 */ 1859 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_ASSOCIATION_COUNT = 44, 1860 1861 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES. 1862 * This field describes the maximum number of Simultaneous Transmit 1863 * and Receive (STR) links used in Multi-Link Operation. 1864 * The maximum number of STR links used can be different 1865 * from the maximum number of radios supported by the chip. 1866 * This is a static configuration of the chip. 1867 * This is an optional attribute. 1868 */ 1869 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_STR_LINK_COUNT = 45, 1870 1871 /* keep last */ 1872 QCA_WLAN_VENDOR_ATTR_AFTER_LAST, 1873 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1 1874 }; 1875 1876 enum qca_wlan_vendor_attr_extscan_config_params { 1877 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0, 1878 1879 /* Unsigned 32-bit value */ 1880 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1, 1881 1882 /* 1883 * Attributes for data used by 1884 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_VALID_CHANNELS sub command. 1885 */ 1886 1887 /* Unsigned 32-bit value */ 1888 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND 1889 = 2, 1890 /* Unsigned 32-bit value */ 1891 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS 1892 = 3, 1893 1894 /* 1895 * Attributes for input params used by 1896 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_START sub command. 1897 */ 1898 1899 /* Unsigned 32-bit value; channel frequency */ 1900 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CHANNEL = 4, 1901 /* Unsigned 32-bit value; dwell time in ms. */ 1902 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_DWELL_TIME = 5, 1903 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */ 1904 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_PASSIVE = 6, 1905 /* Unsigned 8-bit value; channel class */ 1906 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_CLASS = 7, 1907 1908 /* Unsigned 8-bit value; bucket index, 0 based */ 1909 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_INDEX = 8, 1910 /* Unsigned 8-bit value; band. */ 1911 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BAND = 9, 1912 /* Unsigned 32-bit value; desired period, in ms. */ 1913 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_PERIOD = 10, 1914 /* Unsigned 8-bit value; report events semantics. */ 1915 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_REPORT_EVENTS = 11, 1916 /* 1917 * Unsigned 32-bit value. Followed by a nested array of 1918 * EXTSCAN_CHANNEL_SPEC_* attributes. 1919 */ 1920 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12, 1921 1922 /* 1923 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC_* attributes. 1924 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 1925 */ 1926 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CHANNEL_SPEC = 13, 1927 1928 /* Unsigned 32-bit value; base timer period in ms. */ 1929 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14, 1930 /* 1931 * Unsigned 32-bit value; number of APs to store in each scan in the 1932 * BSSID/RSSI history buffer (keep the highest RSSI APs). 1933 */ 1934 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15, 1935 /* 1936 * Unsigned 8-bit value; in %, when scan buffer is this much full, wake 1937 * up AP. 1938 */ 1939 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT 1940 = 16, 1941 1942 /* 1943 * Unsigned 8-bit value; number of scan bucket specs; followed by a 1944 * nested array of_EXTSCAN_BUCKET_SPEC_* attributes and values. The size 1945 * of the array is determined by NUM_BUCKETS. 1946 */ 1947 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17, 1948 1949 /* 1950 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_* attributes. 1951 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS 1952 */ 1953 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC = 18, 1954 1955 /* Unsigned 8-bit value */ 1956 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH 1957 = 19, 1958 /* Unsigned 32-bit value; maximum number of results to be returned. */ 1959 QCA_WLAN_VENDOR_ATTR_EXTSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX 1960 = 20, 1961 1962 /* An array of 6 x unsigned 8-bit value */ 1963 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_BSSID = 21, 1964 /* Signed 32-bit value */ 1965 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22, 1966 /* Signed 32-bit value */ 1967 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23, 1968 /* Unsigned 32-bit value */ 1969 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24, 1970 1971 /* 1972 * Number of hotlist APs as unsigned 32-bit value, followed by a nested 1973 * array of AP_THRESHOLD_PARAM attributes and values. The size of the 1974 * array is determined by NUM_AP. 1975 */ 1976 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25, 1977 1978 /* 1979 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM_* attributes. 1980 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 1981 */ 1982 QCA_WLAN_VENDOR_ATTR_EXTSCAN_AP_THRESHOLD_PARAM = 26, 1983 1984 /* Unsigned 32-bit value; number of samples for averaging RSSI. */ 1985 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE 1986 = 27, 1987 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 1988 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE 1989 = 28, 1990 /* Unsigned 32-bit value; number of APs breaching threshold. */ 1991 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29, 1992 /* 1993 * Unsigned 32-bit value; number of APs. Followed by an array of 1994 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP. 1995 */ 1996 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30, 1997 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 1998 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE 1999 = 31, 2000 /* 2001 * Unsigned 32-bit value. If max_period is non zero or different than 2002 * period, then this bucket is an exponential backoff bucket. 2003 */ 2004 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_MAX_PERIOD = 32, 2005 /* Unsigned 32-bit value. */ 2006 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_BASE = 33, 2007 /* 2008 * Unsigned 32-bit value. For exponential back off bucket, number of 2009 * scans to perform for a given period. 2010 */ 2011 QCA_WLAN_VENDOR_ATTR_EXTSCAN_BUCKET_SPEC_STEP_COUNT = 34, 2012 /* 2013 * Unsigned 8-bit value; in number of scans, wake up AP after these 2014 * many scans. 2015 */ 2016 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS 2017 = 35, 2018 2019 /* 2020 * Attributes for data used by 2021 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SET_SSID_HOTLIST sub command. 2022 */ 2023 2024 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */ 2025 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE 2026 = 36, 2027 /* 2028 * Number of hotlist SSIDs as unsigned 32-bit value, followed by a 2029 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The 2030 * size of the array is determined by NUM_SSID. 2031 */ 2032 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37, 2033 /* 2034 * Array of QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_* 2035 * attributes. 2036 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_HOTLIST_PARAMS_NUM_SSID 2037 */ 2038 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM = 38, 2039 2040 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */ 2041 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_SSID = 39, 2042 /* Unsigned 8-bit value */ 2043 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_BAND = 40, 2044 /* Signed 32-bit value */ 2045 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41, 2046 /* Signed 32-bit value */ 2047 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42, 2048 /* Unsigned 32-bit value; a bitmask with additional extscan config flag. 2049 */ 2050 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CONFIGURATION_FLAGS = 43, 2051 2052 /* keep last */ 2053 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST, 2054 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_MAX = 2055 QCA_WLAN_VENDOR_ATTR_EXTSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1, 2056 }; 2057 2058 enum qca_wlan_vendor_attr_extscan_results { 2059 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_INVALID = 0, 2060 2061 /* 2062 * Unsigned 32-bit value; must match the request Id supplied by 2063 * Wi-Fi HAL in the corresponding subcmd NL msg. 2064 */ 2065 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_REQUEST_ID = 1, 2066 2067 /* 2068 * Unsigned 32-bit value; used to indicate the status response from 2069 * firmware/driver for the vendor sub-command. 2070 */ 2071 QCA_WLAN_VENDOR_ATTR_EXTSCAN_STATUS = 2, 2072 2073 /* 2074 * EXTSCAN Valid Channels attributes */ 2075 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */ 2076 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_CHANNELS = 3, 2077 /* 2078 * An array of NUM_CHANNELS x unsigned 32-bit value integers 2079 * representing channel numbers. 2080 */ 2081 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CHANNELS = 4, 2082 2083 /* EXTSCAN Capabilities attributes */ 2084 2085 /* Unsigned 32-bit value */ 2086 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5, 2087 /* Unsigned 32-bit value */ 2088 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6, 2089 /* Unsigned 32-bit value */ 2090 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN 2091 = 7, 2092 /* Unsigned 32-bit value */ 2093 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE 2094 = 8, 2095 /* Signed 32-bit value */ 2096 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD 2097 = 9, 2098 /* Unsigned 32-bit value */ 2099 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10, 2100 /* Unsigned 32-bit value */ 2101 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS 2102 = 11, 2103 /* Unsigned 32-bit value */ 2104 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES 2105 = 12, 2106 2107 /* 2108 * EXTSCAN Attributes used with 2109 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_RESULTS_AVAILABLE sub-command. 2110 */ 2111 2112 /* Unsigned 32-bit value */ 2113 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13, 2114 2115 /* 2116 * EXTSCAN attributes used with 2117 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_FULL_SCAN_RESULT sub-command. 2118 */ 2119 2120 /* 2121 * An array of NUM_RESULTS_AVAILABLE x 2122 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_* 2123 */ 2124 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST = 14, 2125 2126 /* Unsigned 64-bit value; age of sample at the time of retrieval */ 2127 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15, 2128 /* 33 x unsigned 8-bit value; NULL terminated SSID */ 2129 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_SSID = 16, 2130 /* An array of 6 x unsigned 8-bit value */ 2131 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BSSID = 17, 2132 /* Unsigned 32-bit value; channel frequency in MHz */ 2133 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18, 2134 /* Signed 32-bit value */ 2135 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RSSI = 19, 2136 /* Unsigned 32-bit value */ 2137 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT = 20, 2138 /* Unsigned 32-bit value */ 2139 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21, 2140 /* Unsigned 16-bit value */ 2141 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22, 2142 /* Unsigned 16-bit value */ 2143 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23, 2144 /* Unsigned 32-bit value; size of the IE DATA blob */ 2145 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24, 2146 /* 2147 * An array of IE_LENGTH x unsigned 8-bit value; blob of all the 2148 * information elements found in the beacon; this data should be a 2149 * packed list of wifi_information_element objects, one after the 2150 * other. 2151 */ 2152 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25, 2153 2154 /* 2155 * Unsigned 8-bit value; set by driver to indicate more scan results are 2156 * available. 2157 */ 2158 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26, 2159 2160 /* 2161 * EXTSCAN attributes for 2162 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SCAN_EVENT sub-command. 2163 */ 2164 /* Unsigned 8-bit value */ 2165 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_TYPE = 27, 2166 /* Unsigned 32-bit value */ 2167 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SCAN_EVENT_STATUS = 28, 2168 2169 /* 2170 * EXTSCAN attributes for 2171 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_HOTLIST_AP_FOUND sub-command. 2172 */ 2173 /* 2174 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE 2175 * to indicate number of results. 2176 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the 2177 * list of results. 2178 */ 2179 2180 /* 2181 * EXTSCAN attributes for 2182 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_SIGNIFICANT_CHANGE sub-command. 2183 */ 2184 /* An array of 6 x unsigned 8-bit value */ 2185 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29, 2186 /* Unsigned 32-bit value */ 2187 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL 2188 = 30, 2189 /* Unsigned 32-bit value. */ 2190 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI 2191 = 31, 2192 /* 2193 * A nested array of signed 32-bit RSSI values. Size of the array is 2194 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI. 2195 */ 2196 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST 2197 = 32, 2198 2199 /* 2200 * EXTSCAN attributes used with 2201 * QCA_NL80211_VENDOR_SUBCMD_EXTSCAN_GET_CACHED_RESULTS sub-command. 2202 */ 2203 /* 2204 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE 2205 * to indicate number of extscan cached results returned. 2206 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST to indicate 2207 * the list of extscan cached results. 2208 */ 2209 2210 /* 2211 * An array of NUM_RESULTS_AVAILABLE x 2212 * QCA_NL80211_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_* 2213 */ 2214 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_LIST = 33, 2215 /* Unsigned 32-bit value; a unique identifier for the scan unit. */ 2216 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_SCAN_ID = 34, 2217 /* 2218 * Unsigned 32-bit value; a bitmask w/additional information about scan. 2219 */ 2220 QCA_WLAN_VENDOR_ATTR_EXTSCAN_CACHED_RESULTS_FLAGS = 35, 2221 /* 2222 * Use attr QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE 2223 * to indicate number of wifi scan results/bssids retrieved by the scan. 2224 * Also, use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the 2225 * list of wifi scan results returned for each cached result block. 2226 */ 2227 2228 /* 2229 * EXTSCAN attributes for 2230 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command. 2231 */ 2232 /* 2233 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE for 2234 * number of results. 2235 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested 2236 * list of wifi scan results returned for each 2237 * wifi_passpoint_match_result block. 2238 * Array size: QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_NUM_RESULTS_AVAILABLE. 2239 */ 2240 2241 /* 2242 * EXTSCAN attributes for 2243 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command. 2244 */ 2245 /* Unsigned 32-bit value */ 2246 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES 2247 = 36, 2248 /* 2249 * A nested array of 2250 * QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_* 2251 * attributes. Array size = 2252 * *_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES. 2253 */ 2254 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37, 2255 2256 /* Unsigned 32-bit value; network block id for the matched network */ 2257 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38, 2258 /* 2259 * Use QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_LIST to indicate the nested 2260 * list of wifi scan results returned for each 2261 * wifi_passpoint_match_result block. 2262 */ 2263 /* Unsigned 32-bit value */ 2264 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39, 2265 /* 2266 * An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values; 2267 * ANQP data in the information_element format. 2268 */ 2269 QCA_WLAN_VENDOR_ATTR_EXTSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40, 2270 2271 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2272 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41, 2273 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2274 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42, 2275 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2276 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID 2277 = 43, 2278 /* Unsigned 32-bit value; a EXTSCAN Capabilities attribute. */ 2279 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID 2280 = 44, 2281 2282 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_BUCKETS_SCANNED = 45, 2283 QCA_WLAN_VENDOR_ATTR_EXTSCAN_MAX_NUM_BLACKLISTED_BSSID = 46, 2284 2285 /* keep last */ 2286 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST, 2287 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_MAX = 2288 QCA_WLAN_VENDOR_ATTR_EXTSCAN_RESULTS_AFTER_LAST - 1, 2289 }; 2290 2291 /** 2292 * enum qca_vendor_interop_issues_ap_type - interop issues type 2293 * This enum defines the valid set of values of interop issues type. These 2294 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE. 2295 * 2296 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: the ap has power save interop issue 2297 * when the STA's Qpower feature is enabled. 2298 */ 2299 enum qca_vendor_interop_issues_ap_type { 2300 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0, 2301 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1, 2302 }; 2303 2304 /** 2305 * enum qca_vendor_attr_interop_issues_ap - attribute for ap with interop issues 2306 * values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP. 2307 * 2308 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: invalid value 2309 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: interop issues type 2310 * 32-bit unsigned value, The type defined in enum 2311 * qca_vendor_interop_issues_ap_type are used. 2312 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: aps' bssid container 2313 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes, 2314 * it is present and mandatory for the command but is not used for 2315 * the event since only a single BSSID is reported in an event. 2316 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: ap's bssid 2317 * 6-byte MAC address. It is used within the nested 2318 * QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST attribute in command case 2319 * and without such encapsulation in the event case. 2320 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value 2321 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value 2322 */ 2323 enum qca_vendor_attr_interop_issues_ap { 2324 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID, 2325 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE, 2326 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST, 2327 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID, 2328 /* keep last */ 2329 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST, 2330 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX = 2331 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1 2332 }; 2333 2334 #ifdef WLAN_FEATURE_LINK_LAYER_STATS 2335 2336 enum qca_wlan_vendor_attr_ll_stats_set { 2337 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0, 2338 /* Unsigned 32-bit value */ 2339 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1, 2340 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2, 2341 /* keep last */ 2342 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST, 2343 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX = 2344 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1, 2345 }; 2346 2347 /** 2348 * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS 2349 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK. 2350 * 2351 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics. 2352 * 2353 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within 2354 * radio statistics. 2355 * 2356 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel 2357 * statistics within radio statistics. 2358 * 2359 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within 2360 * radio statistics. 2361 * 2362 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics. 2363 * 2364 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics 2365 * within interface statistics. 2366 * 2367 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within 2368 * interface statistics. 2369 * 2370 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention 2371 * (min, max, avg) statistics within AC statistics. 2372 * 2373 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics 2374 * on this interface. 2375 * 2376 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer 2377 * statistics depending on the peer_mac. 2378 */ 2379 enum qca_wlan_ll_stats_clr_req_bitmap { 2380 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0), 2381 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1), 2382 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2), 2383 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3), 2384 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4), 2385 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5), 2386 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6), 2387 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7), 2388 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8), 2389 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9), 2390 }; 2391 2392 enum qca_wlan_vendor_attr_ll_stats_clr { 2393 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0, 2394 /* Unsigned 32bit bitmap for clearing statistics, specified 2395 * in the enum qca_wlan_ll_stats_clr_req_bitmap. 2396 */ 2397 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1, 2398 /* Unsigned 8 bit value: Request to stop statistics collection */ 2399 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2, 2400 2401 /* Unsigned 32 bit bitmap: Response from the driver 2402 * for the cleared statistics 2403 */ 2404 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3, 2405 /* Unsigned 8 bit value: Response from driver/firmware 2406 * for the stop request 2407 */ 2408 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4, 2409 /* keep last */ 2410 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST, 2411 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX = 2412 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1, 2413 }; 2414 2415 /** 2416 * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS 2417 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK. 2418 * 2419 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics. 2420 * 2421 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics. 2422 * 2423 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics. 2424 * 2425 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics. 2426 */ 2427 enum qca_wlan_ll_stats_get_req_bitmap { 2428 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0), 2429 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1), 2430 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2), 2431 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3), 2432 }; 2433 2434 enum qca_wlan_vendor_attr_ll_stats_get { 2435 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0, 2436 /* Unsigned 32 bit value provided by the caller issuing the GET stats 2437 * command. When reporting the stats results, the driver uses the same 2438 * value to indicate which GET request the results correspond to. 2439 */ 2440 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1, 2441 /* Unsigned 32 bit value - bit mask to identify what statistics are 2442 * requested for retrieval specified in the enum 2443 * qca_wlan_ll_stats_get_req_bitmap 2444 */ 2445 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2, 2446 /* keep last */ 2447 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST, 2448 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX = 2449 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1, 2450 }; 2451 2452 enum qca_wlan_vendor_attr_ll_stats_results { 2453 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0, 2454 2455 /* 2456 * For Multi Link Operation (MLO) connection, per-link statistics will 2457 * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and 2458 * cumulative statistics will be sent outside of 2459 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward 2460 * compatibility with legacy user space. Attributes which don't have 2461 * explicit documentation for MLO will be sent only outside of 2462 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values 2463 * don't depend on whether the connection is MLO capable or not, e.g., 2464 * radio and channel specific attributes. 2465 */ 2466 2467 /* Unsigned 32bit value. Used by the driver; must match the request id 2468 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command. 2469 */ 2470 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1, 2471 2472 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2473 * the link with the best RSSI outside 2474 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2475 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2476 */ 2477 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2, 2478 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2479 * the link with the best RSSI outside 2480 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2481 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2482 */ 2483 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3, 2484 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2485 * the link with the best RSSI outside 2486 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2487 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2488 */ 2489 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4, 2490 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2491 * the link with the best RSSI outside 2492 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2493 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2494 */ 2495 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5, 2496 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2497 * the link with the best RSSI outside 2498 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2499 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2500 */ 2501 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6, 2502 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2503 * the link with the best RSSI outside 2504 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2505 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2506 */ 2507 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7, 2508 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2509 * the link with the best RSSI outside 2510 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2511 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2512 */ 2513 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8, 2514 2515 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are 2516 * nested within the interface stats. 2517 */ 2518 2519 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc. 2520 * Type = enum wifi_interface_mode. 2521 */ 2522 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9, 2523 /* Interface MAC address. An array of 6 Unsigned int8 */ 2524 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10, 2525 /* Type = enum wifi_connection_state, e.g., DISCONNECTED, 2526 * AUTHENTICATING, etc. valid for STA, CLI only. 2527 */ 2528 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11, 2529 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE 2530 */ 2531 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12, 2532 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */ 2533 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13, 2534 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */ 2535 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14, 2536 /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD 2537 * address of the AP. An array of 6 unsigned 8 bit values 2538 */ 2539 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15, 2540 /* Country string advertised by AP. An array of 3 unsigned 8 bit 2541 * values. 2542 */ 2543 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16, 2544 /* Country string for this association. An array of 3 unsigned 8 bit 2545 * values. 2546 */ 2547 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17, 2548 2549 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could 2550 * be nested within the interface stats. 2551 * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* 2552 * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* 2553 * indicate the aggregate of all links outside 2554 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2555 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes 2556 * indicate value of the MLO link with the best RSSI outside 2557 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2558 * These attributes indicate the link specific value inside 2559 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2560 */ 2561 2562 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */ 2563 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18, 2564 /* Unsigned int 32 value corresponding to respective AC */ 2565 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19, 2566 /* Unsigned int 32 value corresponding to respective AC */ 2567 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20, 2568 /* Unsigned int 32 value corresponding to respective AC */ 2569 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21, 2570 /* Unsigned int 32 value corresponding to respective AC */ 2571 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22, 2572 /* Unsigned int 32 value corresponding to respective AC */ 2573 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23, 2574 /* Unsigned int 32 value corresponding to respective AC */ 2575 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24, 2576 /* Unsigned int 32 value corresponding to respective AC */ 2577 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25, 2578 /* Unsigned int 32 value corresponding to respective AC */ 2579 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26, 2580 /* Unsigned int 32 value corresponding to respective AC */ 2581 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27, 2582 /* Unsigned int 32 values corresponding to respective AC */ 2583 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28, 2584 /* Unsigned int 32 values corresponding to respective AC */ 2585 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29, 2586 /* Unsigned int 32 values corresponding to respective AC */ 2587 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30, 2588 /* Unsigned int 32 values corresponding to respective AC */ 2589 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31, 2590 /* Unsigned int 32 values corresponding to respective AC */ 2591 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32, 2592 /* Unsigned 32 bit value. Number of peers */ 2593 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33, 2594 2595 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are 2596 * nested within the interface stats. 2597 */ 2598 2599 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */ 2600 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34, 2601 /* MAC addr corresponding to respective peer. An array of 6 unsigned 2602 * 8 bit values. 2603 */ 2604 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35, 2605 /* Unsigned int 32 bit value representing capabilities corresponding 2606 * to respective peer. 2607 */ 2608 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36, 2609 /* Unsigned 32 bit value. Number of rates */ 2610 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37, 2611 2612 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 2613 * are nested within the rate stat. 2614 */ 2615 2616 /* Wi-Fi Rate - separate attributes defined for individual fields */ 2617 2618 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */ 2619 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38, 2620 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */ 2621 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39, 2622 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */ 2623 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40, 2624 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std 2625 * in the units of 0.5 Mbps HT/VHT it would be MCS index 2626 */ 2627 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41, 2628 2629 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */ 2630 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42, 2631 2632 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be 2633 * nested within the peer info stats. 2634 */ 2635 2636 /* Unsigned int 32 bit value. Number of successfully transmitted data 2637 * packets, i.e., with ACK received corresponding to the respective 2638 * rate. 2639 */ 2640 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43, 2641 /* Unsigned int 32 bit value. Number of received data packets 2642 * corresponding to the respective rate. 2643 */ 2644 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44, 2645 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK 2646 * received corresponding to the respective rate. 2647 */ 2648 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45, 2649 /* Unsigned int 32 bit value. Total number of data packet retries for 2650 * the respective rate. 2651 */ 2652 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46, 2653 /* Unsigned int 32 bit value. Total number of short data packet retries 2654 * for the respective rate. 2655 */ 2656 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47, 2657 /* Unsigned int 32 bit value. Total number of long data packet retries 2658 * for the respective rate. 2659 */ 2660 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48, 2661 2662 /* Unsigned 32 bit value. This is used to indicate radio ID of the radio 2663 * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is 2664 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used 2665 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID 2666 * of the MLO link. 2667 */ 2668 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49, 2669 /* Unsigned 32 bit value. Total number of msecs the radio is awake 2670 * accruing over time. 2671 */ 2672 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50, 2673 /* Unsigned 32 bit value. Total number of msecs the radio is 2674 * transmitting accruing over time. 2675 */ 2676 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51, 2677 /* Unsigned 32 bit value. Total number of msecs the radio is in active 2678 * receive accruing over time. 2679 */ 2680 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52, 2681 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2682 * to all scan accruing over time. 2683 */ 2684 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53, 2685 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2686 * to NAN accruing over time. 2687 */ 2688 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54, 2689 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2690 * to GSCAN accruing over time. 2691 */ 2692 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55, 2693 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2694 * to roam scan accruing over time. 2695 */ 2696 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56, 2697 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2698 * to PNO scan accruing over time. 2699 */ 2700 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57, 2701 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 2702 * to Hotspot 2.0 scans and GAS exchange accruing over time. 2703 */ 2704 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58, 2705 /* Unsigned 32 bit value. Number of channels. */ 2706 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59, 2707 2708 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could 2709 * be nested within the channel stats. 2710 */ 2711 2712 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */ 2713 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60, 2714 /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to 2715 * indicate the primary frequency of the channel when 2716 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is 2717 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside 2718 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency 2719 * on which the MLO link is operating. 2720 */ 2721 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61, 2722 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */ 2723 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62, 2724 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */ 2725 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63, 2726 2727 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be 2728 * nested within the radio stats. 2729 */ 2730 2731 /* Unsigned int 32 bit value representing total number of msecs the 2732 * radio is awake on that channel accruing over time, corresponding to 2733 * the respective channel. 2734 */ 2735 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64, 2736 /* Unsigned int 32 bit value representing total number of msecs the CCA 2737 * register is busy accruing over time corresponding to the respective 2738 * channel. 2739 */ 2740 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65, 2741 2742 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66, 2743 2744 /* Signifies the nested list of channel attributes 2745 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* 2746 */ 2747 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67, 2748 2749 /* Signifies the nested list of peer info attributes 2750 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection, 2751 * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to 2752 * indicate on which link the peer is connected. 2753 */ 2754 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68, 2755 2756 /* Signifies the nested list of rate info attributes 2757 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 2758 */ 2759 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69, 2760 2761 /* Signifies the nested list of wmm info attributes 2762 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* 2763 */ 2764 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70, 2765 2766 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates 2767 * that more stats, e.g., peers or radio, are to follow in the next 2768 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event. 2769 * Otherwise, it is set to 0. 2770 */ 2771 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71, 2772 2773 /* Unsigned 64 bit value. For an MLO connection, indicates the value of 2774 * the link with the best RSSI outside 2775 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2776 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2777 */ 2778 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72, 2779 2780 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2781 * the link with the best RSSI outside 2782 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2783 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2784 */ 2785 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73, 2786 2787 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2788 * the link with the best RSSI outside 2789 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2790 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2791 */ 2792 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74, 2793 2794 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2795 * the link with the best RSSI outside 2796 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2797 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2798 */ 2799 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75, 2800 2801 /* Unsigned 32 bit value */ 2802 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76, 2803 2804 /* Unsigned 32 bit value */ 2805 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77, 2806 2807 /* Number of msecs the radio spent in transmitting for each power level 2808 */ 2809 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78, 2810 2811 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2812 * the link with the best RSSI outside 2813 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2814 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2815 */ 2816 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79, 2817 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2818 * the link with the best RSSI outside 2819 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2820 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2821 */ 2822 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80, 2823 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2824 * the link with the best RSSI outside 2825 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2826 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2827 */ 2828 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81, 2829 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 2830 * the link with the best RSSI outside 2831 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2832 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2833 */ 2834 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82, 2835 2836 /* Unsigned int 32 value. 2837 * Pending MSDUs corresponding to respective AC. 2838 */ 2839 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83, 2840 2841 /* u32 value representing total time in milliseconds for which the radio 2842 * is transmitting on this channel. This attribute will be nested 2843 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO. 2844 */ 2845 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84, 2846 /* u32 value representing total time in milliseconds for which the radio 2847 * is receiving all 802.11 frames intended for this device on this 2848 * channel. This attribute will be nested within 2849 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO. 2850 */ 2851 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85, 2852 /* u8 value representing the channel load percentage. Possible values 2853 * are 0-100. 2854 */ 2855 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86, 2856 /* u8 value representing the time slicing duty cycle percentage. 2857 * Possible values are 0-100. For an MLO connection, indicates the value 2858 * of the link with the best RSSI outside 2859 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2860 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2861 */ 2862 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87, 2863 /* Unsigned 32 bit value. The number of Beacon frames which are received 2864 * from the associated AP and indicate buffered unicast frame(s) for us 2865 * in the TIM element. For an MLO connection, indicates the value of the 2866 * link with the best RSSI outside 2867 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2868 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2869 */ 2870 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88, 2871 /* Unsigned 32 bit value. The total number of Beacon frames received 2872 * from the associated AP that have wrongly indicated buffered unicast 2873 * traffic in the TIM element for us. 2874 * Below scenarios will be considered as wrong TIM element beacon: 2875 * 1) The related TIM element is set in the beacon for STA but STA 2876 * doesn’t receive any unicast data after this beacon. 2877 * 2) The related TIM element is still set in the beacon for STA 2878 * after STA has indicated power save exit by QoS Null Data frame. 2879 * For an MLO connection, indicates the value of the link with the best 2880 * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link 2881 * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2882 */ 2883 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89, 2884 2885 /* Signed 32 bit value. It represents the noise floor calibration value. 2886 * Possible values are -120~-50 dBm. For an MLO connection, indicates 2887 * the value of the link with the best RSSI outside 2888 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 2889 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 2890 */ 2891 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90, 2892 2893 /* Attribute used for padding for 64-bit alignment */ 2894 QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91, 2895 2896 /* Unsigned u8 value, link ID of an MLO link. Used inside nested 2897 * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the 2898 * link ID of the MLO link for which the statistics are embedded in the 2899 * nested attribute. Used inside nested attribute 2900 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected 2901 * link ID of the peer. 2902 */ 2903 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92, 2904 2905 /* A nested array of attributes for each MLO link, each containing 2906 * per-link statistics of a multi link connection. The attributes used 2907 * inside this nested attribute are defined in enum 2908 * qca_wlan_vendor_attr_ll_stats_results. 2909 * 2910 * For non-MLO connection, this attribute is not present and the 2911 * statistics will be sent outside this attribute (without nesting). 2912 * 2913 * For MLO connection, this attribute is present and also cumulative 2914 * statistics of all the links will be sent outside of this attribute 2915 * to be compatible with legacy user space. 2916 */ 2917 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93, 2918 2919 /* keep last */ 2920 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST, 2921 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX = 2922 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1, 2923 }; 2924 2925 enum qca_wlan_vendor_attr_ll_stats_type { 2926 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0, 2927 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1, 2928 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2, 2929 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3, 2930 2931 /* keep last */ 2932 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST, 2933 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX = 2934 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1, 2935 }; 2936 2937 #endif /* WLAN_FEATURE_LINK_LAYER_STATS */ 2938 2939 /** 2940 * enum qca_wlan_vendor_attr_get_supported_features - get supported feature 2941 * 2942 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID: Invalid initial value 2943 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET: Unsigned 32bit value 2944 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST: After last 2945 * @QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX: Max value 2946 */ 2947 enum qca_wlan_vendor_attr_get_supported_features { 2948 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_INVALID = 0, 2949 QCA_WLAN_VENDOR_ATTR_FEATURE_SET = 1, 2950 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST, 2951 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_MAX = 2952 QCA_WLAN_VENDOR_ATTR_FEATURE_SET_AFTER_LAST - 1, 2953 }; 2954 2955 /** 2956 * enum qca_wlan_vendor_attr_set_scanning_mac_oui - set scanning mac oui 2957 * 2958 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID: Invalid initial value 2959 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI: An array of 3 x Unsigned 8-bit 2960 * value 2961 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST: After last 2962 * @QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX: Max value 2963 */ 2964 enum qca_wlan_vendor_attr_set_scanning_mac_oui { 2965 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_INVALID = 0, 2966 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI = 1, 2967 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST, 2968 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_MAX = 2969 QCA_WLAN_VENDOR_ATTR_SET_SCANNING_MAC_OUI_AFTER_LAST - 1, 2970 }; 2971 2972 /** 2973 * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the 2974 * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take. 2975 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority 2976 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority 2977 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority 2978 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority 2979 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority 2980 */ 2981 enum qca_wlan_vendor_scan_priority { 2982 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0, 2983 QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1, 2984 QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2, 2985 QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3, 2986 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4, 2987 }; 2988 2989 /** 2990 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes 2991 * 2992 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan 2993 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes 2994 * with frequencies to be scanned (in MHz) 2995 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned 2996 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported 2997 * rates to be included 2998 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests 2999 * at non CCK rate in 2GHz band 3000 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags 3001 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the 3002 * driver for the specific scan request 3003 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan 3004 * request decoded as in enum scan_status 3005 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation 3006 * scan flag is set 3007 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with 3008 * randomisation 3009 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the 3010 * specific BSSID to scan for. 3011 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in 3012 * microseconds. This is a common value which applies across all 3013 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES. 3014 * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to 3015 * other scan requests. It is a u32 attribute and takes values from enum 3016 * qca_wlan_vendor_scan_priority. This is an optional attribute. 3017 * If this attribute is not configured, the driver shall use 3018 * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan. 3019 */ 3020 enum qca_wlan_vendor_attr_scan { 3021 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0, 3022 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1, 3023 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2, 3024 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3, 3025 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4, 3026 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5, 3027 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6, 3028 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7, 3029 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8, 3030 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9, 3031 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10, 3032 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11, 3033 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12, 3034 QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13, 3035 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST, 3036 QCA_WLAN_VENDOR_ATTR_SCAN_MAX = 3037 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1 3038 }; 3039 3040 /** 3041 * enum scan_status - Specifies the valid values the vendor scan attribute 3042 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take 3043 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with 3044 * new scan results 3045 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between 3046 */ 3047 enum scan_status { 3048 VENDOR_SCAN_STATUS_NEW_RESULTS, 3049 VENDOR_SCAN_STATUS_ABORTED, 3050 VENDOR_SCAN_STATUS_MAX, 3051 }; 3052 3053 /** 3054 * enum qca_wlan_vendor_attr_get_concurrency_matrix - get concurrency matrix 3055 * 3056 * NL attributes for data used by 3057 * QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX sub command. 3058 * 3059 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID: Invalid initial value 3060 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX: 3061 * Unsigned 32-bit value 3062 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE: 3063 * Unsigned 32-bit value 3064 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET: Set results. An 3065 * array of SET_SIZE x Unsigned 32bit values representing concurrency 3066 * combinations 3067 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST: After last 3068 * @QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX: Max value 3069 */ 3070 enum qca_wlan_vendor_attr_get_concurrency_matrix { 3071 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_INVALID = 0, 3072 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_CONFIG_PARAM_SET_SIZE_MAX 3073 = 1, 3074 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET_SIZE = 2, 3075 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_RESULTS_SET = 3, 3076 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST, 3077 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_MAX = 3078 QCA_WLAN_VENDOR_ATTR_GET_CONCURRENCY_MATRIX_AFTER_LAST - 1, 3079 }; 3080 3081 /** 3082 * enum qca_wlan_vendor_attr_set_no_dfs_flag - vendor attribute set no dfs flag 3083 * 3084 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID: Invalid initial value 3085 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG: Unsigned 32-bit value 3086 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST: After last 3087 * @QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX: Max value 3088 */ 3089 enum qca_wlan_vendor_attr_set_no_dfs_flag { 3090 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_INVALID = 0, 3091 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG = 1, 3092 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST, 3093 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_MAX = 3094 QCA_WLAN_VENDOR_ATTR_SET_NO_DFS_FLAG_AFTER_LAST - 1, 3095 }; 3096 3097 /** 3098 * enum qca_vendor_attr_wisa_cmd 3099 * @QCA_WLAN_VENDOR_ATTR_WISA_INVALID: Invalid attr 3100 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value attr (u32) 3101 * @QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST: After last 3102 * @QCA_WLAN_VENDOR_ATTR_WISA_MAX: Max Value 3103 * WISA setup vendor commands 3104 */ 3105 enum qca_vendor_attr_wisa_cmd { 3106 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0, 3107 QCA_WLAN_VENDOR_ATTR_WISA_MODE, 3108 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST, 3109 QCA_WLAN_VENDOR_ATTR_WISA_MAX = 3110 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1 3111 }; 3112 3113 enum qca_roaming_policy { 3114 QCA_ROAMING_NOT_ALLOWED, 3115 QCA_ROAMING_ALLOWED_WITHIN_ESS, 3116 }; 3117 3118 /** 3119 * enum qca_roam_reason - Represents the reason codes for roaming. Used by 3120 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON. 3121 * 3122 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below 3123 * reasons. 3124 * 3125 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates(PER) breached 3126 * the configured threshold. 3127 * 3128 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured 3129 * beacon misses from the then connected AP. 3130 * 3131 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported 3132 * by the connected AP. 3133 * 3134 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSSID with a 3135 * better RSSI than the connected BSSID. Here the RSSI of the current BSSID is 3136 * not poor. 3137 * 3138 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel 3139 * or environment being very noisy / congested. 3140 * 3141 * @QCA_ROAM_REASON_EXPLICIT_REQUEST: Roam triggered due to an explicit request 3142 * from the user (user space). 3143 * 3144 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM request frame received from 3145 * connected AP. 3146 * 3147 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization 3148 * breaching out the configured threshold. 3149 * 3150 * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS 3151 * transition request. 3152 * 3153 * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, 3154 * there is no data activity with the AP and the current rssi falls below a 3155 * certain threshold. 3156 * 3157 * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to 3158 * deauthentication or disassociation frames received from the connected AP. 3159 * 3160 * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic 3161 * scan that happens when there is no candidate AP found during the poor 3162 * RSSI scan trigger. 3163 * 3164 * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan 3165 * results obtained from an external scan (not aimed at roaming). 3166 * 3167 * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to bluetooth 3168 * connection is established when the station is connected in 2.4 Ghz band. 3169 * 3170 * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame 3171 * failures to the connected AP. 3172 */ 3173 enum qca_roam_reason { 3174 QCA_ROAM_REASON_UNKNOWN, 3175 QCA_ROAM_REASON_PER, 3176 QCA_ROAM_REASON_BEACON_MISS, 3177 QCA_ROAM_REASON_POOR_RSSI, 3178 QCA_ROAM_REASON_BETTER_RSSI, 3179 QCA_ROAM_REASON_CONGESTION, 3180 QCA_ROAM_REASON_USER_TRIGGER, 3181 QCA_ROAM_REASON_BTM, 3182 QCA_ROAM_REASON_BSS_LOAD, 3183 QCA_ROAM_REASON_WTC, 3184 QCA_ROAM_REASON_IDLE, 3185 QCA_ROAM_REASON_DISCONNECTION, 3186 QCA_ROAM_REASON_PERIODIC_TIMER, 3187 QCA_ROAM_REASON_BACKGROUND_SCAN, 3188 QCA_ROAM_REASON_BT_ACTIVITY, 3189 QCA_ROAM_REASON_STA_KICKOUT, 3190 }; 3191 3192 /** 3193 * enum qca_wlan_vendor_attr_roam_auth - vendor event for roaming 3194 * 3195 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE: Request IE 3196 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE: Response IE 3197 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED: Authorization Status 3198 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR: Replay Counter 3199 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK: KCK of the PTK 3200 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK: KEK of the PTK 3201 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS: subnet change status 3202 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS: 3203 * Indicates the status of re-association requested by user space for 3204 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID. 3205 * Type u16. 3206 * Represents the status code from AP. Use 3207 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the 3208 * real status code for failures. 3209 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION: 3210 * This attribute indicates that the old association was maintained when 3211 * a re-association is requested by user space and that re-association 3212 * attempt fails (i.e., cannot connect to the requested BSS, but can 3213 * remain associated with the BSS with which the association was in 3214 * place when being requested to roam). Used along with 3215 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current 3216 * re-association status. Type flag. 3217 * This attribute is applicable only for re-association failure cases. 3218 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK: AUTH PMK 3219 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID: AUTH PMKID 3220 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM: FILS erp next 3221 * seq number 3222 * @QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON: A 16-bit unsigned value 3223 * representing the reasons for the roaming. Defined by enum 3224 * qca_roam_reason. 3225 */ 3226 enum qca_wlan_vendor_attr_roam_auth { 3227 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0, 3228 /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address 3229 * of the roamed AP for MLO roaming. 3230 */ 3231 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID, 3232 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE, 3233 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE, 3234 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED, 3235 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR, 3236 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK, 3237 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK, 3238 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS, 3239 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS, 3240 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION, 3241 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK, 3242 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID, 3243 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM, 3244 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON, 3245 /* A nested attribute containing per-link information of all the links 3246 * of MLO connection done while roaming. The attributes used inside this 3247 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links. 3248 */ 3249 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15, 3250 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST, 3251 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX = 3252 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1 3253 }; 3254 3255 /** 3256 * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside 3257 * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS. 3258 * 3259 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link. 3260 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link. 3261 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link. 3262 */ 3263 enum qca_wlan_vendor_attr_mlo_links { 3264 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0, 3265 QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1, 3266 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2, 3267 QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3, 3268 3269 /* Keep last */ 3270 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST, 3271 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX = 3272 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1, 3273 }; 3274 3275 /** 3276 * enum qca_wlan_vendor_attr_wifi_config - wifi config 3277 * 3278 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID: Invalid initial value 3279 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM: dynamic DTIM 3280 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR: avg factor 3281 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME: guard time 3282 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST: after last 3283 * @QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX: max value 3284 */ 3285 enum qca_wlan_vendor_attr_wifi_config { 3286 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_INVALID = 0, 3287 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_DYNAMIC_DTIM = 1, 3288 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_STATS_AVG_FACTOR = 2, 3289 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_GUARD_TIME = 3, 3290 3291 /* keep last */ 3292 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST, 3293 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_MAX = 3294 QCA_WLAN_VENDOR_ATTR_WIFI_CONFIG_AFTER_LAST - 1, 3295 }; 3296 3297 /** 3298 * enum qca_wlan_epno_type - the type of request to the EPNO command 3299 * @QCA_WLAN_EPNO: epno type request 3300 * @QCA_WLAN_PNO: pno type request 3301 */ 3302 enum qca_wlan_epno_type { 3303 QCA_WLAN_EPNO, 3304 QCA_WLAN_PNO 3305 }; 3306 3307 /** 3308 * enum qca_wlan_vendor_attr_pno_config_params - pno config params 3309 * 3310 * @QCA_WLAN_VENDOR_ATTR_PNO_INVALID - Invalid initial value 3311 * 3312 * NL attributes for data used by 3313 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command. 3314 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM: 3315 * Unsigned 32-bit value; pno passpoint number of networks 3316 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY: 3317 * Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_* 3318 * attributes. Array size = 3319 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM. 3320 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID: 3321 * Unsigned 32-bit value; network id 3322 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM: 3323 * An array of 256 x Unsigned 8-bit value; NULL terminated UTF8 encoded 3324 * realm, 0 if unspecified. 3325 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID: 3326 * An array of 16 x Unsigned 32-bit value; roaming consortium ids 3327 * to match, 0 if unspecified. 3328 * @QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN: 3329 * An array of 6 x Unsigned 8-bit value; mcc/mnc combination, 0s if 3330 * unspecified. 3331 * 3332 * NL attributes for data used by 3333 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command. 3334 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS: 3335 * Unsigned 32-bit value; set pno number of networks 3336 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST: 3337 * Array of nested 3338 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_* 3339 * attributes. Array size = 3340 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS 3341 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID: 3342 * An array of 33 x Unsigned 8-bit value; NULL terminated SSID 3343 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD: 3344 * Signed 8-bit value; threshold for considering this SSID as found, 3345 * required granularity for this threshold is 4dBm to 8dBm 3346 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS: 3347 * Unsigned 8-bit value; WIFI_PNO_FLAG_XXX 3348 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT: 3349 * Unsigned 8-bit value; auth bit field for matching WPA IE 3350 * @QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE 3351 * Unsigned 8-bit to indicate ePNO type; values from qca_wlan_epno_type 3352 *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST 3353 * Nested attribute to send the channel list 3354 *@QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL 3355 * Unsigned 32-bit value; indicates the Interval between PNO scan 3356 * cycles in msec 3357 *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI 3358 * Signed 32-bit value; minimum 5GHz RSSI for a BSSID to be considered 3359 *@QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI 3360 * Signed 32-bit value; minimum 2.4GHz RSSI for a BSSID to be considered 3361 * This attribute is obsolete now. 3362 *@QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX 3363 * Signed 32-bit value; the maximum score that a network 3364 * can have before bonuses 3365 *@QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS 3366 * Signed 32-bit value; only report when there is a network's 3367 * score this much higher han the current connection 3368 *@QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS 3369 * Signed 32-bit value; score bonus for all networks with 3370 * the same network flag 3371 *@QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS 3372 * Signed 32-bit value; score bonus for networks that are not open 3373 *@QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS 3374 * Signed 32-bit value; 5GHz RSSI score bonus applied to all 3375 * 5GHz networks 3376 *@QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID 3377 * Unsigned 32-bit value, representing the PNO Request ID 3378 * @QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST: After last 3379 * @QCA_WLAN_VENDOR_ATTR_PNO_MAX: max 3380 */ 3381 enum qca_wlan_vendor_attr_pno_config_params { 3382 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0, 3383 3384 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1, 3385 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2, 3386 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3, 3387 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4, 3388 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5, 3389 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6, 3390 3391 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7, 3392 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8, 3393 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9, 3394 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD = 10, 3395 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11, 3396 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12, 3397 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13, 3398 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14, 3399 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15, 3400 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16, 3401 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17, 3402 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18, 3403 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19, 3404 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20, 3405 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21, 3406 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22, 3407 3408 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23, 3409 /* keep last */ 3410 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST, 3411 QCA_WLAN_VENDOR_ATTR_PNO_MAX = 3412 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1, 3413 }; 3414 3415 /** 3416 * enum qca_scan_freq_list_type: Frequency list types 3417 * 3418 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list 3419 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as 3420 * a preferred frequency list for roaming. 3421 * 3422 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list 3423 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as 3424 * a specific frequency list for roaming. 3425 */ 3426 enum qca_scan_freq_list_type { 3427 QCA_PREFERRED_SCAN_FREQ_LIST = 1, 3428 QCA_SPECIFIC_SCAN_FREQ_LIST = 2, 3429 }; 3430 3431 /** 3432 * enum qca_roam_scan_scheme: scan scheme 3433 * 3434 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No Frequencies specified to scan. 3435 * Indicates the driver to not scan on a Roam Trigger scenario, but 3436 * Disconnect.e.g., On a BTM request from the AP driver/firmware shall 3437 * disconnect from the current connected AP by notifying a failure 3438 * code in the BTM response. 3439 * 3440 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to 3441 * trigger partial frequency scans. These frequencies are the ones learnt 3442 * or maintained by the driver based on the probability of finding the 3443 * BSSID's in the ESS for which the roaming is triggered. 3444 * 3445 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to 3446 * trigger the scan on all the valid frequencies to find the better 3447 * candidates to roam. 3448 */ 3449 enum qca_roam_scan_scheme { 3450 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0, 3451 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1, 3452 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2, 3453 }; 3454 3455 /** 3456 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme 3457 * 3458 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: An array of unsigned 32-bit values. 3459 * List of frequencies in MHz to be considered for a roam scan. 3460 * 3461 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value. 3462 * Type of frequency list scheme being configured/gotten as defined by the 3463 * enum qca_scan_freq_list_type. 3464 */ 3465 enum qca_vendor_attr_scan_freq_list_scheme { 3466 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1, 3467 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2, 3468 3469 /* keep last */ 3470 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST, 3471 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX = 3472 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1, 3473 }; 3474 3475 /* 3476 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers 3477 * 3478 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on 3479 * a bad packet error rates (PER). 3480 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered 3481 * based on beacon misses from the connected AP. 3482 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered 3483 * due to poor RSSI of the connected AP. 3484 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered 3485 * upon finding a BSSID with a better RSSI than the connected BSSID. 3486 * Also, set if the roam has to be triggered due to the high RSSI of the 3487 * current connected AP (better than 3488 * QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET). Here the RSSI of 3489 * the current BSSID need not be poor. 3490 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered 3491 * by triggering a periodic scan to find a better AP to roam. 3492 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered 3493 * when the connected channel environment is too noisy/congested. 3494 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered 3495 * when BTM Request frame is received from the connected AP. 3496 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered 3497 * when the channel utilization is goes above the configured threshold. 3498 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered 3499 * based on the request from the user (space). 3500 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when 3501 * device receives Deauthentication/Disassociation frame from connected 3502 * AP. 3503 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the 3504 * DUT is in idle state (no tx/rx) and suspend mode, if the current RSSI 3505 * is determined to be a poor one. 3506 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered 3507 * based on continuous TX Data Frame failures to the connected AP. 3508 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered 3509 * based on the scan results obtained from an external scan (not 3510 * triggered to aim roaming) 3511 * 3512 * Set the corresponding roam trigger reason bit to consider it for roam 3513 * trigger. 3514 * Userspace can set multiple bits and send to the driver. The driver shall 3515 * consider all of them to trigger/initiate a roam scan. 3516 */ 3517 enum qca_vendor_roam_triggers { 3518 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0, 3519 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1, 3520 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2, 3521 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3, 3522 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4, 3523 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5, 3524 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6, 3525 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7, 3526 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8, 3527 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9, 3528 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10, 3529 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11, 3530 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12, 3531 }; 3532 3533 /* 3534 * enum qca_vendor_roam_fail_reasons: Defines the various roam 3535 * fail reasons. This enum value is used in 3536 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute. 3537 * 3538 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not 3539 * able to trigger the scan. 3540 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan. 3541 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam 3542 * scan. 3543 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host. 3544 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame. 3545 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error 3546 * status code. 3547 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received. 3548 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request 3549 * frame. 3550 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame 3551 * with error status code. 3552 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not 3553 * received. 3554 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan. 3555 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication 3556 * frame. 3557 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped 3558 * internally before transmission. 3559 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation 3560 * Request frame. 3561 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is 3562 * dropped internally. 3563 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and 3564 * times out. 3565 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame. 3566 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped 3567 * internally. 3568 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key 3569 * M2 frame. 3570 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received. 3571 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame. 3572 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped 3573 * internally. 3574 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4 3575 * frame. 3576 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not 3577 * started for final beacon miss case. 3578 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame 3579 * received from the AP during roaming handoff. 3580 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps 3581 * or host is suspended and gives the indication of the last roamed AP only 3582 * when the Apps is resumed. If the Apps is resumed while the roaming is in 3583 * progress, this ongoing roaming is aborted and the last roamed AP is 3584 * indicated to host. 3585 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID. 3586 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times 3587 * out. 3588 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails. 3589 * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the 3590 * current network conditions are fine. 3591 */ 3592 enum qca_vendor_roam_fail_reasons { 3593 QCA_ROAM_FAIL_REASON_NONE = 0, 3594 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1, 3595 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2, 3596 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3, 3597 QCA_ROAM_FAIL_REASON_HOST = 4, 3598 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5, 3599 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6, 3600 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7, 3601 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8, 3602 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9, 3603 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10, 3604 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11, 3605 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12, 3606 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13, 3607 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14, 3608 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15, 3609 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16, 3610 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17, 3611 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18, 3612 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19, 3613 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20, 3614 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21, 3615 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22, 3616 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23, 3617 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24, 3618 QCA_ROAM_FAIL_REASON_DISCONNECT = 25, 3619 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26, 3620 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27, 3621 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28, 3622 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29, 3623 QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30, 3624 }; 3625 3626 /* 3627 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam 3628 * invoke fail reasons. This enum value is used in 3629 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute. 3630 * 3631 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed 3632 * in roam invoke command. 3633 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not 3634 * enabled. 3635 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID 3636 * length is invalid. 3637 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already 3638 * in progress. 3639 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response 3640 * of the AP in the roam invoke command to firmware. This reason is sent by the 3641 * firmware when the given AP is configured to be ignored or SSID/security 3642 * does not match. 3643 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of 3644 * firmware internal reasons. 3645 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled. 3646 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke. 3647 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail. 3648 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid. 3649 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to. 3650 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed. 3651 */ 3652 enum qca_vendor_roam_invoke_fail_reasons { 3653 QCA_ROAM_INVOKE_STATUS_NONE = 0, 3654 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1, 3655 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2, 3656 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3, 3657 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4, 3658 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5, 3659 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6, 3660 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7, 3661 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8, 3662 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9, 3663 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10, 3664 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11, 3665 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12, 3666 3667 }; 3668 3669 /** 3670 * enum qca_vendor_attr_roam_candidate_selection_criteria: 3671 * 3672 * Each attribute carries a weightage in percentage (%). 3673 * 3674 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value. 3675 * Represents the weightage to be given for the RSSI selection 3676 * criteria among other parameters. 3677 * 3678 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value. 3679 * Represents the weightage to be given for the rate selection 3680 * criteria among other parameters. 3681 * 3682 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value. 3683 * Represents the weightage to be given for the band width selection 3684 * criteria among other parameters. 3685 * 3686 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value. 3687 * Represents the weightage to be given for the band selection 3688 * criteria among other parameters. 3689 * 3690 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value. 3691 * Represents the weightage to be given for the NSS selection 3692 * criteria among other parameters. 3693 * 3694 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value. 3695 * Represents the weightage to be given for the channel congestion 3696 * selection criteria among other parameters. 3697 * 3698 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value. 3699 * Represents the weightage to be given for the beamforming selection 3700 * criteria among other parameters. 3701 * 3702 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value. 3703 * Represents the weightage to be given for the OCE selection 3704 * criteria among other parameters. 3705 */ 3706 enum qca_vendor_attr_roam_candidate_selection_criteria { 3707 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1, 3708 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2, 3709 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3, 3710 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4, 3711 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5, 3712 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6, 3713 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7, 3714 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8, 3715 3716 /* keep last */ 3717 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST, 3718 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX = 3719 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1, 3720 }; 3721 3722 /** 3723 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration 3724 * The following attributes are used to set/get/clear the respective 3725 * configurations to/from the driver. 3726 * For the get, the attribute for the configuration to be queried shall 3727 * carry any of its acceptable values to the driver. In return, the driver 3728 * shall send the configured values within the same attribute to the user 3729 * space. 3730 * 3731 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value. 3732 * Signifies to enable/disable roam control in driver. 3733 * 1-enable, 0-disable 3734 * Enable: Mandates the driver to do the further roams using the 3735 * configuration parameters set through 3736 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. 3737 * Disable: Disables the driver/firmware roaming triggered through 3738 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is 3739 * expected to continue with the default configurations. 3740 * 3741 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value. 3742 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET. 3743 * Roam control status is obtained through this attribute. 3744 * 3745 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the 3746 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET 3747 * is to be cleared in the driver. 3748 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR 3749 * and shall be ignored if used with other sub commands. 3750 * If this attribute is specified along with subcmd 3751 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore 3752 * all other attributes, if there are any. 3753 * If this attribute is not specified when the subcmd 3754 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall 3755 * clear the data corresponding to the attributes specified. 3756 * 3757 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the 3758 * list of frequencies and its type, represented by 3759 * enum qca_vendor_attr_scan_freq_list_scheme. 3760 * Frequency list and its type are mandatory for this attribute to set 3761 * the frequencies. 3762 * Frequency type is mandatory for this attribute to get the frequencies 3763 * and the frequency list is obtained through 3764 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST. 3765 * Frequency list type is mandatory for this attribute to clear the 3766 * frequencies. 3767 * 3768 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value. 3769 * Carries the value of scan period in seconds to set. 3770 * The value of scan period is obtained with the same attribute for get. 3771 * Clears the scan period in the driver when specified with clear command. 3772 * Scan period is the idle time in seconds between each subsequent 3773 * channel scans. 3774 * 3775 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value. 3776 * Carries the value of full scan period in seconds to set. 3777 * The value of full scan period is obtained with the same attribute for 3778 * get. 3779 * Clears the full scan period in the driver when specified with clear 3780 * command. Full scan period is the idle period in seconds between two 3781 * successive full channel roam scans. 3782 * 3783 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value. 3784 * Carries a bitmap of the roam triggers specified in 3785 * enum qca_vendor_roam_triggers. 3786 * The driver shall enable roaming by enabling corresponding roam triggers 3787 * based on the trigger bits sent with this attribute. 3788 * If this attribute is not configured, the driver shall proceed with 3789 * default behavior. 3790 * The bitmap configured is obtained with the same attribute for get. 3791 * Clears the bitmap configured in driver when specified with clear 3792 * command. 3793 * 3794 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the 3795 * weightage in percentage (%) to be given for each selection criteria. 3796 * Different roam candidate selection criteria are represented by 3797 * enum qca_vendor_attr_roam_candidate_selection_criteria. 3798 * The driver shall select the roam candidate based on corresponding 3799 * candidate selection scores sent. 3800 * 3801 * An empty nested attribute is used to indicate that no specific 3802 * preference score/criteria is configured (i.e., to disable this mechanism 3803 * in the set case and to show that the mechanism is disabled in the get 3804 * case). 3805 * 3806 * Userspace can send multiple attributes out of this enum to the driver. 3807 * Since this attribute represents the weight/percentage of preference for 3808 * the respective selection criteria, it is preferred to configure 100% 3809 * total weightage. The value in each attribute or cumulative weight of the 3810 * values in all the nested attributes should not exceed 100%. The driver 3811 * shall reject such configuration. 3812 * 3813 * If the weights configured through this attribute are less than 100%, 3814 * the driver shall honor the weights (x%) passed for the corresponding 3815 * selection criteria and choose/distribute rest of the weight (100-x)% 3816 * for the other selection criteria, based on its internal logic. 3817 * 3818 * The selection criteria configured is obtained with the same 3819 * attribute for get. 3820 * 3821 * Clears the selection criteria configured in the driver when specified 3822 * with clear command. 3823 * 3824 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value. 3825 * Represents value of scan frequency scheme from 3826 * enum qca_roam_scan_scheme. 3827 * 3828 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm, 3829 * signifying the RSSI threshold of the current connected AP, indicating 3830 * the driver to trigger roam only when the current connected AP's RSSI 3831 * is lesser than this threshold. 3832 * 3833 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm, 3834 * signifying the RSSI threshold of the candidate AP, indicating 3835 * the driver to trigger roam only to the candidate AP with RSSI 3836 * better than this threshold. If RSSI thresholds for candidate APs found 3837 * in the 2.4GHz, 5GHz and 6Ghz bands are configured separately using 3838 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ, 3839 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or 3840 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, then those values 3841 * will take precedence over the value configured using 3842 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute. 3843 * 3844 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the 3845 * user triggered reason code to be sent to the AP in response to AP's 3846 * request to trigger the roam if the roaming cannot be triggered. 3847 * Applies to all the scenarios of AP assisted roaming (e.g., BTM). 3848 * 3849 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value. 3850 * Carries a bitmap of the roam triggers specified in 3851 * enum qca_vendor_roam_triggers. 3852 * Represents the roam triggers for which the specific scan scheme from 3853 * enum qca_roam_scan_scheme has to be applied. 3854 * It's an optional attribute. If this attribute is not configured, but 3855 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, then the scan scheme 3856 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for 3857 * all the roams. 3858 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and 3859 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the 3860 * driver shall proceed with the default behavior. 3861 * 3862 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value 3863 * in dBm, signifying the RSSI threshold of the candidate AP found in 3864 * 2.4GHz band. The driver/firmware shall trigger roaming to the candidate 3865 * AP found in 2.4GHz band only if it's RSSI value is better than this 3866 * threshold. Optional attribute. If this attribute is not included, then 3867 * threshold value specified by the 3868 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 3869 * 3870 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in 3871 * dBm, signifying the RSSI threshold of the candidate AP found in 5GHz 3872 * band. The driver/firmware shall trigger roaming to the candidate AP 3873 * found in 5GHz band only if it's RSSI value is better than this 3874 * threshold. Optional attribute. If this attribute is not included, then 3875 * threshold value specified by the 3876 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 3877 * 3878 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in 3879 * dBm, signifying the RSSI threshold of the candidate AP found in 6GHz 3880 * band. The driver/firmware shall trigger roaming to the candidate AP 3881 * found in 6GHz band only if it's RSSI value is better than this 3882 * threshold. Optional attribute. If this attribute is not included, then 3883 * threshold value specified by the 3884 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 3885 * 3886 * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value. 3887 * Carries bitmask value of bits from &enum qca_set_band and represents 3888 * all the bands in which roaming is allowed. The configuration is valid 3889 * until next disconnection. If this attribute is not present, the 3890 * existing configuration shall be used. By default, roaming is allowed 3891 * on all bands supported by local device. When the value is set to 3892 * %QCA_SETBAND_AUTO, all supported bands shall be enabled. 3893 * 3894 * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps. 3895 * Optional parameter. RX link speed threshold to disable roaming. 3896 * If the current RX link speed is above the threshold, roaming is not 3897 * needed. If this attribute is not configured, or if it is set to 0, the 3898 * driver will not consider the RX link speed in the roaming decision. 3899 * 3900 * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds. 3901 * Optional parameter. This configuration delays hand-off (in msec) by the 3902 * specified duration to receive pending rx frames from current BSS. 3903 * 3904 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit 3905 * value. 3906 * During the roam scan, if there are no desired APs found in the partial 3907 * frequency list, an immediate full scan on all the supported frequencies 3908 * is initiated as a fallback. This flag controls the frequency list 3909 * creation for the full scan on the following lines. 3910 * 1 - Full scan to exclude the frequencies that were already scanned by 3911 * the previous partial scan. 3912 * 0 - Full scan to include all the supported frequencies irrespective of 3913 * the ones part of the earlier partial scan. 3914 * If this flag is not specified, a full scan shall include all the 3915 * supported frequencies irrespective of the ones part of an earlier 3916 * partial scan. 3917 * 3918 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit 3919 * value. 3920 * During the roam scan, if there are no desired APs found in the partial 3921 * frequency list, an immediate full scan on all the supported frequencies 3922 * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz 3923 * frequencies, including all PSC frequencies by default. This attribute 3924 * controls the inclusion of the 6 GHz PSC frequencies for the full scan 3925 * as following. 3926 * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the 3927 * prior discovery of any 6 GHz frequency support in the environment. 3928 * This discovery can happen through a prior RNR, 11k neighbor 3929 * request, 11v BTM request, host scan, etc. 3930 * 0 - Default behavior. Full scan to include all the supported 6 GHz 3931 * PSC frequencies regardless of whether 6 GHz BSSs have been 3932 * discovered. 3933 * The default behavior if this flag is not specified is to include all 3934 * the supported 6 GHz PSC frequencies in the roam full scan. 3935 * 3936 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET: Unsigned 8-bit value. 3937 * This attribute signifies the RSSI offset that is added to low RSSI 3938 * threshold (QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD) to imply 3939 * high RSSI threshold. STA is expected to trigger roam if the current 3940 * connected AP's RSSI gets above this high RSSI threshold. STA's roam 3941 * attempt on high RSSI threshold aims to find candidates from other 3942 * better Wi-Fi bands. E.g., STA would initially connect to a 2.4 GHz BSSID 3943 * and would migrate to 5/6 GHz when it comes closer to the AP (high RSSI 3944 * for 2.4 GHz BSS). 3945 */ 3946 enum qca_vendor_attr_roam_control { 3947 QCA_ATTR_ROAM_CONTROL_ENABLE = 1, 3948 QCA_ATTR_ROAM_CONTROL_STATUS = 2, 3949 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3, 3950 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4, 3951 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5, 3952 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6, 3953 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7, 3954 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8, 3955 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9, 3956 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10, 3957 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11, 3958 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12, 3959 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13, 3960 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14, 3961 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15, 3962 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16, 3963 QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17, 3964 QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD = 24, 3965 QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25, 3966 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26, 3967 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27, 3968 QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET = 31, 3969 3970 /* keep last */ 3971 QCA_ATTR_ROAM_CONTROL_AFTER_LAST, 3972 QCA_ATTR_ROAM_CONTROL_MAX = 3973 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1, 3974 }; 3975 3976 /** 3977 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by 3978 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command. 3979 * 3980 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value. 3981 * Represents the different roam sub commands referred by 3982 * enum qca_wlan_vendor_roaming_subcmd. 3983 * 3984 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value. 3985 * Represents the Request ID for the specific set of commands. 3986 * This also helps to map specific set of commands to the respective 3987 * ID / client. e.g., helps to identify the user entity configuring the 3988 * Blacklist BSSID and accordingly clear the respective ones with the 3989 * matching ID. 3990 * 3991 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS: Unsigned 3992 * 32-bit value.Represents the number of whitelist SSIDs configured. 3993 * 3994 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST: Nested attribute 3995 * to carry the list of Whitelist SSIDs. 3996 * 3997 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID: SSID (binary attribute, 3998 * 0..32 octets). Represents the white list SSID. Whitelist SSIDs 3999 * represent the list of SSIDs to which the firmware/driver can consider 4000 * to roam to. 4001 * 4002 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when 4003 * comparing with a 2.4GHz BSSID. They are not applied when comparing two 4004 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD - 4005 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS. 4006 * 4007 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit 4008 * value, RSSI threshold above which 5GHz RSSI is favored. 4009 * 4010 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit 4011 * value, RSSI threshold below which 5GHz RSSI is penalized. 4012 * 4013 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit 4014 * value, factor by which 5GHz RSSI is boosted. 4015 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor 4016 * 4017 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit 4018 * value, factor by which 5GHz RSSI is penalized. 4019 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor 4020 * 4021 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit 4022 * value, maximum boost that can be applied to a 5GHz RSSI. 4023 * 4024 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit 4025 * value, boost applied to current BSSID to ensure the currently 4026 * associated BSSID is favored so as to prevent ping-pong situations. 4027 * 4028 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit 4029 * value, RSSI below which "Alert" roam is enabled. 4030 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID 4031 * because the RSSI is low, or because many successive beacons have been 4032 * lost or other bad link conditions. 4033 * 4034 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit 4035 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where 4036 * firmware is hunting for a better BSSID or white listed SSID even though 4037 * the RSSI of the link is good. The parameters enabling the roaming are 4038 * configured through the PARAM_A_BAND_XX attrbutes. 4039 * 4040 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute, 4041 * represents the BSSIDs preferred over others while evaluating them 4042 * for the roaming. 4043 * 4044 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned 4045 * 32-bit value. Represents the number of preferred BSSIDs set. 4046 * 4047 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC 4048 * address representing the BSSID to be preferred. 4049 * 4050 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed 4051 * 32-bit value, representing the modifier to be applied to the RSSI of 4052 * the BSSID for the purpose of comparing it with other roam candidate. 4053 * 4054 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute, 4055 * represents the BSSIDs to get blacklisted for roaming. 4056 * 4057 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned 4058 * 32-bit value, represents the number of blacklisted BSSIDs. 4059 * 4060 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC 4061 * address representing the Blacklisted BSSID. 4062 * 4063 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute, 4064 * indicates this BSSID blacklist as a hint to the driver. The driver can 4065 * select this BSSID in the worst case (when no other BSSIDs are better). 4066 * 4067 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to 4068 * set/get/clear the roam control config as 4069 * defined @enum qca_vendor_attr_roam_control. 4070 * 4071 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST: After last 4072 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX: Max 4073 */ 4074 enum qca_wlan_vendor_attr_roaming_config_params { 4075 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0, 4076 4077 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1, 4078 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2, 4079 4080 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS = 3, 4081 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST = 4, 4082 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID = 5, 4083 4084 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6, 4085 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7, 4086 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8, 4087 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9, 4088 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10, 4089 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11, 4090 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12, 4091 4092 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13, 4093 4094 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14, 4095 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15, 4096 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16, 4097 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17, 4098 4099 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18, 4100 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19, 4101 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20, 4102 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21, 4103 4104 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22, 4105 4106 /* keep last */ 4107 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST, 4108 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX = 4109 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1, 4110 }; 4111 4112 /** 4113 * enum qca_wlan_vendor_roaming_subcmd: Referred by 4114 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD. 4115 * 4116 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST: Sub command to 4117 * configure the white list SSIDs. These are configured through 4118 * the following attributes. 4119 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS, 4120 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST, 4121 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID 4122 * 4123 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS: Sub command to 4124 * configure the Roam params. These parameters are evaluated on the extscan 4125 * results. Refers the attributes PARAM_A_BAND_XX above to configure the 4126 * params. 4127 * 4128 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses 4129 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE 4130 * to enable/disable Lazy roam. 4131 * 4132 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID 4133 * preference. Contains the attribute 4134 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID 4135 * preference. 4136 * 4137 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS: set bssid params 4138 * 4139 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID: Sets the Blacklist 4140 * BSSIDs. Refers QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to 4141 * set the same. 4142 * 4143 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the 4144 * roam control config to the driver with the attribute 4145 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 4146 * 4147 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the 4148 * roam control config from driver with the attribute 4149 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 4150 * For the get, the attribute for the configuration to be queried shall 4151 * carry any of its acceptable value to the driver. In return, the driver 4152 * shall send the configured values within the same attribute to the user 4153 * space. 4154 * 4155 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the 4156 * roam control config in the driver with the attribute 4157 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 4158 * The driver shall continue with its default roaming behavior when data 4159 * corresponding to an attribute is cleared. 4160 */ 4161 enum qca_wlan_vendor_roaming_subcmd { 4162 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST = 1, 4163 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_EXTSCAN_ROAM_PARAMS = 2, 4164 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3, 4165 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4, 4166 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5, 4167 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID = 6, 4168 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7, 4169 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8, 4170 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9, 4171 }; 4172 4173 /** 4174 * enum qca_wlan_vendor_attr_get_wifi_info - wifi driver information 4175 * 4176 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID: Invalid initial value 4177 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: get host driver version 4178 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: ger firmware version 4179 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX - get radio index 4180 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST: after last 4181 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX: subcmd max 4182 */ 4183 enum qca_wlan_vendor_attr_get_wifi_info { 4184 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0, 4185 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1, 4186 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2, 4187 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3, 4188 4189 /* KEEP LAST */ 4190 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST, 4191 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX = 4192 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1, 4193 }; 4194 4195 enum qca_wlan_vendor_attr_logger_results { 4196 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0, 4197 4198 /* 4199 * Unsigned 32-bit value; must match the request Id supplied by 4200 * Wi-Fi HAL in the corresponding subcmd NL msg. 4201 */ 4202 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1, 4203 4204 /* 4205 * Unsigned 32-bit value; used to indicate the size of memory 4206 * dump to be allocated. 4207 */ 4208 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2, 4209 4210 /* keep last */ 4211 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST, 4212 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX = 4213 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1, 4214 }; 4215 4216 /** 4217 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel. 4218 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS. 4219 */ 4220 enum qca_wlan_vendor_channel_prop_flags { 4221 /* Bits 0, 1, 2, and 3 are reserved */ 4222 4223 /* Turbo channel */ 4224 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4, 4225 /* CCK channel */ 4226 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5, 4227 /* OFDM channel */ 4228 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6, 4229 /* 2.4 GHz spectrum channel. */ 4230 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7, 4231 /* 5 GHz spectrum channel */ 4232 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8, 4233 /* Only passive scan allowed */ 4234 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9, 4235 /* Dynamic CCK-OFDM channel */ 4236 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10, 4237 /* GFSK channel (FHSS PHY) */ 4238 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11, 4239 /* Radar found on channel */ 4240 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12, 4241 /* 11a static turbo channel only */ 4242 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13, 4243 /* Half rate channel */ 4244 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14, 4245 /* Quarter rate channel */ 4246 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15, 4247 /* HT 20 channel */ 4248 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16, 4249 /* HT 40 with extension channel above */ 4250 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17, 4251 /* HT 40 with extension channel below */ 4252 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18, 4253 /* HT 40 intolerant */ 4254 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19, 4255 /* VHT 20 channel */ 4256 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20, 4257 /* VHT 40 with extension channel above */ 4258 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21, 4259 /* VHT 40 with extension channel below */ 4260 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22, 4261 /* VHT 80 channel */ 4262 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23, 4263 /* HT 40 intolerant mark bit for ACS use */ 4264 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24, 4265 /* Channel temporarily blocked due to noise */ 4266 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25, 4267 /* VHT 160 channel */ 4268 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26, 4269 /* VHT 80+80 channel */ 4270 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27, 4271 /* HE 20 channel */ 4272 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28, 4273 /* HE 40 with extension channel above */ 4274 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29, 4275 /* HE 40 with extension channel below */ 4276 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30, 4277 /* HE 40 intolerant */ 4278 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31, 4279 }; 4280 4281 /** 4282 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a 4283 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is 4284 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2. 4285 */ 4286 enum qca_wlan_vendor_channel_prop_flags_2 { 4287 /* HE 40 intolerant mark bit for ACS use */ 4288 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0, 4289 /* HE 80 channel */ 4290 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1, 4291 /* HE 160 channel */ 4292 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2, 4293 /* HE 80+80 channel */ 4294 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3, 4295 }; 4296 4297 /** 4298 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for 4299 * each channel. This is used by 4300 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT. 4301 */ 4302 enum qca_wlan_vendor_channel_prop_flags_ext { 4303 /* Radar found on channel */ 4304 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0, 4305 /* DFS required on channel */ 4306 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1, 4307 /* DFS required on channel for 2nd band of 80+80 */ 4308 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2, 4309 /* If channel has been checked for DFS */ 4310 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3, 4311 /* Excluded in 802.11d */ 4312 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4, 4313 /* Channel Switch Announcement received on this channel */ 4314 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5, 4315 /* Ad-hoc is not allowed */ 4316 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6, 4317 /* Station only channel */ 4318 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7, 4319 /* DFS radar history for slave device (STA mode) */ 4320 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8, 4321 /* DFS CAC valid for slave device (STA mode) */ 4322 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9, 4323 }; 4324 4325 /** 4326 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd 4327 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite 4328 * information to start/stop the NUD statistics collection. 4329 */ 4330 enum qca_attr_nud_stats_set { 4331 QCA_ATTR_NUD_STATS_SET_INVALID = 0, 4332 4333 /* 4334 * Flag to start/stop the NUD statistics collection. 4335 * Start - If included, Stop - If not included 4336 */ 4337 QCA_ATTR_NUD_STATS_SET_START = 1, 4338 /* IPv4 address of the default gateway (in network byte order) */ 4339 QCA_ATTR_NUD_STATS_GW_IPV4 = 2, 4340 /* 4341 * Represents the data packet type to be monitored. 4342 * Host driver tracks the stats corresponding to each data frame 4343 * represented by these flags. 4344 * These data packets are represented by 4345 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info. 4346 */ 4347 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3, 4348 /* keep last */ 4349 QCA_ATTR_NUD_STATS_SET_LAST, 4350 QCA_ATTR_NUD_STATS_SET_MAX = 4351 QCA_ATTR_NUD_STATS_SET_LAST - 1, 4352 }; 4353 4354 /** 4355 * enum qca_attr_connectivity_check_stats_set - attribute to vendor subcmd 4356 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite 4357 * information to start / stop the NUD stats collection. 4358 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE: set pkt info stats 4359 * Bitmap to Flag to Start / Stop the NUD stats collection 4360 * Start - If included , Stop - If not included 4361 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME: set gateway ipv4 address 4362 * IPv4 address of Default Gateway (in network byte order) 4363 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite 4364 * information to start / stop the NUD stats collection. 4365 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT: set nud debug stats 4366 * Flag to Start / Stop the NUD stats collection 4367 * Start - If included , Stop - If not included 4368 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT: set gateway ipv4 address 4369 * IPv4 address of Default Gateway (in network byte order) 4370 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carry the requisite 4371 * information to start / stop the NUD stats collection. 4372 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4: set nud debug stats 4373 * Flag to Start / Stop the NUD stats collection 4374 * Start - If included , Stop - If not included 4375 * @QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6: set gateway ipv4 address 4376 * IPv4 address of Default Gateway (in network byte order) 4377 */ 4378 enum qca_attr_connectivity_check_stats_set { 4379 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_INVALID = 0, 4380 QCA_ATTR_CONNECTIVITY_CHECK_STATS_STATS_PKT_INFO_TYPE = 1, 4381 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DNS_DOMAIN_NAME = 2, 4382 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SRC_PORT = 3, 4383 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_PORT = 4, 4384 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV4 = 5, 4385 QCA_ATTR_CONNECTIVITY_CHECK_STATS_DEST_IPV6 = 6, 4386 /* keep last */ 4387 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST, 4388 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_MAX = 4389 QCA_ATTR_CONNECTIVITY_CHECK_STATS_SET_LAST - 1, 4390 }; 4391 4392 /** 4393 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various 4394 * data types for which the stats have to get collected. 4395 */ 4396 enum qca_wlan_vendor_connectivity_check_pkt_flags { 4397 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ARP = 1 << 0, 4398 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_DNS = 1 << 1, 4399 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_HANDSHAKE = 1 << 2, 4400 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV4 = 1 << 3, 4401 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_ICMPV6 = 1 << 4, 4402 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get 4403 * to represent the stats of respective data type. 4404 */ 4405 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN = 1 << 5, 4406 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_SYN_ACK = 1 << 6, 4407 QCA_WLAN_VENDOR_CONNECTIVITY_CHECK_SET_TCP_ACK = 1 << 7, 4408 }; 4409 4410 enum qca_attr_connectivity_check_stats { 4411 QCA_ATTR_CONNECTIVITY_CHECK_STATS_INVALID = 0, 4412 /* Data packet type for which the stats are collected. 4413 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags 4414 */ 4415 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_TYPE = 1, 4416 /* ID corresponding to the DNS frame for which the respective DNS stats 4417 * are monitored (u32). 4418 */ 4419 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DNS_DOMAIN_NAME = 2, 4420 /* source / destination port on which the respective proto stats are 4421 * collected (u32). 4422 */ 4423 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_SRC_PORT = 3, 4424 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_PORT = 4, 4425 /* IPv4/IPv6 address for which the destined data packets are 4426 * monitored. (in network byte order) 4427 */ 4428 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV4 = 5, 4429 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_DEST_IPV6 = 6, 4430 /* Data packet Request count received from netdev */ 4431 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7, 4432 /* Data packet Request count sent to lower MAC from upper MAC */ 4433 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8, 4434 /* Data packet Request count received by lower MAC from upper MAC */ 4435 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9, 4436 /* Data packet Request count successfully transmitted by the device */ 4437 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10, 4438 /* Data packet Response count received by lower MAC */ 4439 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11, 4440 /* Data packet Response count received by upper MAC */ 4441 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12, 4442 /* Data packet Response count delivered to netdev */ 4443 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_TO_NETDEV = 13, 4444 /* Data Packet Response count that are dropped out of order */ 4445 QCA_ATTR_CONNECTIVITY_CHECK_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14, 4446 4447 /* keep last */ 4448 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST, 4449 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_MAX = 4450 QCA_ATTR_CONNECTIVITY_CHECK_DATA_STATS_LAST - 1, 4451 }; 4452 4453 /** 4454 * qca_attr_nud_stats_get: Attributes to vendor subcmd 4455 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite 4456 * NUD statistics collected when queried. 4457 */ 4458 enum qca_attr_nud_stats_get { 4459 QCA_ATTR_NUD_STATS_GET_INVALID = 0, 4460 /* ARP Request count from netdev */ 4461 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1, 4462 /* ARP Request count sent to lower MAC from upper MAC */ 4463 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2, 4464 /* ARP Request count received by lower MAC from upper MAC */ 4465 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3, 4466 /* ARP Request count successfully transmitted by the device */ 4467 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4, 4468 /* ARP Response count received by lower MAC */ 4469 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5, 4470 /* ARP Response count received by upper MAC */ 4471 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6, 4472 /* ARP Response count delivered to netdev */ 4473 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7, 4474 /* ARP Response count delivered to netdev */ 4475 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8, 4476 /* 4477 * Flag indicating if the station's link to the AP is active. 4478 * Active Link - If included, Inactive link - If not included 4479 */ 4480 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9, 4481 /* 4482 * Flag indicating if there is any duplicate address detected (DAD). 4483 * Yes - If detected, No - If not detected. 4484 */ 4485 QCA_ATTR_NUD_STATS_IS_DAD = 10, 4486 /* 4487 * List of Data types for which the stats are requested. 4488 * This list does not carry ARP stats as they are done by the 4489 * above attributes. Represented by enum qca_attr_nud_data_stats. 4490 */ 4491 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11, 4492 /* keep last */ 4493 QCA_ATTR_NUD_STATS_GET_LAST, 4494 QCA_ATTR_NUD_STATS_GET_MAX = 4495 QCA_ATTR_NUD_STATS_GET_LAST - 1, 4496 }; 4497 4498 enum qca_wlan_btm_candidate_status { 4499 QCA_STATUS_ACCEPT = 0, 4500 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1, 4501 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2, 4502 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3, 4503 QCA_STATUS_REJECT_LOW_RSSI = 4, 4504 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5, 4505 QCA_STATUS_REJECT_UNKNOWN = 6, 4506 }; 4507 4508 enum qca_wlan_vendor_attr_btm_candidate_info { 4509 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0, 4510 4511 /* 6-byte MAC address representing the BSSID of transition candidate */ 4512 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1, 4513 /* 4514 * Unsigned 32-bit value from enum qca_wlan_btm_candidate_status 4515 * returned by the driver. It says whether the BSSID provided in 4516 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by 4517 * the driver, if not it specifies the reason for rejection. 4518 * Note that the user-space can overwrite the transition reject reason 4519 * codes provided by driver based on more information. 4520 */ 4521 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2, 4522 4523 /* keep last */ 4524 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST, 4525 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX = 4526 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1, 4527 }; 4528 4529 enum qca_attr_trace_level { 4530 QCA_ATTR_TRACE_LEVEL_INVALID = 0, 4531 /* 4532 * Nested array of the following attributes: 4533 * QCA_ATTR_TRACE_LEVEL_MODULE, 4534 * QCA_ATTR_TRACE_LEVEL_MASK. 4535 */ 4536 QCA_ATTR_TRACE_LEVEL_PARAM = 1, 4537 /* 4538 * Specific QCA host driver module. Please refer to the QCA host 4539 * driver implementation to get the specific module ID. 4540 */ 4541 QCA_ATTR_TRACE_LEVEL_MODULE = 2, 4542 /* Different trace level masks represented in the QCA host driver. */ 4543 QCA_ATTR_TRACE_LEVEL_MASK = 3, 4544 4545 /* keep last */ 4546 QCA_ATTR_TRACE_LEVEL_AFTER_LAST, 4547 QCA_ATTR_TRACE_LEVEL_MAX = 4548 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1, 4549 }; 4550 4551 /** 4552 * enum qca_wlan_vendor_attr_get_logger_features - value for logger 4553 * supported features 4554 * @QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID - Invalid 4555 * @QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED - Indicate the supported features 4556 * @QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - To keep track of the last enum 4557 * @QCA_WLAN_VENDOR_ATTR_LOGGER_MAX - max value possible for this type 4558 * 4559 * enum values are used for NL attributes for data used by 4560 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET sub command. 4561 */ 4562 enum qca_wlan_vendor_attr_get_logger_features { 4563 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0, 4564 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1, 4565 4566 /* keep last */ 4567 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST, 4568 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX = 4569 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1, 4570 }; 4571 4572 /** 4573 * enum qca_wlan_vendor_attr_link_properties - link properties 4574 * 4575 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID: Invalid initial value 4576 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS: Unsigned 8-bit value to 4577 * specify the number of spatial streams negotiated 4578 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS: Unsigned 8-bit value 4579 * to specify negotiated rate flags i.e. ht, vht and channel width 4580 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ: Unsigned 32bit value to 4581 * specify the operating frequency 4582 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC Address of the peer 4583 * (STA / AP ) for the connected link. 4584 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a 4585 * &struct nl80211_sta_flag_update for the respective connected link. MAC 4586 * address of the peer represented by 4587 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR. 4588 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST: after last 4589 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX: max value 4590 */ 4591 enum qca_wlan_vendor_attr_link_properties { 4592 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0, 4593 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_NSS = 1, 4594 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_RATE_FLAGS = 2, 4595 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_FREQ = 3, 4596 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4, 4597 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5, 4598 4599 /* KEEP LAST */ 4600 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST, 4601 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAX = 4602 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1, 4603 }; 4604 4605 /** 4606 * enum qca_wlan_vendor_attr_nd_offload - vendor NS offload support 4607 * 4608 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID - Invalid 4609 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG - Flag to set NS offload 4610 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - To keep track of the last enum 4611 * @QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX - max value possible for this type 4612 * 4613 * enum values are used for NL attributes for data used by 4614 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD sub command. 4615 */ 4616 enum qca_wlan_vendor_attr_nd_offload { 4617 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0, 4618 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG, 4619 4620 /* Keep last */ 4621 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST, 4622 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX = 4623 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1, 4624 }; 4625 4626 /** 4627 * enum qca_wlan_vendor_features - Vendor device/driver feature flags 4628 * 4629 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key 4630 * management offload, a mechanism where the station's firmware 4631 * does the exchange with the AP to establish the temporal keys 4632 * after roaming, rather than having the user space wpa_supplicant do it. 4633 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic 4634 * band selection based on channel selection results. 4635 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports 4636 * simultaneous off-channel operations. 4637 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P 4638 * Listen offload; a mechanism where the station's firmware takes care of 4639 * responding to incoming Probe Request frames received from other P2P 4640 * Devices whilst in Listen state, rather than having the user space 4641 * wpa_supplicant do it. Information from received P2P requests are 4642 * forwarded from firmware to host whenever the host processor wakes up. 4643 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA 4644 * specific features. 4645 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific 4646 * features. 4647 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON 4648 * specific features only. If a Device sets this bit but not the 4649 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that 4650 * this Device may not support all OCE AP functionalities but can support 4651 * only OCE STA-CFON functionalities. 4652 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self 4653 * managed regulatory. 4654 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time). 4655 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE) 4656 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation 4657 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving 4658 * and applying thermal configuration through 4659 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and 4660 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from 4661 * userspace. 4662 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r. 4663 * With Adaptive 11r feature, access points advertise the vendor 4664 * specific IEs and MDE but do not include FT AKM in the RSNE. 4665 * The Adaptive 11r supported stations are expected to identify 4666 * such vendor specific IEs and connect to the AP in FT mode though 4667 * the profile is configured in non-FT mode. 4668 * The driver-based SME cases also need to have this support for 4669 * Adaptive 11r to handle the connection and roaming scenarios. 4670 * This flag indicates the support for the same to the user space. 4671 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports 4672 * concurrent network sessions on different Wi-Fi Bands. This feature 4673 * capability is attributed to the hardware's capability to support 4674 * the same (e.g., DBS). 4675 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the 4676 * responses for the respective TWT operations are asynchronous (separate) 4677 * event message) from the driver. If not specified, the responses are 4678 * synchronous (in vendor command reply) to the request. Each TWT 4679 * operation is specifically mentioned (against its respective) 4680 * documentation) to support either of these or both modes. 4681 * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates 4682 * that the driver requires add/del virtual interface path using the 4683 * generic nl80211 commands for NDP interface create/delete and to 4684 * register/unregister the netdev instead of creating/deleting the NDP 4685 * interface using the vendor commands 4686 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and 4687 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel 4688 * (5.12 version onward), interface creation/deletion is not allowed using 4689 * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK 4690 * during the register/unregister of netdev. Create and delete NDP 4691 * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE 4692 * commands respectively if the driver advertises this capability set. 4693 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in 4694 * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is 4695 * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored. 4696 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP 4697 * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then 4698 * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored. 4699 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in 4700 * station mode supports secure RTT measurement exchange. If 4701 * NL80211_EXT_FEATURE_SECURE_RTT is set, 4702 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored. 4703 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP 4704 * mode supports secure RTT measurement exchange. If 4705 * NL80211_EXT_FEATURE_SECURE_RTT is set, 4706 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored. 4707 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that 4708 * the device in station mode supports protection of range negotiation and 4709 * measurement management frames. If 4710 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then 4711 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored. 4712 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that 4713 * the device in AP mode supports protection of range negotiation and 4714 * measurement management frames. If 4715 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then 4716 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored. 4717 * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device 4718 * in AP mode supports configuring allowed frequency list for AP operation 4719 * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST. 4720 * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates 4721 * that the device supports enhanced audio experience over WLAN feature. 4722 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits 4723 */ 4724 enum qca_wlan_vendor_features { 4725 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0, 4726 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1, 4727 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2, 4728 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3, 4729 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4, 4730 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5, 4731 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6, 4732 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7, 4733 QCA_WLAN_VENDOR_FEATURE_TWT = 8, 4734 QCA_WLAN_VENDOR_FEATURE_11AX = 9, 4735 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10, 4736 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11, 4737 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12, 4738 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13, 4739 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14, 4740 QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15, 4741 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16, 4742 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17, 4743 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18, 4744 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19, 4745 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20, 4746 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21, 4747 QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22, 4748 QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23, 4749 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */ 4750 }; 4751 4752 /** 4753 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for SAP 4754 * conditional channel switch 4755 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID: Invalid initial 4756 * value 4757 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST: Priority based 4758 * frequency list (an array of u32 values in host byte order) 4759 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS: Status of the 4760 * conditional switch (u32)- 0: Success, Non-zero: Failure 4761 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST: After last 4762 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX: Subcommand max 4763 */ 4764 enum qca_wlan_vendor_attr_sap_conditional_chan_switch { 4765 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0, 4766 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1, 4767 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2, 4768 4769 /* Keep Last */ 4770 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST, 4771 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX = 4772 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1, 4773 }; 4774 4775 /** 4776 * enum wifi_logger_supported_features - values for supported logger features 4777 * @WIFI_LOGGER_MEMORY_DUMP_SUPPORTED: Memory dump of FW 4778 * @WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED: Per packet statistics 4779 * @WIFI_LOGGER_CONNECT_EVENT_SUPPORTED: Logging of Connectivity events 4780 * @WIFI_LOGGER_POWER_EVENT_SUPPORTED: Power of driver 4781 * @WIFI_LOGGER_WAKE_LOCK_SUPPORTE: Wakelock of driver 4782 * @WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED: monitor FW health 4783 * @WIFI_LOGGER_DRIVER_DUMP_SUPPORTED: support driver dump 4784 * @WIFI_LOGGER_PACKET_FATE_SUPPORTED: tracks connection packets fate 4785 */ 4786 enum wifi_logger_supported_features { 4787 WIFI_LOGGER_MEMORY_DUMP_SUPPORTED = (1 << (0)), 4788 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_SUPPORTED = (1 << (1)), 4789 WIFI_LOGGER_CONNECT_EVENT_SUPPORTED = (1 << (2)), 4790 WIFI_LOGGER_POWER_EVENT_SUPPORTED = (1 << (3)), 4791 WIFI_LOGGER_WAKE_LOCK_SUPPORTED = (1 << (4)), 4792 WIFI_LOGGER_VERBOSE_SUPPORTED = (1 << (5)), 4793 WIFI_LOGGER_WATCHDOG_TIMER_SUPPORTED = (1 << (6)), 4794 WIFI_LOGGER_DRIVER_DUMP_SUPPORTED = (1 << (7)), 4795 WIFI_LOGGER_PACKET_FATE_SUPPORTED = (1 << (8)) 4796 }; 4797 4798 /** 4799 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get 4800 * capabilities features 4801 */ 4802 enum qca_wlan_tdls_caps_features_supported { 4803 WIFI_TDLS_SUPPORT = (1 << (0)), 4804 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)), 4805 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)), 4806 4807 /* Indicates if the TDLS session can be formed with the peer using 4808 * higher bandwidth than the bandwidth of the AP path. 4809 */ 4810 WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)), 4811 }; 4812 4813 /** 4814 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with 4815 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. 4816 * 4817 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8). 4818 * Used with event to notify the primary channel number selected in ACS 4819 * operation. 4820 * Note: If both the driver and user-space application supports the 6 GHz band, 4821 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use 4822 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead. 4823 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL 4824 * is still used if either of the driver or user space application doesn't 4825 * support the 6 GHz band. 4826 * 4827 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8). 4828 * Used with event to notify the secondary channel number selected in ACS 4829 * operation. 4830 * Note: If both the driver and user-space application supports the 6 GHz band, 4831 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use 4832 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead. 4833 * To maintain backward compatibility, 4834 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of 4835 * the driver or user space application doesn't support 6 GHz band. 4836 * 4837 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8). 4838 * (a) Used with command to configure hw_mode from 4839 * enum qca_wlan_vendor_acs_hw_mode for ACS operation. 4840 * (b) Also used with event to notify the hw_mode of selected primary channel 4841 * in ACS operation. 4842 * 4843 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute. 4844 * Used with command to configure ACS operation for HT mode. 4845 * Disable (flag attribute not present) - HT disabled and 4846 * Enable (flag attribute present) - HT enabled. 4847 * 4848 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute. 4849 * Used with command to configure ACS operation for HT40 mode. 4850 * Disable (flag attribute not present) - HT40 disabled and 4851 * Enable (flag attribute present) - HT40 enabled. 4852 * 4853 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute. 4854 * Used with command to configure ACS operation for VHT mode. 4855 * Disable (flag attribute not present) - VHT disabled and 4856 * Enable (flag attribute present) - VHT enabled. 4857 * 4858 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and 4859 * mandatory with event. 4860 * If specified in command path, ACS operation is configured with the given 4861 * channel width (in MHz). 4862 * In event path, specifies the channel width of the primary channel selected. 4863 * 4864 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC. 4865 * Used with command to configure channel list using an array of 4866 * channel numbers (u8). 4867 * Note: If both the driver and user-space application supports the 6 GHz band, 4868 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas 4869 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional. 4870 * 4871 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8). 4872 * Used with event to notify the VHT segment 0 center channel number selected in 4873 * ACS operation. 4874 * Note: If both the driver and user-space application supports the 6 GHz band, 4875 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use 4876 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead. 4877 * To maintain backward compatibility, 4878 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of 4879 * the driver or user space application doesn't support the 6 GHz band. 4880 * 4881 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8). 4882 * Used with event to notify the VHT segment 1 center channel number selected in 4883 * ACS operation. 4884 * Note: If both the driver and user-space application supports the 6 GHz band, 4885 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use 4886 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead. 4887 * To maintain backward compatibility, 4888 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of 4889 * the driver or user space application doesn't support the 6 GHz band. 4890 * 4891 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC. 4892 * Used with command to configure the channel list using an array of channel 4893 * center frequencies in MHz (u32). 4894 * Note: If both the driver and user-space application supports the 6 GHz band, 4895 * the driver first parses the frequency list and if it fails to get a frequency 4896 * list, parses the channel list specified using 4897 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in 4898 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST). 4899 * 4900 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32). 4901 * Used with event to notify the primary channel center frequency (MHz) selected 4902 * in ACS operation. 4903 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4904 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL. 4905 * 4906 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32). 4907 * Used with event to notify the secondary channel center frequency (MHz) 4908 * selected in ACS operation. 4909 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4910 * includes this attribute along with 4911 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL. 4912 * 4913 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32). 4914 * Used with event to notify the VHT segment 0 center channel frequency (MHz) 4915 * selected in ACS operation. 4916 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4917 * includes this attribute along with 4918 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL. 4919 * 4920 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32). 4921 * Used with event to notify the VHT segment 1 center channel frequency (MHz) 4922 * selected in ACS operation. 4923 * Note: If the driver supports the 6 GHz band, the event sent from the driver 4924 * includes this attribute along with 4925 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL. 4926 * 4927 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute. 4928 * Used with command to notify the driver of EDMG request for ACS 4929 * operation. 4930 * 4931 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8). 4932 * Used with event to notify the EDMG channel number selected in ACS 4933 * operation. 4934 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL 4935 * 4936 * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16). 4937 * Used with event to notify the puncture pattern selected in ACS operation. 4938 * Encoding for this attribute will follow the convention used in the Disabled 4939 * Subchannel Bitmap field of the EHT Operation IE. 4940 * 4941 * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute. 4942 * Used with command to configure ACS operation for EHT mode. 4943 * Disable (flag attribute not present) - EHT disabled and 4944 * Enable (flag attribute present) - EHT enabled. 4945 * 4946 * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32). 4947 * Used with command to configure how older scan can be considered for ACS 4948 * scoring. In case scan was performed on partial set of channels configured 4949 * with this command, within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME 4950 * (in ms), then scan only remaining channels. 4951 */ 4952 enum qca_wlan_vendor_attr_acs_offload { 4953 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0, 4954 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1, 4955 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2, 4956 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3, 4957 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4, 4958 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5, 4959 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6, 4960 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7, 4961 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8, 4962 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9, 4963 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10, 4964 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11, 4965 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12, 4966 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13, 4967 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14, 4968 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15, 4969 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16, 4970 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17, 4971 QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18, 4972 QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19, 4973 QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20, 4974 4975 /* keep last */ 4976 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST, 4977 QCA_WLAN_VENDOR_ATTR_ACS_MAX = 4978 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1 4979 }; 4980 4981 /** 4982 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the 4983 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. 4984 * 4985 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode 4986 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode 4987 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode 4988 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode 4989 * @QCA_ACS_MODE_IEEE80211ANY: all modes 4990 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode 4991 */ 4992 enum qca_wlan_vendor_acs_hw_mode { 4993 QCA_ACS_MODE_IEEE80211B, 4994 QCA_ACS_MODE_IEEE80211G, 4995 QCA_ACS_MODE_IEEE80211A, 4996 QCA_ACS_MODE_IEEE80211AD, 4997 QCA_ACS_MODE_IEEE80211ANY, 4998 QCA_ACS_MODE_IEEE80211AX, 4999 }; 5000 5001 /** 5002 * enum qca_access_policy - access control policy 5003 * 5004 * Access control policy is applied on the configured IE 5005 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE). 5006 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY. 5007 * 5008 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi Connections which match 5009 *» with the specific configuration (IE) set, i.e. allow all the 5010 *» connections which do not match the configuration. 5011 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi Connections which match 5012 *» with the specific configuration (IE) set, i.e. deny all the 5013 *» connections which do not match the configuration. 5014 */ 5015 enum qca_access_policy { 5016 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED, 5017 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED, 5018 }; 5019 5020 /** 5021 * enum qca_ignore_assoc_disallowed - Ignore assoc disallowed values 5022 * 5023 * The valid values for the ignore assoc disallowed 5024 * 5025 * @QCA_IGNORE_ASSOC_DISALLOWED_DISABLE: Disable ignore assoc disallowed 5026 * @QCA_IGNORE_ASSOC_DISALLOWED_ENABLE: Enable ignore assoc disallowed 5027 * 5028 */ 5029 enum qca_ignore_assoc_disallowed { 5030 QCA_IGNORE_ASSOC_DISALLOWED_DISABLE, 5031 QCA_IGNORE_ASSOC_DISALLOWED_ENABLE 5032 }; 5033 5034 /* Attributes for data used by 5035 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and 5036 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands. 5037 */ 5038 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES\ 5039 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES 5040 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL\ 5041 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL 5042 #define QCA_WLAN_VENDOR_ATTR_ROAM_REASON\ 5043 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON 5044 enum qca_wlan_vendor_attr_config { 5045 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0, 5046 /* 5047 * Unsigned 32-bit value to set the DTIM period. 5048 * Whether the wifi chipset wakes at every dtim beacon or a multiple of 5049 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3 5050 * DTIM beacons. 5051 */ 5052 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1, 5053 /* 5054 * Unsigned 32-bit value to set the wifi_iface stats averaging factor 5055 * used to calculate statistics like average the TSF offset or average 5056 * number of frame leaked. 5057 * For instance, upon Beacon frame reception: 5058 * current_avg = ((beacon_TSF - TBTT) * factor + previous_avg * (0x10000 - factor) ) / 0x10000 5059 * For instance, when evaluating leaky APs: 5060 * current_avg = ((num frame received within guard time) * factor + previous_avg * (0x10000 - factor)) / 0x10000 5061 */ 5062 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2, 5063 /* 5064 * Unsigned 32-bit value to configure guard time, i.e., when 5065 * implementing IEEE power management based on frame control PM bit, how 5066 * long the driver waits before shutting down the radio and after 5067 * receiving an ACK frame for a Data frame with PM bit set. 5068 */ 5069 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3, 5070 /* Unsigned 32-bit value to change the FTM capability dynamically */ 5071 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4, 5072 /* Unsigned 16-bit value to configure maximum TX rate dynamically */ 5073 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5, 5074 /* 5075 * Unsigned 32-bit value to configure the number of continuous 5076 * Beacon Miss which shall be used by the firmware to penalize 5077 * the RSSI. 5078 */ 5079 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6, 5080 /* 5081 * Unsigned 8-bit value to configure the channel avoidance indication 5082 * behavior. Firmware to send only one indication and ignore duplicate 5083 * indications when set to avoid multiple Apps wakeups. 5084 */ 5085 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7, 5086 /* 5087 * 8-bit unsigned value to configure the maximum TX MPDU for 5088 * aggregation. 5089 */ 5090 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8, 5091 /* 5092 * 8-bit unsigned value to configure the maximum RX MPDU for 5093 * aggregation. 5094 */ 5095 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9, 5096 /* 5097 * 8-bit unsigned value to configure the Non aggregate/11g sw 5098 * retry threshold (0 disable, 31 max). 5099 */ 5100 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10, 5101 /* 5102 * 8-bit unsigned value to configure the aggregate sw 5103 * retry threshold (0 disable, 31 max). 5104 */ 5105 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11, 5106 /* 5107 * 8-bit unsigned value to configure the MGMT frame 5108 * retry threshold (0 disable, 31 max). 5109 */ 5110 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12, 5111 /* 5112 * 8-bit unsigned value to configure the CTRL frame 5113 * retry threshold (0 disable, 31 max). 5114 */ 5115 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13, 5116 /* 5117 * 8-bit unsigned value to configure the propagation delay for 5118 * 2G/5G band (0~63, units in us) 5119 */ 5120 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14, 5121 /* 5122 * Unsigned 32-bit value to configure the number of unicast TX fail 5123 * packet count. The peer is disconnected once this threshold is 5124 * reached. 5125 */ 5126 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15, 5127 /* 5128 * Attribute used to set scan default IEs to the driver. 5129 * 5130 * These IEs can be used by scan operations that will be initiated by 5131 * the driver/firmware. 5132 * 5133 * For further scan requests coming to the driver, these IEs should be 5134 * merged with the IEs received along with scan request coming to the 5135 * driver. If a particular IE is present in the scan default IEs but not 5136 * present in the scan request, then that IE should be added to the IEs 5137 * sent in the Probe Request frames for that scan request. 5138 */ 5139 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16, 5140 /* Unsigned 32-bit attribute for generic commands */ 5141 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17, 5142 /* Unsigned 32-bit value attribute for generic commands */ 5143 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18, 5144 /* Unsigned 32-bit data attribute for generic command response */ 5145 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19, 5146 /* 5147 * Unsigned 32-bit length attribute for 5148 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 5149 */ 5150 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20, 5151 /* 5152 * Unsigned 32-bit flags attribute for 5153 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 5154 */ 5155 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21, 5156 /* 5157 * Unsigned 32-bit, defining the access policy. 5158 * See enum qca_access_policy. Used with 5159 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. 5160 */ 5161 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22, 5162 /* 5163 * Sets the list of full set of IEs for which a specific access policy 5164 * has to be applied. Used along with 5165 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access. 5166 * Zero length payload can be used to clear this access constraint. 5167 */ 5168 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23, 5169 /* 5170 * Unsigned 32-bit, specifies the interface index (netdev) for which the 5171 * corresponding configurations are applied. If the interface index is 5172 * not specified, the configurations are attributed to the respective 5173 * wiphy. 5174 */ 5175 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24, 5176 /* 5177 * 8-bit unsigned value to trigger QPower: 5178 * 1-Enable, 0-Disable 5179 */ 5180 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25, 5181 /* 5182 * 8-bit unsigned value to configure the driver and below layers to 5183 * ignore the assoc disallowed set by APs while connecting 5184 * 1-Ignore, 0-Don't ignore 5185 */ 5186 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26, 5187 /* 5188 * 32-bit unsigned value to trigger antenna diversity features: 5189 * 1-Enable, 0-Disable 5190 */ 5191 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27, 5192 /* 32-bit unsigned value to configure specific chain antenna */ 5193 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28, 5194 /* 5195 * 32-bit unsigned value to trigger cycle selftest 5196 * 1-Enable, 0-Disable 5197 */ 5198 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29, 5199 /* 5200 * 32-bit unsigned to configure the cycle time of selftest 5201 * the unit is micro-second 5202 */ 5203 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30, 5204 /* 32-bit unsigned value to set reorder timeout for AC_VO */ 5205 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31, 5206 /* 32-bit unsigned value to set reorder timeout for AC_VI */ 5207 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32, 5208 /* 32-bit unsigned value to set reorder timeout for AC_BE */ 5209 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33, 5210 /* 32-bit unsigned value to set reorder timeout for AC_BK */ 5211 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34, 5212 /* 6-byte MAC address to point out the specific peer */ 5213 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC = 35, 5214 /* Backward compatibility with the original name */ 5215 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 5216 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC, 5217 /* 32-bit unsigned value to set window size for specific peer */ 5218 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36, 5219 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */ 5220 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37, 5221 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */ 5222 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38, 5223 /* 5224 * 32-bit unsigned value to configure 5 or 10 MHz channel width for 5225 * station device while in disconnect state. The attribute use the 5226 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz, 5227 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or 5228 * 10 MHz channel width, the station will not connect to a BSS using 20 5229 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to 5230 * clear this constraint. 5231 */ 5232 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39, 5233 /* 5234 * 32-bit unsigned value to configure the propagation absolute delay 5235 * for 2G/5G band (units in us) 5236 */ 5237 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40, 5238 /* 32-bit unsigned value to set probe period */ 5239 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41, 5240 /* 32-bit unsigned value to set stay period */ 5241 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42, 5242 /* 32-bit unsigned value to set snr diff */ 5243 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43, 5244 /* 32-bit unsigned value to set probe dwell time */ 5245 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44, 5246 /* 32-bit unsigned value to set mgmt snr weight */ 5247 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45, 5248 /* 32-bit unsigned value to set data snr weight */ 5249 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46, 5250 /* 32-bit unsigned value to set ack snr weight */ 5251 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47, 5252 /* 5253 * 32-bit unsigned value to configure the listen interval. 5254 * This is in units of beacon intervals. This configuration alters 5255 * the negotiated listen interval with the AP during the connection. 5256 * It is highly recommended to configure a value less than or equal to 5257 * the one negotiated during the association. Configuring any greater 5258 * value can have adverse effects (frame loss, AP disassociating STA, 5259 * etc.). 5260 */ 5261 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48, 5262 /* 5263 * 8 bit unsigned value that is set on an AP/GO virtual interface to 5264 * disable operations that would cause the AP/GO to leave its operating 5265 * channel. 5266 * 5267 * This will restrict the scans to the AP/GO operating channel and the 5268 * channels of the other band, if DBS is supported.A STA/CLI interface 5269 * brought up after this setting is enabled, will be restricted to 5270 * connecting to devices only on the AP/GO interface's operating channel 5271 * or on the other band in DBS case. P2P supported channel list is 5272 * modified, to only include AP interface's operating-channel and the 5273 * channels of the other band if DBS is supported. 5274 * 5275 * These restrictions are only applicable as long as the AP/GO interface 5276 * is alive. If the AP/GO interface is brought down then this 5277 * setting/restriction is forgotten. 5278 * 5279 * If this variable is set on an AP/GO interface while a multi-channel 5280 * concurrent session is active, it has no effect on the operation of 5281 * the current interfaces, other than restricting the scan to the AP/GO 5282 * operating channel and the other band channels if DBS is supported. 5283 * However, if the STA is brought down and restarted then the new STA 5284 * connection will either be formed on the AP/GO channel or on the 5285 * other band in a DBS case. This is because of the scan being 5286 * restricted on these channels as mentioned above. 5287 * 5288 * 1-Disable offchannel operations, 0-Enable offchannel operations. 5289 */ 5290 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49, 5291 5292 /* 5293 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload) 5294 * on an interface. 5295 * 1 - Enable , 0 - Disable. 5296 */ 5297 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50, 5298 5299 /* 5300 * 8 bit unsigned value to globally enable/disable scan 5301 * 1 - Enable, 0 - Disable. 5302 */ 5303 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51, 5304 5305 /* 8-bit unsigned value to set the total beacon miss count */ 5306 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52, 5307 5308 /* 5309 * Unsigned 32-bit value to configure the number of continuous 5310 * Beacon Miss which shall be used by the firmware to penalize 5311 * the RSSI for BTC. 5312 */ 5313 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53, 5314 5315 /* 5316 * 8-bit unsigned value to configure the driver and below layers to 5317 * enable/disable all fils features. 5318 * 0-enable, 1-disable 5319 */ 5320 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54, 5321 5322 /* 16-bit unsigned value to configure the level of WLAN latency 5323 * module. See enum qca_wlan_vendor_attr_config_latency_level. 5324 */ 5325 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55, 5326 5327 /* 5328 * 8-bit unsigned value indicating the driver to use the RSNE as-is from 5329 * the connect interface. Exclusively used for the scenarios where the 5330 * device is used as a test bed device with special functionality and 5331 * not recommended for production. This helps driver to not validate the 5332 * RSNE passed from user space and thus allow arbitrary IE data to be 5333 * used for testing purposes. 5334 * 1-enable, 0-disable. 5335 * Applications set/reset this configuration. If not reset, this 5336 * parameter remains in use until the driver is unloaded. 5337 */ 5338 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56, 5339 5340 /* 5341 * 8-bit unsigned value to trigger green Tx power saving. 5342 * 1-Enable, 0-Disable 5343 */ 5344 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57, 5345 5346 /* 5347 * Attribute to configure disconnect IEs to the driver. 5348 * This carries an array of unsigned 8-bit characters. 5349 * 5350 * If this is configured, driver shall fill the IEs in disassoc/deauth 5351 * frame. 5352 * These IEs are expected to be considered only for the next 5353 * immediate disconnection (disassoc/deauth frame) originated by 5354 * the DUT, irrespective of the entity (user space/driver/firmware) 5355 * triggering the disconnection. 5356 * The host drivers are not expected to use the IEs set through 5357 * this interface for further disconnections after the first immediate 5358 * disconnection initiated post the configuration. 5359 * If the IEs are also updated through cfg80211 interface (after the 5360 * enhancement to cfg80211_disconnect), host driver is expected to 5361 * take the union of IEs from both of these interfaces and send in 5362 * further disassoc/deauth frames. 5363 */ 5364 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58, 5365 5366 /* 8-bit unsigned value for ELNA bypass. 5367 * 0 - Disable eLNA bypass. 5368 * 1 - Enable eLNA bypass. 5369 * 2 - Reset eLNA bypass configuration, the driver should 5370 * revert to the default configuration of eLNA bypass. 5371 */ 5372 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59, 5373 5374 /* 8-bit unsigned value. This attribute enables/disables the host driver 5375 * to send the Beacon Report response with failure reason for the 5376 * scenarios where STA cannot honor the Beacon report request from AP. 5377 * 1-Enable, 0-Disable. 5378 */ 5379 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60, 5380 5381 /* 8-bit unsigned value. This attribute enables/disables the host driver 5382 * to send roam reason information in the reassociation request to the 5383 * AP. 1-Enable, 0-Disable. 5384 */ 5385 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61, 5386 5387 /* 32-bit unsigned value to configure different PHY modes to the 5388 * driver/firmware. The possible values are defined in 5389 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to 5390 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting 5391 * the driver. 5392 */ 5393 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62, 5394 5395 /* 8-bit unsigned value to configure the maximum supported channel width 5396 * for STA mode. If this value is configured when STA is in connected 5397 * state, it should not exceed the negotiated channel width. If it is 5398 * configured when STA is in disconnected state, the configured value 5399 * will take effect for the next immediate connection. 5400 * This configuration can be sent inside 5401 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum 5402 * supported channel width per-MLO link. 5403 * 5404 * This uses values defined in enum nl80211_chan_width. 5405 */ 5406 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63, 5407 5408 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment. 5409 * This attribute is only applicable for STA mode. When dynamic 5410 * bandwidth adjustment is disabled, STA will use static channel width 5411 * the value of which is negotiated during connection. 5412 * 1-enable (default), 0-disable 5413 */ 5414 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64, 5415 5416 /* 8-bit unsigned value to configure the maximum number of subframes of 5417 * TX MSDU for aggregation. Possible values are 0-31. When set to 0, 5418 * it is decided by hardware. 5419 */ 5420 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65, 5421 5422 /* 8-bit unsigned value to configure the maximum number of subframes of 5423 * RX MSDU for aggregation. Possible values are 0-31. When set to 0, 5424 * it is decided by hardware. 5425 */ 5426 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66, 5427 5428 /* 8-bit unsigned value. This attribute is used to dynamically 5429 * enable/disable the LDPC capability of the device. When configured in 5430 * the disconnected state, the updated configuration will be considered 5431 * for the immediately following connection attempt. If this 5432 * configuration is modified while the device is in the connected state, 5433 * the LDPC TX will be updated with this configuration immediately, 5434 * while the LDPC RX configuration update will take place starting from 5435 * the subsequent association attempt. 5436 * 1-Enable, 0-Disable. 5437 */ 5438 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67, 5439 5440 /* 8-bit unsigned value. This attribute is used to dynamically 5441 * enable/disable the TX STBC capability of the device. When configured 5442 * in the disconnected state, the updated configuration will be 5443 * considered for the immediately following connection attempt. If the 5444 * connection is formed with TX STBC enabled and if this configuration 5445 * is disabled during that association, the TX will be impacted 5446 * immediately. Further connection attempts will disable TX STBC. 5447 * However, enabling the TX STBC for a connected session with disabled 5448 * capability is not allowed and will fail. 5449 * 1-Enable, 0-Disable. 5450 */ 5451 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68, 5452 5453 /* 8-bit unsigned value. This attribute is used to dynamically 5454 * enable/disable the RX STBC capability of the device. When configured 5455 * in the disconnected state, the updated configuration will be 5456 * considered for the immediately following connection attempt. If the 5457 * configuration is modified in the connected state, there will be no 5458 * impact for the current association, but further connection attempts 5459 * will use the updated configuration. 5460 * 1-Enable, 0-Disable. 5461 */ 5462 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69, 5463 5464 /* 8-bit unsigned value. This attribute is used to dynamically configure 5465 * the number of spatial streams. When configured in the disconnected 5466 * state, the updated configuration will be considered for the 5467 * immediately following connection attempt. If the NSS is updated after 5468 * the connection, the updated NSS value is notified to the peer using 5469 * the Operating Mode Notification/Spatial Multiplexing Power Save 5470 * frame. The updated NSS value after the connection shall not be 5471 * greater than the one negotiated during the connection. Any such 5472 * higher value configuration shall be returned with a failure. 5473 * Only symmetric NSS configuration (such as 2X2 or 1X1) can be done 5474 * using this attribute. QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and 5475 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attributes shall be used to 5476 * configure the asymmetric NSS configuration (such as 1X2). 5477 */ 5478 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70, 5479 5480 /* 8-bit unsigned value to configure Optimized Power Management mode: 5481 * Modes are defined by enum qca_wlan_vendor_opm_mode. 5482 * 5483 * This attribute shall be configured along with 5484 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and 5485 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes 5486 * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED. 5487 */ 5488 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71, 5489 5490 /* 8-bit unsigned value. This attribute takes the QOS/access category 5491 * value represented by the enum qca_wlan_ac_type and expects the driver 5492 * to upgrade the UDP frames to this QOS. The value of QCA_WLAN_AC_ALL 5493 * is invalid for this attribute. This will override the DSCP value 5494 * configured in the frame with the intention to only upgrade the QOS. 5495 * That said, it is not intended to downgrade the QOS for the frames. 5496 * Set the value to 0 ( corresponding to BE ) if the QOS upgrade needs 5497 * to disable. 5498 * 5499 * If only UDP frames of BE or BK access category needs to be upgraded 5500 * without changing the access category of VO or VI UDP frames, refer to 5501 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK. 5502 * 5503 * This attribute is not recommended to be used as it blindly forces all 5504 * UDP packets to a higher access category which could impact the 5505 * traffic pattern of all apps using UDP and can cause unknown behavior. 5506 */ 5507 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72, 5508 5509 /* 8-bit unsigned value. This attribute is used to dynamically configure 5510 * the number of chains to be used for transmitting data. This 5511 * configuration is allowed only when in connected state and will be 5512 * effective until disconnected. The driver rejects this configuration 5513 * if the number of spatial streams being used in the current connection 5514 * cannot be supported by this configuration. 5515 */ 5516 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73, 5517 5518 /* 8-bit unsigned value. This attribute is used to dynamically configure 5519 * the number of chains to be used for receiving data. This 5520 * configuration is allowed only when in connected state and will be 5521 * effective until disconnected. The driver rejects this configuration 5522 * if the number of spatial streams being used in the current connection 5523 * cannot be supported by this configuration. 5524 */ 5525 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74, 5526 5527 /* 8-bit unsigned value to configure ANI setting type. 5528 * See &enum qca_wlan_ani_setting for possible values. 5529 */ 5530 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75, 5531 /* 32-bit signed value to configure ANI level. This is used when 5532 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED. 5533 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO 5534 * is invalid, the driver will return a failure. 5535 */ 5536 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76, 5537 5538 /* 8-bit unsigned value. This attribute is used to dynamically configure 5539 * the number of spatial streams used for transmitting the data. When 5540 * configured in the disconnected state, the configured value will 5541 * be considered for the following connection attempt. 5542 * If the NSS is updated after the connection, the updated NSS value 5543 * is notified to the peer using the Operating Mode Notification/Spatial 5544 * Multiplexing Power Save frame. 5545 * The TX NSS value configured after the connection shall not be greater 5546 * than the value negotiated during the connection. Any such higher 5547 * value configuration shall be treated as invalid configuration by 5548 * the driver. This attribute shall be configured along with 5549 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric 5550 * configuration (such as 2X2 or 1X1) or the asymmetric 5551 * configuration (such as 1X2). 5552 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along 5553 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver 5554 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS. 5555 */ 5556 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77, 5557 5558 /* 8-bit unsigned value. This attribute is used to dynamically configure 5559 * the number of spatial streams used for receiving the data. When 5560 * configured in the disconnected state, the configured value will 5561 * be considered for the following connection attempt. 5562 * If the NSS is updated after the connection, the updated NSS value 5563 * is notified to the peer using the Operating Mode Notification/Spatial 5564 * Multiplexing Power Save frame. 5565 * The RX NSS value configured after the connection shall not be greater 5566 * than the value negotiated during the connection. Any such higher 5567 * value configuration shall be treated as invalid configuration by 5568 * the driver. This attribute shall be configured along with 5569 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric 5570 * configuration (such as 2X2 or 1X1) or the asymmetric 5571 * configuration (such as 1X2). 5572 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along 5573 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver 5574 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS. 5575 */ 5576 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78, 5577 5578 /* 5579 * 8-bit unsigned value. This attribute, when set, indicates whether the 5580 * specified interface is the primary STA interface when there are more 5581 * than one STA interfaces concurrently active. 5582 * 5583 * This configuration helps the firmware/hardware to support certain 5584 * features (e.g., roaming) on this primary interface, if the same 5585 * cannot be supported on the concurrent STA interfaces simultaneously. 5586 * 5587 * This configuration is only applicable for a single STA interface on 5588 * a device and gives the priority for it only over other concurrent STA 5589 * interfaces. 5590 * 5591 * If the device is a multi wiphy/soc, this configuration applies to a 5592 * single STA interface across the wiphys. 5593 * 5594 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA) 5595 */ 5596 QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79, 5597 5598 /* 5599 * 8-bit unsigned value. This attribute can be used to configure the 5600 * driver to enable/disable FT-over-DS feature. Possible values for 5601 * this attribute are 1-Enable and 0-Disable. 5602 */ 5603 QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80, 5604 5605 /* 5606 * 8-bit unsigned value. This attribute can be used to configure the 5607 * firmware to enable/disable ARP/NS offload feature. Possible values 5608 * for this attribute are 0-Disable and 1-Enable. 5609 * 5610 * This attribute is only applicable for STA/P2P-Client interface, 5611 * and is optional, default behavior is APR/NS offload Enable. 5612 * 5613 * This attribute can be set in disconncted and connected state, and 5614 * will restore to default behavior if interface is closed. 5615 */ 5616 QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81, 5617 5618 /* 5619 * 8-bit unsigned value. This attribute can be used to configure the 5620 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values 5621 * for this attribute are defined in the enum qca_dbam_config. 5622 */ 5623 QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83, 5624 5625 /* 8-bit unsigned value. This attribute takes the QoS/access category 5626 * value represented by the enum qca_wlan_ac_type and expects the driver 5627 * to upgrade the UDP frames of BE or BK access category to this access 5628 * category. This attribute will not modify UDP frames of VO or VI 5629 * access category. The value of QCA_WLAN_AC_ALL is invalid for this 5630 * attribute. 5631 * 5632 * This will override the DSCP value configured in the frame with the 5633 * intention to only upgrade the access category. That said, it is not 5634 * intended to downgrade the access category for the frames. 5635 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be 5636 * disabled, as BK is of the lowest priority and an upgrade to it does 5637 * not result in any changes for the frames. 5638 * 5639 * This attribute behavior is similar to 5640 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that 5641 * only UDP frames of BE or BK access category are upgraded and not 5642 * UDP frames of VI or VO access category. 5643 * 5644 * This attribute is not recommended to be used as it blindly forces all 5645 * UDP packets of BE or BK access category to a higher access category 5646 * which could impact the traffic pattern of all apps using UDP and can 5647 * cause unknown behavior. 5648 */ 5649 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84, 5650 5651 /* 8-bit unsigned value to configure the driver to enable/disable the 5652 * periodic sounding for Tx beamformer functionality. The default 5653 * behavior uses algorithm to do sounding based on packet stats. 5654 * 5655 * 0 - Default behavior. 5656 * 1 - Enable the periodic sounding for Tx beamformer. 5657 * This attribute is used for testing purposes. 5658 */ 5659 QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85, 5660 5661 /* 8-bit unsigned value, whenever wifi calling (wfc) begin or end, 5662 * Userspace sends this information to driver/firmware to configure 5663 * wfc state. Driver/Firmware uses this information to 5664 * optimize power savings, rate adaption, roaming, etc. 5665 * 5666 * 1 - wfc is on. 5667 * 0 - wfc is off. 5668 */ 5669 QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86, 5670 5671 /* 8-bit unsigned value to configure the driver to enable/disable the 5672 * EHT EML capability in management frame EHT capabilities. 5673 * 1 - Enable, 0 - Disable. 5674 */ 5675 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87, 5676 5677 /* 8-bit unsigned value to configure the driver with EHT MLO max 5678 * simultaneous links to be used for MLO connection. 5679 * The range of the value is 0 to 14. 5680 */ 5681 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88, 5682 5683 /* 8-bit unsigned value to configure the driver with EHT MLO maximum 5684 * number of links to be used for MLO connection. 5685 * The range of the value is 1 to 16. 5686 */ 5687 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89, 5688 5689 /* 8-bit unsigned value to configure the driver with EHT MLO mode. 5690 * Uses enum qca_wlan_eht_mlo_mode values. 5691 */ 5692 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90, 5693 5694 /* Nested attribute with frequencies in u32 attributes to configure a 5695 * list of allowed 20 MHz channel center frequencies in MHz for AP 5696 * operation. Whenever performing a channel selection operation, the 5697 * driver shall generate a new list based on this provided list by 5698 * filtering out channels that cannot be used at that time due to 5699 * regulatory or other constraints. The resulting list is used as the 5700 * list of all allowed channels, i.e., operation on any channel that is 5701 * not included is not allowed, whenever performing operations like ACS 5702 * and DFS. 5703 * 5704 * Userspace shall configure this before starting the AP and the 5705 * configuration is valid only from the next BSS start and until the 5706 * BSS is stopped. The driver shall clear this configuration when the 5707 * AP is stopped and fall back to the default behavior for subsequent 5708 * AP operation. 5709 * 5710 * The default behavior when this configuration is not applicable is the 5711 * driver can choose any of the channels supported by the hardware 5712 * except the channels that cannot be used due to regulatory or other 5713 * constraints. 5714 * 5715 * The driver shall reject this configuration if done after the AP is 5716 * started. This attribute can be used to specify user's choice of 5717 * frequencies and static puncture channel list, etc. 5718 */ 5719 QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91, 5720 5721 /* Nested attribute to indicate EHT MLO links to be forced active. 5722 * It contains link MAC address attributes. These nested attributes are 5723 * of the type NL80211_ATTR_MAC and are used to force enabling of the 5724 * MLO links corresponding to the indicated link MAC addresses. 5725 * Subsequently, the links corresponding to the link MAC addresses that 5726 * are not indicated are forced inactive. 5727 */ 5728 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92, 5729 5730 /* 8-bit unsigned value to configure EMLSR mode entry or exit. 5731 * Uses enum qca_wlan_emlsr_mode values. 5732 */ 5733 QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93, 5734 5735 /* 8-bit unsigned value. This attribute is used to dynamically 5736 * enable/suspend trigger based UL MU transmission. 5737 * This is supported in STA mode and the device sends Operating 5738 * Mode Indication to inform the change as described in 5739 * IEEE Std 802.11ax-2021, 26.9. 5740 * 5741 * This attribute can be configured when the STA is associated 5742 * to an AP and the configuration is maintained until the current 5743 * association terminates. 5744 * 5745 * By default all UL MU transmissions are enabled. 5746 * 5747 * Uses enum qca_ul_mu_config values. 5748 */ 5749 QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95, 5750 5751 /* 8-bit unsigned value. Optionally specified along with 5752 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected 5753 * state. This configuration is applicable only for the current 5754 * connection. This configuration not allowed in disconnected state. 5755 * This configuration can be sent inside 5756 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum 5757 * supported channel width update type per-MLO link. 5758 * 5759 * valid values: 5760 * 0 - The maximum allowed bandwidth change is applicable for both Tx 5761 * and Rx paths. The driver shall conduct OMI operation as defined 5762 * in 26.9 (Operating mode indication) or OMN operation as 5763 * defined in 11.40 (Notification of operating mode 5764 * changes) in IEEE P802.11-REVme/D2.0 with AP to indicate the 5765 * change in the maximum allowed operating bandwidth. 5766 * 1 - Limit the change in maximum allowed bandwidth only to Tx path. 5767 * In this case the driver doesn't need to conduct OMI/OMN 5768 * operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is 5769 * expected to be less than the current connection maximum 5770 * negotiated bandwidth. 5771 * For example: Negotiated maximum bandwidth is 160 MHz and the new 5772 * maximum bandwidth configured is 80 MHz, now the driver limits 5773 * the maximum bandwidth to 80 MHz only in the Tx path. 5774 */ 5775 QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96, 5776 5777 /* 8-bit unsigned value to set EPCS (Emergency Preparedness 5778 * Communications Service) feature capability 5779 * 1 - Enable, 0 - Disable. 5780 * 5781 * This configuration is used for testing purposes. 5782 */ 5783 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97, 5784 5785 /* 8-bit unsigned value to enable/disable EPCS priority access 5786 * 1 - Enable, 0 - Disable. 5787 * The EPCS priority access shall be enabled only when EPCS feature 5788 * capability is also enabled (see 5789 * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY). 5790 * 5791 * This configuration is used for testing purposes. 5792 */ 5793 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98, 5794 5795 /* 8-bit unsigned value. Used to specify the MLO link ID of a link 5796 * that is being configured. This attribute must be included in each 5797 * record nested inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS, and 5798 * may be included without nesting to indicate the link that is the 5799 * target of other configuration attributes. 5800 */ 5801 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99, 5802 5803 /* Array of nested links each identified by 5804 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in 5805 * enum qca_wlan_vendor_attr_config, explicit documentation shall be 5806 * added for the attributes in enum qca_wlan_vendor_attr_config to 5807 * support per-MLO link configuration through 5808 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS. 5809 * 5810 * Userspace can configure a single link or multiple links with this 5811 * attribute by nesting the corresponding configuration attributes and 5812 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link. 5813 * 5814 * Userspace can fetch the configuration attribute values for a single 5815 * link or multiple links with this attribute by nesting the 5816 * corresponding configuration attributes and 5817 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link. 5818 * 5819 * For STA interface, this attribute is applicable only in connected 5820 * state when the current connection is MLO capable. The valid values of 5821 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the 5822 * connected AP MLD links. 5823 * 5824 * For AP interface, this configuration applicable only after adding 5825 * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the 5826 * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link 5827 * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to 5828 * the AP interface. 5829 */ 5830 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100, 5831 5832 /* 16-bit unsigned value to configure power save inactivity timeout in 5833 * milliseconds. 5834 * 5835 * STA enters into power save mode (PM=1) after TX/RX inactivity of time 5836 * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO. 5837 * 5838 * This attribute shall be configured along with 5839 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when 5840 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT 5841 * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode. 5842 */ 5843 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101, 5844 5845 /* 16-bit unsigned value to configure speculative wake interval in 5846 * milliseconds. 5847 * 5848 * STA speculatively wakes up to look for buffered data by AP at 5849 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after 5850 * entering into power save. If configured zero, STA wakes up at 5851 * upcoming DTIM beacon. 5852 * 5853 * This attribute shall be configured along with 5854 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and 5855 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT 5856 * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode. 5857 */ 5858 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102, 5859 5860 /* 5861 * 16-bit unsigned value to configure TX max A-MPDU count. 5862 * 5863 * For STA interface, this attribute is applicable only in connected 5864 * state, peer MAC address is not required to be provided. 5865 * 5866 * For AP interface, this attribute is applicable only in started 5867 * state and one of the associated peer STAs must be specified with 5868 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. If this is for an ML 5869 * association, the peer MAC address provided is the link address of 5870 * the non-AP MLD. 5871 * 5872 * This attribute runtime configures the TX maximum aggregation size. 5873 * The value must be in range of 1 to BA window size for the specific 5874 * peer. 5875 */ 5876 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_AMPDU_CNT = 103, 5877 5878 /* 5879 * 8-bit unsigned value to configure TID-to-link mapping negotiation 5880 * type. 5881 * Uses enum qca_wlan_ttlm_negotiation_support values. 5882 * 5883 * This value applies to the complete AP/non-AP MLD interface, and the 5884 * MLD advertises it within the Basic Multi-Link element in the 5885 * association frames. If a new value is configured during an active 5886 * connection, it will take effect in the subsequent associations and 5887 * is not reset during disconnection. 5888 * 5889 * This attribute is used for testing purposes. 5890 */ 5891 QCA_WLAN_VENDOR_ATTR_CONFIG_TTLM_NEGOTIATION_SUPPORT = 104, 5892 5893 /* 8-bit unsigned value 5894 * 5895 * This attribute configures a traffic shaping mode 5896 * applied during coex scenarios. 5897 * By default all coex traffic shaping modes are enabled, 5898 * i.e., shape WLAN traffic based on coex traffic pattern and priority. 5899 * To shape traffic, STA may enter in power save mode 5900 * and AP may send CTS-to-self frame. 5901 * 5902 * Uses enum qca_coex_traffic_shaping_mode values. 5903 */ 5904 QCA_WLAN_VENDOR_ATTR_CONFIG_COEX_TRAFFIC_SHAPING_MODE = 105, 5905 5906 /* 8-bit unsigned value to configure BTM support. 5907 * 5908 * The attribute is applicable only for STA interface. Uses enum 5909 * qca_wlan_btm_support values. This configuration is not allowed in 5910 * connected state. 5911 */ 5912 QCA_WLAN_VENDOR_ATTR_CONFIG_BTM_SUPPORT = 107, 5913 5914 /* keep last */ 5915 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST, 5916 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX = 5917 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1, 5918 }; 5919 5920 /** 5921 * enum qca_ul_mu_config - UL MU configuration 5922 * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended 5923 * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled 5924 */ 5925 enum qca_ul_mu_config { 5926 QCA_UL_MU_SUSPEND = 0, 5927 QCA_UL_MU_ENABLE = 1, 5928 }; 5929 5930 /** 5931 * enum qca_dbam_config - Specifies DBAM config mode 5932 * @QCA_DBAM_DISABLE: Firmware disables DBAM 5933 * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when 5934 * internal criteria are met. 5935 * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully. 5936 */ 5937 enum qca_dbam_config { 5938 QCA_DBAM_DISABLE = 0, 5939 QCA_DBAM_ENABLE = 1, 5940 QCA_DBAM_FORCE_ENABLE = 2, 5941 }; 5942 5943 /** 5944 * enum qca_wlan_vendor_attr_wifi_logger_start - Enum for wifi logger starting 5945 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID: Invalid attribute 5946 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID: Ring ID 5947 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL: Verbose level 5948 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS: Flag 5949 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST: Last value 5950 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX: Max value 5951 */ 5952 enum qca_wlan_vendor_attr_wifi_logger_start { 5953 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0, 5954 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1, 5955 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2, 5956 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3, 5957 /* keep last */ 5958 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST, 5959 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_MAX = 5960 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1, 5961 }; 5962 5963 /* 5964 * enum qca_wlan_vendor_attr_wifi_logger_get_ring_data - Get ring data 5965 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID: Invalid attribute 5966 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID: Ring ID 5967 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST: Last value 5968 * @QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX: Max value 5969 */ 5970 enum qca_wlan_vendor_attr_wifi_logger_get_ring_data { 5971 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_INVALID = 0, 5972 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_ID = 1, 5973 /* keep last */ 5974 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST, 5975 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_MAX = 5976 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_GET_RING_DATA_AFTER_LAST - 1, 5977 }; 5978 5979 #ifdef WLAN_FEATURE_OFFLOAD_PACKETS 5980 /** 5981 * enum wlan_offloaded_packets_control - control commands 5982 * @WLAN_START_OFFLOADED_PACKETS: start offloaded packets 5983 * @WLAN_STOP_OFFLOADED_PACKETS: stop offloaded packets 5984 * 5985 */ 5986 enum wlan_offloaded_packets_control { 5987 WLAN_START_OFFLOADED_PACKETS = 1, 5988 WLAN_STOP_OFFLOADED_PACKETS = 2 5989 }; 5990 5991 /** 5992 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication 5993 * 5994 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to 5995 * the offloaded data. 5996 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded 5997 * data. 5998 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload 5999 * indication. 6000 */ 6001 enum qca_wlan_vendor_attr_data_offload_ind { 6002 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0, 6003 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION, 6004 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL, 6005 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT, 6006 6007 /* keep last */ 6008 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST, 6009 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX = 6010 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1 6011 }; 6012 6013 /** 6014 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command 6015 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS. 6016 */ 6017 enum qca_wlan_vendor_attr_offloaded_packets { 6018 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0, 6019 /* Takes valid value from the enum 6020 * qca_wlan_offloaded_packets_sending_control 6021 * Unsigned 32-bit value 6022 */ 6023 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL, 6024 /* Unsigned 32-bit value */ 6025 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID, 6026 /* array of u8 len: Max packet size */ 6027 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA, 6028 /* 6-byte MAC address used to represent source MAC address */ 6029 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR, 6030 /* 6-byte MAC address used to represent destination MAC address */ 6031 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR, 6032 /* Unsigned 32-bit value, in milli seconds */ 6033 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD, 6034 /* This optional unsigned 16-bit attribute is used for specifying 6035 * ethernet protocol type. If not specified ethertype defaults to IPv4. 6036 */ 6037 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE, 6038 6039 /* keep last */ 6040 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST, 6041 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX = 6042 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1, 6043 }; 6044 6045 #endif /* WLAN_FEATURE_OFFLOAD_PACKETS */ 6046 6047 /** 6048 * enum qca_wlan_rssi_monitoring_control - rssi control commands 6049 * @QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID: invalid 6050 * @QCA_WLAN_RSSI_MONITORING_START: rssi monitoring start 6051 * @QCA_WLAN_RSSI_MONITORING_STOP: rssi monitoring stop 6052 */ 6053 enum qca_wlan_rssi_monitoring_control { 6054 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0, 6055 QCA_WLAN_RSSI_MONITORING_START, 6056 QCA_WLAN_RSSI_MONITORING_STOP, 6057 }; 6058 6059 /** 6060 * enum qca_wlan_vendor_attr_rssi_monitoring - rssi monitoring 6061 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID: Invalid 6062 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL: control 6063 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI: max rssi 6064 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI: min rssi 6065 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID: current bssid 6066 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI: current rssi 6067 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST: after last 6068 * @QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX: max 6069 */ 6070 enum qca_wlan_vendor_attr_rssi_monitoring { 6071 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0, 6072 6073 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL, 6074 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID, 6075 6076 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI, 6077 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI, 6078 6079 /* attributes to be used/received in callback */ 6080 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID, 6081 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI, 6082 6083 /* keep last */ 6084 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST, 6085 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX = 6086 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1, 6087 }; 6088 6089 /** 6090 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command 6091 * QCA_NL80211_VENDOR_SUBCMD_NDP. 6092 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID 6093 * @QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD: sub commands values in qca_wlan_ndp_sub_cmd 6094 * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID: 6095 * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID: indicates a service info 6096 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL: channel frequency in MHz 6097 * @QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR: Interface Discovery MAC 6098 * address 6099 * @QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR: Interface name on which NDP is being 6100 * created 6101 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY: CONFIG_SECURITY is deprecated, use 6102 * NCS_SK_TYPE/PMK/SCID instead 6103 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS: value for QoS 6104 * @QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO: app info 6105 * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID: NDP instance Id 6106 * @QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY: Array of instance Ids 6107 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE: initiator/responder NDP response 6108 * code: accept/reject 6109 * @QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR: NDI MAC address 6110 * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE: errors types returned by 6111 * driver 6112 * @QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE: value error values returned by 6113 * driver 6114 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG: Channel setup configuration 6115 * @QCA_WLAN_VENDOR_ATTR_NDP_CSID: Cipher Suite Shared Key Type 6116 * @QCA_WLAN_VENDOR_ATTR_NDP_PMK: PMK_INFO 6117 * @QCA_WLAN_VENDOR_ATTR_NDP_SCID: Security Context Identifier that contains the 6118 * PMKID 6119 * @QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE: passphrase 6120 * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME: service name 6121 * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON: bitmap indicating schedule 6122 * update: 6123 * BIT_0: NSS Update 6124 * BIT_1: Channel list update 6125 * @QCA_WLAN_VENDOR_ATTR_NDP_NSS: nss 6126 * @QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS: NUMBER NDP CHANNEL 6127 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH: CHANNEL BANDWIDTH: 6128 * 0:20 MHz, 6129 * 1:40 MHz, 6130 * 2:80 MHz, 6131 * 3:160 MHz 6132 * @QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO: Array of channel/band width 6133 * @QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR: IPv6 address used by NDP, 16 bytes array 6134 * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT: Unsigned 16-bit value indicating 6135 * transport port used by NDP. 6136 * @QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL: Unsigned 8-bit value indicating 6137 * protocol used by NDP and assigned by the Internet Assigned Numbers Authority 6138 * as per: www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml 6139 * @QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT: Unsigned 8-bit value indicating if 6140 * NDP remote peer supports NAN NDPE. 1:support 0:not support 6141 * @QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID: As per Wi-Fi Aware Specification v3.2 6142 * Service Id is the first 48 bits of the SHA-256 hash of the Service Name. 6143 * A lower-case representation of the Service Name shall be used to 6144 * calculate the Service ID. 6145 * Array of u8: length is 6 bytes 6146 * This attribute is used and optional for ndp indication. 6147 * @QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES: Unsigned 8-bit value for Cipher 6148 * Suite 6149 * This attribute is used and optional in ndp request, ndp response, ndp 6150 * indication, and ndp confirm. 6151 * This attribute is used to indicate the Capabilities field of Cipher Suite 6152 * Information attribute (CSIA) of NDP frames as defined in Wi-Fi Aware 6153 * Specification v4.0, 9.5.21.2, Table 122. 6154 * Firmware can accept or ignore any of the capability bits. 6155 * @QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED: Indicate if the GTK protection is 6156 * required for NDP. NLA_FLAG attribute. 6157 * This attribute can be used in ndp request, ndp response, ndp indication, and 6158 * ndp confirm. 6159 * GTK protection required is indicated in the NDPE attribute of NAN action 6160 * frame (NAF) during NDP negotiation as defined in Wi-Fi Aware Specification 6161 * v4.0, 9.5.16.2. 6162 * If the device and peer supports GTKSA and if GTK protection required bit is 6163 * set in NDPE IE, devices will share GTK to each other in SKDA of Data Path 6164 * Security Confirm and Data Path Security Install frames of NDP negotiation to 6165 * send and receive protected group addressed data frames from each other. 6166 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST: id after last valid attribute 6167 * @QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX: max value of this enum type 6168 */ 6169 enum qca_wlan_vendor_attr_ndp_params { 6170 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0, 6171 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD = 1, 6172 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID = 2, 6173 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID = 3, 6174 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL = 4, 6175 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR = 5, 6176 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR = 6, 6177 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY = 7, 6178 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS = 8, 6179 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO = 9, 6180 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID = 10, 6181 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY = 11, 6182 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE = 12, 6183 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR = 13, 6184 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE = 14, 6185 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE = 15, 6186 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG = 16, 6187 QCA_WLAN_VENDOR_ATTR_NDP_CSID = 17, 6188 QCA_WLAN_VENDOR_ATTR_NDP_PMK = 18, 6189 QCA_WLAN_VENDOR_ATTR_NDP_SCID = 19, 6190 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE = 20, 6191 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME = 21, 6192 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON = 22, 6193 QCA_WLAN_VENDOR_ATTR_NDP_NSS = 23, 6194 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS = 24, 6195 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH = 25, 6196 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO = 26, 6197 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27, 6198 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28, 6199 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29, 6200 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30, 6201 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31, 6202 QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32, 6203 QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33, 6204 6205 /* keep last */ 6206 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST, 6207 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX = 6208 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1, 6209 }; 6210 6211 /** 6212 * enum qca_wlan_ndp_sub_cmd - NDP sub commands types for 6213 * QCA_NL80211_VENDOR_SUBCMD_NDP. 6214 * @QCA_WLAN_VENDOR_ATTR_NDP_INVALID: invalid value 6215 * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE: Command to create a NAN 6216 * data path interface. 6217 * This command was initially designed to both create and start a NAN 6218 * data path interface. However, changes to Linux 5.12 no longer allow 6219 * interface creation via vendor commands. When the driver advertises 6220 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI 6221 * userspace must explicitly first create the interface using 6222 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command 6223 * to start the interface. 6224 * @QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE: command to delete a NAN 6225 * data path interface. 6226 * This command was initially designed to both stop and delete a NAN 6227 * data path interface. However, changes to Linux 5.12 no longer allow 6228 * interface deletion via vendor commands. When the driver advertises 6229 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI 6230 * userspace must explicitly delete the interface using 6231 * NL80211_CMD_DEL_INTERFACE after calling this command. 6232 * @QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE: response for above 6233 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST: respond to ndp session 6234 * @QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE: response for above 6235 * @QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST: initiate a ndp end 6236 * @QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE: response for above 6237 * @QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND: notify the peer about the end request 6238 * @QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND: confirm the ndp session is complete 6239 * @QCA_WLAN_VENDOR_ATTR_NDP_END_IND: indicate the peer about the end request 6240 * being received 6241 * @QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND: indicate the peer of schedule 6242 * update 6243 */ 6244 enum qca_wlan_ndp_sub_cmd { 6245 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0, 6246 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1, 6247 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2, 6248 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3, 6249 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4, 6250 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5, 6251 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6, 6252 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7, 6253 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8, 6254 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9, 6255 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10, 6256 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11, 6257 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12 6258 }; 6259 6260 /** 6261 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel 6262 * information. These attributes are sent as part of 6263 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following 6264 * attributes correspond to a single channel. 6265 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS: A bitmask (u16) 6266 * with flags specified in qca_wlan_vendor_channel_prop_flags_ext. 6267 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT: A bitmask (u16) 6268 * with flags specified in qca_wlan_vendor_channel_prop_flags_ext. 6269 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ: frequency 6270 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER: maximum 6271 * regulatory transmission power 6272 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER: maximum 6273 * transmission power 6274 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER: minimum 6275 * transmission power 6276 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID: regulatory 6277 * class id 6278 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN: maximum 6279 * antenna gain in dbm 6280 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0: vht segment 0 6281 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1: vht segment 1 6282 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0: Segment 0 6283 * center frequency in MHz. 6284 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0: vht 6285 * segment 0 in center freq in MHz. (this is the legacy alias) 6286 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1: Segment 1 6287 * center frequency in MHz. 6288 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1: vht 6289 * segment 1 in center freq in MHz. (this is the legacy alias) 6290 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES: 3-bits 6291 * flag indicating the AP power modes supported by the channel, as given by 6292 * enum qca_wlan_vendor_external_acs_chan_power_level. 6293 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR: Array of nested 6294 * attributes for each power mode. It takes attr as defined in enum 6295 * qca_wlan_vendor_external_acs_event_chan_power_info_attr. 6296 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1: 6297 * This indicates the overlapping 320 MHz center frequency in MHz, if the 6298 * given primary channel supports more than one 320 MHz channel bonding. 6299 * 6300 */ 6301 enum qca_wlan_vendor_external_acs_event_chan_info_attr { 6302 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0, 6303 6304 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1, 6305 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2, 6306 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3, 6307 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4, 6308 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5, 6309 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6, 6310 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7, 6311 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8, 6312 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9, 6313 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10, 6314 /* 6315 * A bitmask (u32) with flags specified in 6316 * enum qca_wlan_vendor_channel_prop_flags_2. 6317 */ 6318 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11, 6319 6320 /* 6321 * Segment 0 in MHz (u32). 6322 * 6323 * For 20/40/80 MHz bandwidth, this indicates the channel center 6324 * frequency index for the 20/40/80 MHz operating channel. 6325 * For 160 MHz bandwidth, this indicates the channel center 6326 * frequency of the primary 80 MHz channel. 6327 * For 320 MHz bandwidth, indicates the channel center frequency 6328 * of the primary 160 MHz channel. 6329 * 6330 * To maintain backward compatibility, 6331 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 6332 * is also maintained. 6333 */ 6334 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12, 6335 /* Legacy alias for the Segment 0 attribute. 6336 * 6337 * VHT segment 0 in MHz (u32) and the attribute is mandatory. 6338 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes 6339 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 6340 * along with 6341 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0. 6342 * 6343 * If both the driver and user-space application supports the 6 GHz 6344 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 6345 * is deprecated and 6346 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 6347 * should be used. 6348 * 6349 * To maintain backward compatibility, 6350 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 6351 * is still used if either of the driver or user space application 6352 * doesn't support the 6 GHz band. 6353 */ 6354 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 6355 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0, 6356 6357 /* 6358 * Segment 1 in MHz (u32). 6359 * 6360 * For 20/40/80 MHz bandwidth, this is set to 0. 6361 * For 160 MHz bandwidth, indicates the channel center frequency of the 6362 * 160 MHz channel. 6363 * For 320 MHz bandwidth, indicates the channel center frequency of the 6364 * 320 MHz channel. 6365 * 6366 * To maintain backward compatibility, 6367 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 6368 * is also maintained. 6369 */ 6370 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13, 6371 /* Legacy alias for the Segment 1 attribute. 6372 * 6373 * VHT segment 1 in MHz (u32) and the attribute is mandatory. 6374 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes 6375 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 6376 * along with 6377 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1. 6378 * 6379 * If both the driver and user-space application supports the 6 GHz 6380 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 6381 * is deprecated and 6382 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 6383 * should be considered. 6384 * 6385 * To maintain backward compatibility, 6386 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 6387 * is still used if either of the driver or user space application 6388 * doesn't support the 6 GHz band. 6389 */ 6390 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 6391 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1, 6392 /* 6393 * 16-bit attribute of bits indicating the AP power modes supported by 6394 * the channel (u16). 6395 * Note: Currently, only 3 bits are used in the attribute and each bit 6396 * corresponds to the power mode mentioned in enum 6397 * qca_wlan_vendor_external_acs_chan_power_level and a given bit is 6398 * set if the associated mode is supported. 6399 */ 6400 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES 6401 = 14, 6402 /* Array of nested attributes for each power mode. It takes attr as 6403 * defined in enum 6404 * qca_wlan_vendor_external_acs_event_chan_power_info_attr. 6405 */ 6406 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15, 6407 /* 6408 * This indicates the overlapping 320 MHz center frequency in MHz 6409 * (u32), if the given primary channel supports more than one 6410 * 320 MHz channel bonding. 6411 * 6412 * Example: 6413 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0 6414 * center frequency (primary 160 MHz) is 6185 MHz and there can be two 6415 * possible segment 2 frequencies for this (320 MHz center 6416 * frequencies): 6417 * 6418 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding 6419 * from frequency 5945 MHz - 6265 MHz 6420 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding 6421 * from frequency 6105 MHz - 6425 MHz 6422 * 6423 * In this case, 6424 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will 6425 * return 6185 MHz. 6426 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will 6427 * return 6105 MHz. 6428 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1 6429 * will return 6265 MHz. 6430 */ 6431 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1 6432 = 16, 6433 6434 /* keep last */ 6435 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST, 6436 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX = 6437 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1, 6438 }; 6439 6440 /** 6441 * qca_wlan_vendor_external_acs_chan_power_level - Specifies the valid 6442 * values that the vendor external ACS channel power attribute 6443 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can 6444 * take. 6445 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode 6446 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode 6447 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode 6448 */ 6449 enum qca_wlan_vendor_external_acs_chan_power_level { 6450 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0, 6451 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1, 6452 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2, 6453 }; 6454 6455 /** 6456 * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested 6457 * attributes for power mode type and power values corresponding to that. 6458 * These attributes are sent as part of 6459 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR. 6460 */ 6461 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr { 6462 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0, 6463 /* 6464 * Power mode (u8) takes the values defined in enum 6465 * qca_wlan_vendor_external_acs_chan_power_mode 6466 */ 6467 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE 6468 = 1, 6469 /* 6470 * Indicates if power value is a PSD/EIRP value (flag). If flag is 6471 * present, it indicates a PSD value. 6472 */ 6473 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2, 6474 /* 6475 * Power value (u32) PSD/EIRP as indicated by 6476 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG, 6477 * for power mode corresponding to the 6478 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE. 6479 * Units for PSD - dBm/MHz 6480 * Units for EIRP - dBm 6481 */ 6482 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE 6483 = 3, 6484 /* keep last */ 6485 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST, 6486 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX = 6487 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1, 6488 }; 6489 6490 /** 6491 * enum qca_wlan_vendor_attr_start_acs_config: attribute to vendor sub-command 6492 * QCA_NL80211_VENDOR_SUBCMD_START_ACS. This will be triggered by host 6493 * driver. 6494 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON: This reason refers to 6495 * qca_wlan_vendor_acs_select_reason. This helps acs module to understand why 6496 * ACS need to be started 6497 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED: Does 6498 * driver supports spectral scanning or not 6499 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED: Is 11ac is 6500 * offloaded to firmware. 6501 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT: Does driver 6502 * provides additional channel capability as part of scan operation. 6503 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP:Flag attribute to indicate 6504 * interface status is UP 6505 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE: Operating mode of 6506 * interface. It takes one of nl80211_iftype values. 6507 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH: This is the upper bound 6508 * of chan width. ACS logic should try to get a channel with specified width 6509 * if not found then look for lower values. 6510 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND: nl80211_bands 6511 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE: PHY/HW mode such as 6512 * a/b/g/n/ac. 6513 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST: Supported frequency list 6514 * among which ACS should choose best frequency. 6515 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL:Preferred Chan List by the 6516 * driver which will have <channel(u8), weight(u8)> format as array of 6517 * nested values. 6518 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO: Array of nested attribute 6519 * for each channel. It takes attr as defined in 6520 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY:External ACS policy such as 6521 * PCL mandatory, PCL preferred, etc.It uses values defined in enum 6522 * qca_wlan_vendor_attr_external_acs_policy. 6523 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO: Reference RF 6524 * Operating Parameter (RROP) availability information (u16). It uses values 6525 * defined in enum qca_wlan_vendor_attr_rropavail_info. 6526 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY: Flag attribute to 6527 * indicate if driver supports 6 GHz AFC trigger for External ACS. 6528 */ 6529 enum qca_wlan_vendor_attr_external_acs_event { 6530 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0, 6531 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1, 6532 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2, 6533 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3, 6534 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4, 6535 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5, 6536 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6, 6537 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7, 6538 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8, 6539 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9, 6540 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10, 6541 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11, 6542 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12, 6543 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13, 6544 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14, 6545 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15, 6546 6547 /* keep last */ 6548 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST, 6549 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX = 6550 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1, 6551 }; 6552 6553 enum qca_iface_type { 6554 QCA_IFACE_TYPE_STA, 6555 QCA_IFACE_TYPE_AP, 6556 QCA_IFACE_TYPE_P2P_CLIENT, 6557 QCA_IFACE_TYPE_P2P_GO, 6558 QCA_IFACE_TYPE_IBSS, 6559 QCA_IFACE_TYPE_TDLS, 6560 }; 6561 6562 /** 6563 * enum qca_wlan_vendor_attr_pcl_config: attribute to vendor sub-command 6564 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and 6565 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST. 6566 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_INVALID: invalid value 6567 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_CHANNEL: pcl channel number 6568 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_WEIGHT: pcl channel weight 6569 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FREQ: pcl channel frequency 6570 * @QCA_WLAN_VENDOR_ATTR_PCL_CONFIG_FLAG: pcl channel flag bitmask 6571 */ 6572 enum qca_wlan_vendor_attr_pcl_config { 6573 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0, 6574 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1, 6575 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2, 6576 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3, 6577 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4, 6578 }; 6579 6580 enum qca_set_band { 6581 QCA_SETBAND_AUTO = 0, 6582 QCA_SETBAND_5G = BIT(0), 6583 QCA_SETBAND_2G = BIT(1), 6584 QCA_SETBAND_6G = BIT(2), 6585 }; 6586 6587 /** 6588 * enum set_reset_packet_filter - set packet filter control commands 6589 * @QCA_WLAN_SET_PACKET_FILTER: Set Packet Filter 6590 * @QCA_WLAN_GET_PACKET_FILTER: Get Packet filter 6591 * @QCA_WLAN_WRITE_PACKET_FILTER: Write packet filter program/data 6592 * @QCA_WLAN_READ_PACKET_FILTER: Read packet filter program/data 6593 * @QCA_WLAN_ENABLE_PACKET_FILTER: Enable APF interpreter 6594 * @QCA_WLAN_DISABLE_PACKET_FILTER: Disable APF interpreter 6595 */ 6596 enum set_reset_packet_filter { 6597 QCA_WLAN_SET_PACKET_FILTER = 1, 6598 QCA_WLAN_GET_PACKET_FILTER = 2, 6599 QCA_WLAN_WRITE_PACKET_FILTER = 3, 6600 QCA_WLAN_READ_PACKET_FILTER = 4, 6601 QCA_WLAN_ENABLE_PACKET_FILTER = 5, 6602 QCA_WLAN_DISABLE_PACKET_FILTER = 6, 6603 }; 6604 6605 /** 6606 * enum qca_wlan_vendor_attr_packet_filter - APF control commands 6607 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID: Invalid 6608 * @QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER: Filter ID 6609 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION: Filter Version 6610 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE: Total Length 6611 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET: Current offset 6612 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM: length of APF instructions 6613 * @QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH: length of the program 6614 * section in packet filter buffer 6615 */ 6616 enum qca_wlan_vendor_attr_packet_filter { 6617 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0, 6618 QCA_WLAN_VENDOR_ATTR_SET_RESET_PACKET_FILTER, 6619 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION, 6620 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID, 6621 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE, 6622 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET, 6623 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM, 6624 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH, 6625 6626 /* keep last */ 6627 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST, 6628 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX = 6629 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1, 6630 }; 6631 6632 /** 6633 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor 6634 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS. 6635 */ 6636 enum qca_wlan_vendor_attr_wake_stats { 6637 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0, 6638 /* Unsigned 32-bit value indicating the total count of wake event */ 6639 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE, 6640 /* Array of individual wake count, each index representing wake reason 6641 */ 6642 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR, 6643 /* Unsigned 32-bit value representing wake count array */ 6644 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ, 6645 /* Unsigned 32-bit total wake count value of driver/fw */ 6646 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE, 6647 /* Array of wake stats of driver/fw */ 6648 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR, 6649 /* Unsigned 32-bit total wake count value of driver/fw */ 6650 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ, 6651 /* Unsigned 32-bit total wake count value of packets received */ 6652 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE, 6653 /* Unsigned 32-bit wake count value unicast packets received */ 6654 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT, 6655 /* Unsigned 32-bit wake count value multicast packets received */ 6656 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT, 6657 /* Unsigned 32-bit wake count value broadcast packets received */ 6658 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT, 6659 /* Unsigned 32-bit wake count value of ICMP packets */ 6660 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT, 6661 /* Unsigned 32-bit wake count value of ICMP6 packets */ 6662 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT, 6663 /* Unsigned 32-bit value ICMP6 router advertisement */ 6664 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA, 6665 /* Unsigned 32-bit value ICMP6 neighbor advertisement */ 6666 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA, 6667 /* Unsigned 32-bit value ICMP6 neighbor solicitation */ 6668 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS, 6669 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */ 6670 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT, 6671 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */ 6672 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT, 6673 /* Unsigned 32-bit wake count value of receive side multicast */ 6674 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT, 6675 /* Unsigned 32-bit wake count value of a given RSSI breach */ 6676 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT, 6677 /* Unsigned 32-bit wake count value of low RSSI */ 6678 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT, 6679 /* Unsigned 32-bit value GSCAN count */ 6680 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT, 6681 /* Unsigned 32-bit value PNO complete count */ 6682 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT, 6683 /* Unsigned 32-bit value PNO match count */ 6684 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT, 6685 /* keep last */ 6686 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST, 6687 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX = 6688 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1, 6689 }; 6690 6691 /** 6692 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels 6693 * configured by userspace to the driver/firmware. The values will be 6694 * encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL attribute. 6695 * The driver/firmware takes necessary actions requested by userspace 6696 * such as throttling wifi tx etc. in order to mitigate high temperature. 6697 * 6698 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions. 6699 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle tx lightly. 6700 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle tx moderately. 6701 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle tx severely. 6702 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached. 6703 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached. 6704 */ 6705 enum qca_wlan_vendor_thermal_level { 6706 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0, 6707 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1, 6708 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2, 6709 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3, 6710 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4, 6711 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5, 6712 }; 6713 6714 /** 6715 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set 6716 * cmd value. Used for NL attributes for data used by 6717 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 6718 */ 6719 enum qca_wlan_vendor_attr_thermal_cmd { 6720 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0, 6721 /* The value of command, driver will implement different operations 6722 * according to this value. It uses values defined in 6723 * enum qca_wlan_vendor_attr_thermal_cmd_type. 6724 * u32 attribute. 6725 */ 6726 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1, 6727 /* Userspace uses this attribute to configure thermal level to the 6728 * driver/firmware, or get thermal level from the driver/firmware. 6729 * Used in request or response, u32 attribute, 6730 * possible values are defined in enum qca_wlan_vendor_thermal_level. 6731 */ 6732 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2, 6733 /* Userspace uses this attribute to configure the time in which the 6734 * driver/firmware should complete applying settings it received from 6735 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL 6736 * command type. Used in request, u32 attribute, value is in 6737 * milliseconds. A value of zero indicates to apply the settings 6738 * immediately. The driver/firmware can delay applying the configured 6739 * thermal settings within the time specified in this attribute if 6740 * there is any critical ongoing operation. 6741 */ 6742 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3, 6743 /* Nested attribute, driver/firmware uses this attribute to report 6744 * thermal stats of different thermal levels to userspace when requested 6745 * using QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command 6746 * type. This attribute contains nested array of records of thermal 6747 * statistics of multiple levels. The attributes used inside this nested 6748 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats. 6749 */ 6750 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4, 6751 6752 /* keep last */ 6753 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST, 6754 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX = 6755 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1 6756 }; 6757 6758 /** 6759 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for 6760 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd 6761 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the 6762 * thermal command types sent to driver. 6763 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to 6764 * get thermal shutdown configuration parameters for display. Parameters 6765 * responded from driver are defined in 6766 * enum qca_wlan_vendor_attr_get_thermal_params_rsp. 6767 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to 6768 * get temperature. Host should respond with a temperature data. It is defined 6769 * in enum qca_wlan_vendor_attr_thermal_get_temperature. 6770 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal 6771 * suspend action. 6772 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal 6773 * resume action. 6774 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to 6775 * the driver/firmware. 6776 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current 6777 * thermal level from the driver/firmware. The driver should respond with a 6778 * thermal level defined in enum qca_wlan_vendor_thermal_level. 6779 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the 6780 * current thermal stats from the driver/firmware. The driver should respond 6781 * with stats of all thermal levels encapsulated in attribute 6782 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS. 6783 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear 6784 * the current thermal stats all thermal levels maintained in the 6785 * driver/firmware and start counting from zero again. 6786 */ 6787 enum qca_wlan_vendor_attr_thermal_cmd_type { 6788 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS, 6789 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE, 6790 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND, 6791 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME, 6792 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL, 6793 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL, 6794 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS, 6795 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS, 6796 }; 6797 6798 /** 6799 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes 6800 * to get chip temperature by user. 6801 * enum values are used for NL attributes for data used by 6802 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used 6803 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 6804 */ 6805 enum qca_wlan_vendor_attr_thermal_get_temperature { 6806 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0, 6807 /* Temperature value (degree Celsius) from driver. 6808 * u32 attribute. 6809 */ 6810 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA, 6811 6812 /* keep last */ 6813 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST, 6814 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX = 6815 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1, 6816 }; 6817 6818 /** 6819 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to 6820 * report thermal events from driver to user space. 6821 * enum values are used for NL attributes for data used by 6822 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command. 6823 */ 6824 enum qca_wlan_vendor_attr_thermal_event { 6825 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0, 6826 /* Temperature value (degree Celsius) from driver. 6827 * u32 attribute. 6828 */ 6829 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE, 6830 /* Indication of resume completion from power save mode. 6831 * NLA_FLAG attribute. 6832 */ 6833 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE, 6834 /* Thermal level from the driver. 6835 * u32 attribute. Possible values are defined in 6836 * enum qca_wlan_vendor_thermal_level. 6837 */ 6838 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3, 6839 6840 /* keep last */ 6841 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST, 6842 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX = 6843 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1, 6844 }; 6845 6846 /** 6847 * enum qca_vendor_element_id - QCA Vendor Specific element types 6848 * 6849 * These values are used to identify QCA Vendor Specific elements. The 6850 * payload of the element starts with the three octet OUI (OUI_QCA) and 6851 * is followed by a single octet type which is defined by this enum. 6852 * 6853 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list. 6854 * This element can be used to specify preference order for supported 6855 * channels. The channels in this list are in preference order (the first 6856 * one has the highest preference) and are described as a pair of 6857 * (global) Operating Class and Channel Number (each one octet) fields. 6858 * 6859 * This extends the standard P2P functionality by providing option to have 6860 * more than one preferred operating channel. When this element is present, 6861 * it replaces the preference indicated in the Operating Channel attribute. 6862 * For supporting other implementations, the Operating Channel attribute is 6863 * expected to be used with the highest preference channel. Similarly, all 6864 * the channels included in this Preferred channel list element are 6865 * expected to be included in the Channel List attribute. 6866 * 6867 * This vendor element may be included in GO Negotiation Request, P2P 6868 * Invitation Request, and Provision Discovery Request frames. 6869 * 6870 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element. 6871 * This element can be used for pre-standard publication testing of HE 6872 * before P802.11ax draft assigns the element ID. The payload of this 6873 * vendor specific element is defined by the latest P802.11ax draft. 6874 * Please note that the draft is still work in progress and this element 6875 * payload is subject to change. 6876 * 6877 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element. 6878 * This element can be used for pre-standard publication testing of HE 6879 * before P802.11ax draft assigns the element ID. The payload of this 6880 * vendor specific element is defined by the latest P802.11ax draft. 6881 * Please note that the draft is still work in progress and this element 6882 * payload is subject to change. 6883 * 6884 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set 6885 * element). 6886 * This element can be used for pre-standard publication testing of HE 6887 * before P802.11ax draft assigns the element ID extension. The payload of 6888 * this vendor specific element is defined by the latest P802.11ax draft 6889 * (not including the Element ID Extension field). Please note that the 6890 * draft is still work in progress and this element payload is subject to 6891 * change. 6892 * 6893 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element. 6894 * This element can be used for pre-standard publication testing of HE 6895 * before P802.11ax draft assigns the element ID extension. The payload of 6896 * this vendor specific element is defined by the latest P802.11ax draft 6897 * (not including the Element ID Extension field). Please note that the 6898 * draft is still work in progress and this element payload is subject to 6899 * change. 6900 * 6901 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element. 6902 * This element can be used for pre-standard publication testing of HE 6903 * before P802.11ax draft assigns the element ID extension. The payload of 6904 * this vendor specific element is defined by the latest P802.11ax draft 6905 * (not including the Element ID Extension field). Please note that the 6906 * draft is still work in progress and this element payload is subject to 6907 * change. 6908 */ 6909 enum qca_vendor_element_id { 6910 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0, 6911 QCA_VENDOR_ELEM_HE_CAPAB = 1, 6912 QCA_VENDOR_ELEM_HE_OPER = 2, 6913 QCA_VENDOR_ELEM_RAPS = 3, 6914 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4, 6915 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5, 6916 }; 6917 6918 /** 6919 * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture 6920 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32) 6921 * Specify the TSF command. Possible values are defined in 6922 * &enum qca_tsf_cmd. 6923 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64) 6924 * This attribute contains TSF timer value. This attribute is only available 6925 * in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response. 6926 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64) 6927 * This attribute contains SOC timer value at TSF capture. This attribute is 6928 * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response. 6929 * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32) 6930 * This attribute is used to provide TSF sync interval and only applicable when 6931 * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the 6932 * driver will use the default value. Time unit is in milliseconds. 6933 */ 6934 enum qca_vendor_attr_tsf_cmd { 6935 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0, 6936 QCA_WLAN_VENDOR_ATTR_TSF_CMD, 6937 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE, 6938 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE, 6939 QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL, 6940 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST, 6941 QCA_WLAN_VENDOR_ATTR_TSF_MAX = 6942 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1 6943 }; 6944 6945 /** 6946 * enum qca_tsf_cmd: TSF driver commands 6947 * @QCA_TSF_CAPTURE: Initiate TSF Capture 6948 * @QCA_TSF_GET: Get TSF capture value 6949 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value 6950 * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target 6951 * will automatically send TSF report to the host. To query 6952 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY, this operation needs to be 6953 * initiated first. 6954 * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target 6955 * will not automatically send TSF report to the host. If 6956 * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and 6957 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY is not queried anymore, this 6958 * operation needs to be initiated. 6959 * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically 6960 * fetches TSF and host time mapping from the firmware with interval configured 6961 * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the 6962 * interval value is not provided the driver will use the default value. The 6963 * userspace can query the TSF and host time mapping via the %QCA_TSF_GET 6964 * command. 6965 * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature. 6966 */ 6967 enum qca_tsf_cmd { 6968 QCA_TSF_CAPTURE, 6969 QCA_TSF_GET, 6970 QCA_TSF_SYNC_GET, 6971 QCA_TSF_AUTO_REPORT_ENABLE, 6972 QCA_TSF_AUTO_REPORT_DISABLE, 6973 QCA_TSF_SYNC_START, 6974 QCA_TSF_SYNC_STOP, 6975 }; 6976 6977 /** 6978 * enum qca_vendor_attr_get_preferred_freq_list - get preferred channel list 6979 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID: invalid value 6980 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE: interface type 6981 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST: preferred frequency list 6982 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL: pcl with weight 6983 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST: after last 6984 * @QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX: max 6985 */ 6986 enum qca_vendor_attr_get_preferred_freq_list { 6987 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID, 6988 /* A 32-unsigned value; the interface type/mode for which the preferred 6989 * frequency list is requested (see enum qca_iface_type for possible 6990 * values); used in both south- and north-bound. 6991 */ 6992 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE, 6993 /* An array of 32-unsigned values; values are frequency (MHz); used 6994 * in north-bound only. 6995 */ 6996 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST, 6997 /* An array of nested values as per enum 6998 * qca_wlan_vendor_attr_pcl_config attribute. 6999 * Each element contains frequency (MHz), weight, and flag 7000 * bit mask indicating how the frequency should be used in P2P 7001 * negotiation. 7002 */ 7003 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL, 7004 /* keep last */ 7005 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST, 7006 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX = 7007 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1 7008 }; 7009 7010 /** 7011 * enum qca_vendor_attr_probable_oper_channel - channel hint 7012 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID: invalid value 7013 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE: interface type 7014 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ: frequency hint value 7015 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST: last 7016 * @QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX: max 7017 */ 7018 enum qca_vendor_attr_probable_oper_channel { 7019 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID, 7020 /* 32-bit unsigned value; indicates the connection/iface type likely to 7021 * come on this channel (see enum qca_iface_type). 7022 */ 7023 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE, 7024 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */ 7025 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ, 7026 /* keep last */ 7027 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST, 7028 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX = 7029 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1 7030 }; 7031 7032 /** 7033 * enum qca_wlan_vendor_attr_gw_param_config - gateway param config 7034 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID: Invalid 7035 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR: gateway mac addr 7036 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR: ipv4 addr 7037 * @QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR: ipv6 addr 7038 */ 7039 enum qca_wlan_vendor_attr_gw_param_config { 7040 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_INVALID = 0, 7041 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_GW_MAC_ADDR, 7042 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV4_ADDR, 7043 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_IPV6_ADDR, 7044 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST, 7045 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_MAX = 7046 QCA_WLAN_VENDOR_ATTR_GW_PARAM_CONFIG_AFTER_LAST - 1, 7047 }; 7048 7049 /** 7050 * enum drv_dbs_capability - DBS capability 7051 * @DRV_DBS_CAPABILITY_DISABLED: DBS disabled 7052 * @DRV_DBS_CAPABILITY_1X1: 1x1 7053 * @DRV_DBS_CAPABILITY_2X2: 2x2 7054 */ 7055 enum drv_dbs_capability { 7056 DRV_DBS_CAPABILITY_DISABLED, /* not supported or disabled */ 7057 DRV_DBS_CAPABILITY_1X1, 7058 DRV_DBS_CAPABILITY_2X2, 7059 }; 7060 7061 /** 7062 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease 7063 * 7064 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB. 7065 */ 7066 enum qca_vendor_attr_txpower_decr_db { 7067 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID, 7068 /* 7069 * 8-bit unsigned value to indicate the reduction of TX power in dB for 7070 * a virtual interface. 7071 */ 7072 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB, 7073 /* keep last */ 7074 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST, 7075 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX = 7076 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1 7077 }; 7078 7079 /** 7080 * enum qca_vendor_attr_ota_test - Enable OTA test 7081 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID: invalid value 7082 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable OTA test 7083 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST: after last 7084 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX: max 7085 */ 7086 enum qca_vendor_attr_ota_test { 7087 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID, 7088 /* 8-bit unsigned value to indicate if OTA test is enabled */ 7089 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE, 7090 /* keep last */ 7091 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST, 7092 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX = 7093 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1 7094 }; 7095 7096 /** enum qca_vendor_attr_txpower_scale - vendor sub commands index 7097 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID: invalid value 7098 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value 7099 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST: last value 7100 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX: max value 7101 */ 7102 enum qca_vendor_attr_txpower_scale { 7103 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID, 7104 /* 8-bit unsigned value to indicate the scaling of tx power */ 7105 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE, 7106 /* keep last */ 7107 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST, 7108 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX = 7109 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1 7110 }; 7111 7112 /** 7113 * enum qca_vendor_attr_txpower_scale_decr_db - vendor sub commands index 7114 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID: invalid value 7115 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB: scaling value 7116 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST: last value 7117 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX: max value 7118 */ 7119 enum qca_vendor_attr_txpower_scale_decr_db { 7120 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_INVALID, 7121 /* 8-bit unsigned value to indicate the scaling of tx power */ 7122 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB, 7123 /* keep last */ 7124 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST, 7125 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_MAX = 7126 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_DECR_DB_AFTER_LAST - 1 7127 }; 7128 7129 /** 7130 * enum dfs_mode - state of DFS mode 7131 * @DFS_MODE_NONE: DFS mode attribute is none 7132 * @DFS_MODE_ENABLE: DFS mode is enabled 7133 * @DFS_MODE_DISABLE: DFS mode is disabled 7134 * @DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in scanning 7135 */ 7136 enum dfs_mode { 7137 DFS_MODE_NONE, 7138 DFS_MODE_ENABLE, 7139 DFS_MODE_DISABLE, 7140 DFS_MODE_DEPRIORITIZE 7141 }; 7142 7143 /** 7144 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes 7145 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY. 7146 * 7147 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8) 7148 * DFS mode for ACS operation from enum qca_acs_dfs_mode. 7149 * 7150 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8) 7151 * channel number hint for ACS operation, if valid channel is specified then 7152 * ACS operation gives priority to this channel. 7153 * Note: If both the driver and user space application supports the 6 GHz band, 7154 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT 7155 * should be used. 7156 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT 7157 * is still used if either of the driver or user space application doesn't 7158 * support the 6 GHz band. 7159 * 7160 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32). 7161 * Channel center frequency (MHz) hint for ACS operation, if a valid center 7162 * frequency is specified, ACS operation gives priority to this channel. 7163 */ 7164 enum qca_wlan_vendor_attr_acs_config { 7165 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0, 7166 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1, 7167 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2, 7168 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3, 7169 7170 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST, 7171 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX = 7172 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1, 7173 }; 7174 7175 /** 7176 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability 7177 */ 7178 enum qca_wlan_vendor_attr_get_hw_capability { 7179 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID, 7180 /* 7181 * Antenna isolation 7182 * An attribute used in the response. 7183 * The content of this attribute is encoded in a byte array. Each byte 7184 * value is an antenna isolation value. The array length is the number 7185 * of antennas. 7186 */ 7187 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION, 7188 /* 7189 * Request HW capability 7190 * An attribute used in the request. 7191 * The content of this attribute is a u32 array for one or more of 7192 * hardware capabilities (attribute IDs) that are being requested. Each 7193 * u32 value has a value from this 7194 * enum qca_wlan_vendor_attr_get_hw_capability 7195 * identifying which capabilities are requested. 7196 */ 7197 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY, 7198 7199 /* keep last */ 7200 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST, 7201 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX = 7202 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1, 7203 }; 7204 7205 /** 7206 * enum qca_wlan_vendor_attr_sta_connect_roam_policy_config - 7207 * config params for sta roam policy 7208 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID: Invalid 7209 * @QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE: If sta should skip Dfs channels 7210 * @QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL: 7211 * If sta should skip unsafe channels or not in scanning 7212 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_LAST: 7213 * @QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX: max attribute 7214 */ 7215 enum qca_wlan_vendor_attr_sta_connect_roam_policy_config { 7216 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_INVALID = 0, 7217 QCA_WLAN_VENDOR_ATTR_STA_DFS_MODE, 7218 QCA_WLAN_VENDOR_ATTR_STA_SKIP_UNSAFE_CHANNEL, 7219 7220 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST, 7221 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_MAX = 7222 QCA_WLAN_VENDOR_ATTR_STA_CONNECT_ROAM_POLICY_AFTER_LAST - 1, 7223 }; 7224 7225 /* Attributes for FTM commands and events */ 7226 7227 /** 7228 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities 7229 * 7230 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See 7231 * enum qca_wlan_vendor_attr_loc_capa_flags. 7232 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number 7233 * of measurement sessions that can run concurrently. 7234 * Default is one session (no session concurrency). 7235 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique 7236 * peers that are supported in running sessions. For example, 7237 * if the value is 8 and maximum number of sessions is 2, you can 7238 * have one session with 8 unique peers, or 2 sessions with 4 unique 7239 * peers each, and so on. 7240 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number 7241 * of bursts per peer, as an exponent (2^value). Default is 0, 7242 * meaning no multi-burst support. 7243 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number 7244 * of measurement exchanges allowed in a single burst. 7245 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement 7246 * types. A bit mask (unsigned 32 bit value), each bit corresponds 7247 * to an AOA type as defined by enum qca_vendor_attr_aoa_type. 7248 */ 7249 enum qca_wlan_vendor_attr_loc_capa { 7250 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID, 7251 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS, 7252 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS, 7253 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS, 7254 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP, 7255 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST, 7256 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES, 7257 /* keep last */ 7258 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST, 7259 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX = 7260 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1, 7261 }; 7262 7263 /** 7264 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags 7265 * 7266 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver 7267 * can be configured as an FTM responder (for example, an AP that 7268 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 7269 * will be supported if set. 7270 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver 7271 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION 7272 * will be supported if set. 7273 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder 7274 * supports immediate (ASAP) response. 7275 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone 7276 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS. 7277 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports 7278 * requesting AOA measurements as part of an FTM session. 7279 */ 7280 enum qca_wlan_vendor_attr_loc_capa_flags { 7281 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0, 7282 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1, 7283 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2, 7284 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3, 7285 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4, 7286 }; 7287 7288 /** 7289 * enum qca_wlan_ani_setting - ANI setting type 7290 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level 7291 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter 7292 */ 7293 enum qca_wlan_ani_setting { 7294 QCA_WLAN_ANI_SETTING_AUTO = 0, 7295 QCA_WLAN_ANI_SETTING_FIXED = 1, 7296 }; 7297 7298 /** 7299 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration 7300 * 7301 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8) 7302 * Channel number on which Access Point should restart. 7303 * Note: If both the driver and user space application supports the 6 GHz band, 7304 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY 7305 * should be used. 7306 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL 7307 * is still used if either of the driver or user space application doesn't 7308 * support the 6 GHz band. 7309 * 7310 * @QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST: Required 7311 * Nested attribute to hold list of center frequencies on which AP is 7312 * expected to operate. This is irrespective of ACS configuration. 7313 * This list is a priority based one and is looked for before the AP is 7314 * created to ensure the best concurrency sessions (avoid MCC and use DBS/SCC) 7315 * co-exist in the system. 7316 * 7317 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32) 7318 * Channel center frequency (MHz) on which the access point should restart. 7319 */ 7320 enum qca_wlan_vendor_attr_sap_config { 7321 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0, 7322 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1, 7323 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2, 7324 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3, 7325 7326 /* Keep last */ 7327 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST, 7328 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX = 7329 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1, 7330 }; 7331 7332 /** 7333 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about 7334 * a single peer in a measurement session. 7335 * 7336 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer. 7337 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related 7338 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags. 7339 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of 7340 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0 7341 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for 7342 * list of supported attributes. 7343 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for 7344 * secure measurement. 7345 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA 7346 * measurement every <value> bursts. If 0 or not specified, 7347 * AOA measurements will be disabled for this peer. 7348 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where 7349 * the measurement frames are exchanged. Optional; if not 7350 * specified, try to locate the peer in the kernel scan 7351 * results cache and use frequency from there. 7352 */ 7353 enum qca_wlan_vendor_attr_ftm_peer_info { 7354 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID, 7355 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR, 7356 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS, 7357 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS, 7358 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID, 7359 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD, 7360 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ, 7361 /* keep last */ 7362 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST, 7363 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX = 7364 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1, 7365 }; 7366 7367 /** 7368 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags, 7369 * per-peer 7370 * 7371 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request 7372 * immediate (ASAP) response from peer. 7373 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request 7374 * LCI report from peer. The LCI report includes the absolute 7375 * location of the peer in "official" coordinates (similar to GPS). 7376 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information. 7377 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request 7378 * Location civic report from peer. The LCR includes the location 7379 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0, 7380 * 11.24.6.7 for more information. 7381 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set, 7382 * request a secure measurement. 7383 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided. 7384 */ 7385 enum qca_wlan_vendor_attr_ftm_peer_meas_flags { 7386 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0, 7387 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1, 7388 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2, 7389 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3, 7390 }; 7391 7392 /** 7393 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters 7394 * 7395 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements 7396 * to perform in a single burst. 7397 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to 7398 * perform, specified as an exponent (2^value). 7399 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst 7400 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. 7401 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts, 7402 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must 7403 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION. 7404 */ 7405 enum qca_wlan_vendor_attr_ftm_meas_param { 7406 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID, 7407 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST, 7408 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP, 7409 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION, 7410 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD, 7411 /* keep last */ 7412 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST, 7413 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX = 7414 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1, 7415 }; 7416 7417 /** 7418 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results 7419 * 7420 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported 7421 * peer. 7422 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement 7423 * request for this peer. 7424 * See enum qca_wlan_vendor_attr_ftm_peer_result_status. 7425 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related 7426 * to measurement results for this peer. 7427 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags. 7428 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when 7429 * request failed and peer requested not to send an additional request 7430 * for this number of seconds. 7431 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received 7432 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 7433 * 9.4.2.22.10. 7434 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when 7435 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 7436 * 9.4.2.22.13. 7437 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer 7438 * overridden some measurement request parameters. See 7439 * enum qca_wlan_vendor_attr_ftm_meas_param. 7440 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement 7441 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT. 7442 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement 7443 * results. Each entry is a nested attribute defined 7444 * by enum qca_wlan_vendor_attr_ftm_meas. 7445 */ 7446 enum qca_wlan_vendor_attr_ftm_peer_result { 7447 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID, 7448 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR, 7449 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS, 7450 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS, 7451 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS, 7452 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI, 7453 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR, 7454 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS, 7455 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS, 7456 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS, 7457 /* keep last */ 7458 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST, 7459 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX = 7460 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1, 7461 }; 7462 7463 /** 7464 * enum qca_wlan_vendor_attr_ftm_peer_result_status 7465 * 7466 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results 7467 * will be provided. Peer may have overridden some measurement parameters, 7468 * in which case overridden parameters will be report by 7469 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute. 7470 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable 7471 * of performing the measurement request. No more results will be sent 7472 * for this peer in this session. 7473 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request 7474 * failed, and requested not to send an additional request for number 7475 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS 7476 * attribute. 7477 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation 7478 * failed. Request was not sent over the air. 7479 */ 7480 enum qca_wlan_vendor_attr_ftm_peer_result_status { 7481 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK, 7482 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE, 7483 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED, 7484 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID, 7485 }; 7486 7487 /** 7488 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags 7489 * for measurement result, per-peer 7490 * 7491 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set, 7492 * measurement completed for this peer. No more results will be reported 7493 * for this peer in this session. 7494 */ 7495 enum qca_wlan_vendor_attr_ftm_peer_result_flags { 7496 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0, 7497 }; 7498 7499 /** 7500 * enum qca_vendor_attr_loc_session_status: Session completion status code 7501 * 7502 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed 7503 * successfully. 7504 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted 7505 * by request. 7506 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request 7507 * was invalid and was not started. 7508 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error 7509 * and did not complete normally (for example out of resources). 7510 */ 7511 enum qca_vendor_attr_loc_session_status { 7512 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK, 7513 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED, 7514 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID, 7515 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED, 7516 }; 7517 7518 /** 7519 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data 7520 * 7521 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as 7522 * recorded by responder, in picoseconds. 7523 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 7524 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at 7525 * initiator, in picoseconds. 7526 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 7527 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by 7528 * initiator, in picoseconds. 7529 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 7530 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at 7531 * responder, in picoseconds. 7532 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 7533 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded 7534 * during this measurement exchange. Optional and will be provided if 7535 * the hardware can measure it. 7536 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by 7537 * responder. Not always provided. 7538 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 7539 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by 7540 * responder. Not always provided. 7541 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 7542 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by 7543 * initiator. Not always provided. 7544 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 7545 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by 7546 * initiator. Not always provided. 7547 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 7548 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Dummy attribute for padding. 7549 */ 7550 enum qca_wlan_vendor_attr_ftm_meas { 7551 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID, 7552 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1, 7553 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2, 7554 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3, 7555 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4, 7556 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI, 7557 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR, 7558 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR, 7559 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR, 7560 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR, 7561 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD, 7562 /* keep last */ 7563 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST, 7564 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX = 7565 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1, 7566 }; 7567 7568 /** 7569 * enum qca_wlan_vendor_attr_p2p_listen_offload - vendor sub commands index 7570 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID: invalid value 7571 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL: 7572 * A 32-bit unsigned value; the P2P listen frequency (MHz); must be one 7573 * of the social channels. 7574 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD: listen offload period 7575 * A 32-bit unsigned value; the P2P listen offload period (ms). 7576 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL: 7577 * A 32-bit unsigned value; the P2P listen interval duration (ms). 7578 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT: 7579 * A 32-bit unsigned value; number of interval times the Firmware needs 7580 * to run the offloaded P2P listen operation before it stops. 7581 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES: device types 7582 * An array of unsigned 8-bit characters; vendor information elements. 7583 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE: vendor IEs 7584 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG: control flag for FW 7585 * A 32-bit unsigned value; a control flag to indicate whether listen 7586 * results need to be flushed to wpa_supplicant. 7587 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON: offload stop reason 7588 * A 8-bit unsigned value; reason code for P2P listen offload stop 7589 * event. 7590 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST: last value 7591 * @QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX: max value 7592 */ 7593 enum qca_wlan_vendor_attr_p2p_listen_offload { 7594 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0, 7595 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL, 7596 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD, 7597 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL, 7598 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT, 7599 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES, 7600 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE, 7601 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG, 7602 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON, 7603 /* keep last */ 7604 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST, 7605 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX = 7606 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1 7607 }; 7608 7609 /** 7610 * enum qca_wlan_vendor_drv_info - WLAN driver info 7611 * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID: Invalid 7612 * @QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE: Maximum Message size info 7613 * between Firmware & Host. 7614 */ 7615 enum qca_wlan_vendor_drv_info { 7616 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0, 7617 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE, 7618 7619 /* keep last */ 7620 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST, 7621 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX = 7622 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1, 7623 }; 7624 7625 /** 7626 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type 7627 * 7628 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest 7629 * CIR (channel impulse response) path for each antenna. 7630 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude 7631 * of the strongest CIR path for each antenna. 7632 */ 7633 enum qca_wlan_vendor_attr_aoa_type { 7634 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE, 7635 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP, 7636 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX 7637 }; 7638 7639 /** 7640 * enum qca_wlan_vendor_attr_encryption_test - Attributes to 7641 * validate encryption engine 7642 * 7643 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute. 7644 * This will be included if the request is for decryption; if not included, 7645 * the request is treated as a request for encryption by default. 7646 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value 7647 * indicating the key cipher suite. Takes same values as 7648 * NL80211_ATTR_KEY_CIPHER. 7649 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value 7650 * Key Id to be used for encryption 7651 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values. 7652 * Key (TK) to be used for encryption/decryption 7653 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values. 7654 * Packet number to be specified for encryption/decryption 7655 * 6 bytes for TKIP/CCMP/GCMP. 7656 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values 7657 * representing the 802.11 packet (header + payload + FCS) that 7658 * needs to be encrypted/decrypted. 7659 * Encrypted/decrypted response from the driver will also be sent 7660 * to userspace with the same attribute. 7661 */ 7662 enum qca_wlan_vendor_attr_encryption_test { 7663 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0, 7664 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION, 7665 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER, 7666 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID, 7667 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK, 7668 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN, 7669 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA, 7670 7671 /* keep last */ 7672 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST, 7673 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX = 7674 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1 7675 }; 7676 7677 /** 7678 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of 7679 * sector for DMG RF sector operations. 7680 * 7681 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector 7682 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector 7683 */ 7684 enum qca_wlan_vendor_attr_dmg_rf_sector_type { 7685 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX, 7686 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX, 7687 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX 7688 }; 7689 7690 /** 7691 * enum qca_wlan_vendor_attr_fw_state - State of firmware 7692 * 7693 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state 7694 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active 7695 */ 7696 enum qca_wlan_vendor_attr_fw_state { 7697 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR, 7698 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE, 7699 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX 7700 }; 7701 7702 /** 7703 * BRP antenna limit mode 7704 * 7705 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force 7706 * antenna limit, BRP will be performed as usual. 7707 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal 7708 * antennas limit. the hardware may use less antennas than the 7709 * maximum limit. 7710 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will 7711 * use exactly the specified number of antennas for BRP. 7712 */ 7713 enum qca_wlan_vendor_attr_brp_ant_limit_mode { 7714 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE, 7715 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE, 7716 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE, 7717 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX 7718 }; 7719 7720 /** 7721 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for 7722 * DMG RF sector configuration for a single RF module. 7723 * The values are defined in a compact way which closely matches 7724 * the way it is stored in HW registers. 7725 * The configuration provides values for 32 antennas and 8 distribution 7726 * amplifiers, and together describes the characteristics of the RF 7727 * sector - such as a beam in some direction with some gain. 7728 * 7729 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index 7730 * of RF module for this configuration. 7731 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge 7732 * amplifier gain index. Unsigned 32 bit number containing 7733 * bits for all 32 antennas. 7734 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge 7735 * amplifier gain index. Unsigned 32 bit number containing 7736 * bits for all 32 antennas. 7737 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge 7738 * amplifier gain index. Unsigned 32 bit number containing 7739 * bits for all 32 antennas. 7740 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values 7741 * for first 16 antennas, 2 bits per antenna. 7742 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values 7743 * for last 16 antennas, 2 bits per antenna. 7744 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains 7745 * DTYPE values (3 bits) for each distribution amplifier, followed 7746 * by X16 switch bits for each distribution amplifier. There are 7747 * total of 8 distribution amplifiers. 7748 */ 7749 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg { 7750 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0, 7751 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1, 7752 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2, 7753 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3, 7754 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4, 7755 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5, 7756 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6, 7757 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7, 7758 7759 /* keep last */ 7760 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST, 7761 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX = 7762 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1 7763 }; 7764 7765 /** 7766 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for 7767 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS configuration to the host driver. 7768 * 7769 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger 7770 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode 7771 * represents the different TDLS trigger modes. 7772 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within 7773 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number 7774 * of packets shall meet the criteria for implicit TDLS setup. 7775 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx 7776 * packets within a duration. 7777 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD to initiate 7778 * a TDLS setup. 7779 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate 7780 * a TDLS Discovery to the Peer. 7781 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of 7782 * discovery attempts to know the TDLS capability of the peer. A peer is 7783 * marked as TDLS not capable if there is no response for all the attempts. 7784 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32) 7785 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD 7786 * number of TX / RX frames meet the criteria for TDLS teardown. 7787 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number 7788 * (u32) of Tx/Rx packets within a duration 7789 * CA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link 7790 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold 7791 * corresponding to the RSSI of the peer below which a TDLS 7792 * setup is triggered. 7793 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold 7794 * corresponding to the RSSI of the peer above which 7795 * a TDLS teardown is triggered. 7796 */ 7797 enum qca_wlan_vendor_attr_tdls_configuration { 7798 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0, 7799 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1, 7800 7801 /* Attributes configuring the TDLS Implicit Trigger */ 7802 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2, 7803 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3, 7804 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4, 7805 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5, 7806 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6, 7807 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7, 7808 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8, 7809 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9, 7810 7811 /* keep last */ 7812 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST, 7813 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX = 7814 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1 7815 }; 7816 7817 /** 7818 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in 7819 * the driver. 7820 * 7821 * The following are the different values for 7822 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE. 7823 * 7824 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to 7825 * initiate/teardown the TDLS connection to a respective peer comes 7826 * from the user space. wpa_supplicant provides the commands 7827 * TDLS_SETUP, TDLS_TEARDOWN, TDLS_DISCOVER to do this. 7828 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS 7829 * setup/teardown to the eligible peer once the configured criteria 7830 * (such as TX/RX threshold, RSSI) is met. The attributes 7831 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to 7832 * the different configuration criteria for the TDLS trigger from the 7833 * host driver. 7834 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger 7835 * the TDLS setup / teardown through the implicit mode, only to the 7836 * configured MAC addresses(wpa_supplicant, with tdls_external_control = 1, 7837 * configures the MAC address through TDLS_SETUP/TDLS_TEARDOWN commands). 7838 * External mode works on top of the implicit mode, thus the host Driver 7839 * is expected to be configured in TDLS Implicit mode too to operate in 7840 * External mode. Configuring External mode alone without Implicit 7841 * mode is invalid. 7842 * 7843 * All the above implementations work as expected only when the host driver 7844 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - 7845 * representing that the TDLS message exchange is not internal to the host 7846 * driver, but depends on wpa_supplicant to do the message exchange. 7847 */ 7848 enum qca_wlan_vendor_tdls_trigger_mode { 7849 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0, 7850 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1, 7851 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2, 7852 }; 7853 7854 /** 7855 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits 7856 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0 7857 * that is hard-coded in the Board Data File (BDF). 7858 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1 7859 * that is hard-coded in the Board Data File (BDF). 7860 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2 7861 * that is hard-coded in the Board Data File (BDF). 7862 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3 7863 * that is hard-coded in the Board Data File (BDF). 7864 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4 7865 * that is hard-coded in the Board Data File (BDF). 7866 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any 7867 * source of SAR power limits, thereby disabling the SAR power 7868 * limit feature. 7869 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power 7870 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 7871 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power 7872 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 7873 * 7874 * This enumerates the valid set of values that may be supplied for 7875 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of 7876 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in 7877 * the response to an instance of the 7878 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 7879 */ 7880 enum qca_vendor_attr_sar_limits_selections { 7881 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0, 7882 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1, 7883 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2, 7884 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3, 7885 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4, 7886 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5, 7887 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6, 7888 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7, 7889 }; 7890 7891 /** 7892 * enum qca_vendor_attr_sar_limits_spec_modulations - 7893 * SAR limits specification modulation 7894 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK - 7895 * CCK modulation 7896 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM - 7897 * OFDM modulation 7898 * 7899 * This enumerates the valid set of values that may be supplied for 7900 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an 7901 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an 7902 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor 7903 * command or in the response to an instance of the 7904 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 7905 */ 7906 enum qca_vendor_attr_sar_limits_spec_modulations { 7907 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0, 7908 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1, 7909 }; 7910 7911 /** 7912 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits 7913 * 7914 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to 7915 * select which SAR power limit table should be used. Valid 7916 * values are enumerated in enum 7917 * %qca_vendor_attr_sar_limits_selections. The existing SAR 7918 * power limit selection is unchanged if this attribute is not 7919 * present. 7920 * 7921 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value 7922 * which specifies the number of SAR power limit specifications 7923 * which will follow. 7924 * 7925 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power 7926 * limit specifications. The number of specifications is 7927 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each 7928 * specification contains a set of 7929 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A 7930 * specification is uniquely identified by the attributes 7931 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND, 7932 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and 7933 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always 7934 * contains as a payload the attribute 7935 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT. 7936 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX. 7937 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or 7938 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is 7939 * needed based upon the value of 7940 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE. 7941 * 7942 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to 7943 * indicate for which band this specification applies. Valid 7944 * values are enumerated in enum %nl80211_band (although not all 7945 * bands may be supported by a given device). If the attribute is 7946 * not supplied then the specification will be applied to all 7947 * supported bands. 7948 * 7949 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value 7950 * to indicate for which antenna chain this specification 7951 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the 7952 * attribute is not supplied then the specification will be 7953 * applied to all chains. 7954 * 7955 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32) 7956 * value to indicate for which modulation scheme this 7957 * specification applies. Valid values are enumerated in enum 7958 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute 7959 * is not supplied then the specification will be applied to all 7960 * modulation schemes. 7961 * 7962 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32) 7963 * value to specify the actual power limit value in units of 0.5 7964 * dBm (i.e., a value of 11 represents 5.5 dBm). 7965 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 7966 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER. 7967 * 7968 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32) 7969 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles. 7970 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 7971 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0. 7972 * 7973 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS 7974 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS. 7975 */ 7976 enum qca_vendor_attr_sar_limits { 7977 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0, 7978 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1, 7979 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2, 7980 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3, 7981 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4, 7982 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5, 7983 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6, 7984 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7, 7985 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8, 7986 7987 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST, 7988 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX = 7989 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1 7990 }; 7991 7992 /** 7993 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring 7994 * offload which is an extension for LL_STATS. 7995 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms. 7996 * If MAC counters do not exceed the threshold, FW will report monitored 7997 * link layer counters periodically as this setting. The first report is 7998 * always triggered by this timer. 7999 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99). 8000 * For each MAC layer counter, FW holds two copies. One is the current value. 8001 * The other is the last report. Once a current counter's increment is larger 8002 * than the threshold, FW will indicate that counter to host even if the 8003 * monitoring timer does not expire. 8004 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change 8005 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU 8006 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same 8007 * failure code. 8008 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code 8009 * 1: TX packet discarded 8010 * 2: No ACK 8011 * 3: Postpone 8012 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address 8013 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state 8014 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold. 8015 * Threshold for all monitored parameters. If per counter dedicated threshold 8016 * is not enabled, this threshold will take effect. 8017 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this 8018 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0. 8019 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID 8020 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID 8021 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters 8022 * Bit0: TX counter unit in MSDU 8023 * Bit1: TX counter unit in MPDU 8024 * Bit2: TX counter unit in PPDU 8025 * Bit3: TX counter unit in byte 8026 * Bit4: Dropped MSDUs 8027 * Bit5: Dropped Bytes 8028 * Bit6: MPDU retry counter 8029 * Bit7: MPDU failure counter 8030 * Bit8: PPDU failure counter 8031 * Bit9: MPDU aggregation counter 8032 * Bit10: MCS counter for ACKed MPDUs 8033 * Bit11: MCS counter for Failed MPDUs 8034 * Bit12: TX Delay counter 8035 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters 8036 * Bit0: MAC RX counter unit in MPDU 8037 * Bit1: MAC RX counter unit in byte 8038 * Bit2: PHY RX counter unit in PPDU 8039 * Bit3: PHY RX counter unit in byte 8040 * Bit4: Disorder counter 8041 * Bit5: Retry counter 8042 * Bit6: Duplication counter 8043 * Bit7: Discard counter 8044 * Bit8: MPDU aggregation size counter 8045 * Bit9: MCS counter 8046 * Bit10: Peer STA power state change (wake to sleep) counter 8047 * Bit11: Peer STA power save counter, total time in PS mode 8048 * Bit12: Probe request counter 8049 * Bit13: Other management frames counter 8050 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA 8051 * Bit0: Idle time 8052 * Bit1: TX time 8053 * Bit2: time RX in current bss 8054 * Bit3: Out of current bss time 8055 * Bit4: Wireless medium busy time 8056 * Bit5: RX in bad condition time 8057 * Bit6: TX in bad condition time 8058 * Bit7: time wlan card not available 8059 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal 8060 * Bit0: Per channel SNR counter 8061 * Bit1: Per channel noise floor counter 8062 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers 8063 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels 8064 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats 8065 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats 8066 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats 8067 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs 8068 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs 8069 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs 8070 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data 8071 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets 8072 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped 8073 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK 8074 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed 8075 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed 8076 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM: 8077 * aggregation stats buffer length 8078 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats 8079 * buffer for ACKed MPDUs. 8080 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats 8081 * buffer for failed MPDUs. 8082 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE: 8083 * length of delay stats array. 8084 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats 8085 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs 8086 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs 8087 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats 8088 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received 8089 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received 8090 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received 8091 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received 8092 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost 8093 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets 8094 * flagged as retransmissions 8095 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets 8096 * flagged as duplicated 8097 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX 8098 * packets discarded 8099 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation 8100 * stats buffer. 8101 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs 8102 * stats buffer. 8103 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer 8104 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer 8105 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep 8106 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time 8107 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe 8108 * requests received 8109 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt 8110 * frames received 8111 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time 8112 * there is no TX, nor RX, nor interference. 8113 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time 8114 * transmitting packets. 8115 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time 8116 * for receiving. 8117 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time 8118 * interference detected. 8119 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time 8120 * receiving packets with errors. 8121 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time 8122 * TX no-ACK. 8123 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time 8124 * the chip is unable to work in normal conditions. 8125 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time 8126 * receiving packets in current BSS. 8127 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time 8128 * receiving packets not in current BSS. 8129 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas 8130 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL: 8131 * This is a container for per antenna signal stats. 8132 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value 8133 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value 8134 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon 8135 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon 8136 */ 8137 enum qca_wlan_vendor_attr_ll_stats_ext { 8138 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0, 8139 8140 /* Attributes for configurations */ 8141 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD, 8142 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD, 8143 8144 /* Peer STA power state change */ 8145 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG, 8146 8147 /* TX failure event */ 8148 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID, 8149 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU, 8150 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS, 8151 8152 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE, 8153 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS, 8154 8155 /* MAC counters */ 8156 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL, 8157 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE, 8158 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID, 8159 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID, 8160 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP, 8161 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP, 8162 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP, 8163 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP, 8164 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM, 8165 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM, 8166 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS, 8167 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER, 8168 8169 /* Sub-attributes for PEER_AC_TX */ 8170 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU, 8171 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU, 8172 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU, 8173 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES, 8174 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP, 8175 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES, 8176 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY, 8177 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK, 8178 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK, 8179 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM, 8180 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM, 8181 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM, 8182 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR, 8183 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS, 8184 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS, 8185 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE, 8186 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY, 8187 8188 /* Sub-attributes for PEER_AC_RX */ 8189 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU, 8190 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES, 8191 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU, 8192 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES, 8193 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST, 8194 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY, 8195 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP, 8196 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD, 8197 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM, 8198 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM, 8199 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS, 8200 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR, 8201 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES, 8202 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION, 8203 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ, 8204 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT, 8205 8206 /* Sub-attributes for CCA_BSS */ 8207 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME, 8208 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME, 8209 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME, 8210 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY, 8211 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD, 8212 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD, 8213 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL, 8214 8215 /* sub-attribute for BSS_RX_TIME */ 8216 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME, 8217 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME, 8218 8219 /* Sub-attributes for PEER_SIGNAL */ 8220 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM, 8221 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL, 8222 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR, 8223 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF, 8224 8225 /* Sub-attributes for IFACE_BSS */ 8226 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON, 8227 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON, 8228 8229 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST, 8230 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX = 8231 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1 8232 }; 8233 8234 /** 8235 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd 8236 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels 8237 * in priority order as decided after ACS operation in userspace. 8238 * 8239 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8). 8240 * One of reason code from enum qca_wlan_vendor_acs_select_reason. 8241 * 8242 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required 8243 * Array of nested values for each channel with following attributes: 8244 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, 8245 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, 8246 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, 8247 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, 8248 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 8249 * Note: If both the driver and user-space application supports the 6 GHz band, 8250 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use 8251 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST. 8252 * To maintain backward compatibility, 8253 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST 8254 * is still used if either of the driver or user space application doesn't 8255 * support the 6 GHz band. 8256 * 8257 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8). 8258 * Primary channel number 8259 * Note: If both the driver and user-space application supports the 6 GHz band, 8260 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use 8261 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY. 8262 * To maintain backward compatibility, 8263 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY 8264 * is still used if either of the driver or user space application doesn't 8265 * support the 6 GHz band. 8266 * 8267 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8). 8268 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths. 8269 * Note: If both the driver and user-space application supports the 6 GHz band, 8270 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use 8271 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY. 8272 * To maintain backward compatibility, 8273 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY 8274 * is still used if either of the driver or user space application 8275 * doesn't support the 6 GHz band. 8276 * 8277 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8). 8278 * VHT seg0 channel number 8279 * Note: If both the driver and user-space application supports the 6 GHz band, 8280 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use 8281 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0. 8282 * To maintain backward compatibility, 8283 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 8284 * is still used if either of the driver or user space application 8285 * doesn't support the 6 GHz band. 8286 * 8287 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8). 8288 * VHT seg1 channel number 8289 * Note: If both the driver and user-space application supports the 6 GHz band, 8290 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use 8291 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1. 8292 * To maintain backward compatibility, 8293 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 8294 * is still used if either of the driver or user space application 8295 * doesn't support the 6 GHz band. 8296 * 8297 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8). 8298 * Takes one of enum nl80211_chan_width values. 8299 * 8300 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required 8301 * Array of nested values for each channel with following attributes: 8302 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32), 8303 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32), 8304 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32), 8305 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32), 8306 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 8307 * Note: If user-space application has no support of the 6 GHz band, this 8308 * attribute is optional. 8309 * 8310 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32) 8311 * Primary channel frequency in MHz 8312 * Note: If user-space application has no support of the 6 GHz band, this 8313 * attribute is optional. 8314 * 8315 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32) 8316 * Secondary channel frequency in MHz used for HT 40 MHz channels. 8317 * Note: If user-space application has no support of the 6 GHz band, this 8318 * attribute is optional. 8319 * 8320 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32) 8321 * VHT seg0 channel frequency in MHz 8322 * Note: If user-space application has no support of the 6GHz band, this 8323 * attribute is optional. 8324 * 8325 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32) 8326 * VHT seg1 channel frequency in MHz 8327 * Note: If user-space application has no support of the 6 GHz band, this 8328 * attribute is optional. 8329 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16) 8330 * Puncture Bitmap for selected primary channel. Optional if no support 8331 * for EHT (IEEE 802.11be). Encoding for this attribute follows the 8332 * convention used in the Disabled Subchannel Bitmap field of the EHT Operation 8333 * element. 8334 */ 8335 enum qca_wlan_vendor_attr_external_acs_channels { 8336 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0, 8337 8338 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason 8339 */ 8340 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1, 8341 8342 /* Array of nested values for each channel with following attributes: 8343 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND, 8344 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, 8345 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, 8346 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, 8347 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, 8348 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 8349 */ 8350 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2, 8351 /* This (u8) will hold values of one of enum nl80211_bands */ 8352 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3, 8353 /* Primary channel (u8) */ 8354 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4, 8355 /* Secondary channel (u8) used for HT 40 MHz channels */ 8356 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5, 8357 /* VHT seg0 channel (u8) */ 8358 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6, 8359 /* VHT seg1 channel (u8) */ 8360 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7, 8361 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */ 8362 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8, 8363 8364 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9, 8365 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10, 8366 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11, 8367 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12, 8368 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13, 8369 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14, 8370 8371 /* keep last */ 8372 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST, 8373 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX = 8374 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1 8375 }; 8376 8377 /** 8378 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why 8379 * the ACS has to be triggered. These values are used by 8380 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and 8381 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON 8382 */ 8383 enum qca_wlan_vendor_acs_select_reason { 8384 /* Represents the reason that the ACS triggered during the AP start */ 8385 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT, 8386 /* Represents the reason that DFS found with the current channel */ 8387 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS, 8388 /* Represents the reason that LTE co-exist in the current band. */ 8389 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX, 8390 /* Represents the reason that generic, uncategorized interference has 8391 * been found in the current channel. 8392 */ 8393 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE, 8394 /* Represents the reason that excessive 802.11 interference has been 8395 * found in the current channel. 8396 */ 8397 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE, 8398 /* Represents the reason that generic Continuous Wave (CW) interference 8399 * has been found in the current channel. 8400 */ 8401 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE, 8402 /* Represents the reason that Microwave Oven (MWO) interference has been 8403 * found in the current channel. 8404 */ 8405 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE, 8406 /* Represents the reason that generic Frequency-Hopping Spread Spectrum 8407 * (FHSS) interference has been found in the current channel. This may 8408 * include 802.11 waveforms. 8409 */ 8410 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE, 8411 /* Represents the reason that non-802.11 generic Frequency-Hopping 8412 * Spread Spectrum (FHSS) interference has been found in the current 8413 * channel. 8414 */ 8415 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE, 8416 /* Represents the reason that generic Wideband (WB) interference has 8417 * been found in the current channel. This may include 802.11 waveforms. 8418 */ 8419 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE, 8420 /* Represents the reason that non-802.11 generic Wideband (WB) 8421 * interference has been found in the current channel. 8422 */ 8423 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE, 8424 /* Represents the reason that Jammer interference has been found in the 8425 * current channel. 8426 */ 8427 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE, 8428 /* Represents the reason that ACS triggered by AFC */ 8429 QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER, 8430 }; 8431 8432 /** 8433 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration 8434 * 8435 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32) 8436 * value to specify the gpio command, please refer to enum qca_gpio_cmd_type 8437 * to get the available value that this item can use. 8438 * 8439 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32) 8440 * value to specify the gpio number. 8441 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8442 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %.QCA_WLAN_VENDOR_GPIO_OUTPUT. 8443 * 8444 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32) 8445 * value to specify the gpio output level, please refer to enum qca_gpio_value 8446 * to get the available value that this item can use. 8447 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8448 * %QCA_WLAN_VENDOR_GPIO_OUTPUT. 8449 * 8450 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32) 8451 * value to specify the gpio pull type, please refer to enum qca_gpio_pull_type 8452 * to get the available value that this item can use. 8453 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8454 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 8455 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 8456 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 8457 * attribute is present. 8458 * 8459 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32) 8460 * value to specify the gpio interrupt mode, please refer to enum 8461 * qca_gpio_interrupt_mode to get the available value that this item can use. 8462 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8463 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 8464 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 8465 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 8466 * attribute is present. 8467 * 8468 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32) 8469 * value to specify the gpio direction, please refer to enum qca_gpio_direction 8470 * to get the available value that this item can use. 8471 * Required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8472 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 8473 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 8474 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 8475 * attribute is present. 8476 * 8477 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32) 8478 * Value to specify the mux config. Meaning of a given value is dependent 8479 * on the target chipset and gpio pin. Must be of the range 0-15. 8480 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8481 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0. 8482 * 8483 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32) 8484 * Value to specify the drive, Refer to enum qca_gpio_drive. 8485 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8486 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0). 8487 * 8488 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag) 8489 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 8490 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all 8491 * other parameters for the given GPIO will be obtained from internal 8492 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be 8493 * specified to indicate the GPIO pin being configured. 8494 */ 8495 enum qca_wlan_gpio_attr { 8496 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0, 8497 /* Unsigned 32-bit attribute for GPIO command */ 8498 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1, 8499 /* Unsigned 32-bit attribute for GPIO PIN number to configure */ 8500 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2, 8501 /* Unsigned 32-bit attribute for GPIO value to configure */ 8502 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3, 8503 /* Unsigned 32-bit attribute for GPIO pull type */ 8504 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4, 8505 /* Unsigned 32-bit attribute for GPIO interrupt mode */ 8506 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5, 8507 /* Unsigned 32-bit attribute for GPIO direction to configure */ 8508 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6, 8509 /* Unsigned 32-bit attribute for GPIO mux config */ 8510 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7, 8511 /* Unsigned 32-bit attribute for GPIO drive */ 8512 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8, 8513 /* Flag attribute for using internal gpio configuration */ 8514 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9, 8515 8516 /* keep last */ 8517 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST, 8518 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX = 8519 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1, 8520 }; 8521 8522 /** 8523 * enum gpio_cmd_type - GPIO configuration command type 8524 * @QCA_WLAN_VENDOR_GPIO_CONFIG: set gpio configuration info 8525 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: set gpio output level 8526 */ 8527 enum qca_gpio_cmd_type { 8528 QCA_WLAN_VENDOR_GPIO_CONFIG = 0, 8529 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1, 8530 }; 8531 8532 /** 8533 * enum qca_gpio_pull_type - GPIO pull type 8534 * @QCA_WLAN_GPIO_PULL_NONE: set gpio pull type to none 8535 * @QCA_WLAN_GPIO_PULL_UP: set gpio pull up 8536 * @QCA_WLAN_GPIO_PULL_DOWN: set gpio pull down 8537 */ 8538 enum qca_gpio_pull_type { 8539 QCA_WLAN_GPIO_PULL_NONE = 0, 8540 QCA_WLAN_GPIO_PULL_UP = 1, 8541 QCA_WLAN_GPIO_PULL_DOWN = 2, 8542 QCA_WLAN_GPIO_PULL_MAX, 8543 }; 8544 8545 /** 8546 * enum qca_gpio_direction - GPIO direction 8547 * @QCA_WLAN_GPIO_INPUT: set gpio as input mode 8548 * @QCA_WLAN_GPIO_OUTPUT: set gpio as output mode 8549 * @QCA_WLAN_GPIO_VALUE_MAX: invalid value 8550 */ 8551 enum qca_gpio_direction { 8552 QCA_WLAN_GPIO_INPUT = 0, 8553 QCA_WLAN_GPIO_OUTPUT = 1, 8554 QCA_WLAN_GPIO_DIR_MAX, 8555 }; 8556 8557 /** 8558 * enum qca_gpio_value - GPIO Value 8559 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low 8560 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high 8561 * @QCA_WLAN_GPIO_LEVEL_MAX: invalid value 8562 */ 8563 enum qca_gpio_value { 8564 QCA_WLAN_GPIO_LEVEL_LOW = 0, 8565 QCA_WLAN_GPIO_LEVEL_HIGH = 1, 8566 QCA_WLAN_GPIO_LEVEL_MAX, 8567 }; 8568 8569 /** 8570 * enum gpio_interrupt_mode - GPIO interrupt mode 8571 * @QCA_WLAN_GPIO_INTMODE_DISABLE: disable interrupt trigger 8572 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: interrupt with gpio rising edge trigger 8573 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: interrupt with gpio falling edge trigger 8574 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: interrupt with gpio both edge trigger 8575 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: interrupt with gpio level low trigger 8576 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: interrupt with gpio level high trigger 8577 * @QCA_WLAN_GPIO_INTMODE_MAX: invalid value 8578 */ 8579 enum qca_gpio_interrupt_mode { 8580 QCA_WLAN_GPIO_INTMODE_DISABLE = 0, 8581 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1, 8582 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2, 8583 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3, 8584 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4, 8585 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5, 8586 QCA_WLAN_GPIO_INTMODE_MAX, 8587 }; 8588 8589 /** 8590 * enum gpio_drive - GPIO drive 8591 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA 8592 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA 8593 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA 8594 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA 8595 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA 8596 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA 8597 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA 8598 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA 8599 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid gpio drive 8600 */ 8601 enum qca_gpio_drive { 8602 QCA_WLAN_GPIO_DRIVE_2MA = 0, 8603 QCA_WLAN_GPIO_DRIVE_4MA = 1, 8604 QCA_WLAN_GPIO_DRIVE_6MA = 2, 8605 QCA_WLAN_GPIO_DRIVE_8MA = 3, 8606 QCA_WLAN_GPIO_DRIVE_10MA = 4, 8607 QCA_WLAN_GPIO_DRIVE_12MA = 5, 8608 QCA_WLAN_GPIO_DRIVE_14MA = 6, 8609 QCA_WLAN_GPIO_DRIVE_16MA = 7, 8610 QCA_WLAN_GPIO_DRIVE_MAX, 8611 }; 8612 8613 /** 8614 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting 8615 * MSDUQ depth threshold per peer per tid in the target 8616 * 8617 * Associated Vendor Command: 8618 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH 8619 */ 8620 enum qca_wlan_set_qdepth_thresh_attr { 8621 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0, 8622 /* 6-byte MAC address */ 8623 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR, 8624 /* Unsigned 32-bit attribute for holding the TID */ 8625 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID, 8626 /* Unsigned 32-bit attribute for holding the update mask 8627 * bit 0 - Update high priority msdu qdepth threshold 8628 * bit 1 - Update low priority msdu qdepth threshold 8629 * bit 2 - Update UDP msdu qdepth threshold 8630 * bit 3 - Update Non UDP msdu qdepth threshold 8631 * rest of bits are reserved 8632 */ 8633 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK, 8634 /* Unsigned 32-bit attribute for holding the threshold value */ 8635 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE, 8636 8637 /* keep last */ 8638 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST, 8639 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX = 8640 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1, 8641 }; 8642 8643 /** 8644 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for 8645 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd 8646 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the 8647 * external ACS policies to select the channels w.r.t. the PCL weights. 8648 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and 8649 * their PCL weights.) 8650 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to 8651 * select a channel with non-zero PCL weight. 8652 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a 8653 * channel with non-zero PCL weight. 8654 * 8655 */ 8656 enum qca_wlan_vendor_attr_external_acs_policy { 8657 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED, 8658 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY, 8659 }; 8660 8661 /** 8662 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters 8663 */ 8664 enum qca_wlan_vendor_attr_spectral_scan { 8665 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0, 8666 /* 8667 * Number of times the chip enters spectral scan mode before 8668 * deactivating spectral scans. When set to 0, chip will enter spectral 8669 * scan mode continuously. u32 attribute. 8670 */ 8671 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1, 8672 /* 8673 * Spectral scan period. Period increment resolution is 256*Tclk, 8674 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute. 8675 */ 8676 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2, 8677 /* Spectral scan priority. u32 attribute. */ 8678 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3, 8679 /* Number of FFT data points to compute. u32 attribute. */ 8680 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4, 8681 /* 8682 * Enable targeted gain change before starting the spectral scan FFT. 8683 * u32 attribute. 8684 */ 8685 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5, 8686 /* Restart a queued spectral scan. u32 attribute. */ 8687 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6, 8688 /* 8689 * Noise floor reference number for the calculation of bin power. 8690 * u32 attribute. 8691 */ 8692 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7, 8693 /* 8694 * Disallow spectral scan triggers after TX/RX packets by setting 8695 * this delay value to roughly SIFS time period or greater. 8696 * u32 attribute. 8697 */ 8698 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8, 8699 /* 8700 * Number of strong bins (inclusive) per sub-channel, below 8701 * which a signal is declared a narrow band tone. u32 attribute. 8702 */ 8703 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9, 8704 /* 8705 * Specify the threshold over which a bin is declared strong (for 8706 * scan bandwidth analysis). u32 attribute. 8707 */ 8708 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10, 8709 /* Spectral scan report mode. u32 attribute. */ 8710 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11, 8711 /* 8712 * RSSI report mode, if the ADC RSSI is below 8713 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR, 8714 * then FFTs will not trigger, but timestamps and summaries get 8715 * reported. u32 attribute. 8716 */ 8717 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12, 8718 /* 8719 * ADC RSSI must be greater than or equal to this threshold (signed dB) 8720 * to ensure spectral scan reporting with normal error code. 8721 * u32 attribute. 8722 */ 8723 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13, 8724 /* 8725 * Format of frequency bin magnitude for spectral scan triggered FFTs: 8726 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)). 8727 * u32 attribute. 8728 */ 8729 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14, 8730 /* 8731 * Format of FFT report to software for spectral scan triggered FFTs. 8732 * 0: No FFT report (only spectral scan summary report) 8733 * 1: 2-dword summary of metrics for each completed FFT + spectral scan 8734 * report 8735 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled 8736 * bins (in-band) per FFT + spectral scan summary report 8737 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled 8738 * bins (all) per FFT + spectral scan summary report 8739 * u32 attribute. 8740 */ 8741 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15, 8742 /* 8743 * Number of LSBs to shift out in order to scale the FFT bins. 8744 * u32 attribute. 8745 */ 8746 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16, 8747 /* 8748 * Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes 8749 * in dBm power. u32 attribute. 8750 */ 8751 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17, 8752 /* 8753 * Per chain enable mask to select input ADC for search FFT. 8754 * u32 attribute. 8755 */ 8756 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18, 8757 /* 8758 * An unsigned 64-bit integer provided by host driver to identify the 8759 * spectral scan request. This attribute is included in the scan 8760 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START 8761 * and used as an attribute in 8762 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the 8763 * specific scan to be stopped. 8764 */ 8765 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19, 8766 /* Skip interval for FFT reports. u32 attribute */ 8767 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20, 8768 /* Set to report only one set of FFT results. 8769 * u32 attribute. 8770 */ 8771 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21, 8772 /* Debug level for spectral module in driver. 8773 * 0 : Verbosity level 0 8774 * 1 : Verbosity level 1 8775 * 2 : Verbosity level 2 8776 * 3 : Matched filterID display 8777 * 4 : One time dump of FFT report 8778 * u32 attribute. 8779 */ 8780 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22, 8781 /* Type of spectral scan request. u32 attribute. 8782 * It uses values defined in enum 8783 * qca_wlan_vendor_attr_spectral_scan_request_type. 8784 */ 8785 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23, 8786 /* This specifies the frequency span over which spectral 8787 * scan would be carried out. Its value depends on the 8788 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and 8789 * the relation is as follows. 8790 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL 8791 * Not applicable. Spectral scan would happen in the 8792 * operating span. 8793 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE 8794 * Center frequency (in MHz) of the span of interest or 8795 * for convenience, center frequency (in MHz) of any channel 8796 * in the span of interest. For 80+80 MHz agile spectral scan 8797 * request it represents center frequency (in MHz) of the primary 8798 * 80 MHz span or for convenience, center frequency (in MHz) of any 8799 * channel in the primary 80 MHz span. If agile spectral scan is 8800 * initiated without setting a valid frequency it returns the 8801 * error code 8802 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED). 8803 * u32 attribute. 8804 */ 8805 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24, 8806 /* Spectral scan mode. u32 attribute. 8807 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. 8808 * If this attribute is not present, it is assumed to be 8809 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL). 8810 */ 8811 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25, 8812 /* Spectral scan error code. u32 attribute. 8813 * It uses values defined in enum 8814 * qca_wlan_vendor_spectral_scan_error_code. 8815 * This attribute is included only in failure scenarios. 8816 */ 8817 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26, 8818 /* 8-bit unsigned value to enable/disable debug of the 8819 * Spectral DMA ring. 8820 * 1-enable, 0-disable 8821 */ 8822 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27, 8823 /* 8-bit unsigned value to enable/disable debug of the 8824 * Spectral DMA buffers. 8825 * 1-enable, 0-disable 8826 */ 8827 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28, 8828 /* This specifies the frequency span over which spectral scan would be 8829 * carried out. Its value depends on the value of 8830 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as 8831 * follows. 8832 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL 8833 * Not applicable. Spectral scan would happen in the operating span. 8834 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE 8835 * This attribute is applicable only for agile spectral scan 8836 * requests in 80+80 MHz mode. It represents center frequency (in 8837 * MHz) of the secondary 80 MHz span or for convenience, center 8838 * frequency (in MHz) of any channel in the secondary 80 MHz span. 8839 * u32 attribute. 8840 */ 8841 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29, 8842 /* This attribute specifies the bandwidth to be used for Spectral scan 8843 * operation. This is an u8 attribute and uses the values in enum 8844 * nl80211_chan_width. This is an optional attribute. 8845 * If this attribute is not populated, the driver should configure the 8846 * Spectral scan bandwidth to the maximum value supported by the target 8847 * for the current operating bandwidth. 8848 */ 8849 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30, 8850 /* Spectral FFT recapture flag attribute, to enable/disable FFT 8851 * recapture. Recapture can only be enabled for Scan period greater 8852 * than 52us. 8853 * If this attribute is enabled, re-triggers will be enabled in uCode 8854 * when AGC gain changes. 8855 */ 8856 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31, 8857 8858 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST, 8859 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX = 8860 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1, 8861 }; 8862 8863 /** 8864 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command 8865 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS. 8866 */ 8867 enum qca_wlan_vendor_attr_spectral_diag_stats { 8868 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0, 8869 /* Number of spectral TLV signature mismatches. 8870 * u64 attribute. 8871 */ 8872 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1, 8873 /* Number of spectral phyerror events with insufficient length when 8874 * parsing for secondary 80 search FFT report. u64 attribute. 8875 */ 8876 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2, 8877 /* Number of spectral phyerror events without secondary 80 8878 * search FFT report. u64 attribute. 8879 */ 8880 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3, 8881 /* Number of spectral phyerror events with vht operation segment 1 id 8882 * mismatches in search fft report. u64 attribute. 8883 */ 8884 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4, 8885 /* Number of spectral phyerror events with vht operation segment 2 id 8886 * mismatches in search fft report. u64 attribute. 8887 */ 8888 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5, 8889 8890 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST, 8891 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX = 8892 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1, 8893 }; 8894 8895 /** 8896 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command 8897 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. 8898 */ 8899 enum qca_wlan_vendor_attr_spectral_cap { 8900 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0, 8901 /* Flag attribute to indicate phydiag capability */ 8902 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1, 8903 /* Flag attribute to indicate radar detection capability */ 8904 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2, 8905 /* Flag attribute to indicate spectral capability */ 8906 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3, 8907 /* Flag attribute to indicate advanced spectral capability */ 8908 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4, 8909 /* Spectral hardware generation. u32 attribute. 8910 * It uses values defined in enum 8911 * qca_wlan_vendor_spectral_scan_cap_hw_gen. 8912 */ 8913 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5, 8914 /* Spectral bin scaling formula ID. u16 attribute. 8915 * It uses values defined in enum 8916 * qca_wlan_vendor_spectral_scan_cap_formula_id. 8917 */ 8918 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6, 8919 /* Spectral bin scaling param - low level offset. 8920 * s16 attribute. 8921 */ 8922 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7, 8923 /* Spectral bin scaling param - high level offset. 8924 * s16 attribute. 8925 */ 8926 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8, 8927 /* Spectral bin scaling param - RSSI threshold. 8928 * s16 attribute. 8929 */ 8930 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9, 8931 /* Spectral bin scaling param - default AGC max gain. 8932 * u8 attribute. 8933 */ 8934 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10, 8935 /* Flag attribute to indicate agile spectral scan capability 8936 * for 20/40/80 MHz modes. 8937 */ 8938 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11, 8939 /* Flag attribute to indicate agile spectral scan capability 8940 * for 160 MHz mode. 8941 */ 8942 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12, 8943 /* Flag attribute to indicate agile spectral scan capability 8944 * for 80+80 MHz mode. 8945 */ 8946 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13, 8947 /* Number of spectral detectors used for scan in 20 MHz. 8948 * u32 attribute. 8949 */ 8950 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14, 8951 /* Number of spectral detectors used for scan in 40 MHz. 8952 * u32 attribute. 8953 */ 8954 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15, 8955 /* Number of spectral detectors used for scan in 80 MHz. 8956 * u32 attribute. 8957 */ 8958 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16, 8959 /* Number of spectral detectors used for scan in 160 MHz. 8960 * u32 attribute. 8961 */ 8962 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17, 8963 /* Number of spectral detectors used for scan in 80+80 MHz. 8964 * u32 attribute. 8965 */ 8966 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18, 8967 /* Flag attribute to indicate agile spectral scan capability 8968 * for 320 MHz mode. 8969 */ 8970 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19, 8971 /* Number of spectral detectors used for scan in 320 MHz. 8972 * u32 attribute. 8973 */ 8974 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20, 8975 8976 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST, 8977 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX = 8978 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1, 8979 }; 8980 8981 /** 8982 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command 8983 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. 8984 */ 8985 enum qca_wlan_vendor_attr_spectral_scan_status { 8986 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0, 8987 /* Flag attribute to indicate whether spectral scan is enabled */ 8988 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1, 8989 /* Flag attribute to indicate whether spectral scan is in progress*/ 8990 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2, 8991 /* Spectral scan mode. u32 attribute. 8992 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. 8993 * If this attribute is not present, normal mode 8994 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be 8995 * requested. 8996 */ 8997 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3, 8998 8999 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST, 9000 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX = 9001 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1, 9002 }; 9003 9004 /** 9005 * enum qca_wlan_vendor_attr_config_latency_level - Level for 9006 * wlan latency module. 9007 * 9008 * There will be various of Wi-Fi functionality like scan/roaming/adaptive 9009 * power saving which would causing data exchange out of service, this 9010 * would be a big impact on latency. For latency sensitive applications over 9011 * Wi-Fi are intolerant to such operations and thus would configure them 9012 * to meet their respective needs. It is well understood by such applications 9013 * that altering the default behavior would degrade the Wi-Fi functionality 9014 * w.r.t the above pointed WLAN operations. 9015 * 9016 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL: 9017 * Default WLAN operation level which throughput orientated. 9018 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR: 9019 * Use XR level to benefit XR (extended reality) application to achieve 9020 * latency and power by via constraint scan/roaming/adaptive PS. 9021 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW: 9022 * Use low latency level to benefit application like concurrent 9023 * downloading or video streaming via constraint scan/adaptive PS. 9024 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW: 9025 * Use ultra low latency level to benefit for gaming/voice 9026 * application via constraint scan/roaming/adaptive PS. 9027 */ 9028 enum qca_wlan_vendor_attr_config_latency_level { 9029 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0, 9030 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1, 9031 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2, 9032 /* legacy name */ 9033 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 9034 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR, 9035 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3, 9036 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4, 9037 9038 /* keep last */ 9039 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST, 9040 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX = 9041 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1, 9042 }; 9043 9044 /** 9045 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for 9046 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd 9047 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the 9048 * spectral scan request types. 9049 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to 9050 * set the spectral parameters and start scan. 9051 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to 9052 * only set the spectral parameters. 9053 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to 9054 * only start the spectral scan. 9055 */ 9056 enum qca_wlan_vendor_attr_spectral_scan_request_type { 9057 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG, 9058 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN, 9059 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG, 9060 }; 9061 9062 /** 9063 * qca_wlan_vendor_spectral_scan_mode: Attribute values for 9064 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd 9065 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and 9066 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd 9067 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the 9068 * spectral scan modes. 9069 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan: 9070 * spectral scan in the current operating span. 9071 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan: 9072 * spectral scan in the configured agile span. 9073 */ 9074 enum qca_wlan_vendor_spectral_scan_mode { 9075 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0, 9076 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1, 9077 }; 9078 9079 /** 9080 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for 9081 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd 9082 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. 9083 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value 9084 * of a parameter is not supported. 9085 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan 9086 * mode is not supported. 9087 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter 9088 * has invalid value. 9089 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter 9090 * is not initialized. 9091 */ 9092 enum qca_wlan_vendor_spectral_scan_error_code { 9093 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0, 9094 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1, 9095 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2, 9096 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3, 9097 }; 9098 9099 /** 9100 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for 9101 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd 9102 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the 9103 * spectral hardware generation. 9104 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1 9105 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2 9106 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3 9107 */ 9108 enum qca_wlan_vendor_spectral_scan_cap_hw_gen { 9109 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0, 9110 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1, 9111 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2, 9112 }; 9113 9114 /** 9115 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for 9116 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd 9117 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the 9118 * Spectral bin scaling formula ID. 9119 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling 9120 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain 9121 * and RSSI threshold based formula. 9122 */ 9123 enum qca_wlan_vendor_spectral_scan_cap_formula_id { 9124 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0, 9125 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1, 9126 }; 9127 9128 /** 9129 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative 9130 * RF Operating Parameter (RROP) information is available, and if so, at which 9131 * point in the application-driver interaction sequence it can be retrieved by 9132 * the application from the driver. This point may vary by architecture and 9133 * other factors. This is a u16 value. 9134 */ 9135 enum qca_wlan_vendor_attr_rropavail_info { 9136 /* RROP information is unavailable. */ 9137 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE, 9138 /* RROP information is available and the application can retrieve the 9139 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS 9140 * event from the driver. 9141 */ 9142 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START, 9143 /* RROP information is available only after a vendor specific scan 9144 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has 9145 * successfully completed. The application can retrieve the information 9146 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from 9147 * the driver. 9148 */ 9149 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END, 9150 }; 9151 9152 /** 9153 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific 9154 * Representative RF Operating Parameter (RROP) information. It is sent for the 9155 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is 9156 * intended for use by external Auto Channel Selection applications. It provides 9157 * guidance values for some RF parameters that are used by the system during 9158 * operation. These values could vary by channel, band, radio, and so on. 9159 */ 9160 enum qca_wlan_vendor_attr_rrop_info { 9161 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0, 9162 9163 /* Representative Tx Power List (RTPL) which has an array of nested 9164 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst. 9165 */ 9166 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1, 9167 9168 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST, 9169 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX = 9170 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1 9171 }; 9172 9173 /** 9174 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list 9175 * entry instances in the Representative Tx Power List (RTPL). It provides 9176 * simplified power values intended for helping external Auto channel Selection 9177 * applications compare potential Tx power performance between channels, other 9178 * operating conditions remaining identical. These values are not necessarily 9179 * the actual Tx power values that will be used by the system. They are also not 9180 * necessarily the max or average values that will be used. Instead, they are 9181 * relative, summarized keys for algorithmic use computed by the driver or 9182 * underlying firmware considering a number of vendor specific factors. 9183 */ 9184 enum qca_wlan_vendor_attr_rtplinst { 9185 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0, 9186 9187 /* Primary channel number (u8). 9188 * Note: If both the driver and user space application support the 9189 * 6 GHz band, this attribute is deprecated and 9190 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To 9191 * maintain backward compatibility, 9192 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the 9193 * driver or user space application or both do not support the 6 GHz 9194 * band. 9195 */ 9196 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1, 9197 /* Representative Tx power in dBm (s32) with emphasis on throughput. */ 9198 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2, 9199 /* Representative Tx power in dBm (s32) with emphasis on range. */ 9200 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3, 9201 /* Primary channel center frequency (u32) in MHz */ 9202 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4, 9203 9204 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST, 9205 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX = 9206 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1, 9207 }; 9208 9209 /** 9210 * enum qca_wlan_vendor_attr_mac - Used by the vendor command 9211 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 9212 * 9213 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO: MAC mode info list which has an 9214 * array of nested values as per attributes in 9215 * enum qca_wlan_vendor_attr_mac_mode_info. 9216 */ 9217 enum qca_wlan_vendor_attr_mac { 9218 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0, 9219 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1, 9220 9221 /* keep last */ 9222 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST, 9223 QCA_WLAN_VENDOR_ATTR_MAC_MAX = 9224 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1, 9225 }; 9226 9227 /** 9228 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected 9229 * WiFi netdev interface on a respective MAC. Used by the attribute 9230 * QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO. 9231 * 9232 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_ID: Wi-Fi Netdev's interface id(u32). 9233 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ: Associated frequency in MHz of 9234 * the connected Wi-Fi interface(u32). 9235 */ 9236 enum qca_wlan_vendor_attr_mac_iface_info { 9237 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0, 9238 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1, 9239 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2, 9240 9241 /* keep last */ 9242 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST, 9243 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX = 9244 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1, 9245 }; 9246 9247 /** 9248 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information. 9249 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the 9250 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 9251 * 9252 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID: Hardware MAC ID associated for the 9253 * MAC (u32) 9254 * @QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND: Band supported by the respective MAC 9255 * at a given point. This is a u32 bitmask of BIT(NL80211_BAND_*) as described 9256 * in enum nl80211_band. 9257 * @QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO: Refers to list of WLAN net dev 9258 * interfaces associated with this MAC. Represented by enum 9259 * qca_wlan_vendor_attr_mac_iface_info. 9260 */ 9261 enum qca_wlan_vendor_attr_mac_info { 9262 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0, 9263 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1, 9264 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2, 9265 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3, 9266 9267 /* keep last */ 9268 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST, 9269 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX = 9270 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1, 9271 9272 }; 9273 9274 /** 9275 * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes 9276 * to get thermal status from driver/firmware. 9277 * enum values are used for NL attributes encapsulated inside 9278 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute. 9279 * 9280 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature 9281 * of a thermal level in Celsius. u32 size. 9282 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature 9283 * of a thermal level in Celsius. u32 size. 9284 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each 9285 * thermal level in milliseconds. u32 size. 9286 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number 9287 * of times the temperature crossed into the temperature range defined by the 9288 * thermal level from both higher and lower directions. u32 size. 9289 */ 9290 enum qca_wlan_vendor_attr_thermal_stats { 9291 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0, 9292 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE, 9293 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE, 9294 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME, 9295 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER, 9296 9297 /* keep last */ 9298 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST, 9299 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX = 9300 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1, 9301 }; 9302 9303 /** 9304 * enum he_fragmentation_val - HE fragmentation support values 9305 * Indicates level of dynamic fragmentation that is supported by 9306 * a STA as a recipient. 9307 * HE fragmentation values are defined as per 11ax spec and are used in 9308 * HE capability IE to advertise the support. These values are validated 9309 * in the driver to check the device capability and advertised in the HE 9310 * capability element. 9311 * 9312 * @HE_FRAG_DISABLE: no support for dynamic fragmentation 9313 * @HE_FRAG_LEVEL1: support for dynamic fragments that are 9314 * contained within an MPDU or S-MPDU, no support for dynamic fragments 9315 * within an A-MPDU that is not an S-MPDU. 9316 * @HE_FRAG_LEVEL2: support for dynamic fragments that are 9317 * contained within an MPDU or S-MPDU and support for up to one dynamic 9318 * fragment for each MSDU, each A-MSDU if supported by the recipient, and 9319 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an 9320 * MPDU or S-MPDU. 9321 * @HE_FRAG_LEVEL3: support for dynamic fragments that are 9322 * contained within an MPDU or S-MPDU and support for multiple dynamic 9323 * fragments for each MSDU and for each A-MSDU if supported by the 9324 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic 9325 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU. 9326 */ 9327 enum he_fragmentation_val { 9328 HE_FRAG_DISABLE, 9329 HE_FRAG_LEVEL1, 9330 HE_FRAG_LEVEL2, 9331 HE_FRAG_LEVEL3, 9332 }; 9333 9334 /** 9335 * enum he_mcs_config - HE MCS support configuration 9336 * 9337 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth. 9338 * These values are used in driver to configure the HE MCS map to advertise 9339 * Tx/Rx MCS map in HE capability and these values are applied for all the 9340 * streams supported by the device. To configure MCS for different bandwidths, 9341 * vendor command needs to be sent using this attribute with appropriate value. 9342 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS 9343 * attribute with QCA_WLAN_VENDOR_ATTR_HE_80_MCS0_7. And to configure HE MCS 9344 * for HE_160_MCS0_11 send this command using HE MCS config attribute with 9345 * value QCA_WLAN_VENDOR_ATTR_HE_160_MCS0_11; 9346 * 9347 * @HE_80_MCS0_7: support for HE 80/40/20MHz MCS 0 to 7 9348 * @HE_80_MCS0_9: support for HE 80/40/20MHz MCS 0 to 9 9349 * @HE_80_MCS0_11: support for HE 80/40/20MHz MCS 0 to 11 9350 * @HE_160_MCS0_7: support for HE 160MHz MCS 0 to 7 9351 * @HE_160_MCS0_9: support for HE 160MHz MCS 0 to 9 9352 * @HE_160_MCS0_11: support for HE 160MHz MCS 0 to 11 9353 * @HE_80p80_MCS0_7: support for HE 80p80MHz MCS 0 to 7 9354 * @HE_80p80_MCS0_9: support for HE 80p80MHz MCS 0 to 9 9355 * @HE_80p80_MCS0_11: support for HE 80p80MHz MCS 0 to 11 9356 */ 9357 enum he_mcs_config { 9358 HE_80_MCS0_7 = 0, 9359 HE_80_MCS0_9 = 1, 9360 HE_80_MCS0_11 = 2, 9361 HE_160_MCS0_7 = 4, 9362 HE_160_MCS0_9 = 5, 9363 HE_160_MCS0_11 = 6, 9364 HE_80p80_MCS0_7 = 8, 9365 HE_80p80_MCS0_9 = 9, 9366 HE_80p80_MCS0_11 = 10, 9367 }; 9368 9369 /** 9370 * enum qca_wlan_ba_session_config - BA session configuration 9371 * 9372 * Indicates the configuration values for BA session configuration attribute. 9373 * 9374 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration. 9375 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID. 9376 */ 9377 enum qca_wlan_ba_session_config { 9378 QCA_WLAN_ADD_BA = 1, 9379 QCA_WLAN_DELETE_BA = 2, 9380 }; 9381 9382 /** 9383 * enum qca_wlan_ac_type - access category type 9384 * 9385 * Indicates the access category type value. 9386 * 9387 * @QCA_WLAN_AC_BE: BE access category 9388 * @QCA_WLAN_AC_BK: BK access category 9389 * @QCA_WLAN_AC_VI: VI access category 9390 * @QCA_WLAN_AC_VO: VO access category 9391 * @QCA_WLAN_AC_ALL: All ACs 9392 */ 9393 enum qca_wlan_ac_type { 9394 QCA_WLAN_AC_BE = 0, 9395 QCA_WLAN_AC_BK = 1, 9396 QCA_WLAN_AC_VI = 2, 9397 QCA_WLAN_AC_VO = 3, 9398 QCA_WLAN_AC_ALL = 4, 9399 }; 9400 9401 /** 9402 * enum qca_wlan_he_ltf_cfg - HE LTF configuration 9403 * 9404 * Indicates the HE LTF configuration value. 9405 * 9406 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to 9407 * the mandatory HE-LTF based on the GI setting 9408 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF 9409 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF 9410 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF 9411 */ 9412 enum qca_wlan_he_ltf_cfg { 9413 QCA_WLAN_HE_LTF_AUTO = 0, 9414 QCA_WLAN_HE_LTF_1X = 1, 9415 QCA_WLAN_HE_LTF_2X = 2, 9416 QCA_WLAN_HE_LTF_4X = 3, 9417 }; 9418 9419 /** 9420 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration 9421 * 9422 * Indicates the HE trigger frame MAC padding duration value. 9423 * 9424 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to 9425 * process the trigger frame. 9426 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for 9427 * trigger frame. 9428 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for 9429 * trigger frame. 9430 */ 9431 enum qca_wlan_he_mac_padding_dur { 9432 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0, 9433 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1, 9434 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2, 9435 }; 9436 9437 /** 9438 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration 9439 * 9440 * Indicates the HE Operating mode control channel width setting value. 9441 * 9442 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz 9443 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz 9444 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz 9445 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz 9446 */ 9447 enum qca_wlan_he_om_ctrl_ch_bw { 9448 QCA_WLAN_HE_OM_CTRL_BW_20M = 0, 9449 QCA_WLAN_HE_OM_CTRL_BW_40M = 1, 9450 QCA_WLAN_HE_OM_CTRL_BW_80M = 2, 9451 QCA_WLAN_HE_OM_CTRL_BW_160M = 3, 9452 }; 9453 9454 /** 9455 * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration 9456 * 9457 * Indicates the frame types to use for keep alive data. 9458 * 9459 * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive. 9460 * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive. 9461 * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive. 9462 */ 9463 enum qca_wlan_keep_alive_data_type { 9464 QCA_WLAN_KEEP_ALIVE_DEFAULT = 0, 9465 QCA_WLAN_KEEP_ALIVE_DATA = 1, 9466 QCA_WLAN_KEEP_ALIVE_MGMT = 2, 9467 }; 9468 9469 /** 9470 * enum eht_mcs_config - EHT MCS support configuration 9471 * 9472 * Configures the EHT Tx/Rx MCS map in EHT Capability element. 9473 * These values are used in the driver to configure the EHT MCS map to advertise 9474 * Tx/Rx MCS map in EHT capability and these values are applied for all the 9475 * streams supported by the device. 9476 * @EHT_MCS0_7: EHT MCS 0 to 7 support 9477 * @EHT_MCS0_9: EHT MCS 0 to 9 support 9478 * @EHT_MCS0_11: EHT MCS 0 to 11 support 9479 * @EHT_MCS0_13: EHT MCS 0 to 13 support 9480 */ 9481 enum eht_mcs_config { 9482 EHT_MCS0_7 = 0, 9483 EHT_MCS0_9 = 1, 9484 EHT_MCS0_11 = 2, 9485 EHT_MCS0_13 = 3, 9486 }; 9487 9488 /** 9489 * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration. 9490 * @QCA_WLAN_EHT_MODE_INVALID: Invalid. 9491 * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode 9492 * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode. 9493 * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive 9494 * multi-link multi radio mode. 9495 * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive 9496 * multi-link multi radio mode. 9497 */ 9498 enum qca_wlan_eht_mlo_mode { 9499 QCA_WLAN_EHT_MODE_INVALID = 0, 9500 QCA_WLAN_EHT_MLSR = 1, 9501 QCA_WLAN_EHT_EMLSR = 2, 9502 QCA_WLAN_EHT_NON_STR_MLMR = 3, 9503 QCA_WLAN_EHT_STR_MLMR = 4, 9504 }; 9505 9506 /** 9507 * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration 9508 * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode 9509 * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode 9510 */ 9511 enum qca_wlan_emlsr_mode { 9512 QCA_WLAN_EMLSR_MODE_ENTER = 0, 9513 QCA_WLAN_EMLSR_MODE_EXIT = 1, 9514 }; 9515 9516 /** 9517 * enum qca_wlan_ttlm_negotiation_support: TID-To-Link Mapping Negotiation 9518 * support 9519 * @QCA_WLAN_TTLM_DISABLE: TTLM disabled 9520 * @QCA_WLAN_TTLM_SAME_LINK_SET: Mapping of all TIDs to the same link set, 9521 * both DL and UL 9522 * @QCA_WLAN_TTLM_SAME_DIFF_LINK_SET: Mapping of each TID to the same or 9523 * different link set 9524 */ 9525 enum qca_wlan_ttlm_negotiation_support { 9526 QCA_WLAN_TTLM_DISABLE = 0, 9527 QCA_WLAN_TTLM_SAME_LINK_SET = 1, 9528 QCA_WLAN_TTLM_SAME_DIFF_LINK_SET = 2, 9529 }; 9530 9531 /** 9532 * enum qca_coex_traffic_shaping_mode: Coex traffic shaping mode 9533 * @QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE: Coex policies disabled 9534 * @QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE: All coex policies enabled 9535 */ 9536 enum qca_coex_traffic_shaping_mode { 9537 QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE = 0, 9538 QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE = 1, 9539 }; 9540 9541 /** 9542 * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and 9543 * EHT operating mode control transmit request. These attributes are 9544 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and 9545 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 9546 * 9547 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value 9548 * indicates the maximum number of spatial streams, NSS, that the STA 9549 * supports in reception for PPDU bandwidths less than or equal to 80 MHz 9550 * and is set to NSS - 1. 9551 * 9552 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value 9553 * indicates the operating channel width supported by the STA for both 9554 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values. 9555 * 9556 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value 9557 * indicates the all trigger based UL MU operations by the STA. 9558 * 0 - UL MU operations are enabled by the STA. 9559 * 1 - All triggered UL MU transmissions are suspended by the STA. 9560 * 9561 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value 9562 * indicates the maximum number of space-time streams, NSTS, that 9563 * the STA supports in transmission and is set to NSTS - 1. 9564 * 9565 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value 9566 * combined with the UL MU Disable subfield and the recipient's setting 9567 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC 9568 * capabilities to determine which HE TB PPDUs are possible by the 9569 * STA to transmit. 9570 * 0 - UL MU data operations are enabled by the STA. 9571 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable 9572 * bit is not set, else UL MU Tx is suspended. 9573 * 9574 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM 9575 * Control subfield combined with the Rx NSS subfield in the OM Control subfield 9576 * indicates NSS - 1, where NSS is the maximum number of spatial streams that 9577 * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz. 9578 * 9579 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates 9580 * 320 MHz operating channel width supported by the EHT STA for both reception 9581 * and transmission. 9582 * 9583 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM 9584 * Control subfield combined with the Tx NSTS subfield in OM Control subfield 9585 * indicates NSTS - 1, where NSTS is the maximum number of space-time streams 9586 * that the STA supports in transmission for PPDU bandwidths less than or equal 9587 * to 80 MHz. 9588 */ 9589 enum qca_wlan_vendor_attr_omi_tx { 9590 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0, 9591 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1, 9592 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2, 9593 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3, 9594 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4, 9595 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5, 9596 QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6, 9597 QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7, 9598 QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8, 9599 9600 /* keep last */ 9601 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST, 9602 QCA_WLAN_VENDOR_ATTR_OMI_MAX = 9603 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1, 9604 }; 9605 9606 /* deprecated legacy names */ 9607 #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \ 9608 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX 9609 #define qca_wlan_vendor_attr_he_omi_tx \ 9610 qca_wlan_vendor_attr_omi_tx 9611 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \ 9612 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST 9613 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \ 9614 QCA_WLAN_VENDOR_ATTR_OMI_MAX 9615 9616 /** 9617 * enum qca_wlan_vendor_phy_mode - Different PHY modes 9618 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE. 9619 * 9620 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect 9621 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect 9622 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect 9623 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM 9624 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK 9625 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM 9626 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz 9627 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20 9628 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1) 9629 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1) 9630 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40 9631 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20 9632 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1) 9633 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1) 9634 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40 9635 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20 9636 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1) 9637 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1) 9638 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40 9639 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80 9640 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80 9641 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160 9642 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20 9643 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40 9644 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1) 9645 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1) 9646 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80 9647 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80 9648 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160 9649 */ 9650 enum qca_wlan_vendor_phy_mode { 9651 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0, 9652 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1, 9653 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2, 9654 QCA_WLAN_VENDOR_PHY_MODE_11A = 3, 9655 QCA_WLAN_VENDOR_PHY_MODE_11B = 4, 9656 QCA_WLAN_VENDOR_PHY_MODE_11G = 5, 9657 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6, 9658 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7, 9659 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8, 9660 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9, 9661 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10, 9662 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11, 9663 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12, 9664 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13, 9665 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14, 9666 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15, 9667 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16, 9668 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17, 9669 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18, 9670 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19, 9671 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20, 9672 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21, 9673 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22, 9674 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23, 9675 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24, 9676 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25, 9677 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26, 9678 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27, 9679 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28, 9680 }; 9681 9682 /* Attributes for data used by 9683 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION 9684 */ 9685 enum qca_wlan_vendor_attr_wifi_test_config { 9686 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0, 9687 /* 8-bit unsigned value to configure the driver to enable/disable 9688 * WMM feature. This attribute is used to configure testbed device. 9689 * 1-enable, 0-disable 9690 */ 9691 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1, 9692 9693 /* 8-bit unsigned value to configure the driver to accept/reject 9694 * the addba request from peer. This attribute is used to configure 9695 * the testbed device. 9696 * 1-accept addba, 0-reject addba 9697 */ 9698 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2, 9699 9700 /* 8-bit unsigned value to configure the driver to send or not to 9701 * send the addba request to peer. 9702 * This attribute is used to configure the testbed device. 9703 * 1-send addba, 0-do not send addba 9704 */ 9705 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3, 9706 9707 /* 8-bit unsigned value to indicate the HE fragmentation support. 9708 * Uses enum he_fragmentation_val values. 9709 * This attribute is used to configure the testbed device to 9710 * allow the advertised hardware capabilities to be downgraded 9711 * for testing purposes. 9712 */ 9713 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4, 9714 9715 /* 8-bit unsigned value to indicate the HE MCS support. 9716 * Uses enum he_mcs_config values. 9717 * This attribute is used to configure the testbed device to 9718 * allow the advertised hardware capabilities to be downgraded 9719 * for testing purposes. 9720 */ 9721 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5, 9722 9723 /* 8-bit unsigned value to configure the driver to allow or not to 9724 * allow the connection with WEP/TKIP in HT/VHT/HE modes. 9725 * This attribute is used to configure the testbed device. 9726 * 1-allow wep/tkip in HT/VHT/HE, 0-do not allow wep/tkip 9727 */ 9728 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6, 9729 9730 /* 8-bit unsigned value to configure the driver to add a 9731 * new BA session or delete the existing BA session for 9732 * given TID. ADDBA command uses the buffer size and tid 9733 * configuration if user specifies the values else default 9734 * value for buffer size is used for all tids if the tid 9735 * also not specified. For DEL_BA command TID value is 9736 * required to process the command. 9737 * Uses enum qca_wlan_ba_session_config values. 9738 * This attribute is used to configure the testbed device. 9739 */ 9740 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7, 9741 9742 /* 16-bit unsigned value to configure the buffer size in addba 9743 * request and response frames. 9744 * This attribute is used to configure the testbed device. 9745 * The range of the value is 0 to 256. 9746 */ 9747 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8, 9748 9749 /* 8-bit unsigned value to configure the buffer size in addba 9750 * request and response frames. 9751 * This attribute is used to configure the testbed device. 9752 */ 9753 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9, 9754 9755 /* 8-bit unsigned value to configure the no ack policy. 9756 * To configure no ack policy, access category value 9757 * is required to process the command. 9758 * This attribute is used to configure the testbed device. 9759 * 1 - enable no ack, 0 - disable no ack 9760 */ 9761 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10, 9762 9763 /* 8-bit unsigned value to configure the AC for no ack policy 9764 * This attribute is used to configure the testbed device. 9765 * uses the enum qca_wlan_ac_type values 9766 */ 9767 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11, 9768 9769 /* 8-bit unsigned value to configure the HE LTF 9770 * This attribute is used to configure the testbed device. 9771 * Uses the enum qca_wlan_he_ltf_cfg values. 9772 */ 9773 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12, 9774 9775 /* 8-bit unsigned value to configure the tx beamformee. 9776 * This attribute is used to configure the testbed device. 9777 * 1 - enable, 0 - disable. 9778 */ 9779 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13, 9780 9781 /* 8-bit unsigned value to configure the tx beamformee number of 9782 * space-time streams. 9783 * This attribute is used to configure the testbed device. 9784 * The range of the value is 0 to 8 9785 */ 9786 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14, 9787 9788 /* 8-bit unsigned value to configure the MU EDCA params for given AC 9789 * This attribute is used to configure the testbed device. 9790 * Uses the enum qca_wlan_ac_type values. 9791 */ 9792 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15, 9793 9794 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC 9795 * To configure MU EDCA AIFSN value, MU EDCA access category value 9796 * is required to process the command. 9797 * This attribute is used to configure the testbed device. 9798 */ 9799 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16, 9800 9801 /* 8-bit unsigned value to configure the MU EDCA ECW min value for 9802 * given AC. 9803 * To configure MU EDCA ECW min value, MU EDCA access category value 9804 * is required to process the command. 9805 * This attribute is used to configure the testbed device. 9806 */ 9807 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17, 9808 9809 /* 8-bit unsigned value to configure the MU EDCA ECW max value for 9810 * given AC. 9811 * To configure MU EDCA ECW max value, MU EDCA access category value 9812 * is required to process the command. 9813 * This attribute is used to configure the testbed device. 9814 */ 9815 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18, 9816 9817 /* 8-bit unsigned value to configure the MU EDCA timer for given AC 9818 * To configure MU EDCA timer value, MU EDCA access category value 9819 * is required to process the command. 9820 * This attribute is used to configure the testbed device. 9821 */ 9822 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19, 9823 9824 /* 8-bit unsigned value to configure the HE trigger frame MAC padding 9825 * duration. 9826 * This attribute is used to configure the testbed device. 9827 * Uses the enum qca_wlan_he_mac_padding_dur values. 9828 */ 9829 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20, 9830 9831 /* 8-bit unsigned value to override the MU EDCA params to defaults 9832 * regardless of the AP beacon MU EDCA params. If it is enabled use 9833 * the default values else use the MU EDCA params from AP beacon. 9834 * This attribute is used to configure the testbed device. 9835 * 1 - enable override, 0 - disable. 9836 */ 9837 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21, 9838 9839 /* 8-bit unsigned value to configure the support for receiving 9840 * an MPDU that contains an operating mode control subfield. 9841 * This attribute is used to configure the testbed device. 9842 * 1-enable, 0-disable. 9843 */ 9844 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22, 9845 9846 /* Nested attribute values required to setup the TWT session. 9847 * enum qca_wlan_vendor_attr_twt_setup provides the necessary 9848 * information to set up the session. It contains broadcast flags, 9849 * set_up flags, trigger value, flow type, flow ID, wake interval 9850 * exponent, protection, target wake time, wake duration, wake interval 9851 * mantissa. These nested attributes are used to setup a host triggered 9852 * TWT session. 9853 */ 9854 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23, 9855 9856 /* This nested attribute is used to terminate the current TWT session. 9857 * It does not currently carry any attributes. 9858 */ 9859 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24, 9860 9861 /* This nested attribute is used to suspend the current TWT session. 9862 * It does not currently carry any attributes. 9863 */ 9864 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25, 9865 9866 /* Nested attribute values to indicate the request for resume. 9867 * This attribute is used to resume the TWT session. 9868 * enum qca_wlan_vendor_attr_twt_resume provides the necessary 9869 * parameters required to resume the TWT session. 9870 */ 9871 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26, 9872 9873 /* 8-bit unsigned value to set the HE operating mode control 9874 * (OM CTRL) Channel Width subfield. 9875 * The Channel Width subfield indicates the operating channel width 9876 * supported by the STA for both reception and transmission. 9877 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values. 9878 * This setting is cleared with the 9879 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 9880 * flag attribute to reset defaults. 9881 * This attribute is used to configure the testbed device. 9882 */ 9883 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27, 9884 9885 /* 8-bit unsigned value to configure the number of spatial 9886 * streams in HE operating mode control field. 9887 * This setting is cleared with the 9888 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 9889 * flag attribute to reset defaults. 9890 * This attribute is used to configure the testbed device. 9891 */ 9892 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28, 9893 9894 /* Flag attribute to configure the UL MU disable bit in 9895 * HE operating mode control field. 9896 * This setting is cleared with the 9897 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 9898 * flag attribute to reset defaults. 9899 * This attribute is used to configure the testbed device. 9900 */ 9901 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29, 9902 9903 /* Flag attribute to clear the previously set HE operating mode 9904 * control field configuration. 9905 * This attribute is used to configure the testbed device to reset 9906 * defaults to clear any previously set HE operating mode control 9907 * field configuration. 9908 */ 9909 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30, 9910 9911 /* 8-bit unsigned value to configure HE single user PPDU 9912 * transmission. By default this setting is disabled and it 9913 * is disabled in the reset defaults of the device configuration. 9914 * This attribute is used to configure the testbed device. 9915 * 1-enable, 0-disable 9916 */ 9917 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31, 9918 9919 /* 8-bit unsigned value to configure action frame transmission 9920 * in HE trigger based PPDU transmission. 9921 * By default this setting is disabled and it is disabled in 9922 * the reset defaults of the device configuration. 9923 * This attribute is used to configure the testbed device. 9924 * 1-enable, 0-disable 9925 */ 9926 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32, 9927 9928 /* Nested attribute to indicate HE operating mode control field 9929 * transmission. It contains operating mode control field Nss, 9930 * channel bandwidth, Tx Nsts and UL MU disable attributes. 9931 * These nested attributes are used to send HE operating mode control 9932 * with configured values. 9933 * Uses the enum qca_wlan_vendor_attr_omi_tx attributes. 9934 * This attribute is used to configure the testbed device. 9935 */ 9936 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33, 9937 9938 /* 8-bit unsigned value to configure +HTC_HE support to indicate the 9939 * support for the reception of a frame that carries an HE variant 9940 * HT Control field. 9941 * This attribute is used to configure the testbed device. 9942 * 1-enable, 0-disable 9943 */ 9944 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34, 9945 9946 /* 8-bit unsigned value to configure VHT support in 2.4G band. 9947 * This attribute is used to configure the testbed device. 9948 * 1-enable, 0-disable 9949 */ 9950 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35, 9951 9952 /* 8-bit unsigned value to configure HE testbed defaults. 9953 * This attribute is used to configure the testbed device. 9954 * 1-set the device HE capabilities to testbed defaults. 9955 * 0-reset the device HE capabilities to supported config. 9956 */ 9957 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36, 9958 9959 /* 8-bit unsigned value to configure twt request support. 9960 * This attribute is used to configure the testbed device. 9961 * 1-enable, 0-disable. 9962 */ 9963 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37, 9964 9965 /* 8-bit unsigned value to configure protection for Management 9966 * frames when PMF is enabled for the association. 9967 * This attribute is used to configure the testbed device. 9968 * 0-use the correct key, 1-use an incorrect key, 2-disable protection. 9969 */ 9970 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38, 9971 9972 /* Flag attribute to inject Disassociation frame to the connected AP. 9973 * This attribute is used to configure the testbed device. 9974 */ 9975 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39, 9976 9977 /* 8-bit unsigned value to configure an override for the RSNXE Used 9978 * subfield in the MIC control field of the FTE in FT Reassociation 9979 * Request frame. 9980 * 0 - Default behavior, 1 - override with 1, 2 - override with 0. 9981 * This attribute is used to configure the testbed device. 9982 * This attribute can be configured when STA is in disconnected or 9983 * associated state and the configuration is valid until the next 9984 * disconnection. 9985 */ 9986 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40, 9987 9988 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel 9989 * Switch Announcement) when STA is in connected state. 9990 * 0 - Default behavior, 1 - Ignore CSA. 9991 * This attribute is used to configure the testbed device. 9992 * This attribute can be configured when STA is in disconnected or 9993 * associated state and the configuration is valid until the next 9994 * disconnection. 9995 */ 9996 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41, 9997 9998 /* Nested attribute values required to configure OCI (Operating Channel 9999 * Information). Attributes defined in enum 10000 * qca_wlan_vendor_attr_oci_override are nested within this attribute. 10001 * This attribute is used to configure the testbed device. 10002 * This attribute can be configured when STA is in disconnected or 10003 * associated state and the configuration is valid until the next 10004 * disconnection. 10005 */ 10006 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42, 10007 10008 /* 8-bit unsigned value to configure the driver/firmware to ignore SA 10009 * Query timeout. If this configuration is enabled STA shall not send 10010 * Deauthentication frmae when SA Query times out (mainly, after a 10011 * channel switch when OCV is enabled). 10012 * 0 - Default behavior, 1 - Ignore SA Query timeout. 10013 * This attribute is used to configure the testbed device. 10014 * This attribute can be configured only when STA is in associated state 10015 * and the configuration is valid until the disconnection. 10016 */ 10017 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43, 10018 10019 /* 8-bit unsigned value to configure the driver/firmware to start or 10020 * stop transmitting FILS discovery frames. 10021 * 0 - Stop transmitting FILS discovery frames 10022 * 1 - Start transmitting FILS discovery frames 10023 * This attribute is used to configure the testbed device. 10024 * This attribute can be configured only in AP mode and the 10025 * configuration is valid until AP restart. 10026 */ 10027 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44, 10028 10029 /* 8-bit unsigned value to configure the driver/firmware to enable or 10030 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities 10031 * information field. 10032 * 0 - Disable full bandwidth UL MU-MIMO subfield 10033 * 1 - Enable full bandwidth UL MU-MIMO subfield 10034 * This attribute is used to configure the testbed device. 10035 */ 10036 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45, 10037 10038 /* 16-bit unsigned value to configure the driver with a specific BSS 10039 * max idle period to advertise in the BSS Max Idle Period element 10040 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames. 10041 * This attribute is used to configure the testbed device. 10042 */ 10043 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46, 10044 10045 /* 8-bit unsigned value to configure the driver to use only RU 242 tone 10046 * for data transmission. 10047 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx. 10048 * This attribute is used to configure the testbed device. 10049 */ 10050 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47, 10051 10052 /* 8-bit unsigned value to configure the driver to disable data and 10053 * management response frame transmission to test the BSS max idle 10054 * feature. 10055 * 0 - Default behavior, 1 - Disable data and management response Tx. 10056 * This attribute is used to configure the testbed device. 10057 */ 10058 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48, 10059 10060 /* 8-bit unsigned value to configure the driver/firmware to enable or 10061 * disable Punctured Preamble Rx subfield in the HE PHY capabilities 10062 * information field. 10063 * 0 - Disable Punctured Preamble Rx subfield 10064 * 1 - Enable Punctured Preamble Rx subfield 10065 * This attribute is used to configure the testbed device. 10066 */ 10067 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49, 10068 10069 /* 8-bit unsigned value to configure the driver to ignore the SAE H2E 10070 * requirement mismatch for 6 GHz connection. 10071 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch. 10072 * This attribute is used to configure the testbed device. 10073 */ 10074 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50, 10075 10076 /* 8-bit unsigned value to configure the driver to allow 6 GHz 10077 * connection with all security modes. 10078 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security 10079 * modes. 10080 * This attribute is used for testing purposes. 10081 */ 10082 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51, 10083 10084 /* 8-bit unsigned value to configure the driver to transmit data with 10085 * ER SU PPDU type. 10086 * 10087 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX. 10088 * This attribute is used for testing purposes. 10089 */ 10090 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52, 10091 10092 /* 8-bit unsigned value to configure the driver to use Data or 10093 * Management frame type for keep alive data. 10094 * Uses enum qca_wlan_keep_alive_data_type values. 10095 * 10096 * This attribute is used for testing purposes. 10097 */ 10098 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53, 10099 10100 /* 8-bit unsigned value to configure the driver to use scan request 10101 * BSSID value in Probe Request frame RA(A1) during the scan. The 10102 * driver saves this configuration and applies this setting to all user 10103 * space scan requests until the setting is cleared. If this 10104 * configuration is set, the driver uses the BSSID value from the scan 10105 * request to set the RA(A1) in the Probe Request frames during the 10106 * scan. 10107 * 10108 * 0 - Default behavior uses the broadcast RA in Probe Request frames. 10109 * 1 - Uses the scan request BSSID in RA in Probe Request frames. 10110 * This attribute is used for testing purposes. 10111 */ 10112 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54, 10113 10114 /* 8-bit unsigned value to configure the driver to enable/disable the 10115 * BSS max idle period support. 10116 * 10117 * 0 - Disable the BSS max idle support. 10118 * 1 - Enable the BSS max idle support. 10119 * This attribute is used for testing purposes. 10120 */ 10121 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55, 10122 10123 /* 8-bit unsigned value to configure the driver/firmware to enable or 10124 * disable Rx control frame to MultiBSS subfield in the HE MAC 10125 * capabilities information field. 10126 * 0 - Disable Rx control frame to MultiBSS subfield 10127 * 1 - Enable Rx control frame to MultiBSS subfield 10128 * This attribute is used to configure the testbed device. 10129 */ 10130 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56, 10131 10132 /* 8-bit unsigned value to configure the driver/firmware to enable or 10133 * disable Broadcast TWT support subfield in the HE MAC capabilities 10134 * information field. 10135 * 0 - Disable Broadcast TWT support subfield 10136 * 1 - Enable Broadcast TWT support subfield 10137 * This attribute is used to configure the testbed device. 10138 */ 10139 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57, 10140 10141 /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR 10142 * mode for 802.11be MLO capable devices. If the attribute is set to 1, 10143 * and if the FW supports this capability too, then the STA host 10144 * advertises this capability to AP over assoc request frame. This 10145 * attribute will not have any effect on legacy devices with no 802.11be 10146 * support. 10147 * 0 - Default behavior 10148 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode 10149 * This attribute is used to configure the testbed device. 10150 */ 10151 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58, 10152 10153 /* 8-bit unsigned value to configure the driver to enable/disable the 10154 * periodic sounding for Tx beamformer functionality. The default 10155 * behavior uses algorithm to do sounding based on packet stats. 10156 * 10157 * 0 - Default behavior. 10158 * 1 - Enable the periodic sounding for Tx beamformer. 10159 * This attribute is used for testing purposes. 10160 */ 10161 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59, 10162 10163 /* 8-bit unsigned value to configure beamformee SS EHT capability 10164 * to indicate the maximum number of spatial streams that the STA 10165 * can receive in an EHT sounding NDP for <= 80 MHz bandwidth. 10166 * The range of the value is 3 to 7. 10167 * This attribute is used to configure the testbed device. 10168 */ 10169 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60, 10170 10171 /* 8-bit unsigned value to configure beamformee SS EHT capability 10172 * to indicate the maximum number of spatial streams that the STA 10173 * can receive in an EHT sounding NDP for 160 MHz bandwidth. 10174 * The range of the value is 3 to 7. 10175 * This attribute is used to configure the testbed device. 10176 */ 10177 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61, 10178 10179 /* 8-bit unsigned value to configure beamformee SS EHT capability 10180 * to indicate the maximum number of spatial streams that the STA 10181 * can receive in an EHT sounding NDP for 320 MHz bandwidth. 10182 * The range of the value is 3 to 7. 10183 * This attribute is used to configure the testbed device. 10184 */ 10185 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62, 10186 10187 /* 8-bit unsigned value to configure the driver to exclude station 10188 * profile in Probe Request frame Multi-Link element. 10189 * 0 - Default behavior, sends the Probe Request frame with station 10190 * profile data included in the Multi-Link element. 10191 * 1 - Exclude station profile in Probe Request frame Multi-Link 10192 * element. 10193 * This attribute is used to configure the testbed device. 10194 */ 10195 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63, 10196 10197 /* 8-bit unsigned value to configure EHT testbed defaults. 10198 * This attribute is used to configure the testbed device. 10199 * 1 - Set the device EHT capabilities to testbed defaults. 10200 * 0 - Reset the device EHT capabilities to supported config. 10201 */ 10202 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64, 10203 10204 /* 8-bit unsigned value to indicate the EHT MCS support. 10205 * Uses enum eht_mcs_config values. 10206 * This attribute is used to configure the testbed device to 10207 * allow the advertised hardware capabilities to be downgraded 10208 * for testing purposes. 10209 */ 10210 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65, 10211 10212 /* 8-bit unsigned value to configure EHT TB Sounding Feedback 10213 * Rate Limit capability. 10214 * This attribute is used to configure the testbed device. 10215 * 0 - Indicates no maximum supported data rate limitation. 10216 * 1 - Indicates the maximum supported data rate is the lower of 10217 * the 1500 Mb/s and the maximum supported data rate. 10218 */ 10219 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66, 10220 10221 /* 8-bit unsigned value to configure the support for receiving an MPDU 10222 * that contains an EHT operating mode control subfield. 10223 * This attribute is used to configure the testbed device. 10224 * 1-enable, 0-disable. 10225 */ 10226 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67, 10227 10228 /* 8-bit unsigned value to configure the driver with EMLSR padding delay 10229 * subfield value. 10230 * 10231 * 0 - 0 us 10232 * 1 - 32 us 10233 * 2 - 64 us 10234 * 3 - 128 us 10235 * 4 - 256 us 10236 * 5-255 - Reserved 10237 * 10238 * This attribute is used for testing purposes. 10239 */ 10240 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68, 10241 10242 /* 10243 * 8-bit unsigned value to indicate the firmware to force the active MLO 10244 * links to power save mode for the configured number of beacon periods. 10245 * This allows the firmware to suspend STA links for X beacon periods 10246 * and remain asleep even if the AP advertises TIM as opposed to regular 10247 * power save mode where STA links wake up if the AP indicates that it 10248 * has buffered data to send. 10249 * This attribute is used to configure the testbed device. 10250 */ 10251 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69, 10252 10253 /* 10254 * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode 10255 * to enable simultaneous transmission of PPDUs on all active links. 10256 * 0 - Default behavior 10257 * 1 - Enter STR mode for simultaneous data transmission on all links 10258 */ 10259 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70, 10260 10261 /* Nested attribute to indicate EHT MLO links on which powersave to be 10262 * enabled. It contains link ID attributes. These nested attributes are 10263 * of the type u8 and are used to enable the powersave on associated 10264 * MLO links corresponding to the link IDs provided in the command. 10265 * This attribute is used to configure the testbed device. 10266 */ 10267 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_LINK_POWER_SAVE = 71, 10268 10269 /* 8-bit unsigned value to configure the MLD ID of the BSS whose link 10270 * info is requested in the ML Probe Request frame. In the MLO-MBSSID 10271 * testcase, STA can request information of non-Tx BSS through Tx BSS 10272 * by configuring non-Tx BSS MLD ID within the ML probe request that 10273 * is transmitted via host initiated scan request. 10274 * 10275 * This attribute is used for testing purposes. 10276 */ 10277 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MLD_ID_ML_PROBE_REQ = 72, 10278 10279 /* keep last */ 10280 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST, 10281 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX = 10282 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1, 10283 }; 10284 10285 /** 10286 * enum qca_wlan_twt_operation - Operation of the config TWT request 10287 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION. 10288 * The response for the respective operations can be either synchronous or 10289 * asynchronous (wherever specified). If synchronous, the response to this 10290 * operation is obtained in the corresponding vendor command reply to the user 10291 * space. For the asynchronous case the response is obtained as an event with 10292 * the same operation type. 10293 * 10294 * Drivers shall support either of these modes but not both simultaneously. 10295 * This support for asynchronous mode is advertised through the flag 10296 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised, 10297 * the driver shall support synchronous mode. 10298 * 10299 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured 10300 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10301 * qca_wlan_vendor_attr_twt_setup. Depending upon the 10302 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a 10303 * synchronous or asynchronous operation. 10304 * 10305 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are 10306 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10307 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation. 10308 * 10309 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are 10310 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10311 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup. 10312 * This terminate can either get triggered by the user space or can as well be 10313 * a notification from the firmware if it initiates a terminate. 10314 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, 10315 * the request from user space can either be a synchronous or asynchronous 10316 * operation. 10317 * 10318 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are 10319 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10320 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup. 10321 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, 10322 * this is either a synchronous or asynchronous operation. 10323 * 10324 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are 10325 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10326 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup. 10327 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE 10328 * request. 10329 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT 10330 * capability, this is either a synchronous or asynchronous operation. 10331 * 10332 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a 10333 * combination of suspend and resume in a single request. Required parameters 10334 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the 10335 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is 10336 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT 10337 * capability, this is either a synchronous or asynchronous operation. 10338 * 10339 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information. 10340 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT 10341 * session is setup. It's a synchronous operation. 10342 * 10343 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information. 10344 * Valid only after the TWT session is setup. It's a synchronous operation. 10345 * 10346 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its 10347 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous 10348 * operation. 10349 * 10350 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is 10351 * ready for a new TWT session setup after it issued a twt teardown. 10352 * 10353 * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required 10354 * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer 10355 * the enum qca_wlan_vendor_attr_twt_set_param. 10356 * 10357 * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT 10358 * related information for example TWT required bit in AP capabilities etc. 10359 * The reason for the notification is sent using 10360 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS. 10361 */ 10362 enum qca_wlan_twt_operation { 10363 QCA_WLAN_TWT_SET = 0, 10364 QCA_WLAN_TWT_GET = 1, 10365 QCA_WLAN_TWT_TERMINATE = 2, 10366 QCA_WLAN_TWT_SUSPEND = 3, 10367 QCA_WLAN_TWT_RESUME = 4, 10368 QCA_WLAN_TWT_NUDGE = 5, 10369 QCA_WLAN_TWT_GET_STATS = 6, 10370 QCA_WLAN_TWT_CLEAR_STATS = 7, 10371 QCA_WLAN_TWT_GET_CAPABILITIES = 8, 10372 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9, 10373 QCA_WLAN_TWT_SET_PARAM = 10, 10374 QCA_WLAN_TWT_NOTIFY = 11, 10375 }; 10376 10377 /* enum qca_wlan_vendor_attr_config_twt: Defines attributes used by 10378 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT 10379 * 10380 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: 10381 * u8 attribute. Specify the TWT operation of this request. Possible values 10382 * are defined in enum qca_wlan_twt_operation. The parameters for the 10383 * respective operation is specified through 10384 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. 10385 * 10386 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the 10387 * parameters configured for TWT. These parameters are represented by 10388 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume, 10389 * enum qca_wlan_vendor_attr_twt_set_param or 10390 * enum qca_wlan_vendor_attr_twt_stats based on the operation. 10391 * 10392 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when 10393 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY. 10394 * The values used by this attribute are defined in 10395 * enum qca_wlan_vendor_twt_status. 10396 */ 10397 enum qca_wlan_vendor_attr_config_twt { 10398 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0, 10399 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1, 10400 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2, 10401 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3, 10402 10403 /* keep last */ 10404 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST, 10405 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX = 10406 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1, 10407 }; 10408 10409 /** 10410 * qca_wlan_twt_setup_state: Represents the TWT session states. 10411 * 10412 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established. 10413 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active. 10414 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state. 10415 */ 10416 enum qca_wlan_twt_setup_state { 10417 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0, 10418 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1, 10419 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2, 10420 }; 10421 10422 /** 10423 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for 10424 * TWT (Target Wake Time) setup request. These attributes are sent as part of 10425 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and 10426 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by 10427 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10428 * 10429 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute. 10430 * Disable (flag attribute not present) - Individual TWT 10431 * Enable (flag attribute present) - Broadcast TWT. 10432 * Individual means the session is between the STA and the AP. 10433 * This session is established using a separate negotiation between 10434 * STA and AP. 10435 * Broadcast means the session is across multiple STAs and an AP. The 10436 * configuration parameters are announced in Beacon frames by the AP. 10437 * This is used in 10438 * 1. TWT SET Request and Response 10439 * 2. TWT GET Response 10440 * 10441 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8). 10442 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to 10443 * specify the TWT request type. This is used in TWT SET operation. 10444 * 10445 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute 10446 * Enable (flag attribute present) - TWT with trigger support. 10447 * Disable (flag attribute not present) - TWT without trigger support. 10448 * Trigger means the AP will send the trigger frame to allow STA to send data. 10449 * Without trigger, the STA will wait for the MU EDCA timer before 10450 * transmitting the data. 10451 * This is used in 10452 * 1. TWT SET Request and Response 10453 * 2. TWT GET Response 10454 * 10455 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8) 10456 * 0 - Announced TWT - In this mode, STA may skip few service periods to 10457 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS 10458 * NULL frame to AP. 10459 * 1 - Unannounced TWT - The STA will wakeup during every SP. 10460 * This is a required parameter for 10461 * 1. TWT SET Request and Response 10462 * 2. TWT GET Response 10463 * 10464 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8) 10465 * Flow ID is the unique identifier for each TWT session. 10466 * If not provided then dialog ID will be set to zero. 10467 * This is an optional parameter for 10468 * 1. TWT SET Request and Response 10469 * 2. TWT GET Request and Response 10470 * 3. TWT TERMINATE Request and Response 10471 * 4. TWT SUSPEND Request and Response 10472 * Flow Id values from 0 to 254 represent a single TWT session 10473 * Flow ID value of 255 represents all twt sessions for the following 10474 * 1. TWT TERMINATE Request and Response 10475 * 2. TWT SUSPEND Request and Response 10476 * 4. TWT CLEAR STATISTICS request 10477 * 5. TWT GET STATISTICS request and response 10478 * If an invalid dialog id is provided, status 10479 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 10480 * 10481 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8) 10482 * This attribute (exp) is used along with the mantissa to derive the 10483 * wake interval using the following formula: 10484 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis 10485 * Wake interval is the interval between 2 successive SP. 10486 * This is a required parameter for 10487 * 1. TWT SET Request and Response 10488 * 2. TWT GET Response 10489 * 10490 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute 10491 * Enable (flag attribute present) - Protection required. 10492 * Disable (flag attribute not present) - Protection not required. 10493 * If protection is enabled, then the AP will use protection 10494 * mechanism using RTS/CTS to self to reserve the airtime. 10495 * This is used in 10496 * 1. TWT SET Request and Response 10497 * 2. TWT GET Response 10498 * 10499 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32) 10500 * This attribute is used as the SP offset which is the offset from 10501 * TSF after which the wake happens. The units are in microseconds. If 10502 * this attribute is not provided, then the value will be set to zero. 10503 * This is an optional parameter for 10504 * 1. TWT SET Request and Response 10505 * 2. TWT GET Response 10506 * 10507 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32) 10508 * This is the duration of the service period. This is specified as 10509 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF. 10510 * This is a required parameter for 10511 * 1. TWT SET Request and Response 10512 * 2. TWT GET Response 10513 * 10514 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32) 10515 * This attribute is used to configure wake interval mantissa. 10516 * The units are in TU. 10517 * This is a required parameter for 10518 * 1. TWT SET Request and Response 10519 * 2. TWT GET Response 10520 * 10521 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8) 10522 * This field is applicable for TWT response only. 10523 * This contains status values in enum qca_wlan_vendor_twt_status 10524 * and is passed to the userspace. This is used in TWT SET operation. 10525 * This is a required parameter for 10526 * 1. TWT SET Response 10527 * 2. TWT TERMINATE Response 10528 * 3. TWT SUSPEND Response 10529 * 4. TWT RESUME Response 10530 * 5. TWT NUDGE Response 10531 * 10532 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8) 10533 * This field is applicable for TWT response only. 10534 * This field contains response type from the TWT responder and is 10535 * passed to the userspace. The values for this field are defined in 10536 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET 10537 * response. 10538 * 10539 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64) 10540 * In TWT setup command this field contains absolute TSF that will 10541 * be used by TWT requester during setup. 10542 * In TWT response this field contains absolute TSF value of the 10543 * wake time received from the TWT responder and is passed to 10544 * the userspace. 10545 * This is an optional parameter for 10546 * 1. TWT SET Request 10547 * This is a required parameter for 10548 * 1. TWT SET Response 10549 * 2. TWT GET Response 10550 * 10551 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute. 10552 * Enable (flag attribute present) - Indicates that the TWT responder 10553 * supports reception of TWT information frame from the TWT requestor. 10554 * Disable (flag attribute not present) - Indicates that the responder 10555 * doesn't support reception of TWT information frame from requestor. 10556 * This is used in 10557 * 1. TWT SET Response 10558 * 2. TWT GET Response 10559 * 10560 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address 10561 * Represents the MAC address of the peer for which the TWT session 10562 * is being configured. This is used in AP mode to represent the respective 10563 * client 10564 * In AP mode, this is a required parameter in response for 10565 * 1. TWT SET 10566 * 2. TWT GET 10567 * 3. TWT TERMINATE 10568 * 4. TWT SUSPEND 10569 * In STA mode, this is an optional parameter in request and response for 10570 * the above four TWT operations. 10571 * In AP mode, this is a required parameter in request for 10572 * 1. TWT GET 10573 * 2. TWT TERMINATE 10574 * 10575 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32) 10576 * Minimum tolerance limit of wake interval parameter in microseconds. 10577 * 10578 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32) 10579 * Maximum tolerance limit of wake interval parameter in microseconds. 10580 * 10581 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32) 10582 * Minimum tolerance limit of wake duration parameter in microseconds. 10583 * 10584 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32) 10585 * Maximum tolerance limit of wake duration parameter in microseconds. 10586 * 10587 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32) 10588 * TWT state for the given dialog id. The values for this are represented 10589 * by enum qca_wlan_twt_setup_state. 10590 * This is obtained through TWT GET operation. 10591 * 10592 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32) 10593 * This attribute is used to configure wake interval mantissa. 10594 * The unit is microseconds. This attribute, when specified, takes 10595 * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA. 10596 * This parameter is used for 10597 * 1. TWT SET Request and Response 10598 * 2. TWT GET Response 10599 * 10600 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8) 10601 * This attribute is used to configure Broadcast TWT ID. 10602 * The Broadcast TWT ID indicates a specific Broadcast TWT for which the 10603 * transmitting STA is providing TWT parameters. The allowed values are 0 to 31. 10604 * This parameter is used for 10605 * 1. TWT SET Request 10606 * 2. TWT TERMINATE Request 10607 * 10608 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8) 10609 * This attribute is used to configure Broadcast TWT recommendation. 10610 * The Broadcast TWT Recommendation subfield contains a value that indicates 10611 * recommendations on the types of frames that are transmitted by TWT 10612 * scheduled STAs and scheduling AP during the broadcast TWT SP. 10613 * The allowed values are 0 - 3. 10614 * This parameter is used for 10615 * 1. TWT SET Request 10616 * 10617 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8) 10618 * This attribute is used to configure Broadcast TWT Persistence. 10619 * The Broadcast TWT Persistence subfield indicates the number of 10620 * TBTTs during which the Broadcast TWT SPs corresponding to this 10621 * broadcast TWT Parameter set are present. The number of beacon intervals 10622 * during which the Broadcast TWT SPs are present is equal to the value in the 10623 * Broadcast TWT Persistence subfield plus 1 except that the value 255 10624 * indicates that the Broadcast TWT SPs are present until explicitly terminated. 10625 * This parameter is used for 10626 * 1. TWT SET Request 10627 * 10628 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8) 10629 * This attribute contains the value of the Responder PM Mode subfield (0 or 1) 10630 * from TWT response frame. 10631 * This parameter is used for 10632 * 1. TWT SET Response 10633 * 2. TWT GET Response 10634 * 10635 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32) 10636 * This attribute is used to configure the announce timeout value (in us) in 10637 * firmware. This timeout value is only applicable for announced TWT. If 10638 * timeout value is non-zero then firmware waits upto timeout value to use 10639 * data frame as announcement frame. If timeout value is 0 then firmware sends 10640 * explicit QoS NULL frame as announcement frame on SP start. Default value in 10641 * firmware is 0. 10642 * This parameter is used for 10643 * 1. TWT SET Request 10644 */ 10645 enum qca_wlan_vendor_attr_twt_setup { 10646 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0, 10647 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1, 10648 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2, 10649 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3, 10650 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4, 10651 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5, 10652 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6, 10653 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7, 10654 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8, 10655 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9, 10656 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10, 10657 10658 /* TWT Response only attributes */ 10659 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11, 10660 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12, 10661 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13, 10662 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14, 10663 10664 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15, 10665 10666 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16, 10667 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17, 10668 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18, 10669 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19, 10670 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20, 10671 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21, 10672 10673 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22, 10674 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23, 10675 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24, 10676 10677 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25, 10678 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26, 10679 10680 /* keep last */ 10681 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST, 10682 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX = 10683 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1, 10684 }; 10685 10686 /** 10687 * enum qca_wlan_vendor_twt_status - Represents the status of the requested 10688 * TWT operation 10689 * 10690 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed 10691 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled 10692 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used 10693 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy 10694 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist 10695 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state 10696 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters 10697 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready 10698 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted 10699 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the 10700 * request/response frame 10701 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response 10702 * frame 10703 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request 10704 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an 10705 * unknown reason 10706 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in 10707 * suspend state 10708 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to 10709 * invalid IE in the received TWT frame 10710 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from 10711 * the responder are not in the specified range 10712 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT 10713 * session due to request from the responder. Used on the TWT_TERMINATE 10714 * notification from the firmware. 10715 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT 10716 * session due to roaming. Used on the TWT_TERMINATE notification from the 10717 * firmware. 10718 * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the 10719 * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel) 10720 * Concurrency). Used on the TWT_TERMINATE notification from the firmware. 10721 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup 10722 * request due to roaming in progress. 10723 * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT 10724 * setup request due to channel switch in progress. 10725 * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup 10726 * request due to scan in progress. 10727 * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to 10728 * terminate an existing TWT session on power save exit request from userspace. 10729 * Used on the TWT_TERMINATE notification from the driver/firmware. 10730 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT 10731 * required bit in its capabilities. 10732 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared 10733 * the TWT required bit(1->0) in its capabilities. 10734 */ 10735 enum qca_wlan_vendor_twt_status { 10736 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0, 10737 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1, 10738 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2, 10739 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3, 10740 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4, 10741 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5, 10742 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6, 10743 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7, 10744 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8, 10745 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9, 10746 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10, 10747 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11, 10748 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12, 10749 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13, 10750 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14, 10751 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15, 10752 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16, 10753 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17, 10754 QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18, 10755 QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19, 10756 QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20, 10757 QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21, 10758 QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22, 10759 QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23, 10760 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24, 10761 }; 10762 10763 /** 10764 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for 10765 * TWT (Target Wake Time) resume request. These attributes are sent as part of 10766 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and 10767 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by 10768 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10769 * 10770 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8) 10771 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32) 10772 * These attributes are used as the SP offset which is the offset from TSF after 10773 * which the wake happens. The units are in microseconds. Please note that 10774 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data. 10775 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation 10776 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value 10777 * will be set to zero. 10778 * 10779 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32) 10780 * This attribute represents the next TWT subfield size. 10781 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits, 10782 * and 4 for 64 bits. 10783 * 10784 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8). 10785 * Flow ID is the unique identifier for each TWT session. This attribute 10786 * represents the respective TWT session to resume. 10787 * Flow Id values from 0 to 254 represent a single TWT session 10788 * Flow ID value of 255 represents all TWT sessions. 10789 * If an invalid dialog id is provided, status 10790 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 10791 * 10792 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address 10793 * Represents the MAC address of the peer to which TWT Resume is 10794 * being sent. This is used in AP mode to represent the respective 10795 * client and is a required parameter. In STA mode, this is an optional 10796 * parameter 10797 * 10798 */ 10799 enum qca_wlan_vendor_attr_twt_resume { 10800 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0, 10801 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1, 10802 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2, 10803 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3, 10804 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4, 10805 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5, 10806 10807 /* keep last */ 10808 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST, 10809 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX = 10810 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1, 10811 }; 10812 10813 /** 10814 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for 10815 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend 10816 * and resume in a single request. These attributes are sent as part of 10817 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10818 * 10819 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8) 10820 * Flow ID is the unique identifier for each TWT session. This attribute 10821 * represents the respective TWT session to suspend and resume. 10822 * 10823 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8) 10824 * Flow ID is the unique identifier for each TWT session. This attribute 10825 * represents the respective TWT session to suspend and resume. 10826 * Flow Id values from 0 to 254 represent a single TWT session 10827 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request 10828 * and response. 10829 * If an invalid dialog id is provided, status 10830 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 10831 * 10832 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32) 10833 * This attribute is used as the SP offset which is the offset from 10834 * TSF after which the wake happens. The units are in microseconds. 10835 * 10836 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32) 10837 * This attribute represents the next TWT subfield size. 10838 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits, 10839 * and 4 for 64 bits. 10840 * 10841 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address 10842 * Represents the MAC address of the peer to which TWT Suspend and Resume is 10843 * being sent. This is used in AP mode to represent the respective 10844 * client and is a required parameter. In STA mode, this is an optional 10845 * parameter. 10846 * 10847 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64) 10848 * This field contains absolute TSF value of the time at which twt 10849 * sesion will be resumed. 10850 * 10851 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32) 10852 * This field will be used when device supports Flexible TWT. 10853 * This field contains an offset value by which to shift the starting time 10854 * of the next service period. The value of offset can be negative or positive. 10855 * If provided, this attribute will override 10856 * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds. 10857 */ 10858 enum qca_wlan_vendor_attr_twt_nudge { 10859 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0, 10860 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1, 10861 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2, 10862 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3, 10863 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4, 10864 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5, 10865 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6, 10866 10867 /* keep last */ 10868 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST, 10869 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX = 10870 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1, 10871 }; 10872 10873 /** 10874 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for 10875 * TWT (Target Wake Time) get statistics and clear statistics request. 10876 * These attributes are sent as part of 10877 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10878 * 10879 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8) 10880 * Flow ID is the unique identifier for each TWT session. This attribute 10881 * represents the respective TWT session for get and clear TWT statistics. 10882 * Flow Id values from 0 to 254 represent a single TWT session 10883 * Flow ID value of 255 represents all TWT sessions in 10884 * 1) TWT GET STATISTICS request and response 10885 * 2) TWT CLEAR STATISTICS request 10886 * 10887 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address 10888 * Represents the MAC address of the peer for which TWT Statistics 10889 * is required. 10890 * In AP mode this is used to represent the respective 10891 * client and is a required parameter for 10892 * 1) TWT GET STATISTICS request and response 10893 * 2) TWT CLEAR STATISTICS request and response 10894 * In STA mode, this is an optional parameter. 10895 * 10896 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32) 10897 * This is the duration of the service period in microseconds. 10898 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10899 * 10900 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32) 10901 * Average of actual wake duration observed so far. Unit is microseconds. 10902 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10903 * 10904 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32) 10905 * Number of TWT service period elapsed so far. 10906 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10907 * 10908 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32) 10909 * This is the minimum value of wake duration observed across 10910 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is 10911 * microseconds. 10912 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10913 * 10914 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32) 10915 * This is the maximum value of wake duration observed across 10916 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is 10917 * microseconds. 10918 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10919 * 10920 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32) 10921 * Average number of MPDU's transmitted successfully across 10922 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10923 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10924 * 10925 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32) 10926 * Average number of MPDU's received successfully across 10927 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10928 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10929 * 10930 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32) 10931 * Average number of bytes transmitted successfully across 10932 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10933 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10934 * 10935 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET SIZE: Required (u32) 10936 * Average number of bytes received successfully across 10937 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 10938 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10939 * 10940 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32) 10941 * Status of the TWT GET STATISTICS request. 10942 * This contains status values in enum qca_wlan_vendor_twt_status 10943 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 10944 */ 10945 enum qca_wlan_vendor_attr_twt_stats { 10946 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0, 10947 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1, 10948 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2, 10949 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3, 10950 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4, 10951 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5, 10952 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6, 10953 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7, 10954 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8, 10955 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9, 10956 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10, 10957 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11, 10958 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12, 10959 10960 /* keep last */ 10961 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST, 10962 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX = 10963 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1, 10964 }; 10965 10966 /** 10967 * qca_wlan_twt_get_capa - Represents the Bitmap of TWT capabilities 10968 * supported by the device and peer. 10969 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES 10970 * 10971 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by 10972 * TWT non-scheduling STA. This capability is advertised in the HE 10973 * capability/Extended capabilities information element in the 10974 * Association request frame by the device. 10975 * 10976 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised 10977 * by the TWT scheduling AP. This capability is advertised in the extended 10978 * capabilities/HE capabilities information element. 10979 * 10980 * @QCA_WLAN_TWT_CAPA_BROADCAST: On requestor side, this indicates support 10981 * for the broadcast TWT functionality. On responder side, this indicates 10982 * support for the role of broadcast TWT scheduling functionality. This 10983 * capability is advertised in the HE capabilities information element. 10984 * 10985 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: Device supports flexible TWT schedule. 10986 * This capability is advertised in the HE capabilities information element. 10987 * 10988 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate 10989 * that it mandates the associated HE STAs to support TWT. This capability is 10990 * advertised by AP in the HE Operation Parameters field of the HE operation 10991 * information element. 10992 */ 10993 enum qca_wlan_twt_capa { 10994 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0), 10995 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1), 10996 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2), 10997 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3), 10998 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4), 10999 11000 }; 11001 11002 /** 11003 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT 11004 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT 11005 * operation. 11006 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address 11007 * Represents the MAC address of the peer for which the TWT capabilities 11008 * are being queried. This is used in AP mode to represent the respective 11009 * client. In STA mode, this is an optional parameter. 11010 * 11011 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16). 11012 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in 11013 * enum qca_wlan_twt_capa. 11014 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16). 11015 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in 11016 * enum qca_wlan_twt_capa. 11017 */ 11018 enum qca_wlan_vendor_attr_twt_capability { 11019 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0, 11020 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1, 11021 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2, 11022 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3, 11023 11024 /* keep last */ 11025 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST, 11026 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX = 11027 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1, 11028 }; 11029 11030 /** 11031 * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for 11032 * TWT (Target Wake Time) related parameters. It is used when 11033 * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM. 11034 * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 11035 * 11036 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8) 11037 * This attribute configures AC parameters to be used for all TWT 11038 * sessions in AP mode. 11039 * Uses the enum qca_wlan_ac_type values. 11040 */ 11041 enum qca_wlan_vendor_attr_twt_set_param { 11042 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0, 11043 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1, 11044 11045 /* keep last */ 11046 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST, 11047 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX = 11048 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1, 11049 }; 11050 11051 /** 11052 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by 11053 * the TWT responder 11054 * 11055 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT 11056 * parameters that are different from TWT requesting STA suggested 11057 * or demanded TWT parameters 11058 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT 11059 * parameters that are different from TWT requesting STA TWT suggested 11060 * or demanded parameters 11061 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT 11062 * setup 11063 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT 11064 * setup. 11065 */ 11066 enum qca_wlan_vendor_twt_setup_resp_type { 11067 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1, 11068 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2, 11069 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3, 11070 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4, 11071 }; 11072 11073 /** 11074 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8) 11075 * Represents the setup type being requested for TWT. 11076 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT 11077 * parameters but relying on AP to fill the parameters during the negotiation. 11078 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested 11079 * values which the AP may accept or AP may provide alternative parameters 11080 * which the STA may accept. 11081 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any 11082 * alternate parameters than the requested ones. 11083 */ 11084 enum qca_wlan_vendor_twt_setup_req_type { 11085 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1, 11086 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2, 11087 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3, 11088 }; 11089 11090 /** 11091 * enum qca_wlan_throughput_level - Current throughput level 11092 * 11093 * Indicates the current level of throughput calculated by driver. The driver 11094 * may choose different thresholds to decide whether the throughput level is 11095 * low or medium or high based on variety of parameters like physical link 11096 * capacity of current connection, number of pakcets being dispatched per 11097 * second etc. The throughput level events might not be consistent with the 11098 * actual current throughput value being observed. 11099 * 11100 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput 11101 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput 11102 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput 11103 */ 11104 enum qca_wlan_throughput_level { 11105 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0, 11106 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1, 11107 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2, 11108 }; 11109 11110 /** 11111 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to 11112 * report throughput changes from driver to user space. enum values are used 11113 * for NL attributes sent with 11114 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command. 11115 */ 11116 enum qca_wlan_vendor_attr_throughput_change { 11117 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0, 11118 /* 11119 * Indicates the direction of throughput in which the change is being 11120 * reported. u8 attribute. Value is 0 for TX and 1 for RX. 11121 */ 11122 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1, 11123 11124 /* 11125 * Indicates the newly observed throughput level. 11126 * qca_wlan_throughput_level describes the possible range of values. 11127 * u8 attribute. 11128 */ 11129 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2, 11130 11131 /* 11132 * Indicates the driver's guidance on the new value to be set to 11133 * kernel's tcp parameter tcp_limit_output_bytes. u32 attribute. Driver 11134 * may optionally include this attribute. 11135 */ 11136 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3, 11137 11138 /* 11139 * Indicates the driver's guidance on the new value to be set to 11140 * kernel's tcp parameter tcp_adv_win_scale. s8 attribute. Possible 11141 * values are from -31 to 31. Driver may optionally include this 11142 * attribute. 11143 */ 11144 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4, 11145 11146 /* 11147 * Indicates the driver's guidance on the new value to be set to 11148 * kernel's tcp parameter tcp_delack_seg. u32 attribute. Driver may 11149 * optionally include this attribute. 11150 */ 11151 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5, 11152 11153 /* keep last */ 11154 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST, 11155 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX = 11156 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1, 11157 }; 11158 11159 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute 11160 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command 11161 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 11162 */ 11163 enum qca_wlan_nan_ext_subcmd_type { 11164 /* Subcmd of type NAN Enable Request */ 11165 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1, 11166 /* Subcmd of type NAN Disable Request */ 11167 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2, 11168 }; 11169 11170 /** 11171 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command 11172 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 11173 */ 11174 enum qca_wlan_vendor_attr_nan_params { 11175 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0, 11176 /* Carries NAN command for firmware component. Every vendor command 11177 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a 11178 * payload containing the NAN command. NLA_BINARY attribute. 11179 */ 11180 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1, 11181 /* Indicates the type of NAN command sent with 11182 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type 11183 * describes the possible range of values. This attribute is mandatory 11184 * if the command being issued is either 11185 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or 11186 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute. 11187 */ 11188 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2, 11189 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz 11190 * band. This attribute is mandatory when command type is 11191 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute. 11192 */ 11193 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3, 11194 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz 11195 * band. This attribute is optional and should be included when command 11196 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery 11197 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute. 11198 */ 11199 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4, 11200 11201 /* keep last */ 11202 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST, 11203 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX = 11204 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1 11205 }; 11206 11207 /** 11208 * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data 11209 * transport modes and is used by attribute 11210 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as part of vendor command 11211 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG. 11212 * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use RELAY FS to send CFR data. 11213 * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR 11214 * data. The data shall be encapsulated within 11215 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with vendor sub command 11216 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event. 11217 */ 11218 enum qca_wlan_vendor_cfr_data_transport_modes { 11219 QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0, 11220 QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1, 11221 }; 11222 11223 /** 11224 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by 11225 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor 11226 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG. 11227 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QOS Null frame. 11228 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QOS Null frame 11229 * with phase 11230 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using probe response frame 11231 */ 11232 enum qca_wlan_vendor_cfr_method { 11233 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0, 11234 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1, 11235 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2, 11236 }; 11237 11238 /** 11239 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by 11240 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE. 11241 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames. 11242 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames. 11243 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames. 11244 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which 11245 * is provided by one or more of below attributes: 11246 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA 11247 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA 11248 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK 11249 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK 11250 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER 11251 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER 11252 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER 11253 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets. 11254 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames. 11255 */ 11256 enum qca_wlan_vendor_cfr_capture_type { 11257 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0, 11258 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1, 11259 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2, 11260 QCA_WLAN_VENDOR_CFR_TA_RA = 3, 11261 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4, 11262 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5, 11263 }; 11264 11265 /** 11266 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command 11267 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer 11268 * Channel Frequency Response capture parameters and enable periodic CFR 11269 * capture. 11270 * 11271 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address) 11272 * MAC address of peer. This is for CFR version 1 only. 11273 * 11274 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag) 11275 * Enable peer CFR Capture. This attribute is mandatory to 11276 * enable peer CFR capture. If this attribute is not present, 11277 * peer CFR capture is disabled. 11278 * 11279 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8) 11280 * BW of measurement, attribute uses the values in enum nl80211_chan_width 11281 * Supported values: 20, 40, 80, 80+80, 160. 11282 * Note that all targets may not support all bandwidths. 11283 * This attribute is mandatory for version 1 if attribute 11284 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 11285 * 11286 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32) 11287 * Periodicity of CFR measurement in msec. 11288 * Periodicity should be a multiple of Base timer. 11289 * Current Base timer value supported is 10 msecs (default). 11290 * 0 for one shot capture. 11291 * This attribute is mandatory for version 1 if attribute 11292 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 11293 * 11294 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8) 11295 * Method used to capture Channel Frequency Response. 11296 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method. 11297 * This attribute is mandatory for version 1 if attribute 11298 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 11299 * 11300 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag) 11301 * Enable periodic CFR capture. 11302 * This attribute is mandatory for version 1 to enable Periodic CFR capture. 11303 * If this attribute is not present, periodic CFR capture is disabled. 11304 * 11305 * @QCA_WLAN_VENDOR_ATTR_CFR_VERSION: Optional (u8) 11306 * Value is 1 or 2 since there are two versions of CFR capture. Two versions 11307 * can't be enabled at same time. This attribute is mandatory if target 11308 * support both versions and use one of them. 11309 * 11310 * @QCA_WLAN_VENDOR_ATTR_CFR_ENABLE_GROUP_BITMAP: Optional (u32) 11311 * This attribute is mandatory for version 2 if 11312 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used. 11313 * Bits 15:0 Bit fields indicating which group to be enabled. 11314 * Bits 31:16 Reserved for future use. 11315 * 11316 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32) 11317 * CFR capture duration in microsecond. This attribute is mandatory for 11318 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used. 11319 * 11320 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32) 11321 * CFR capture interval in microsecond. This attribute is mandatory for 11322 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used. 11323 * 11324 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32) 11325 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type. 11326 * This attribute is mandatory for version 2. 11327 * 11328 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64) 11329 * Bit fields indicating which user in the current UL MU 11330 * transmissions are enabled for CFR capture. Bits 36 to 0 indicating 11331 * user indexes for 37 users in a UL MU transmission. If bit 0 is set, 11332 * then the CFR capture will happen for user index 0 in the current 11333 * UL MU transmission. If bits 0,2 are set, then CFR capture for UL MU 11334 * TX corresponds to user indices 0 and 2. Bits 63:37 Reserved for future use. 11335 * This is for CFR version 2 only. 11336 * 11337 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32) 11338 * Indicates the number of consecutive Rx packets to be skipped 11339 * before CFR capture is enabled again. 11340 * This is for CFR version 2 only. 11341 * 11342 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing 11343 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes. 11344 * 11345 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing 11346 * the following GROUP attributes: 11347 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER, 11348 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA, 11349 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA, 11350 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK, 11351 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK, 11352 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS, 11353 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW, 11354 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER, 11355 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER, 11356 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER 11357 * 11358 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32) 11359 * Target support multiple groups for some configurations. Group number could be 11360 * any value between 0 and 15. This is for CFR version 2 only. 11361 * 11362 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address) 11363 * Transmitter address which is used to filter packets, this MAC address takes 11364 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. 11365 * This is for CFR version 2 only. 11366 * 11367 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address) 11368 * Receiver address which is used to filter packets, this MAC address takes 11369 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. 11370 * This is for CFR version 2 only. 11371 * 11372 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address) 11373 * Mask of transmitter address which is used to filter packets. 11374 * This is for CFR version 2 only. 11375 * 11376 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address) 11377 * Mask of receiver address which is used to filter packets. 11378 * This is for CFR version 2 only. 11379 * 11380 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32) 11381 * Indicates packets with a specific NSS will be filtered for CFR capture. 11382 * This is for CFR version 2 only. This is a bitmask. Bits 7:0, CFR capture will 11383 * be done for packets matching the NSS specified within this bitmask. 11384 * Bits 31:8 Reserved for future use. Bits 7:0 map to NSS: 11385 * bit 0 : NSS 1 11386 * bit 1 : NSS 2 11387 * ... 11388 * bit 7 : NSS 8 11389 * 11390 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32) 11391 * Indicates packets with a specific BW will be filtered for CFR capture. 11392 * This is for CFR version 2 only. This is a bitmask. Bits 4:0, CFR capture 11393 * will be done for packets matching the bandwidths specified within this 11394 * bitmask. Bits 31:5 Reserved for future use. Bits 4:0 map to bandwidth 11395 * numerated in enum nl80211_band (although not all bands may be supported 11396 * by a given device). 11397 * 11398 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32) 11399 * Management packets matching the subtype filter categories will be 11400 * filtered in by MAC for CFR capture. This is a bitmask, in which each bit 11401 * represents the corresponding mgmt subtype value as per 11402 * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields. 11403 * For example, beacon frame control type is 8, its value is 1<<8 = 0x100. 11404 * This is for CFR version 2 only 11405 * 11406 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32) 11407 * Control packets matching the subtype filter categories will be 11408 * filtered in by MAC for CFR capture. This is a bitmask, in which each bit 11409 * represents the corresponding control subtype value as per 11410 * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields. 11411 * This is for CFR version 2 only. 11412 * 11413 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32) 11414 * Data packets matching the subtype filter categories will be 11415 * filtered in by MAC for CFR capture. This is a bitmask, in which each bit 11416 * represents the corresponding data subtype value as per 11417 * IEEE 802.11(2016) 9.2.4.1.3 Type and Subtype subfields. 11418 * This is for CFR version 2 only. 11419 * 11420 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8) 11421 * Userspace can use this attribute to specify the driver about which transport 11422 * mode shall be used by the driver to send CFR data to userspace. Uses values 11423 * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is 11424 * not present, driver shall choose the default transport mechanism which is 11425 * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS. 11426 * 11427 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32) 11428 * Userspace can use this attribute to specify the nl port id of the application 11429 * which receives the CFR data and processes it further so that the drivers can 11430 * unicast the NL events to a specific application. Optionally included when 11431 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to 11432 * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers 11433 * shall multicast the netlink events when this attribute is not included. 11434 * 11435 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY). 11436 * This attribute will be used by the driver to encapsulate and send CFR data 11437 * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an 11438 * asynchronous event when the driver is configured to send CFR data using NL 11439 * events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS 11440 * 11441 */ 11442 enum qca_wlan_vendor_peer_cfr_capture_attr { 11443 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0, 11444 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1, 11445 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2, 11446 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3, 11447 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4, 11448 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5, 11449 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6, 11450 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7, 11451 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8, 11452 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9, 11453 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10, 11454 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11, 11455 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12, 11456 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13, 11457 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14, 11458 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15, 11459 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16, 11460 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17, 11461 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18, 11462 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19, 11463 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20, 11464 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21, 11465 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22, 11466 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23, 11467 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24, 11468 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25, 11469 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26, 11470 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27, 11471 QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28, 11472 11473 /* Keep last */ 11474 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST, 11475 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX = 11476 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1, 11477 }; 11478 11479 /** 11480 * enum qca_coex_config_profiles - This enum defines different types of 11481 * traffic streams that can be prioritized one over the other during coex 11482 * scenarios. 11483 * The types defined in this enum are categorized in the below manner. 11484 * 0 - 31 values corresponds to WLAN 11485 * 32 - 63 values corresponds to BT 11486 * 64 - 95 values corresponds to Zigbee 11487 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA 11488 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA 11489 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA 11490 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA 11491 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA 11492 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP 11493 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP 11494 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP 11495 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP 11496 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP 11497 * @QCA_BT_A2DP: Prioritize BT A2DP 11498 * @QCA_BT_BLE: Prioritize BT BLE 11499 * @QCA_BT_SCO: Prioritize BT SCO 11500 * @QCA_ZB_LOW: Prioritize Zigbee Low 11501 * @QCA_ZB_HIGH: Prioritize Zigbee High 11502 */ 11503 enum qca_coex_config_profiles { 11504 /* 0 - 31 corresponds to WLAN */ 11505 QCA_WIFI_STA_DISCOVERY = 0, 11506 QCA_WIFI_STA_CONNECTION = 1, 11507 QCA_WIFI_STA_CLASS_3_MGMT = 2, 11508 QCA_WIFI_STA_DATA = 3, 11509 QCA_WIFI_STA_ALL = 4, 11510 QCA_WIFI_SAP_DISCOVERY = 5, 11511 QCA_WIFI_SAP_CONNECTION = 6, 11512 QCA_WIFI_SAP_CLASS_3_MGMT = 7, 11513 QCA_WIFI_SAP_DATA = 8, 11514 QCA_WIFI_SAP_ALL = 9, 11515 QCA_WIFI_CASE_MAX = 31, 11516 /* 32 - 63 corresponds to BT */ 11517 QCA_BT_A2DP = 32, 11518 QCA_BT_BLE = 33, 11519 QCA_BT_SCO = 34, 11520 QCA_BT_CASE_MAX = 63, 11521 /* 64 - 95 corresponds to Zigbee */ 11522 QCA_ZB_LOW = 64, 11523 QCA_ZB_HIGH = 65, 11524 QCA_ZB_CASE_MAX = 95, 11525 /* 0xff is default value if the u8 profile value is not set. */ 11526 QCA_PROFILE_DEFAULT_VALUE = 255 11527 }; 11528 11529 /** 11530 * enum qca_vendor_attr_coex_config_types - Coex configurations types. 11531 * This enum defines the valid set of values of coex configuration types. These 11532 * values may used by attribute 11533 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE. 11534 * 11535 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the 11536 * weights to default values. 11537 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config 11538 * weights with configurability value. 11539 */ 11540 enum qca_vendor_attr_coex_config_types { 11541 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0, 11542 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1, 11543 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2, 11544 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_TYPE_MAX 11545 }; 11546 11547 /** 11548 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config 11549 * attributes 11550 * Attributes for data used by 11551 * QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG 11552 * 11553 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute. 11554 * Indicate config type. 11555 * the config types are 32-bit values from qca_vendor_attr_coex_config_types 11556 * 11557 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute. 11558 * Indicate the Priority 1 profiles. 11559 * the profiles are 8-bit values from enum qca_coex_config_profiles 11560 * In same priority level, maximum to 4 profiles can be set here. 11561 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute. 11562 * Indicate the Priority 2 profiles. 11563 * the profiles are 8-bit values from enum qca_coex_config_profiles 11564 * In same priority level, maximum to 4 profiles can be set here. 11565 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute. 11566 * Indicate the Priority 3 profiles. 11567 * the profiles are 8-bit values from enum qca_coex_config_profiles 11568 * In same priority level, maximum to 4 profiles can be set here. 11569 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute. 11570 * Indicate the Priority 4 profiles. 11571 * the profiles are 8-bit values from enum qca_coex_config_profiles 11572 * In same priority level, maximum to 4 profiles can be set here. 11573 * NOTE: 11574 * limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority 11575 * arrangement: 11576 * 1: In the same u32 attribute(priority x), the profiles enum values own 11577 * same priority level. 11578 * 2: 0xff is default value if the u8 profile value is not set. 11579 * 3: max to 4 rules/profiles in same priority level. 11580 * 4: max to 4 priority level (priority 1 - priority 4) 11581 * 5: one priority level only supports one scenario from WLAN/BT/ZB, 11582 * hybrid rules not support. 11583 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will 11584 * remain blank to reset all parameters. 11585 * For example: 11586 * 11587 * If the attributes as follow: 11588 * priority 1: 11589 * ------------------------------------ 11590 * | 0xff | 0 | 1 | 2 | 11591 * ------------------------------------ 11592 * priority 2: 11593 * ------------------------------------- 11594 * | 0xff | 0xff | 0xff | 32 | 11595 * ------------------------------------- 11596 * priority 3: 11597 * ------------------------------------- 11598 * | 0xff | 0xff | 0xff | 65 | 11599 * ------------------------------------- 11600 * then it means: 11601 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION 11602 * owns same priority level. 11603 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION 11604 * has priority over BT_A2DP and ZB_HIGH. 11605 * 3: BT_A2DP has priority over ZB_HIGH. 11606 */ 11607 11608 enum qca_vendor_attr_coex_config_three_way { 11609 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0, 11610 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1, 11611 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2, 11612 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3, 11613 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4, 11614 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5, 11615 11616 /* Keep last */ 11617 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST, 11618 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX = 11619 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1, 11620 }; 11621 11622 /** 11623 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type 11624 * This enum defines the valid set of values of peer stats cache types. These 11625 * values are used by attribute 11626 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID. 11627 * 11628 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer tx rate statistics. 11629 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer rx rate statistics. 11630 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer tx sojourn 11631 * statistics 11632 */ 11633 enum qca_vendor_attr_peer_stats_cache_type { 11634 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0, 11635 11636 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS, 11637 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS, 11638 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS, 11639 }; 11640 11641 /** 11642 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines 11643 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH 11644 * Attributes are required to flush peer rate statistics from driver to 11645 * user application. 11646 * 11647 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute 11648 * Indicate peer stats cache type. 11649 * The statistics types are 32-bit values from 11650 * qca_vendor_attr_peer_stats_cache_type 11651 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array 11652 * of size 6, representing peer mac address. 11653 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute 11654 * containing buffer of statistics to send event to application layer entity. 11655 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute 11656 * representing cookie for peer unique session. 11657 */ 11658 enum qca_wlan_vendor_attr_peer_stats_cache_params { 11659 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0, 11660 11661 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1, 11662 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2, 11663 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3, 11664 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4, 11665 11666 /* Keep last */ 11667 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST, 11668 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX = 11669 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1 11670 }; 11671 11672 /** 11673 * enum qca_mpta_helper_attr_zigbee_state - current states of zegbee. 11674 * this enum defines all the possible state of zigbee, which can be 11675 * delivered by NetLink attribute QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE. 11676 * 11677 * @ZIGBEE_IDLE: zigbee in idle state 11678 * @ZIGBEE_FORM_NETWORK: zibee forming network 11679 * @ZIGBEE_WAIT_JOIN: zigbee waiting for joining network 11680 * @ZIGBEE_JOIN: zigbee joining network 11681 * @ZIGBEE_NETWORK_UP: zigbee network is up 11682 * @ZIGBEE_HMI: zigbee in HMI mode 11683 */ 11684 enum qca_mpta_helper_attr_zigbee_state { 11685 ZIGBEE_IDLE = 0, 11686 ZIGBEE_FORM_NETWORK = 1, 11687 ZIGBEE_WAIT_JOIN = 2, 11688 ZIGBEE_JOIN = 3, 11689 ZIGBEE_NETWORK_UP = 4, 11690 ZIGBEE_HMI = 5, 11691 }; 11692 11693 /** 11694 * enum qca_mpta_helper_vendor_attr - used for NL attributes sent by 11695 * vendor sub-command QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG. 11696 */ 11697 enum qca_mpta_helper_vendor_attr { 11698 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0, 11699 /* Optional attribute used to update zigbee state. 11700 * enum qca_mpta_helper_attr_zigbee_state. 11701 * NLA_U32 attribute. 11702 */ 11703 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1, 11704 /* Optional attribute used to configure wlan duration for Shape-OCS 11705 * during interrupt. 11706 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION. 11707 * Value range 0 ~ 300 (ms). 11708 * NLA_U32 attribute. 11709 */ 11710 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2, 11711 /* Optional attribute used to configure non wlan duration for Shape-OCS 11712 * during interrupt. 11713 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION. 11714 * Value range 0 ~ 300 (ms). 11715 * NLA_U32 attribute. 11716 */ 11717 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3, 11718 /* Optional attribute used to configure wlan duration for Shape-OCS 11719 * monitor period. 11720 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION. 11721 * Value range 0 ~ 300 (ms) 11722 * NLA_U32 attribute 11723 */ 11724 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4, 11725 /* Optional attribute used to configure non wlan duration for Shape-OCS 11726 * monitor period. 11727 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION. 11728 * Value range 0 ~ 300 (ms) 11729 * NLA_U32 attribute 11730 */ 11731 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5, 11732 /* Optional attribute used to configure ocs interrupt duration. 11733 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION. 11734 * Value range 1000 ~ 20000 (ms) 11735 * NLA_U32 attribute 11736 */ 11737 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6, 11738 /* Optional attribute used to configure ocs monitor duration. 11739 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION. 11740 * Value range 1000 ~ 20000 (ms) 11741 * NLA_U32 attribute 11742 */ 11743 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7, 11744 /* Optional attribute used to notify wlan FW current zigbee channel. 11745 * Value range 11 ~ 26 11746 * NLA_U32 attribute 11747 */ 11748 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8, 11749 /* Optional attribute used to configure wlan mute duration. 11750 * Value range 0 ~ 400 (ms) 11751 * NLA_U32 attribute 11752 */ 11753 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9, 11754 11755 /* keep last */ 11756 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST, 11757 QCA_MPTA_HELPER_VENDOR_ATTR_MAX = 11758 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1 11759 }; 11760 11761 /** 11762 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of 11763 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be 11764 * used. Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE. 11765 * 11766 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver 11767 * to request the driver to start reporting Beacon frames. 11768 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver 11769 * to request the driver to stop reporting Beacon frames. 11770 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to 11771 * userspace to report received Beacon frames. 11772 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace 11773 * to indicate that the driver is going to pause reporting Beacon frames. 11774 */ 11775 enum qca_wlan_vendor_beacon_reporting_op_types { 11776 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0, 11777 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1, 11778 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2, 11779 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3, 11780 }; 11781 11782 /** 11783 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different 11784 * types of reasons for which the driver is pausing reporting Beacon frames. 11785 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON. 11786 * 11787 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified 11788 * reasons. 11789 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the 11790 * driver/firmware is starting a scan. 11791 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the 11792 * driver/firmware disconnects from the ESS and indicates the disconnection to 11793 * userspace (non-seamless roaming case). This reason code will be used by the 11794 * driver/firmware to indicate stopping of beacon report events. Userspace 11795 * will need to start beacon reporting again (if desired) by sending vendor 11796 * command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with 11797 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to 11798 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is 11799 * completed. 11800 */ 11801 enum qca_wlan_vendor_beacon_reporting_pause_reasons { 11802 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0, 11803 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1, 11804 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2, 11805 }; 11806 11807 /* 11808 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used 11809 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING. 11810 */ 11811 enum qca_wlan_vendor_attr_beacon_reporting_params { 11812 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0, 11813 /* Specifies the type of operation that the vendor command/event is 11814 * intended for. Possible values for this attribute are defined in 11815 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute. 11816 */ 11817 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1, 11818 /* Optionally set by userspace to request the driver to report Beacon 11819 * frames using asynchronous vendor events when the 11820 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11821 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. 11822 * If this flag is not set, the driver will only update Beacon frames 11823 * in cfg80211 scan cache but not send any vendor events. 11824 */ 11825 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2, 11826 /* Optionally used by userspace to request the driver/firmware to 11827 * report Beacon frames periodically when the 11828 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11829 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. 11830 * u32 attribute, indicates the period of Beacon frames to be reported 11831 * and in the units of beacon interval. 11832 * If this attribute is missing in the command, then the default value 11833 * of 1 will be assumed by driver, i.e., to report every Beacon frame. 11834 * Zero is an invalid value. 11835 * If a valid value is received for this attribute, the driver will 11836 * update the cfg80211 scan cache periodically as per the value 11837 * received in this attribute in addition to updating the cfg80211 scan 11838 * cache when there is significant change in Beacon frame IEs. 11839 */ 11840 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3, 11841 /* Used by the driver to encapsulate the SSID when the 11842 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11843 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11844 * u8 array with a maximum size of 32. 11845 * 11846 * When generating beacon report from non-MBSSID Beacon frame, the SSID 11847 * will be taken from the SSID element of the received Beacon frame. 11848 * 11849 * When generating beacon report from Multiple BSSID Beacon frame and 11850 * if the BSSID of the current connected BSS matches the BSSID of the 11851 * transmitting BSS, the SSID will be taken from the SSID element of 11852 * the received Beacon frame. 11853 * 11854 * When generating beacon report from Multiple BSSID Beacon frame and 11855 * if the BSSID of the current connected BSS matches the BSSID of one 11856 * of the* nontransmitting BSSs, the SSID will be taken from the SSID 11857 * field included in the nontransmitted BSS profile whose derived BSSI 11858 * is same as the BSSID of the current connected BSS. When there is no 11859 * nontransmitted BSS profile whose derived BSSID is same as the BSSID 11860 * of current connected* BSS, this attribute will not be present. 11861 */ 11862 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4, 11863 /* Used by the driver to encapsulate the BSSID of the AP to which STA 11864 * is currently connected to when the 11865 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11866 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a 11867 * fixed size of 6 bytes. 11868 * 11869 * When generating beacon report from a Multiple BSSID beacon and the 11870 * current connected BSSID matches one of the nontransmitted BSSIDs in 11871 * a Multiple BSSID set, this BSSID will be that particular 11872 * nontransmitted BSSID and not the transmitted BSSID (i.e., the 11873 * transmitting address of the Beacon frame). 11874 */ 11875 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5, 11876 /* Used by the driver to encapsulate the frequency in MHz on which 11877 * the Beacon frame was received when the 11878 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is 11879 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11880 * u32 attribute. 11881 */ 11882 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6, 11883 /* Used by the driver to encapsulate the Beacon interval 11884 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11885 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11886 * u16 attribute. The value will be copied from the Beacon frame and 11887 * the units are TUs. 11888 */ 11889 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7, 11890 /* Used by the driver to encapsulate the Timestamp field from the 11891 * Beacon frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE 11892 * is set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 11893 * u64 attribute. 11894 */ 11895 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8, 11896 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this 11897 * Beacon frame is received in the driver when the 11898 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11899 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in 11900 * the units of nanoseconds. This value is expected to have accuracy of 11901 * about 10 ms. 11902 */ 11903 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9, 11904 /* Used by the driver to encapsulate the IEs of the Beacon frame from 11905 * which this event is generated when the 11906 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11907 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array. 11908 */ 11909 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10, 11910 /* Used by the driver to specify the reason for the driver/firmware to 11911 * pause sending beacons to userspace when the 11912 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11913 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are 11914 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32 11915 * attribute. 11916 */ 11917 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11, 11918 /* Used by the driver to specify whether the driver will automatically 11919 * resume reporting beacon events to userspace later (for example after 11920 * the ongoing off-channel activity is completed etc.) when the 11921 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11922 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute. 11923 */ 11924 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12, 11925 /* Optionally set by userspace to request the driver not to resume 11926 * beacon reporting after a pause is completed, when the 11927 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 11928 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. 11929 * If this flag is set, the driver will not resume beacon reporting 11930 * after any pause in beacon reporting is completed. Userspace has to 11931 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order 11932 * to initiate beacon reporting again. If this flag is set in the recent 11933 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the 11934 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any) 11935 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be 11936 * set by the driver. Setting this flag until and unless there is a 11937 * specific need is not recommended as there is a chance of some beacons 11938 * received after pause command and next start command being not 11939 * reported. 11940 */ 11941 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13, 11942 11943 /* Keep last */ 11944 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST, 11945 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX = 11946 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1 11947 }; 11948 11949 /** 11950 * enum qca_vendor_oem_device_type - Represents the target device in firmware. 11951 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO. 11952 * 11953 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for 11954 * a virtual device. 11955 * 11956 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for 11957 * a physical device. 11958 */ 11959 enum qca_vendor_oem_device_type { 11960 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0, 11961 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1, 11962 }; 11963 11964 /* 11965 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command 11966 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA. 11967 * 11968 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is 11969 * used to set/query the data to/from the firmware. On query, the same 11970 * attribute is used to carry the respective data in the reply sent by the 11971 * driver to userspace. The request to set/query the data and the format of the 11972 * respective data from the firmware are embedded in the attribute. The 11973 * maximum size of the attribute payload is 1024 bytes. 11974 * 11975 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed 11976 * based on this field. This optional attribute is included to specify whether 11977 * the device type is a virtual device or a physical device for the command. 11978 * This attribute can be omitted for a virtual device (default) command. 11979 * This u8 attribute is used to carry information for the device type using 11980 * values defined by enum qca_vendor_oem_device_type. 11981 * 11982 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED 11983 * attribute when the data is queried from the firmware. 11984 * 11985 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute 11986 * is set when the userspace queries data from the firmware. This attribute 11987 * should not be set when userspace sets the OEM data to the firmware. 11988 */ 11989 enum qca_wlan_vendor_attr_oem_data_params { 11990 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0, 11991 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1, 11992 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2, 11993 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3, 11994 11995 /* keep last */ 11996 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST, 11997 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX = 11998 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1 11999 }; 12000 12001 /** 12002 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be 12003 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT. 12004 * 12005 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required 12006 * Nested attribute containing multiple ranges with following attributes: 12007 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START, 12008 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and 12009 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM. 12010 * 12011 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32) 12012 * Starting center frequency in MHz. 12013 * 12014 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32) 12015 * Ending center frequency in MHz. 12016 * 12017 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM: 12018 * s32 attribute, optional. It is a per frequency range attribute. 12019 * The maximum TX power limit from user space is to be applied on an 12020 * unrestricted interface for corresponding frequency range. It is also 12021 * possible that the actual TX power may be even lower than this cap due to 12022 * other considerations such as regulatory compliance, SAR, etc. In absence of 12023 * this attribute the driver shall follow current behavior which means 12024 * interface (SAP/P2P) function can keep operating on an unsafe channel with TX 12025 * power derived by the driver based on regulatory/SAR during interface up. 12026 * 12027 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK: 12028 * u32 attribute, optional. Indicates all the interface types which are 12029 * restricted for all frequency ranges provided in 12030 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and 12031 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END. 12032 * This attribute encapsulates bitmasks of interface types defined in 12033 * enum nl80211_iftype. If an interface is marked as restricted the driver must 12034 * move to a safe channel and if no safe channel is available the driver shall 12035 * terminate that interface functionality. In absence of this attribute, 12036 * interface (SAP/P2P) can still continue operating on an unsafe channel with 12037 * TX power limit derived from either 12038 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on 12039 * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM 12040 * is not provided. 12041 */ 12042 enum qca_wlan_vendor_attr_avoid_frequency_ext { 12043 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0, 12044 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1, 12045 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2, 12046 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3, 12047 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4, 12048 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5, 12049 12050 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST, 12051 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX = 12052 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1 12053 }; 12054 12055 /* 12056 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command 12057 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE. 12058 */ 12059 enum qca_wlan_vendor_attr_add_sta_node_params { 12060 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0, 12061 /* 6 byte MAC address of STA */ 12062 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1, 12063 /* Authentication algorithm used by the station of size u16; 12064 * defined in enum nl80211_auth_type. 12065 */ 12066 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2, 12067 12068 /* 12069 * This flag attribute is set if the node being added is an 12070 * MLD STA node. 12071 */ 12072 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_IS_ML = 3, 12073 12074 /* keep last */ 12075 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST, 12076 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX = 12077 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1 12078 }; 12079 12080 /** 12081 * enum qca_btc_chain_mode - Specifies BT coex chain mode. 12082 * This enum defines the valid set of values of BT coex chain mode. 12083 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of 12084 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. 12085 * 12086 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared. 12087 * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are 12088 * separated, hybrid mode. 12089 * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are 12090 * separated, fixed FDD mode. 12091 */ 12092 enum qca_btc_chain_mode { 12093 QCA_BTC_CHAIN_SHARED = 0, 12094 QCA_BTC_CHAIN_SEPARATED_HYBRID = 1, 12095 QCA_BTC_CHAIN_SEPARATED_FDD = 2, 12096 }; 12097 12098 /* deprecated legacy name */ 12099 #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID 12100 12101 /** 12102 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex 12103 * chain mode. 12104 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. 12105 * 12106 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute. 12107 * Indicates the BT coex chain mode, are 32-bit values from 12108 * enum qca_btc_chain_mode. This attribute is mandatory. 12109 * 12110 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute. 12111 * If set, vdev should be restarted when BT coex chain mode is updated. 12112 * This attribute is optional. 12113 */ 12114 enum qca_vendor_attr_btc_chain_mode { 12115 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0, 12116 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1, 12117 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2, 12118 12119 /* Keep last */ 12120 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST, 12121 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX = 12122 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1, 12123 }; 12124 12125 /** 12126 * enum qca_vendor_wlan_sta_flags - Station feature flags 12127 * Bits will be set to 1 if the corresponding features are enabled. 12128 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station 12129 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled 12130 for the station 12131 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled 12132 for the station 12133 */ 12134 enum qca_vendor_wlan_sta_flags { 12135 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0), 12136 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1), 12137 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2), 12138 }; 12139 12140 /** 12141 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval 12142 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval 12143 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval 12144 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE 12145 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE 12146 */ 12147 enum qca_vendor_wlan_sta_guard_interval { 12148 QCA_VENDOR_WLAN_STA_GI_800_NS = 0, 12149 QCA_VENDOR_WLAN_STA_GI_400_NS = 1, 12150 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2, 12151 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3, 12152 }; 12153 12154 /** 12155 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes 12156 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command. 12157 * 12158 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC: 12159 * Required attribute in request for AP mode only, 6-byte MAC address, 12160 * corresponding to the station's MAC address for which information is 12161 * requested. For STA mode this is not required as the info always correspond 12162 * to the self STA and the current/last association. 12163 * 12164 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS: 12165 * Optionally used in response, u32 attribute, contains a bitmap of different 12166 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only. 12167 * 12168 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL: 12169 * Optionally used in response, u32 attribute, possible values are defined in 12170 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only. 12171 * Guard interval used by the station. 12172 * 12173 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT: 12174 * Optionally used in response, u32 attribute, used in AP mode only. 12175 * Value indicates the number of data frames received from station with retry 12176 * bit set to 1 in FC. 12177 * 12178 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT: 12179 * Optionally used in response, u32 attribute, used in AP mode only. 12180 * Counter for number of data frames with broadcast or multicast address in 12181 * the destination address received from the station. 12182 * 12183 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED: 12184 * Optionally used in response, u32 attribute, used in both STA and AP modes. 12185 * Value indicates the number of data frames successfully transmitted only 12186 * after retrying the packets and for which the TX status has been updated 12187 * back to host from target. 12188 * 12189 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED: 12190 * Optionally used in response, u32 attribute, used in both STA and AP mode. 12191 * Value indicates the number of data frames not transmitted successfully even 12192 * after retrying the packets for the number of times equal to the total number 12193 * of retries allowed for that packet and for which the TX status has been 12194 * updated back to host from target. 12195 * 12196 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL: 12197 * Optionally used in response, u32 attribute, used in AP mode only. 12198 * Counter in the target for the number of data frames successfully transmitted 12199 * to the station. 12200 * 12201 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY: 12202 * Optionally used in response, u32 attribute, used in AP mode only. 12203 * Value indicates the number of data frames successfully transmitted only 12204 * after retrying the packets. 12205 * 12206 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED: 12207 * Optionally used in response, u32 attribute, used in both STA & AP mode. 12208 * Value indicates the number of data frames not transmitted successfully even 12209 * after retrying the packets for the number of times equal to the total number 12210 * of retries allowed for that packet. 12211 * 12212 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in 12213 * the STA mode only. Represent the number of probe requests sent by the STA 12214 * while attempting to roam on missing certain number of beacons from the 12215 * connected AP. If queried in the disconnected state, this represents the 12216 * count for the last connected state. 12217 * 12218 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in 12219 * the STA mode. Represent the number of probe responses received by the station 12220 * while attempting to roam on missing certain number of beacons from the 12221 * connected AP. When queried in the disconnected state, this represents the 12222 * count when in last connected state. 12223 * 12224 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the 12225 * STA mode only. Represents the total number of frames sent out by STA 12226 * including Data, ACK, RTS, CTS, Control Management. This data is maintained 12227 * only for the connect session. Represents the count of last connected session, 12228 * when queried in the disconnected state. 12229 * 12230 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode. 12231 * Total number of RTS sent out by the STA. This data is maintained per connect 12232 * session. Represents the count of last connected session, when queried in the 12233 * disconnected state. 12234 * 12235 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the 12236 * STA mode.Represent the number of RTS transmission failure that reach retry 12237 * limit. This data is maintained per connect session. Represents the count of 12238 * last connected session, when queried in the disconnected state. 12239 * 12240 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in 12241 * the STA mode. Represent the total number of non aggregated frames transmitted 12242 * by the STA. This data is maintained per connect session. Represents the count 12243 * of last connected session, when queried in the disconnected state. 12244 * 12245 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the 12246 * STA mode. Represent the total number of aggregated frames transmitted by the 12247 * STA. This data is maintained per connect session. Represents the count of 12248 * last connected session, when queried in the disconnected state. 12249 * 12250 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in 12251 * the STA mode. Represents the number of received frames with a good PLCP. This 12252 * data is maintained per connect session. Represents the count of last 12253 * connected session, when queried in the disconnected state. 12254 * 12255 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32, 12256 * used in the STA mode. Represents the number of occasions that no valid 12257 * delimiter is detected by A-MPDU parser. This data is maintained per connect 12258 * session. Represents the count of last connected session, when queried in the 12259 * disconnected state. 12260 * 12261 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the 12262 * STA mode. Represents the number of frames for which CRC check failed in the 12263 * MAC. This data is maintained per connect session. Represents the count of 12264 * last connected session, when queried in the disconnected state. 12265 * 12266 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the 12267 * STA mode. Represents the number of unicast ACKs received with good FCS. This 12268 * data is maintained per connect session. Represents the count of last 12269 * connected session, when queried in the disconnected state. 12270 * 12271 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA 12272 * mode. Represents the number of received Block Acks. This data is maintained 12273 * per connect session. Represents the count of last connected session, when 12274 * queried in the disconnected state. 12275 * 12276 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA 12277 * mode. Represents the number of beacons received from the connected BSS. This 12278 * data is maintained per connect session. Represents the count of last 12279 * connected session, when queried in the disconnected state. 12280 * 12281 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the 12282 * STA mode. Represents the number of beacons received by the other BSS when in 12283 * connected state (through the probes done by the STA). This data is maintained 12284 * per connect session. Represents the count of last connected session, when 12285 * queried in the disconnected state. 12286 * 12287 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in 12288 * the STA mode. Represents the number of received DATA frames with good FCS and 12289 * matching Receiver Address when in connected state. This data is maintained 12290 * per connect session. Represents the count of last connected session, when 12291 * queried in the disconnected state. 12292 * 12293 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the 12294 * STA mode. Represents the number of RX Data multicast frames dropped by the HW 12295 * when in the connected state. This data is maintained per connect session. 12296 * Represents the count of last connected session, when queried in the 12297 * disconnected state. 12298 * 12299 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the 12300 * STA mode. This represents the target power in dBm for the transmissions done 12301 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per 12302 * connect session. Represents the count of last connected session, when 12303 * queried in the disconnected state. 12304 * 12305 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the 12306 * STA mode. This represents the Target power in dBm for transmissions done to 12307 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect 12308 * session. Represents the count of last connected session, when queried in the 12309 * disconnected state. 12310 * 12311 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the 12312 * STA mode. This represents the Target power in dBm for transmissions done to 12313 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session. 12314 * Represents the count of last connected session, when queried in the 12315 * disconnected state. 12316 * 12317 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the 12318 * STA mode. This represents the Target power in dBm for transmissions done to 12319 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect 12320 * session. Represents the count of last connected session, when queried in 12321 * the disconnected state. 12322 * 12323 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the 12324 * STA mode. This represents the Target power in dBm for for transmissions done 12325 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session. 12326 * Represents the count of last connected session, when queried in the 12327 * disconnected state. 12328 * 12329 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used 12330 * in the STA mode. This represents the Nested attribute representing the 12331 * overflow counts of each receive buffer allocated to the hardware during the 12332 * STA's connection. The number of hw buffers might vary for each WLAN 12333 * solution and hence this attribute represents the nested array of all such 12334 * HW buffer count. This data is maintained per connect session. Represents 12335 * the count of last connected session, when queried in the disconnected state. 12336 * 12337 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm) 12338 * allowed as per the regulatory requirements for the current or last connected 12339 * session. Used in the STA mode. 12340 * 12341 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power 12342 * (dBm) used by the station in its latest unicast frame while communicating 12343 * to the AP in the connected state. When queried in the disconnected state, 12344 * this represents the TX power used by the STA with last AP communication 12345 * when in connected state. 12346 * 12347 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity 12348 * level used to adjust the RX sensitivity. Represents the current ANI level 12349 * when queried in the connected state. When queried in the disconnected 12350 * state, this corresponds to the latest ANI level at the instance of 12351 * disconnection. 12352 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode 12353 * only. This represents the number of group addressed robust management frames 12354 * received from this station with an invalid MIC or a missing MME when PMF is 12355 * enabled. 12356 * 12357 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode 12358 * only. This represents the number of group addressed robust management frames 12359 * received from this station with the packet number less than or equal to the 12360 * last received packet number when PMF is enabled. 12361 * 12362 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA 12363 * mode only. This represents the number of Beacon frames received from this 12364 * station with an invalid MIC or a missing MME when beacon protection is 12365 * enabled. 12366 * 12367 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode 12368 * only. This represents number of Beacon frames received from this station with 12369 * the packet number less than or equal to the last received packet number when 12370 * beacon protection is enabled. 12371 * 12372 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in 12373 * STA mode only. Driver uses this attribute to populate the connection failure 12374 * reason codes and the values are defined in 12375 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send 12376 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving 12377 * connection failure from driver. The driver shall not include this attribute 12378 * in response to QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no 12379 * connection failure observed in the last attempted connection. 12380 * 12381 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps) 12382 * used by the station in its last TX frame while communicating to the AP in the 12383 * connected state. When queried in the disconnected state, this represents the 12384 * rate used by the STA in the last TX frame to the AP when it was connected. 12385 * This attribute is used for STA mode only. 12386 * 12387 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only. 12388 * This represents the rate index used by the STA for the last TX frame to the 12389 * AP. When queried in the disconnected state, this gives the last RIX used by 12390 * the STA in the last TX frame to the AP when it was connected. 12391 * 12392 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA 12393 * mode only. This represents the number of times the STA TSF goes out of sync 12394 * from the AP after the connection. If queried in the disconnected state, this 12395 * gives the count of TSF out of sync for the last connection. 12396 * 12397 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA 12398 * mode only. This represents the roam trigger reason for the last roaming 12399 * attempted by the firmware. This can be queried either in connected state or 12400 * disconnected state. Each bit of this attribute represents the different 12401 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers. 12402 * 12403 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode 12404 * only. This represents the roam fail reason for the last failed roaming 12405 * attempt by the firmware. Different roam failure reason codes are specified 12406 * in enum qca_vendor_roam_fail_reasons. This can be queried either in 12407 * connected state or disconnected state. 12408 * 12409 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in 12410 * STA mode only. This represents the roam invoke fail reason for the last 12411 * failed roam invoke. Different roam invoke failure reason codes 12412 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be 12413 * queried either in connected state or disconnected state. 12414 * 12415 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only. 12416 * This represents the average congestion duration of uplink frames in MAC 12417 * queue in unit of ms. This can be queried either in connected state or 12418 * disconnected state. 12419 * 12420 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Mandatory u32 Nested 12421 * attribute, used in AP mode. This represents the MPDU packet count per MCS 12422 * rate value of TX packets. Every index of this nested attribute corresponds 12423 * to MCS index, for example Index 0 represents MCS0 TX rate. This can be 12424 * queried in connected state. 12425 * 12426 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Mandatory u32 Nested 12427 * attribute, used in AP mode. This represents the MPDU packet count per MCS 12428 * rate value of RX packets. Every index of this nested attribute corresponds 12429 * to MCS index, for example Index 0 represents MCS0 RX rate. This can be 12430 * queried in connected state. 12431 */ 12432 enum qca_wlan_vendor_attr_get_sta_info { 12433 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0, 12434 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1, 12435 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2, 12436 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3, 12437 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4, 12438 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5, 12439 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6, 12440 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7, 12441 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8, 12442 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9, 12443 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10, 12444 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11, 12445 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12, 12446 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13, 12447 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14, 12448 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15, 12449 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16, 12450 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17, 12451 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18, 12452 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19, 12453 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20, 12454 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21, 12455 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22, 12456 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23, 12457 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24, 12458 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25, 12459 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26, 12460 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27, 12461 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28, 12462 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29, 12463 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30, 12464 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31, 12465 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32, 12466 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33, 12467 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34, 12468 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35, 12469 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39, 12470 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40, 12471 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41, 12472 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42, 12473 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43, 12474 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44, 12475 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45, 12476 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46, 12477 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47, 12478 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48, 12479 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49, 12480 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50, 12481 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51, 12482 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52, 12483 12484 /* keep last */ 12485 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST, 12486 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX = 12487 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1, 12488 }; 12489 12490 /** 12491 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes. 12492 * Used when the driver triggers the STA to disconnect from the AP. 12493 * 12494 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the 12495 * disconnection with the AP due to unspecified reasons. 12496 * 12497 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the 12498 * disconnection with the AP due to a roaming failure. This roaming is triggered 12499 * internally (host driver/firmware). 12500 * 12501 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from 12502 * the AP when the user/external triggered roaming fails. 12503 * 12504 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used 12505 * by the host driver whenever gateway reachability failure is detected and the 12506 * driver disconnects with AP. 12507 * 12508 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from 12509 * the AP on a channel switch announcement from it with an unsupported channel. 12510 * 12511 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start 12512 * with indoor channels disabled and if the STA is connected on one of these 12513 * disabled channels, the host driver disconnected the STA with this reason 12514 * code. 12515 * 12516 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an 12517 * explicit request from the user to disable the current operating channel. 12518 * 12519 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to 12520 * the internal host driver/firmware recovery. 12521 * 12522 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on 12523 * a timeout for the key installations from the user space. 12524 * 12525 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the 12526 * STA on a band change request from the user space to a different band from the 12527 * current operation channel/band. 12528 * 12529 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an 12530 * interface down trigger from the user space. 12531 * 12532 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the 12533 * STA on getting continuous transmission failures for multiple Data frames. 12534 * 12535 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive 12536 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection 12537 * represents inactivity from AP on such transmissions. 12538 12539 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on 12540 * disconnection when SA Query times out (AP does not respond to SA Query). 12541 * 12542 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the 12543 * STA on missing the beacons continuously from the AP. 12544 * 12545 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not 12546 * able to move to the channel mentioned by the AP in CSA. 12547 * 12548 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection. 12549 */ 12550 enum qca_disconnect_reason_codes { 12551 QCA_DISCONNECT_REASON_UNSPECIFIED = 0, 12552 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1, 12553 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2, 12554 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3, 12555 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4, 12556 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5, 12557 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6, 12558 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7, 12559 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8, 12560 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9, 12561 QCA_DISCONNECT_REASON_IFACE_DOWN = 10, 12562 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11, 12563 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12, 12564 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13, 12565 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14, 12566 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15, 12567 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16, 12568 }; 12569 12570 /** 12571 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes 12572 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command. 12573 * 12574 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute. 12575 * This attribute represents the driver specific reason codes (local 12576 * driver/firmware initiated reasons for disconnection) defined 12577 * in enum qca_disconnect_reason_codes. 12578 */ 12579 enum qca_wlan_vendor_attr_driver_disconnect_reason { 12580 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0, 12581 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1, 12582 12583 /* keep last */ 12584 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST, 12585 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX = 12586 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1, 12587 }; 12588 12589 /** 12590 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request 12591 * 12592 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION. 12593 */ 12594 enum qca_wlan_tspec_operation { 12595 QCA_WLAN_TSPEC_ADD = 0, 12596 QCA_WLAN_TSPEC_DEL = 1, 12597 QCA_WLAN_TSPEC_GET = 2, 12598 }; 12599 12600 /** 12601 * enum qca_wlan_tspec_direction - Direction in TSPEC 12602 * As what is defined in IEEE Std 802.11-2016, Table 9-139. 12603 * 12604 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION. 12605 */ 12606 enum qca_wlan_tspec_direction { 12607 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0, 12608 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1, 12609 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2, 12610 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3, 12611 }; 12612 12613 /** 12614 * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC 12615 * As what is defined in IEEE Std 802.11-2016, Table 9-141. 12616 * 12617 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY. 12618 */ 12619 enum qca_wlan_tspec_ack_policy { 12620 QCA_WLAN_TSPEC_NORMAL_ACK = 0, 12621 QCA_WLAN_TSPEC_NO_ACK = 1, 12622 /* Reserved */ 12623 QCA_WLAN_TSPEC_BLOCK_ACK = 3, 12624 }; 12625 12626 /** 12627 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes 12628 * used by QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command. 12629 * 12630 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION: 12631 * u8 attribute. Specify the TSPEC operation of this request. Possible values 12632 * are defined in enum qca_wlan_tspec_operation. 12633 * Mandatory attribute for all kinds of config TSPEC requests. 12634 * 12635 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID: 12636 * u8 attribute. TS ID. Possible values are 0-7. 12637 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL, 12638 * QCA_WLAN_TSPEC_GET. A mandatory attribute. 12639 * 12640 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION: 12641 * u8 attribute. Direction of data carried by the TS. Possible values are 12642 * defined in enum qca_wlan_tspec_direction. 12643 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12644 * 12645 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD: 12646 * Flag attribute. Indicate whether APSD is enabled for the traffic associated 12647 * with the TS. set - enabled, not set - disabled. 12648 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12649 * 12650 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY: 12651 * u8 attribute. User priority to be used for the transport of MSDUs/ -MSDUs 12652 * belonging to this TS. Possible values are 0-7. 12653 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12654 * 12655 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY: 12656 * u8 attribute. Indicate whether MAC acknowledgements are required for 12657 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements. 12658 * Possible values are defined in enum qca_wlan_tspec_ack_policy. 12659 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12660 * 12661 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE: 12662 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs 12663 * belonging to this TS. 12664 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12665 * 12666 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE: 12667 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs 12668 * belonging to this TS. 12669 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12670 * 12671 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL: 12672 * u32 attribute. Specify the minimum interval in microseconds between the 12673 * start of two successive SPs. 12674 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12675 * 12676 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL: 12677 * u32 attribute. Specify the maximum interval in microseconds between the 12678 * start of two successive SPs. 12679 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12680 * 12681 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL: 12682 * u32 attribute. Specify the minimum interval in microseconds that can elapse 12683 * without arrival or transfer of an MPDU belonging to the TS before this TS 12684 * is deleted by the MAC entity at the HC. 12685 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12686 * 12687 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL: 12688 * u32 attribute. Specify the minimum interval in microseconds that can elapse 12689 * without arrival or transfer of an MSDU belonging to the TS before the 12690 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of 12691 * 0xFFFFFFFF disables the suspension interval. The value of the suspension 12692 * interval is always less than or equal to the inactivity interval. 12693 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12694 * 12695 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE: 12696 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC 12697 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the 12698 * bounds of this TSPEC. 12699 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12700 * 12701 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE: 12702 * u32 attribute. Indicate the average data rate in bps specified at the MAC 12703 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the 12704 * bounds of this TSPEC. 12705 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12706 * 12707 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE: 12708 * u32 attribute. Indicate the maximum allowable data rate in bps specified at 12709 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within 12710 * the bounds of this TSPEC. 12711 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12712 * 12713 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE: 12714 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs 12715 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A 12716 * value of 0 indicates that there are no bursts. 12717 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12718 * 12719 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE: 12720 * u32 attribute. Indicate the minimum PHY rate in bps for transport of 12721 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC. 12722 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 12723 * 12724 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE: 12725 * u16 attribute. Specify the excess allocation of time (and bandwidth) over 12726 * and above the stated application rates required to transport an MSDU/A-MSDU 12727 * belonging to the TS in this TSPEC. 12728 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 12729 */ 12730 enum qca_wlan_vendor_attr_config_tspec { 12731 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0, 12732 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1, 12733 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2, 12734 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3, 12735 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4, 12736 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5, 12737 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6, 12738 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7, 12739 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8, 12740 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9, 12741 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10, 12742 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11, 12743 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12, 12744 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13, 12745 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14, 12746 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15, 12747 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16, 12748 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17, 12749 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18, 12750 12751 /* keep last */ 12752 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST, 12753 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX = 12754 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1, 12755 }; 12756 12757 /** 12758 * enum qca_wlan_medium_assess_type - Type of medium assess request 12759 * 12760 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE. 12761 */ 12762 enum qca_wlan_medium_assess_type { 12763 QCA_WLAN_MEDIUM_ASSESS_CCA = 0, 12764 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1, 12765 }; 12766 12767 /** 12768 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by 12769 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command. 12770 * 12771 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE: 12772 * u8 attribute. Mandatory in all kinds of medium assess requests/responses. 12773 * Specify the type of medium assess request and indicate its type in response. 12774 * Possible values are defined in enum qca_wlan_medium_assess_type. 12775 * 12776 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD: 12777 * u32 attribute. Mandatory in CCA request. 12778 * Specify the assessment period in terms of seconds. Assessment result will be 12779 * sent as the response to the CCA request after the assessment period. 12780 * 12781 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT: 12782 * u32 attribute. Mandatory in response to CCA request. 12783 * Total timer tick count of the assessment cycle. 12784 * 12785 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT: 12786 * u32 attribute. Mandatory in response to CCA request. 12787 * Timer tick count of idle time in the assessment cycle. 12788 * 12789 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT: 12790 * u32 attribute. Mandatory in response to CCA request. 12791 * Timer tick count of Intra BSS traffic RX time in the assessment cycle. 12792 * 12793 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT: 12794 * u32 attribute. Mandatory in response to CCA request. 12795 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle. 12796 * 12797 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI: 12798 * s32 attribute. Mandatory in response to CCA request. 12799 * Maximum RSSI of Intra BSS traffic in the assessment cycle. 12800 * 12801 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI: 12802 * s32 attribute. Mandatory in response to CCA request. 12803 * Minimum RSSI of Intra BSS traffic in the assessment cycle. 12804 * 12805 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE: 12806 * u8 attribute. Mandatory in congestion report request. 12807 * 1-enable 0-disable. 12808 * 12809 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD: 12810 * u8 attribute. Mandatory in congestion report enable request and will be 12811 * ignored if present in congestion report disable request. Possible values are 12812 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type 12813 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if 12814 * congestion percentage reaches the configured threshold. 12815 * 12816 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL: 12817 * u8 attribute. Optional in congestion report enable request and will be 12818 * ignored if present in congestion report disable request. 12819 * Specify the interval of congestion report event in terms of seconds. Possible 12820 * values are 1-255. Default value 1 will be used if this attribute is omitted 12821 * or using invalid values. 12822 * 12823 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE: 12824 * u8 attribute. Mandatory in congestion report event. 12825 * Indicate the actual congestion percentage. Possible values are 0-100. 12826 */ 12827 enum qca_wlan_vendor_attr_medium_assess { 12828 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0, 12829 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1, 12830 12831 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2, 12832 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3, 12833 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4, 12834 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5, 12835 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6, 12836 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7, 12837 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8, 12838 12839 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9, 12840 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10, 12841 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11, 12842 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12, 12843 12844 /* keep last */ 12845 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST, 12846 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX = 12847 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1, 12848 }; 12849 12850 /** 12851 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes 12852 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command. 12853 * 12854 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL: 12855 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1 12856 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV, 12857 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events. 12858 * 12859 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT: 12860 * u8 attribute, required. 1 means Tx VDEV up event.0 mean Tx VDEV down event. 12861 * 12862 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID: 12863 * u8 attribute, required. indicates group id of Tx VDEV 12864 * 12865 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO: 12866 * Nested attribute. This attribute shall be used by the driver to send 12867 * group information. The attributes defined in enum 12868 * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info 12869 * are nested in this attribute. 12870 */ 12871 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status { 12872 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0, 12873 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1, 12874 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2, 12875 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3, 12876 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4, 12877 12878 /* keep last */ 12879 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST, 12880 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX = 12881 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1, 12882 }; 12883 12884 /** 12885 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used 12886 * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute. 12887 * 12888 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX: 12889 * u32 attribute, required. contains interface index. 12890 * 12891 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS: 12892 * u8 attribute, required. 0 - means vdev is in down state. 12893 * 1- means vdev is in up state. 12894 */ 12895 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info { 12896 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0, 12897 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1, 12898 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2, 12899 12900 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST, 12901 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX = 12902 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1, 12903 }; 12904 12905 /** 12906 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type 12907 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame 12908 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame 12909 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request 12910 * frame 12911 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation 12912 * Request frame. 12913 */ 12914 enum qca_wlan_vendor_oci_override_frame_type { 12915 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1, 12916 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2, 12917 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3, 12918 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4, 12919 }; 12920 12921 /** 12922 * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies 12923 * 12924 * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary 12925 * STA interface has to be given while selecting the connection policies 12926 * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface. 12927 * An interface is set as primary through the attribute 12928 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not 12929 * applicable if the primary interface has not been set earlier. 12930 * 12931 * The intention is not to downgrade the primary STA performance, such as: 12932 * - Do not reduce the number of TX/RX chains of primary connection. 12933 * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of 12934 * chains. 12935 * - If using MCC, should set the MCC duty cycle of the primary connection to 12936 * be higher than the secondary connection. 12937 * 12938 * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the 12939 * subsequent STA connection shall be chosen to balance with the existing 12940 * concurrent STA's performance. 12941 * Such as 12942 * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware 12943 * capability. 12944 * - If using MCC, set the MCC duty cycle of the primary connection to be equal 12945 * to the secondary. 12946 * - Prefer BSSID candidates which will help provide the best "overall" 12947 * performance for all the STA connections. 12948 */ 12949 enum qca_wlan_concurrent_sta_policy_config { 12950 QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0, 12951 QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1, 12952 }; 12953 12954 /** 12955 * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies 12956 * 12957 * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP 12958 * interface. 12959 * 12960 * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies 12961 * to meet gaming audio latency requirements. 12962 * 12963 * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface 12964 * concurrencies to meet lossless audio streaming requirements. 12965 * 12966 * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet 12967 * XR (eXtended Reality) requirements. 12968 */ 12969 enum qca_wlan_concurrent_ap_policy_config { 12970 QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0, 12971 QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1, 12972 QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2, 12973 QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3, 12974 }; 12975 12976 /** 12977 * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes 12978 * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command. 12979 * 12980 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG: 12981 * u8 attribute. Configures the concurrent STA policy configuration. 12982 * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config. 12983 12984 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG: 12985 * u8 attribute. Configures the concurrent AP policy configuration. 12986 * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config. 12987 */ 12988 enum qca_wlan_vendor_attr_concurrent_policy { 12989 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0, 12990 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1, 12991 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2, 12992 12993 /* keep last */ 12994 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST, 12995 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX = 12996 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1, 12997 12998 }; 12999 13000 /* Compatibility defines for previously used enum 13001 * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used 13002 * in any new implementation. 13003 */ 13004 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \ 13005 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG 13006 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \ 13007 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX 13008 #define qca_wlan_vendor_attr_concurrent_sta_policy \ 13009 qca_wlan_vendor_attr_concurrent_policy 13010 13011 /** 13012 * enum qca_sta_connect_fail_reason_codes - Defines values carried 13013 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor 13014 * attribute. 13015 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No probe response frame received 13016 * for unicast probe request. 13017 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request. 13018 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for 13019 * ath request. 13020 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not 13021 * received from AP. 13022 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send assoc 13023 * request. 13024 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for 13025 * assoc request. 13026 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Assoc response is not 13027 * received from AP. 13028 */ 13029 enum qca_sta_connect_fail_reason_codes { 13030 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1, 13031 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2, 13032 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3, 13033 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4, 13034 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5, 13035 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6, 13036 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7, 13037 }; 13038 13039 /** 13040 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for 13041 * OCI override request. These attributes are used inside nested attribute 13042 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command 13043 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 13044 * 13045 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8. 13046 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this 13047 * attribute to specify the frame type in which the OCI is to be overridden. 13048 * 13049 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32) 13050 * OCI frequency (in MHz) to override in the specified frame type. 13051 */ 13052 enum qca_wlan_vendor_attr_oci_override { 13053 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0, 13054 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1, 13055 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2, 13056 13057 /* keep last */ 13058 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST, 13059 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX = 13060 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1, 13061 }; 13062 13063 /** 13064 * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different 13065 * filters defined in this enum are used in attribute 13066 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK. 13067 * 13068 * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver 13069 * shall filter the channels which are not usable because of coexistence with 13070 * cellular radio. 13071 * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver 13072 * shall filter the channels which are not usable because of existing active 13073 * interfaces in the driver and will result in Multi Channel Concurrency, etc. 13074 * 13075 */ 13076 enum qca_wlan_vendor_usable_channels_filter { 13077 QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0, 13078 QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1, 13079 }; 13080 13081 /** 13082 * enum qca_wlan_vendor_attr_chan_info - Attributes used inside 13083 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute. 13084 * 13085 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ: 13086 * u32 attribute, required. Indicates the center frequency of the primary 13087 * channel in MHz. 13088 * 13089 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ: 13090 * u32 attribute. Indicates the center frequency of the primary segment of the 13091 * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz, 13092 * 160 MHz, and 320 MHz channels. 13093 * 13094 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ: 13095 * u32 attribute. Indicates the center frequency of the secondary segment of 13096 * 80+80 channel in MHz. This attribute is required only when 13097 * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80. 13098 * 13099 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH: 13100 * u32 attribute, required. Indicates the bandwidth of the channel, possible 13101 * values are defined in enum nl80211_chan_width. 13102 * 13103 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK: 13104 * u32 attribute, required. Indicates all the interface types for which this 13105 * channel is usable. This attribute encapsulates bitmasks of interface types 13106 * defined in enum nl80211_iftype. 13107 * 13108 */ 13109 enum qca_wlan_vendor_attr_chan_info { 13110 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0, 13111 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1, 13112 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2, 13113 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3, 13114 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4, 13115 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5, 13116 13117 /* keep last */ 13118 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST, 13119 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX = 13120 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1, 13121 }; 13122 13123 /** 13124 * enum qca_wlan_vendor_attr_usable_channels - Attributes used by 13125 * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command. 13126 * 13127 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK: 13128 * u32 attribute. Indicates the bands from which the channels should be reported 13129 * in response. This attribute encapsulates bit masks of bands defined in enum 13130 * nl80211_band. Optional attribute, if not present in the request the driver 13131 * shall return channels from all supported bands. 13132 * 13133 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK: 13134 * u32 attribute. Indicates all the interface types for which the usable 13135 * channels information is requested. This attribute encapsulates bitmasks of 13136 * interface types defined in enum nl80211_iftype. Optional attribute, if not 13137 * present in the request the driver shall send information of all supported 13138 * interface modes. 13139 * 13140 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK: 13141 * u32 attribute. This attribute carries information of all filters that shall 13142 * be applied while populating usable channels information by the driver. This 13143 * attribute carries bit masks of different filters defined in enum 13144 * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present 13145 * in the request the driver shall send information of channels without applying 13146 * any of the filters that can be configured through this attribute. 13147 * 13148 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO: 13149 * Nested attribute. This attribute shall be used by the driver to send 13150 * usability information of each channel. The attributes defined in enum 13151 * qca_wlan_vendor_attr_chan_info are used inside this attribute. 13152 */ 13153 enum qca_wlan_vendor_attr_usable_channels { 13154 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0, 13155 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1, 13156 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2, 13157 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3, 13158 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4, 13159 13160 /* keep last */ 13161 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST, 13162 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX = 13163 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1, 13164 }; 13165 13166 /** 13167 * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command 13168 * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history. 13169 * 13170 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry 13171 * the list of radar history entries. 13172 * Each entry contains freq, timestamp, and radar signal detect flag. 13173 * The driver shall add an entry when CAC has finished, or radar signal 13174 * has been detected post AP beaconing. The driver shall maintain at least 13175 * 8 entries in order to save CAC result for a 160 MHz channel. 13176 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute. 13177 * Channel frequency in MHz. 13178 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds. 13179 * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC 13180 * or radar detection. 13181 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute. 13182 * This flag indicates radar signal has been detected. 13183 */ 13184 enum qca_wlan_vendor_attr_radar_history { 13185 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0, 13186 13187 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1, 13188 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2, 13189 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3, 13190 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4, 13191 13192 /* keep last */ 13193 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST, 13194 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX = 13195 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1, 13196 }; 13197 13198 /** 13199 * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type 13200 * 13201 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the 13202 * target exited MCC state and cleared the quota information. In the 13203 * command it clears MCC quota setting and restores adaptive scheduling. 13204 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and 13205 * will not be changed. 13206 * This quota type is present in command/event. 13207 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic 13208 * and the target may change the quota based on the data activity. 13209 * This quota type is only present in event. 13210 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized 13211 * by the target for low latency. 13212 * This quota type is only present in command. 13213 */ 13214 enum qca_wlan_vendor_mcc_quota_type { 13215 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0, 13216 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1, 13217 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2, 13218 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3, 13219 }; 13220 13221 /** 13222 * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event 13223 * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel 13224 * quota information or as a command to set the required MCC quota for an 13225 * interface. 13226 * 13227 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute. 13228 * The type is defined in enum qca_wlan_vendor_mcc_quota_type. 13229 * In a command this specifies the MCC quota type to be set for the interface. 13230 * In an event this provides the current quota type in force. 13231 * This is required in a command and an event. 13232 * 13233 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry 13234 * the list of channel quota entries. 13235 * In an event each entry contains the frequency and respective time quota for 13236 * all the MCC interfaces. 13237 * In a command it specifies the interface index and respective time quota. 13238 * In a command only one entry (ifindex, quota pair) may be specified. 13239 * 13240 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute. 13241 * Channel frequency in MHz. This is present only in an event. 13242 * 13243 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute. 13244 * Channel time quota expressed as percentage. 13245 * This is present in an event and a command. 13246 * In an command, the user shall specify the quota to be allocated for the 13247 * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX. 13248 * In an event this provides the existing quota for the channel. 13249 * 13250 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute. 13251 * Specifies the interface index (netdev) for which the corresponding 13252 * configurations are applied. This is required in a command only. Only one 13253 * interface index may be specified. If not specified, the configuration is 13254 * rejected. 13255 * 13256 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE 13257 * 8-bit unsigned value to enable/disable Multi-Channel Concurrency 13258 * low latency mode. The firmware will do optimization for low 13259 * latency in Multi-Channel concurrency state if enabled. And all existing 13260 * user quota setting will be overwritten by the target. 13261 * 0 - disable(default), 1 - enable. 13262 * It is only present in a command with quota type of 13263 * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY. 13264 */ 13265 enum qca_wlan_vendor_attr_mcc_quota { 13266 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0, 13267 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1, 13268 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2, 13269 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3, 13270 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4, 13271 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5, 13272 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6, 13273 13274 /* keep last */ 13275 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST, 13276 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX = 13277 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1, 13278 }; 13279 13280 /** 13281 * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values 13282 * are used by the attribute 13283 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON. 13284 * 13285 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target 13286 * invoke roam. 13287 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable 13288 * detection failed when the roam trigger. 13289 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space. 13290 */ 13291 13292 enum qca_wlan_roam_stats_invoke_reason { 13293 QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0, 13294 QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1, 13295 QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2, 13296 }; 13297 13298 /** 13299 * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These 13300 * values are used by the attribute 13301 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON. 13302 * 13303 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when 13304 * roam by kickout. 13305 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam 13306 * trigger by kickout. 13307 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when 13308 * roam trigger by kickout. 13309 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when 13310 * roam trigger by kickout. 13311 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has 13312 * disappeared, and all TX is failing when roam trigger by kickout. 13313 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process 13314 * timeout when roam trigger by kickout. 13315 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected 13316 * peer has roamed to a repeater. 13317 */ 13318 enum qca_wlan_roam_stats_tx_failures_reason { 13319 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0, 13320 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1, 13321 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2, 13322 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3, 13323 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4, 13324 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5, 13325 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6, 13326 }; 13327 13328 /** 13329 * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values 13330 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON. 13331 * 13332 * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the 13333 * detailed reason for roam scan being aborted. 13334 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not 13335 * started due to high data RSSI during LOW-RSSI roaming. 13336 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not 13337 * started due to good link speed during LOW-RSSI roaming. 13338 * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started 13339 * due to high data RSSI during background roaming. 13340 * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not 13341 * started due to high beacon RSSI during background roaming 13342 */ 13343 enum qca_wlan_roam_stats_abort_reason { 13344 QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0, 13345 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1, 13346 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2, 13347 QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3, 13348 QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4, 13349 }; 13350 13351 /** 13352 * enum qca_wlan_roam_stats_scan_type - Roam scan type define. 13353 * These values are used by the attribute 13354 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE. 13355 * 13356 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan 13357 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan 13358 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered. 13359 * This is generally used in BTM events to indicate BTM frame exchange logs. 13360 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan 13361 * from 2.4 GHz to 5 GHz or 6 GHz 13362 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from 13363 * 5 GHz to 6 GHz 13364 */ 13365 enum qca_wlan_roam_stats_scan_type { 13366 QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0, 13367 QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1, 13368 QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2, 13369 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3, 13370 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4, 13371 }; 13372 13373 /** 13374 * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type. 13375 * These values are used by the attribute 13376 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE. 13377 * 13378 * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the 13379 * detailed roam scan type. 13380 * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam. 13381 * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam. 13382 */ 13383 enum qca_wlan_roam_stats_scan_dwell_type { 13384 QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0, 13385 QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1, 13386 QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2, 13387 }; 13388 13389 /** 13390 * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside 13391 * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute. 13392 */ 13393 enum qca_wlan_vendor_attr_roam_stats_scan_chan_info { 13394 /* 32-bit unsigned value to indicate center frequency of the primary 13395 * channel in MHz for each roam scan channel. 13396 */ 13397 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1, 13398 /* 8-bit unsigned value to indicate channel scan type for each 13399 * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type. 13400 */ 13401 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2, 13402 /* 32-bit unsigned value to indicate maximum scan time in milliseconds 13403 * for each roam scan channel. 13404 */ 13405 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3, 13406 13407 /* keep last */ 13408 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST, 13409 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX = 13410 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1, 13411 }; 13412 13413 /** 13414 * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values 13415 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE. 13416 * 13417 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP: Authentication Response frame 13418 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP: Reassociation Response frame 13419 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame 13420 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame 13421 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame 13422 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame 13423 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame 13424 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame 13425 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ: Authentication Request frame 13426 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ: Reassociation Request frame 13427 */ 13428 enum qca_wlan_roam_stats_frame_subtype { 13429 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP = 1, 13430 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP = 2, 13431 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3, 13432 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4, 13433 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5, 13434 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6, 13435 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7, 13436 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8, 13437 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ = 9, 13438 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ = 10, 13439 }; 13440 13441 /* Compatibility defines for previously used names. 13442 * These values should not be used in any new implementation. 13443 */ 13444 #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH \ 13445 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP 13446 #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC \ 13447 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP 13448 13449 /** 13450 * enum roam_frame_status - Specifies the valid values the vendor roam frame 13451 * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take. 13452 * 13453 * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was 13454 * sent or received successfully. 13455 * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or 13456 * receiving failed. 13457 */ 13458 enum qca_wlan_roam_stats_frame_status { 13459 QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0, 13460 QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1, 13461 }; 13462 13463 /** 13464 * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the 13465 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute. 13466 */ 13467 enum qca_wlan_vendor_attr_roam_stats_frame_info { 13468 /* 8-bit unsigned value to indicate the frame subtype during 13469 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype. 13470 */ 13471 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1, 13472 /* 8-bit unsigned value to indicate the frame is successful or failed 13473 * during roaming, one of the values in 13474 * qca_wlan_roam_stats_frame_status. 13475 */ 13476 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2, 13477 /* 64-bit unsigned value to indicate the timestamp for frame of 13478 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4 13479 * when sent or received during roaming, timestamp in milliseconds 13480 * from system boot. 13481 */ 13482 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3, 13483 /* This attribute indicates a 6-byte MAC address representing 13484 * the BSSID of the AP. 13485 * For non-MLO scenario, it indicates the AP BSSID. 13486 * For MLO scenario, it indicates the AP BSSID which may be the primary 13487 * link BSSID or a nonprimary link BSSID. 13488 */ 13489 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_BSSID = 5, 13490 13491 13492 /* keep last */ 13493 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST, 13494 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX = 13495 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1, 13496 }; 13497 13498 /** 13499 * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute 13500 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO. 13501 */ 13502 enum qca_wlan_vendor_attr_roam_stats_info { 13503 /* 64-bit unsigned value to indicate the timestamp when roam was 13504 * triggered by the firmware, timestamp in milliseconds from system 13505 * boot. 13506 */ 13507 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1, 13508 /* 32-bit unsigned value to indicate the roam trigger reason for the 13509 * last roaming attempted by the firmware. This can be queried either 13510 * in a connected state or disconnected state. The values of this 13511 * attribute represent the roam trigger reason codes, which 13512 * are defined in enum qca_roam_reason. 13513 */ 13514 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2, 13515 /* 8-bit unsigned value to indicate percentage of packets for which 13516 * the RX rate is lower than the RX rate threshold in total RX packets, 13517 * used for roaming trigger by per. 13518 */ 13519 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3, 13520 /* 8-bit unsigned value to indicate percentage of packets for which 13521 * the TX rate is lower than TX rate threshold in total TX packets, 13522 * used for roaming trigger by per. 13523 */ 13524 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4, 13525 /* 32-bit unsigned value to indicate final beacon miss count for 13526 * trigger reason of beacon miss. 13527 */ 13528 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5, 13529 /* 32-bit unsigned value to indicate consecutive beacon miss count 13530 * for trigger reason of beacon miss. 13531 */ 13532 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6, 13533 /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger 13534 * reason of beacon miss, 0 - success, 1 - fail. 13535 * If QOS-NULL TX status is successful, beacon miss final count and 13536 * consecutive beacon miss count will be reset to zero, and roam will 13537 * not be triggered. If QOS-NULL TX status is failed, beacon miss final 13538 * count and consecutive beacon miss count continue to calculate until 13539 * roaming trigger by beacon miss. 13540 */ 13541 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7, 13542 /* 8-bit signed value to indicate connected AP RSSI in dBm 13543 * for trigger reason of poor RSSI. 13544 */ 13545 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8, 13546 /* 8-bit signed value to indicate RSSI threshold value in dBm 13547 * for trigger reason of poor RSSI. 13548 */ 13549 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9, 13550 /* 8-bit unsigned value to indicate RX link speed status 13551 * for trigger reason of poor RSSI, 0 - good link speed, 13552 * 1 - bad link speed. 13553 */ 13554 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10, 13555 /* 8-bit signed value to indicate connected AP RSSI in dBm 13556 * for trigger reason of better RSSI. 13557 */ 13558 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11, 13559 /* 8-bit signed value to indicate RSSI threshold value in dBm 13560 * for trigger reason of better RSSI. 13561 */ 13562 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12, 13563 /* 32-bit unsigned value to indicate RX throughput in bytes per second 13564 * for trigger reason of congestion. 13565 */ 13566 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13, 13567 /* 32-bit unsigned value to indicate TX throughput in bytes per second 13568 * for trigger reason of congestion. 13569 */ 13570 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14, 13571 /* 8-bit unsigned value to indicate roamable AP count 13572 * for trigger reason of congestion. 13573 */ 13574 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15, 13575 /* 8-bit unsigned value to indicate invoke reason, one of the values 13576 * defined in qca_wlan_roam_stats_invoke_reason. 13577 */ 13578 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16, 13579 /* 8-bit unsigned value to indicate request mode for trigger reason 13580 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9. 13581 */ 13582 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17, 13583 /* 32-bit unsigned value to indicate disassociate time in milliseconds 13584 * for trigger reason of BTM. 13585 */ 13586 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18, 13587 /* 32-bit unsigned value to indicate preferred candidate list valid 13588 * interval in milliseconds for trigger reason of BTM. 13589 */ 13590 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19, 13591 /* 8-bit unsigned value to indicate the number of preferred 13592 * candidates for trigger reason of BTM. 13593 */ 13594 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20, 13595 /* 8-bit unsigned value to indicate response status for trigger 13596 * reason of BTM, values are defined in IEEE Std 802.11-2020, 13597 * Table 9-428 (BTM status code definitions). 13598 */ 13599 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21, 13600 /* 32-bit unsigned value to indicate BSS termination timeout value 13601 * in milliseconds for trigger reason of BTM. 13602 */ 13603 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22, 13604 /* 32-bit unsigned value to indicate MBO associate retry timeout 13605 * value in milliseconds for trigger reason of BTM. 13606 */ 13607 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23, 13608 /* 8-bit unsigned value to indicate dialog token number 13609 * for trigger reason of BTM. 13610 */ 13611 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24, 13612 /* 8-bit unsigned value to indicate percentage of connected AP 13613 * channel congestion utilization for trigger reason of BSS load. 13614 */ 13615 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25, 13616 /* 8-bit unsigned value to indicate disconnection type 13617 * for trigger reason of disconnection. 1 - Deauthentication, 13618 * 2 - Disassociation. 13619 */ 13620 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26, 13621 /* 16-bit unsigned value to indicate deauthentication or disassociation 13622 * reason for trigger reason of disconnection, values are defined 13623 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes). 13624 */ 13625 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27, 13626 /* 32-bit unsigned value to indicate milliseconds of roam scan 13627 * periodicity when needing to roam to find a better AP for trigger 13628 * reason of periodic timer. 13629 */ 13630 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28, 13631 /* 8-bit signed value to indicate connected AP RSSI in dBm for 13632 * trigger reason of background scan. 13633 */ 13634 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29, 13635 /* 8-bit signed value to indicate data RSSI in dBm for trigger reason 13636 * of background scan. 13637 */ 13638 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30, 13639 /* 8-bit signed value to indicate data RSSI threshold in dBm 13640 * for trigger reason of background scan. 13641 */ 13642 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31, 13643 /* 32-bit unsigned value to indicate consecutive TX failure threshold 13644 * for trigger reason of TX failures. 13645 */ 13646 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32, 13647 /* 8-bit unsigned value to indicate TX failure reason for trigger 13648 * reason of TX failures, one of the values defined in 13649 * qca_wlan_roam_stats_tx_failures_reason. 13650 */ 13651 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33, 13652 /* 8-bit unsigned value to indicate detail abort reason. One of the 13653 * values in enum qca_wlan_roam_stats_abort_reason. 13654 */ 13655 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34, 13656 /* 8-bit signed value to indicate data RSSI in dBm when aborting the 13657 * roam scan. 13658 */ 13659 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35, 13660 /* 8-bit signed value to indicate data RSSI threshold in dBm when 13661 * aborting the roam scan. 13662 */ 13663 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36, 13664 /* 8-bit unsigned value to indicate data RSSI threshold in RX link 13665 * speed status when aborting the roam scan. 13666 * 0 - good link speed, 1 - bad link speed 13667 */ 13668 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37, 13669 /* 8-bit unsigned value to indicate roaming scan type. 13670 * One of the values in enum qca_wlan_roam_stats_scan_type. 13671 */ 13672 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38, 13673 /* 8-bit unsigned value to indicate roaming result, used in STA mode 13674 * only. 13675 * 0-Roaming is successful, 1-Roaming is failed 13676 */ 13677 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39, 13678 /* 8-bit unsigned value to indicate the roam fail reason for the 13679 * last failed roaming attempt by the firmware. Different roam failure 13680 * reason codes are specified in enum qca_vendor_roam_fail_reasons. 13681 * This can be queried either in connected state or disconnected state. 13682 */ 13683 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40, 13684 /* Nested attribute. Indicate roam scan info for each channel, the 13685 * attributes defined in enum 13686 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside 13687 * this attribute. 13688 */ 13689 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41, 13690 /* 32-bit unsigned value to indicate total scan time during roam scan 13691 * all channels, time in milliseconds. 13692 */ 13693 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42, 13694 /* Nested attribute. This attribute shall be used by the driver to 13695 * send roam information of each subtype. The attributes defined in 13696 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside 13697 * this attribute. 13698 */ 13699 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43, 13700 /* 6-byte MAC address used by the driver to send roam stats information 13701 * of the original AP BSSID. The original AP is the connected AP before 13702 * roam happens, regardless of the roam resulting in success or failure. 13703 * This attribute is only present when 13704 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of 13705 * 0 (success) or 1 (failure). 13706 * For non-MLO scenario, it indicates the original connected AP BSSID. 13707 * For MLO scenario, it indicates the original BSSID of the link 13708 * for which the reassociation occurred during the roam. 13709 */ 13710 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45, 13711 /* 6-byte MAC address used by the driver to send roam stats information 13712 * of the roam candidate AP BSSID when roam failed. This is only present 13713 * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of 13714 * 1 (failure). If the firmware updates more than one candidate AP BSSID 13715 * to the driver, the driver only fills the last candidate AP BSSID and 13716 * reports it to user space. 13717 * For non-MLO scenario, it indicates the last candidate AP BSSID. 13718 * For MLO scenario, it indicates the AP BSSID which may be the primary 13719 * link BSSID or a nonprimary link BSSID. 13720 */ 13721 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46, 13722 /* 6-byte MAC address used by the driver to send roam stats information 13723 * of the roamed AP BSSID when roam succeeds. This is only present when 13724 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of 13725 * 0 (success). 13726 * For non-MLO scenario, it indicates the new AP BSSID to which has 13727 * been successfully roamed. 13728 * For MLO scenario, it indicates the new AP BSSID of the link on 13729 * which the reassociation occurred during the roam. 13730 */ 13731 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47, 13732 13733 /* keep last */ 13734 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST, 13735 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX = 13736 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1, 13737 }; 13738 13739 /** 13740 * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to 13741 * report cached roam info from the driver to user space, enum values are used 13742 * for netlink attributes sent with the 13743 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command. 13744 */ 13745 enum qca_wlan_vendor_attr_roam_cached_stats { 13746 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0, 13747 /* Nested attribute, this attribute contains nested array roam info 13748 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info. 13749 */ 13750 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1, 13751 13752 /* keep last */ 13753 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST, 13754 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX = 13755 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1, 13756 }; 13757 13758 /** 13759 * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for 13760 * radio configurations present in each radio combination. 13761 * 13762 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates 13763 * the band info in the radio configuration. Uses the enum qca_set_band values. 13764 * 13765 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates 13766 * the number of antennas info in the radio configuration. 13767 */ 13768 enum qca_wlan_vendor_attr_supported_radio_cfg { 13769 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0, 13770 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1, 13771 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2, 13772 13773 /* keep last */ 13774 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST, 13775 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX = 13776 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1, 13777 }; 13778 13779 /** 13780 * enum qca_wlan_vendor_attr_radio_combination - Attributes for 13781 * radio combinations supported by the device. 13782 * 13783 * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute 13784 * provides the radio configurations present in the radio combination. 13785 * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes. 13786 * This attribute provides the values for radio combination matrix. 13787 * For standalone config, the number of config values is one and the config 13788 * carries the band and antenna information for standalone configuration. For 13789 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode 13790 * configuration the number of config values is two and the config carries the 13791 * band and antenna information for each simultaneous radio. 13792 */ 13793 enum qca_wlan_vendor_attr_radio_combination { 13794 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0, 13795 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1, 13796 13797 /* keep last */ 13798 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST, 13799 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX = 13800 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1, 13801 }; 13802 13803 /** 13804 * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by 13805 * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX 13806 * 13807 * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute 13808 * provides the radio combinations supported by the device. 13809 * Uses the enum qca_wlan_vendor_attr_radio_combination attributes. 13810 * For example, in the radio combination matrix for a device which has two 13811 * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is 13812 * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio 13813 * combinations is 5 and the radio combinations are 13814 * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz 13815 * {{5 GHz 2X2}}, //Standalone 5 GHz 13816 * {{6 GHz 2X2}}, //Standalone 6 GHz 13817 * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS 13818 * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS 13819 * The band and antenna info together as nested data provides one radio config. 13820 * Standalone configuration has one config with band and antenna nested data. 13821 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration 13822 * have two nested band and antenna info data. 13823 */ 13824 enum qca_wlan_vendor_attr_radio_combination_matrix { 13825 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0, 13826 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1, 13827 13828 /* keep last */ 13829 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST, 13830 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX = 13831 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1, 13832 }; 13833 13834 /** 13835 * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by 13836 * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command. 13837 * 13838 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag) 13839 * Enable mDNS offload. This attribute is mandatory to enable 13840 * mDNS offload feature. If this attribute is not present, mDNS offload 13841 * is disabled. 13842 * 13843 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing 13844 * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This 13845 * attribute is mandatory when enabling the feature, and not required when 13846 * disabling the feature. 13847 * 13848 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing 13849 * the following attributes: 13850 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN 13851 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT 13852 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD 13853 * 13854 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute. 13855 * It consists of a hostname and ".local" as the domain name. The character 13856 * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes. 13857 * It is used to compare the domain the in the "QU" query. Only 1 FQDN is 13858 * supported per vdev. 13859 * For example: myphone.local 13860 * 13861 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required 13862 * u16 attribute. It specifies the total number of resource records present 13863 * in the answer section of the answer payload. This attribute is needed by the 13864 * firmware to populate the mDNS response frame for mNDS queries without having 13865 * to parse the answer payload. 13866 * 13867 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required Binary blob 13868 * attribute sent by the mdnsResponder from userspace. It contains resource 13869 * records of various types (Eg: A, AAAA, PTR, TXT) and service list. This 13870 * payload is passed down to firmware and is transmitted in response to 13871 * mDNS queries. 13872 * The maximum size of the answer payload supported is 512 bytes. 13873 */ 13874 enum qca_wlan_vendor_attr_mdns_offload { 13875 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0, 13876 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1, 13877 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2, 13878 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3, 13879 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4, 13880 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5, 13881 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6, 13882 13883 /* keep last */ 13884 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST, 13885 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX = 13886 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1, 13887 }; 13888 13889 /** 13890 * enum qca_vendor_attr_diag_event_type - Attributes used by 13891 * %QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute. 13892 * 13893 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING: Diag event sent from 13894 * driver/firmware during Connection request from Userspace. Uses the 13895 * following attributes of enum qca_wlan_vendor_attr_diag: 13896 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13897 * QCA_WLAN_VENDOR_ATTR_DIAG_SSID, 13898 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13899 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT, 13900 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 13901 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT, 13902 * QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE, 13903 * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE, 13904 * QCA_WLAN_VENDOR_ATTR_DIAG_AKM, 13905 * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO, 13906 * QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE, 13907 * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE, 13908 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13909 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13910 * 13911 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL: Diag event sent from 13912 * driver/firmware when a connection is failed. Uses the 13913 * following attributes of enum qca_wlan_vendor_attr_diag: 13914 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13915 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13916 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 13917 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13918 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 13919 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13920 * 13921 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ: Diag event sent from 13922 * driver/firmware during Authentication request from a device. Uses the 13923 * following attributes of enum qca_wlan_vendor_attr_diag: 13924 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13925 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13926 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13927 * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO, 13928 * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE, 13929 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13930 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 13931 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 13932 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13933 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13934 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13935 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13936 * 13937 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP: Diag event sent from 13938 * driver/firmware when device receives an authentication response. Uses the 13939 * following attributes of enum qca_wlan_vendor_attr_diag: 13940 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13941 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13942 * QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO, 13943 * QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE, 13944 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13945 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 13946 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13947 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13948 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13949 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13950 * 13951 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ: Diag event sent from 13952 * driver/firmware when device sends an association request. Uses the 13953 * following attributes of enum qca_wlan_vendor_attr_diag: 13954 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13955 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13956 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13957 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13958 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 13959 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13960 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13961 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13962 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13963 * 13964 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP: Diag event sent from 13965 * driver/firmware when device receives an association response. Uses the 13966 * following attributes of enum qca_wlan_vendor_attr_diag: 13967 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13968 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13969 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13970 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 13971 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13972 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13973 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 13974 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 13975 * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID. 13976 * 13977 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX: Diag event sent from 13978 * driver/userspace when device receives a deauthentication response. Uses the 13979 * 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_SEQUENCE_NUMBER, 13984 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 13985 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13986 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13987 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 13988 * 13989 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX: Diag event sent from 13990 * driver/userspace when device sends a deauthentication request. Uses the 13991 * following attributes of enum qca_wlan_vendor_attr_diag: 13992 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 13993 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 13994 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 13995 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 13996 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 13997 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 13998 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 13999 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14000 * 14001 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX: Diag event sent from 14002 * driver/firmware when device receives a disassociation response. Uses the 14003 * following attributes of enum qca_wlan_vendor_attr_diag: 14004 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14005 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14006 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 14007 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 14008 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 14009 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14010 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 14011 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14012 * 14013 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX: Diag event sent from 14014 * driver/firmware when device sends a disassociation request. Uses the 14015 * following attributes of enum qca_wlan_vendor_attr_diag: 14016 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14017 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14018 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 14019 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 14020 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 14021 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14022 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 14023 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14024 * 14025 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN: Diag event sent from 14026 * driver/firmware when device did not receive beacon packets during connection. 14027 * Uses the following attributes of enum qca_wlan_vendor_attr_diag: 14028 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14029 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14030 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 14031 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 14032 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14033 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14034 * 14035 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START: Diag event sent from 14036 * driver/firmware when Roaming scan is triggered. Uses the following 14037 * attributes of enum qca_wlan_vendor_attr_diag: 14038 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14039 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON, 14040 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON, 14041 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 14042 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU, 14043 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE, 14044 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD, 14045 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14046 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14047 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14048 * 14049 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE: Diag event sent from 14050 * driver/firmware Roam scanning is processed. Uses the following 14051 * attributes of enum qca_wlan_vendor_attr_diag: 14052 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14053 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK, 14054 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST, 14055 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT, 14056 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 14057 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14058 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14059 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 14060 * QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE. 14061 * 14062 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP: Diag event sent from 14063 * driver/firmware to provide Roam information of the current AP. Uses the 14064 * following attributes of enum qca_wlan_vendor_attr_diag: 14065 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14066 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14067 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 14068 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 14069 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU, 14070 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE, 14071 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14072 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14073 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14074 * 14075 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP: Diag event sent from 14076 * driver/firmware to provide Roam information of the candid AP. Uses the 14077 * following attributes of enum qca_wlan_vendor_attr_diag: 14078 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14079 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14080 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 14081 * QCA_WLAN_VENDOR_ATTR_DIAG_FREQ, 14082 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU, 14083 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE, 14084 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP, 14085 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK, 14086 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14087 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14088 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14089 * 14090 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT: Diag event sent from 14091 * driver/firmware to provide Roam result after selecting a candidate. Uses the 14092 * following attributes of enum qca_wlan_vendor_attr_diag: 14093 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14094 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL, 14095 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14096 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14097 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14098 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14099 * 14100 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL: Diag event sent from 14101 * driver/firmware to indicate Roam Cancellation due to higher priority events. 14102 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14103 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14104 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14105 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 14106 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14107 * 14108 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ: Diag event sent from driver 14109 * /firmware when STA sends a BTM request frame. Uses the following attributes 14110 * of enum qca_wlan_vendor_attr_diag: 14111 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14112 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN, 14113 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE, 14114 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER, 14115 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL, 14116 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT, 14117 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14118 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14119 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14120 * 14121 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY: Diag event sent from 14122 * driver/firmware when STA queries about BTM transition. Uses the following 14123 * attributes of enum qca_wlan_vendor_attr_diag: 14124 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14125 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN, 14126 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON, 14127 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14128 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14129 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14130 * 14131 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP: Diag event sent from driver 14132 * /firmware when STA receives BTM response frame. Uses the following 14133 * attributes of enum qca_wlan_vendor_attr_diag: 14134 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14135 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN, 14136 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE, 14137 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY, 14138 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID, 14139 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14140 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14141 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14142 * 14143 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI: Diag event sent from 14144 * driver/firmware to provide BTM request candidate information. Uses the 14145 * following attributes of enum qca_wlan_vendor_attr_diag: 14146 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14147 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14148 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE, 14149 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK, 14150 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14151 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14152 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14153 * 14154 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC: Diag event sent from driver 14155 * /firmware when ROAM WTC trigger happens. Uses the following attributes of 14156 * enum qca_wlan_vendor_attr_diag: 14157 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14158 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE, 14159 * QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE, 14160 * QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION, 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_DHCP_DISCOVER: Diag event sent from 14166 * driver/firmware to indicate DHCP discovery to AP. Uses the following 14167 * attributes of 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_KERNEL_TIMESTAMP. 14172 * 14173 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER: Diag event sent from 14174 * driver/firmware to indicate DHCP offering to AP. Uses the following 14175 * attributes of enum qca_wlan_vendor_attr_diag: 14176 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14177 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14178 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14179 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14180 * 14181 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST: Diag event sent from 14182 * driver/firmware to indicate driver sent DHCP packets. Uses the following 14183 * attributes of enum qca_wlan_vendor_attr_diag: 14184 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14185 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14186 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14187 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14188 * 14189 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK: Diag event sent from driver 14190 * /firmware to indicate acknowledgement of DHCP packets. Uses the following 14191 * attributes of enum qca_wlan_vendor_attr_diag: 14192 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14193 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14194 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14195 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14196 * 14197 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK: Diag event sent from driver 14198 * /firmware to indicate negative acknowledgement of DHCP packets. Uses the 14199 * following attributes of enum qca_wlan_vendor_attr_diag: 14200 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14201 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14202 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14203 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14204 * 14205 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1: Diag event sent from driver 14206 * /firmware to indicate EAPOL M1 message. Uses the following attributes of 14207 * enum qca_wlan_vendor_attr_diag: 14208 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14209 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14210 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14211 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14212 * 14213 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2: Diag event sent from driver 14214 * /firmware to indicate EAPOL M2 message. Uses the following attributes of 14215 * enum qca_wlan_vendor_attr_diag: 14216 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14217 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14218 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14219 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14220 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14221 * 14222 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3: Diag event sent from driver 14223 * /firmware to indicate EAPOL M3 message. Uses the following attributes of 14224 * enum qca_wlan_vendor_attr_diag: 14225 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14226 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14227 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14228 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14229 * 14230 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4: Diag event sent from driver 14231 * /firmware to indicate EAPOL M4 message. Uses the following attributes of 14232 * enum qca_wlan_vendor_attr_diag: 14233 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14234 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14235 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14236 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14237 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14238 * 14239 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1: Diag event sent from driver 14240 * /firmware to indicate GTK rekey M1 frame. Uses the following attributes of 14241 * enum qca_wlan_vendor_attr_diag: 14242 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14243 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14244 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14245 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14246 * 14247 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2: Diag event sent from driver 14248 * /firmware to indicate GTK Rekey M2 frame. Uses the following attributes of 14249 * enum qca_wlan_vendor_attr_diag: 14250 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14251 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14252 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14253 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP, 14254 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14255 * 14256 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST: Diag event sent from driver 14257 * /firmware to indicate device sent EAP request. Uses the following attributes 14258 * of enum qca_wlan_vendor_attr_diag: 14259 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14260 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE, 14261 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN, 14262 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14263 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14264 * 14265 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE: Diag event sent from driver 14266 * /firmware to indicate device received EAP response. Uses the following 14267 * attributes of enum qca_wlan_vendor_attr_diag: 14268 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14269 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE, 14270 * QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN, 14271 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14272 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14273 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14274 * 14275 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS: Diag event sent from driver 14276 * /firmware to indicate EAP frame transmission is success. Uses the following 14277 * attributes of enum qca_wlan_vendor_attr_diag: 14278 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14279 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14280 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14281 * 14282 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE: Diag event sent from driver 14283 * /firmware to indicate EAP frame transmission is failed. Uses the following 14284 * attributes of enum qca_wlan_vendor_attr_diag: 14285 * QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP, 14286 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14287 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP. 14288 * 14289 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ: Diag event sent from driver 14290 * /firmware to indicate Reassocation request. Uses the following attributes 14291 * of enum qca_wlan_vendor_attr_diag: 14292 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 14293 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14294 * QCA_WLAN_VENDOR_ATTR_DIAG_RSSI, 14295 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 14296 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS, 14297 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14298 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 14299 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP. 14300 * 14301 * @QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES: Diag event sent from driver 14302 * /firmware to indicate Reassocation response. Uses the following attributes 14303 * of enum qca_wlan_vendor_attr_diag: 14304 * QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP, 14305 * QCA_WLAN_VENDOR_ATTR_DIAG_BSSID, 14306 * QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER, 14307 * QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE, 14308 * QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID, 14309 * QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX, 14310 * QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME, 14311 * QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP. 14312 */ 14313 enum qca_vendor_attr_diag_event_type { 14314 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING = 0, 14315 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_CONNECTING_FAIL = 1, 14316 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_REQ = 2, 14317 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AUTH_RESP = 3, 14318 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_REQ = 4, 14319 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ASSOC_RESP = 5, 14320 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_RX = 6, 14321 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DEAUTH_TX = 7, 14322 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_RX = 8, 14323 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DISASSOC_TX = 9, 14324 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BEACON_LOSS_DISCONN = 10, 14325 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_START = 11, 14326 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE = 12, 14327 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CURR_AP = 13, 14328 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCORE_CAND_AP = 14, 14329 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_RESULT = 15, 14330 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_CANCEL = 16, 14331 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ = 17, 14332 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_QUERY = 18, 14333 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_RESP = 19, 14334 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_REQ_CANDI = 20, 14335 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_BTM_WTC = 21, 14336 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_DISCOVER = 22, 14337 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_OFFER = 23, 14338 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_REQUEST = 24, 14339 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_ACK = 25, 14340 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_DHCP_NACK = 26, 14341 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M1 = 27, 14342 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M2 = 28, 14343 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M3 = 29, 14344 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAPOL_M4 = 30, 14345 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M1 = 31, 14346 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_GTK_M2 = 32, 14347 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_REQUEST = 33, 14348 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_RESPONSE = 34, 14349 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_SUCCESS = 35, 14350 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_EAP_FAILURE = 36, 14351 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_REQ = 37, 14352 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_REASSOC_RES = 38, 14353 14354 /* keep last */ 14355 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST, 14356 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_MAX = 14357 QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_AFTER_LAST - 1, 14358 }; 14359 14360 /** 14361 * enum qca_wlan_vendor_tx_status - Used by attribute 14362 * QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS to indicate TX status. 14363 * @QCA_WLAN_VENDOR_TX_STATUS_FAIL: Indicates frame is not sent over the air. 14364 * @QCA_WLAN_VENDOR_TX_STATUS_NO_ACK: Indicates packet sent but acknowledgement 14365 * is not received. 14366 * @QCA_WLAN_VENDOR_TX_STATUS_ACK: Indicates the frame is successfully sent and 14367 * acknowledged. 14368 */ 14369 enum qca_wlan_vendor_tx_status { 14370 QCA_WLAN_VENDOR_TX_STATUS_FAIL = 1, 14371 QCA_WLAN_VENDOR_TX_STATUS_NO_ACK = 2, 14372 QCA_WLAN_VENDOR_TX_STATUS_ACK = 3, 14373 }; 14374 14375 /** 14376 * enum qca_roam_sub_reason - Used by attribute 14377 * QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON 14378 * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER: Roam scan triggered due to periodic 14379 * timer expiry 14380 * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI: Roam scan trigger due 14381 * to no candidate found during LOW RSSI trigger. 14382 * @QCA_ROAM_SUB_REASON_BTM_DI_TIMER: Roam scan triggered due to BTM Disassoc 14383 * Imminent timeout 14384 * @QCA_ROAM_SUB_REASON_FULL_SCAN: Roam scan triggered due to partial scan 14385 * failure 14386 * @QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC: Roam trigger due to 14387 * emergency like deauth/disassoc. 14388 * @QCA_ROAM_SUB_REASON_CU_PERIODIC: Roam trigger due to 14389 * BSS transition management request. 14390 * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI: 14391 * Roam scan triggered due to Low RSSI periodic timer 14392 * @QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU: 14393 * Roam trigger due to periodic timer after no candidate found during CU 14394 * inactivity timer scan. 14395 * @QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU: Roam trigger due to no candidate 14396 * found in high CU roam trigger. 14397 */ 14398 enum qca_roam_sub_reason { 14399 QCA_ROAM_SUB_REASON_PERIODIC_TIMER = 1, 14400 QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_LOW_RSSI = 2, 14401 QCA_ROAM_SUB_REASON_BTM_DI_TIMER = 3, 14402 QCA_ROAM_SUB_REASON_FULL_SCAN = 4, 14403 QCA_ROAM_SUB_REASON_LOW_RSSI_PERIODIC = 5, 14404 QCA_ROAM_SUB_REASON_CU_PERIODIC = 6, 14405 QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_LOW_RSSI = 7, 14406 QCA_ROAM_SUB_REASON_PERIODIC_TIMER_AFTER_INACTIVITY_CU = 8, 14407 QCA_ROAM_SUB_REASON_INACTIVITY_TIMER_CU = 9, 14408 }; 14409 14410 /* 14411 * enum qca_wlan_vendor_attr_diag - Defines attributes used by the driver 14412 * to send diag data to the userspace. The attributes defined in this enum are 14413 * used with QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA. 14414 * 14415 * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT: Required Attribute. Nested attribute used 14416 * by driver/firmware to send diag data. Each instance of this nested attribute 14417 * contains one QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE attribute and other 14418 * attributes defined in enum qca_wlan_vendor_attr_diag that belong to the 14419 * event type defined by QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE. Multiple of this 14420 * nested attribute can be sent with one vendor command 14421 * QCA_NL80211_VENDOR_SUBCMD_DIAG_DATA. 14422 * 14423 * @QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE: Required u32 attribute. This 14424 * attribute indicates the type of the diag event from driver/firmware. Uses 14425 * values from enum qca_vendor_attr_diag_event_type. 14426 * 14427 * @QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP: Required u64 attribute. This 14428 * attribute indicates the system timestamp. Driver uses ktime_get_real_ts64() 14429 * API to send time of the day in microseconds to userspace. 14430 * 14431 * @QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP: Optional u64 attribute. 14432 * This attribute indicates firmware timestamp in microseconds. 14433 * 14434 * @QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX: Optional u8 attribute. This attribute 14435 * indicates wlan interface index. 14436 * 14437 * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID: Optional attribute. This attribute 14438 * indicates 6-byte MAC address representing the BSSID of the AP. 14439 * 14440 * @QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT: Optional attribute. This attribute 14441 * indicates the 6-byte MAC address representing the BSSID hint sent in 14442 * the connect request. 14443 * 14444 * @QCA_WLAN_VENDOR_ATTR_DIAG_SSID: Optional attribute. This attribute 14445 * indicates the SSID in u8 array with a maximum length of 32. 14446 * 14447 * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ: Optional u16 attribute. This attribute 14448 * indicates the frequency of AP in MHz. 14449 * 14450 * @QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT: Optional u16 attribute. This attribute 14451 * indicates frequency hint given in the connect request in MHz. 14452 * 14453 * @QCA_WLAN_VENDOR_ATTR_DIAG_RSSI: Optional signed 32 attribute. 14454 * This attribute indicates RSSI of the 802.11 frame in dBm. 14455 * 14456 * @QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE: Optional u32 attribute. 14457 * This attribute indicates Pairwise cipher suite defined in IEEE 802.11 2020 14458 * Table 12-10—Integrity and key wrap algorithms. 14459 * 14460 * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE: Optional u32 attribute. 14461 * This attribute indicates Group cipher suite defined in IEEE 802.11 2020 14462 * Table 12-10—Integrity and key wrap algorithms. 14463 * 14464 * @QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE: Optional u32 attribute. This 14465 * attribute indicates Group management cipher suite defined in IEEE Std 14466 * 802.11‐2020 spec. Table 12-10—Integrity and key wrap algorithms. 14467 * 14468 * @QCA_WLAN_VENDOR_ATTR_DIAG_AKM: Optional u32 attribute. This attribute 14469 * indicates Auth key management suite defined in IEEE Std 802.11‐2020 14470 * Table 9-151—AKM suite selectors. 14471 * 14472 * @QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO: Optional u8 attribute. This attribute 14473 * indicates authentication algorithm number defined in IEEE Std 802.11‐2020 14474 * Section 9.4.1.1 Authentication Algorithm Number field. 14475 * 14476 * @QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE: Optional flag. This attribute 14477 * indicates bluetooth COEX is active or not. 14478 * 14479 * @QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE: Optional u8 attribute. This 14480 * attribute indicates SAE authentication frame type. The possible values are 14481 * 1 - SAE commit frame 14482 * 2 - SAE confirm frame 14483 * 14484 * @QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE: Optional u16 attribute. This 14485 * attribute indicates the reason codes defined in IEEE Std 802.11‐2020 14486 * Table 9-49—Reason codes. 14487 * 14488 * @QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER: Optional u16 attribute. This 14489 * attribute indicates sequence number of the frame defined in IEEE Std 14490 * 802.11‐2020 Section 9.4.1.2 Authentication Transaction Sequence Number 14491 * field. 14492 * 14493 * @QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE: Optional u8 attribute. This 14494 * attribute indicates the status codes defined in IEEE Std 802.11‐2020 Table 14495 * 9-50—Status codes. 14496 * 14497 * @QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS: Optional u8 attribute. 14498 * Uses enum qca_wlan_vendor_tx_status. 14499 * 14500 * @QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME: Optional flag. This attribute 14501 * indicates if frame transmission is retried. 14502 * 14503 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON: Optional u8 attribute. 14504 * Uses enum qca_roam_reason. 14505 * 14506 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON: Optional u8 attribute. 14507 * Uses enum qca_roam_sub_reason. 14508 * 14509 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU: Optional u8 attribute. This attribute 14510 * indicates channel utilization in percentage. 14511 * 14512 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE: Optional u8 attribute. This 14513 * attribute indicates scan type used. Uses enum qca_roam_scan_scheme. 14514 * 14515 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD: Optional signed 32 attribute. 14516 * This attribute indicates current RSSI threshold in dBm. 14517 * 14518 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST: Required Attribute. 14519 * Nested attribute used by QCA_WLAN_VENDOR_DIAG_EVENT_TYPE_ROAM_SCAN_DONE 14520 * to carry list of QCA_WLAN_VENDOR_ATTR_DIAG_FREQ. 14521 * 14522 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT: optional u8 attribute. 14523 * This attribute indicates number of scanned candidate APs. 14524 * 14525 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK: Optional u8 attribute. This 14526 * attribute indicates roam AP rank computed based on connection preference. 14527 * 14528 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP: Optional u32 attribute. 14529 * This attribute indicates expected throughput in kbps. 14530 * 14531 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE: Optional u16 attribute. 14532 * This attribute indicates the preference value of candidate AP / connected AP 14533 * calculated in the firmware. 14534 * 14535 * @QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL: Optional flag. This attribute 14536 * indicates connection/roaming is successful or not. 14537 * 14538 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE: Optional u8 attribute. 14539 * This attribute indicates BTM WTC sub reason code in the WTC vendor specific 14540 * IE present in the BTM frame. 14541 * 14542 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION: Optional u32 attribute. 14543 * This attribute indicates BTM WTC duration in milliseconds. 14544 * 14545 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN: Optional u8 attribute. This attribute 14546 * indicates dialog token value of BTM query/request/response frames. 14547 * 14548 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON: Optional u8 attribute. This 14549 * attribute indicates the Transition Reason field indicates the reason why 14550 * a transition attempt occurred and contains one of the values defined in IEEE 14551 * Std 802.11‐2020 Table 9-198—Transition and Transition Query reasons. 14552 * 14553 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE: Optional u8 attribute. This attribute 14554 * indicates BTM mode defined in IEEE Std 802.11‐2020 14555 * Figure 9-924—Request Mode field format. 14556 * 14557 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER: Optional u16 attribute. 14558 * This attribute indicates the Disassociation Timer field which is the number 14559 * of beacon transmission times (TBTTs) until the serving AP will send a 14560 * Disassociation frame to this STA. 14561 * 14562 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL: Optional u8 attribute. 14563 * This attribute indicates BTM validity interval field in TBTTs defined in 14564 * IEEE Std 802.11‐2020 Figure 9-923—BSS Transition Management Request frame 14565 * Action field format. 14566 * 14567 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT: Optional u8 attribute. 14568 * This attribute indicates BTM candidate list entries. 14569 * 14570 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE: Optional u8 attribute. 14571 * This attribute indicates network preference for BTM transition defined in 14572 * IEEE Std 802.11‐2020 Table 9-174—Preference field values. 14573 * 14574 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE: Optional u8 attribute. 14575 * This attribute indicates BTM transition status code defined in IEEE Std 14576 * 802.11‐2020 Table 9-428—BTM status code definitions. 14577 * 14578 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY: Optional u8 attribute. 14579 * This attribute indicates BSS termination delay defined in IEEE Std 14580 * 802.11‐2020 Section 9.6.13.10 BSS Transition Management Response frame format. 14581 * 14582 * @QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID: Optional attribute. 14583 * This attribute indicates 6-byte MAC address representing the BSSID of the 14584 * BSS that the non-AP STA transitions to. 14585 * 14586 * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE: Optional u8 attribute. This attribute 14587 * indicates EAP frame type. The methods are enumerated by IANA at 14588 * https://www.iana.org/assignments/eap-numbers/eap-numbers.xhtml. 14589 * 14590 * @QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN: Optional u8 attribute. This attribute 14591 * indicates EAP frame length. 14592 * 14593 * @QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP: Required u64 attribute. This 14594 * attribute indicates the kernel timestamp. Driver uses ktime_get() API 14595 * (Time from boot but not the time spent in suspend) to send in microseconds 14596 * to userspace. 14597 * 14598 * @QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID: Optional u16 attribute. This attribute 14599 * indicates the association id received in the (re)association response frame 14600 * defined in IEEE Std 802.11-2020 Figure 9-91-AID field format. 14601 */ 14602 enum qca_wlan_vendor_attr_diag { 14603 QCA_WLAN_VENDOR_ATTR_DIAG_INVALID = 0, 14604 QCA_WLAN_VENDOR_ATTR_DIAG_EVENT = 1, 14605 QCA_WLAN_VENDOR_ATTR_DIAG_EVENT_TYPE = 2, 14606 QCA_WLAN_VENDOR_ATTR_DIAG_HOST_TIMESTAMP = 3, 14607 QCA_WLAN_VENDOR_ATTR_DIAG_FIRMWARE_TIMESTAMP = 4, 14608 QCA_WLAN_VENDOR_ATTR_DIAG_IFINDEX = 5, 14609 QCA_WLAN_VENDOR_ATTR_DIAG_BSSID = 6, 14610 QCA_WLAN_VENDOR_ATTR_DIAG_BSSID_HINT = 7, 14611 QCA_WLAN_VENDOR_ATTR_DIAG_SSID = 8, 14612 QCA_WLAN_VENDOR_ATTR_DIAG_FREQ = 9, 14613 QCA_WLAN_VENDOR_ATTR_DIAG_FREQ_HINT = 10, 14614 QCA_WLAN_VENDOR_ATTR_DIAG_RSSI = 11, 14615 QCA_WLAN_VENDOR_ATTR_DIAG_PAIRWISE_SUITE = 12, 14616 QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_SUITE = 13, 14617 QCA_WLAN_VENDOR_ATTR_DIAG_GROUP_MGMT_SUITE = 14, 14618 QCA_WLAN_VENDOR_ATTR_DIAG_AKM = 15, 14619 QCA_WLAN_VENDOR_ATTR_DIAG_AUTH_ALGO = 16, 14620 QCA_WLAN_VENDOR_ATTR_DIAG_BT_COEX_ACTIVE = 17, 14621 QCA_WLAN_VENDOR_ATTR_DIAG_SAE_AUTH_FRAME_TYPE = 18, 14622 QCA_WLAN_VENDOR_ATTR_DIAG_REASON_CODE = 19, 14623 QCA_WLAN_VENDOR_ATTR_DIAG_SEQUENCE_NUMBER = 20, 14624 QCA_WLAN_VENDOR_ATTR_DIAG_STATUS_CODE = 21, 14625 QCA_WLAN_VENDOR_ATTR_DIAG_FRAME_TX_STATUS = 22, 14626 QCA_WLAN_VENDOR_ATTR_DIAG_IS_RETRY_FRAME = 23, 14627 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_REASON = 24, 14628 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_TRIGGER_SUB_REASON = 25, 14629 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_CU = 26, 14630 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCAN_TYPE = 27, 14631 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_RSSI_THRESHOLD = 28, 14632 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_FREQ_LIST = 29, 14633 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_COUNT = 30, 14634 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_RANK = 31, 14635 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_AP_ETP = 32, 14636 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SCORE = 33, 14637 QCA_WLAN_VENDOR_ATTR_DIAG_ROAM_SUCCESSFUL = 34, 14638 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_SUB_REASON_CODE = 35, 14639 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_WTC_DURATION = 36, 14640 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TOKEN = 37, 14641 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_QUERY_REASON = 38, 14642 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_MODE = 39, 14643 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DISASSOC_TIMER = 40, 14644 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_VALIDITY_INTERVAL = 41, 14645 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_CANDIDATE_LIST_COUNT = 42, 14646 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_PREFERENCE = 43, 14647 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_STATUS_CODE = 44, 14648 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_DELAY = 45, 14649 QCA_WLAN_VENDOR_ATTR_DIAG_BTM_TARGET_BSSID = 46, 14650 QCA_WLAN_VENDOR_ATTR_DIAG_EAP_TYPE = 47, 14651 QCA_WLAN_VENDOR_ATTR_DIAG_EAP_LEN = 48, 14652 QCA_WLAN_VENDOR_ATTR_DIAG_KERNEL_TIMESTAMP = 49, 14653 QCA_WLAN_VENDOR_ATTR_DIAG_ASSOC_ID = 50, 14654 14655 /* keep last */ 14656 QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST, 14657 QCA_WLAN_VENDOR_ATTR_DIAG_MAX = 14658 QCA_WLAN_VENDOR_ATTR_DIAG_AFTER_LAST - 1, 14659 }; 14660 14661 /** 14662 * qca_wlan_vendor_monitor_data_frame_type - Represent the various 14663 * data types to be sent over the monitor interface. 14664 */ 14665 enum qca_wlan_vendor_monitor_data_frame_type { 14666 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0), 14667 14668 /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is 14669 not set */ 14670 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1), 14671 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2), 14672 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3), 14673 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4), 14674 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5), 14675 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6), 14676 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7), 14677 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8), 14678 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9), 14679 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10), 14680 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11), 14681 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12), 14682 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13), 14683 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14), 14684 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15), 14685 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16), 14686 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17), 14687 }; 14688 14689 /** 14690 * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various 14691 * mgmt types to be sent over the monitor interface. 14692 * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the MGMT Frames. 14693 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the MGMT Frames 14694 * except the Beacons. Valid only in the Connect state. 14695 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected 14696 * BSSID Beacons. Valid only in the Connect state. 14697 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents 14698 * the Beacons obtained during the scan (off channel and connected channel) 14699 * when in connected state. 14700 */ 14701 14702 enum qca_wlan_vendor_monitor_mgmt_frame_type { 14703 QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0), 14704 /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set */ 14705 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON = BIT(1), 14706 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2), 14707 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3), 14708 }; 14709 14710 /** 14711 * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various 14712 * ctrl types to be sent over the monitor interface. 14713 * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the ctrl Frames. 14714 * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger Frame. 14715 */ 14716 enum qca_wlan_vendor_monitor_ctrl_frame_type { 14717 QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0), 14718 /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set */ 14719 QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1), 14720 }; 14721 14722 /** 14723 * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the 14724 * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the 14725 * monitor mode. 14726 * 14727 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute, 14728 * Represents the tx data packet type to be monitored (u32). These data packets 14729 * are represented by enum qca_wlan_vendor_monitor_data_frame_type. 14730 * 14731 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute, 14732 * Represents the tx data packet type to be monitored (u32). These data packets 14733 * are represented by enum qca_wlan_vendor_monitor_data_frame_type. 14734 * 14735 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute, 14736 * Represents the tx data packet type to be monitored (u32). These mgmt packets 14737 * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type. 14738 * 14739 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute, 14740 * Represents the tx data packet type to be monitored (u32). These mgmt packets 14741 * are represented by enum qca_wlan_vendor_monitor_mgmt_frame_type. 14742 * 14743 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute, 14744 * Represents the tx data packet type to be monitored (u32). These ctrl packets 14745 * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type. 14746 * 14747 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute, 14748 * Represents the tx data packet type to be monitored (u32). These ctrl packets 14749 * are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type. 14750 * 14751 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: 14752 * u32 attribute, An interval only for the connected beacon interval, which 14753 * expects that the connected BSSID's beacons shall be sent on the monitor 14754 * interface only on this specific interval. 14755 */ 14756 enum qca_wlan_vendor_attr_set_monitor_mode { 14757 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0, 14758 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1, 14759 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2, 14760 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3, 14761 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4, 14762 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5, 14763 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6, 14764 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7, 14765 14766 /* keep last */ 14767 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST, 14768 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX = 14769 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1, 14770 14771 }; 14772 14773 /** 14774 * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags. 14775 * Bits will be set to 1 if the corresponding state is enabled. 14776 * 14777 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start. 14778 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end. 14779 */ 14780 enum qca_wlan_vendor_roam_scan_state { 14781 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0), 14782 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1), 14783 }; 14784 14785 /** 14786 * enum qca_wlan_vendor_roam_event_type - Roam event type flags. 14787 * Bits will be set to 1 if the corresponding event is notified. 14788 * 14789 * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event 14790 * carries the trigger reason. When set, it is expected that the roam event 14791 * carries the respective reason via the attribute 14792 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries 14793 * the BSSID, RSSI, frequency info of the AP to which the roam is attempted. 14794 * 14795 * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event 14796 * carries the roam fail reason. When set, it is expected that the roam event 14797 * carries the respective reason via the attribute 14798 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the 14799 * BSSID, RSSI, frequency info of the AP to which the roam was attempted. 14800 * 14801 * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam 14802 * event carries the roam invoke fail reason. When set, it is expected that 14803 * the roam event carries the respective reason via the attribute 14804 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON. 14805 * 14806 * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event 14807 * carries the roam scan state. When set, it is expected that the roam event 14808 * carries the respective scan state via the attribute 14809 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding 14810 * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST. 14811 */ 14812 enum qca_wlan_vendor_roam_event_type { 14813 QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0), 14814 QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1), 14815 QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2), 14816 QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3), 14817 }; 14818 14819 /** 14820 * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info. 14821 * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO. 14822 * 14823 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address 14824 * representing the BSSID of the AP to which the Roam is attempted. 14825 * 14826 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value 14827 * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is 14828 * attempted. 14829 * 14830 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, Frequency in MHz 14831 * on which the roam is attempted. 14832 * 14833 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in 14834 * STA mode only. This represents the roam fail reason for the last failed 14835 * roaming attempt by the firmware for the specific BSSID. Different roam 14836 * failure reason codes are specified in enum qca_vendor_roam_fail_reasons. 14837 */ 14838 enum qca_wlan_vendor_attr_roam_events_candidate_info { 14839 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0, 14840 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1, 14841 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2, 14842 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3, 14843 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4, 14844 14845 /* keep last */ 14846 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST, 14847 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX = 14848 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1, 14849 }; 14850 14851 /** 14852 * enum qca_wlan_vendor_attr_roam_events - Used by the 14853 * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the 14854 * roam events to the driver or notify these events from the driver. 14855 * 14856 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the 14857 * driver/firmware to enable/disable the notification of roam events. It's a 14858 * mandatory attribute and used only in the request from the userspace to the 14859 * host driver. 1-Enable, 0-Disable. 14860 * If the roaming is totally offloaded to the firmware, this request when 14861 * enabled shall mandate the firmware to notify all the relevant roam events 14862 * represented by the below attributes. If the host is in the suspend mode, 14863 * the behavior of the firmware to notify these events is guided by 14864 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get 14865 * these events in the suspend state, the firmware is expected to wake up the 14866 * host before the respective events are notified. Please note that such a 14867 * request to get the events in the suspend state will have a definite power 14868 * implication. 14869 * 14870 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents 14871 * that the roam events need to be notified in the suspend state too. By 14872 * default, these roam events are notified in the resume state. With this flag, 14873 * the roam events are notified in both resume and suspend states. 14874 * This attribute is used in the request from the userspace to the host driver. 14875 * 14876 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only. 14877 * Represents the different roam event types, signified by the enum 14878 * qca_wlan_vendor_roam_event_type. 14879 * Each bit of this attribute represents the different roam even types reported 14880 * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14881 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14882 * 14883 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA 14884 * mode only. This represents the roam trigger reason for the last roaming 14885 * attempted by the firmware. Each bit of this attribute represents the 14886 * different roam trigger reason code which are defined in enum 14887 * qca_vendor_roam_triggers. 14888 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14889 * 14890 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in 14891 * STA mode only. This represents the roam invoke fail reason for the last 14892 * failed roam invoke. Different roam invoke failure reason codes 14893 * are specified in enum qca_vendor_roam_invoke_fail_reasons. 14894 * 14895 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info 14896 * for which the roam is attempted. Each entry is a nested attribute defined 14897 * by enum qca_wlan_vendor_attr_roam_events_candidate_info. 14898 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14899 * 14900 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents 14901 * the scan state on which the roam events need to be notified. The values for 14902 * this attribute are referred from enum qca_wlan_vendor_roam_scan_state. 14903 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14904 * 14905 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of 14906 * u32 values. List of frequencies in MHz considered for a roam scan. 14907 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14908 */ 14909 14910 enum qca_wlan_vendor_attr_roam_events { 14911 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0, 14912 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1, 14913 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2, 14914 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3, 14915 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4, 14916 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5, 14917 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6, 14918 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7, 14919 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8, 14920 14921 /* keep last */ 14922 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST, 14923 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX = 14924 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1, 14925 }; 14926 14927 /* 14928 * enum qca_wlan_ratemask_params_type - Rate mask config type. 14929 * 14930 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK_OFDM rate mask config 14931 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config 14932 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config 14933 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config 14934 */ 14935 enum qca_wlan_ratemask_params_type { 14936 QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0, 14937 QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1, 14938 QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2, 14939 QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3, 14940 }; 14941 14942 /* enum qca_wlan_vendor_attr_ratemask_params - Used by the 14943 * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG. 14944 * This is used to set the rate mask value to be used in rate selection. 14945 * 14946 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST: 14947 * Array of nested containing attributes 14948 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and 14949 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP. 14950 * 14951 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents 14952 * the different phy types to which the rate mask config is to be applied. 14953 * The values for this attribute are referred from enum 14954 * qca_wlan_vendor_ratemask_params_type. 14955 * 14956 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap. 14957 * A bit value of 1 represents rate is enabled and a value of 0 14958 * represents rate is disabled. 14959 * For HE targets, 12 bits correpond to one NSS setting. 14960 * b0-13 => NSS1, MCS 0-13 14961 * b14-27 => NSS2, MCS 0-13 and so on for other NSS. 14962 * For VHT targets, 10 bits correspond to one NSS setting. 14963 * b0-9 => NSS1, MCS 0-9 14964 * b10-19 => NSS2, MCS 0-9 and so on for other NSS. 14965 * For HT targets, 8 bits correspond to one NSS setting. 14966 * b0-7 => NSS1, MCS 0-7 14967 * b8-15 => NSS2, MCS 0-7 and so on for other NSS. 14968 * For OFDM/CCK targets, 8 bits correspond to one NSS setting. 14969 */ 14970 14971 enum qca_wlan_vendor_attr_ratemask_params { 14972 QCA_WLAN_VENDOR_ATTR_RATEMASK_INVALID = 0, 14973 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1, 14974 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2, 14975 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3, 14976 14977 /* keep last */ 14978 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST, 14979 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX = 14980 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1, 14981 }; 14982 14983 /** 14984 * enum qca_wlan_vendor_flush_pending_policy: Represents values for 14985 * the policy to flush pending frames, configured via 14986 * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the 14987 * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY. 14988 * 14989 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all 14990 * the flush policy configured before. This command basically disables the 14991 * flush config set by the user. 14992 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures 14993 * the flush policy to be immediate. All pending packets for the peer/TID are 14994 * flushed when this command/policy is received. 14995 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures 14996 * the flush policy to the end of TWT SP. All pending packets for the peer/TID 14997 * are flushed when the end of TWT SP is reached. 14998 */ 14999 enum qca_wlan_vendor_flush_pending_policy { 15000 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0, 15001 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1, 15002 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2, 15003 }; 15004 15005 /** 15006 * enum qca_wlan_vendor_attr_flush_pending - Attributes for 15007 * flushing pending traffic in firmware. 15008 * 15009 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address. 15010 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending 15011 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK, 15012 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to 15013 * flush packets with access category. This is optional. See below. 15014 * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets. 15015 * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding 15016 * bit to 1 to act upon the TID. This is optional. Either this attribute or 15017 * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided, 15018 * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided 15019 * it is an error. 15020 * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending 15021 * packets corresponding to the peer/TID provided. It is a u32 value, 15022 * represented by %enum qca_wlan_vendor_flush_pending_policy. This 15023 * value is honored only when TID mask is provided. This is not honored when AC 15024 * mask is provided. 15025 */ 15026 enum qca_wlan_vendor_attr_flush_pending { 15027 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0, 15028 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1, 15029 QCA_WLAN_VENDOR_ATTR_AC = 2, 15030 QCA_WLAN_VENDOR_ATTR_TID_MASK = 3, 15031 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4, 15032 /* keep last */ 15033 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST, 15034 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX = 15035 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1, 15036 }; 15037 15038 /** 15039 * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys 15040 * for) or drop existing PASN security association for the listed the 15041 * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver 15042 * to userspace. 15043 * 15044 * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer 15045 * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR. 15046 * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from 15047 * the driver to userspace to inform that the existing PASN keys of the 15048 * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are 15049 * not valid anymore. 15050 */ 15051 enum qca_wlan_vendor_pasn_action { 15052 QCA_WLAN_VENDOR_PASN_ACTION_AUTH, 15053 QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT, 15054 }; 15055 15056 /** 15057 * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in 15058 * QCA_WLAN_VENDOR_ATTR_PASN_PEERS. 15059 * 15060 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the 15061 * event from the driver to userspace and represents the local MAC address 15062 * to be used for PASN handshake. When this attribute is present, userspace 15063 * shall use the source address specified in this attribute by the driver 15064 * for PASN handshake with peer device. 15065 * This attribute is required in a command response from userspace to the 15066 * driver and represents the MAC address that was used in PASN handshake 15067 * with the peer device. 15068 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the 15069 * peer device to which PASN handshake is requested in an event from the 15070 * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to 15071 * QCA_WLAN_VENDOR_PASN_ACTION_AUTH. 15072 * Indicates the MAC address of the peer device for which the keys are to 15073 * be invalidated in an event from the driver to userspace when 15074 * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to 15075 * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT. 15076 * Indicates the MAC address of the peer device for which the status is 15077 * being sent in a status report from userspace to the driver. 15078 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used 15079 * in the event from the driver to userspace. When set, userspace is 15080 * required to derive LTF key seed from KDK and set it to the driver. 15081 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This 15082 * attribute is used in the command response from userspace to the driver. 15083 * If present, it indicates the successful PASN handshake with the peer. If 15084 * this flag is not present, it indicates that the PASN handshake with the 15085 * peer device failed. 15086 */ 15087 enum qca_wlan_vendor_attr_pasn_peer { 15088 QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0, 15089 QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1, 15090 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2, 15091 QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3, 15092 QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4, 15093 15094 /* keep last */ 15095 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST, 15096 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX = 15097 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1, 15098 }; 15099 15100 /** 15101 * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the 15102 * QCA_NL80211_VENDOR_SUBCMD_PASN command. 15103 * 15104 * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are 15105 * defined in enum qca_wlan_vendor_pasn_action and used only in an event 15106 * from the driver to userspace. 15107 * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer 15108 * details for each peer and used in both an event and a command response. 15109 * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are 15110 * defined in enum qca_wlan_vendor_attr_pasn_peer. 15111 */ 15112 enum qca_wlan_vendor_attr_pasn { 15113 QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0, 15114 QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1, 15115 QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2, 15116 15117 /* keep last */ 15118 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST, 15119 QCA_WLAN_VENDOR_ATTR_PASN_MAX = 15120 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1, 15121 }; 15122 15123 /** 15124 * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete 15125 * the ranging security context derived from PASN for each peer. Used in 15126 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION. 15127 * 15128 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging 15129 * context for the peer. 15130 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging 15131 * context for the peer. 15132 */ 15133 enum qca_wlan_vendor_secure_ranging_ctx_action { 15134 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD, 15135 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE, 15136 }; 15137 15138 /** 15139 * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type 15140 * used for deriving PASN keys to the driver. Used in 15141 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE 15142 * @QCA_WLAN_VENDOR_SHA_256: SHA-256 15143 * @QCA_WLAN_VENDOR_SHA_384: SHA-384 15144 */ 15145 enum qca_wlan_vendor_sha_type { 15146 QCA_WLAN_VENDOR_SHA_256, 15147 QCA_WLAN_VENDOR_SHA_384, 15148 }; 15149 15150 /** 15151 * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used 15152 * to set security context for the PASN peer from userspace to the driver. 15153 * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT. 15154 * 15155 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible 15156 * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action 15157 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that 15158 * was used during the PASN handshake. 15159 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of 15160 * the peer device for which secure ranging context is being configured. 15161 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the 15162 * hash algorithm to be used, possible values are defined in enum 15163 * qca_wlan_vendor_sha_type. 15164 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds 15165 * the temporal key generated from the PASN handshake. The length of this 15166 * attribute is dependent on the value of 15167 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER. 15168 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the 15169 * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites) 15170 * (e.g., 0x000FAC04). 15171 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length 15172 * attribute, holds the LTF keyseed derived from KDK of PASN handshake. 15173 * The length of this attribute is dependent on the value of 15174 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE. 15175 * 15176 */ 15177 enum qca_wlan_vendor_attr_secure_ranging_ctx { 15178 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0, 15179 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1, 15180 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2, 15181 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3, 15182 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4, 15183 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5, 15184 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6, 15185 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7, 15186 15187 /* keep last */ 15188 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST, 15189 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX = 15190 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1, 15191 }; 15192 15193 /** 15194 * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used 15195 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER 15196 * nested attribute. The packets that match a filter will be replied with 15197 * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY. 15198 * 15199 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4: 15200 * u32 attribute. Destination IPv4 address in network byte order, the 15201 * IPv4 packets with different address will be filtered out. 15202 * This attribute is optional. 15203 * 15204 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC: 15205 * Flag attribute. If it's present, indicates that 15206 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast 15207 * address; while if not, indicates that the address is a unicast/multicast 15208 * address. 15209 * This attribute is optional. 15210 * 15211 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6: 15212 * NLA_BINARY attribute, length is 16 bytes. 15213 * Destination IPv6 address in network byte order, the IPv6 packets 15214 * with different destination address will be filtered out. 15215 * This attribute is optional. 15216 * 15217 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and 15218 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured. 15219 * Packets on both IPv4 and IPv6 will be processed if both are configured. 15220 * 15221 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT: 15222 * u16 attribute. Destination UDP port, the packets with different destination 15223 * UDP port will be filtered out. 15224 * This attribute is mandatory. 15225 * 15226 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET: 15227 * u32 attribute. Represents the offset (in UDP payload) of the data 15228 * to be matched. 15229 * This attribute is mandatory. 15230 * 15231 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA: 15232 * NLA_BINARY attribute, the maximum allowed size is 16 bytes. 15233 * Binary data that is compared bit-by-bit against the data (specified 15234 * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP 15235 * payload, the packets don't match will be filtered out. 15236 * This attribute is mandatory. 15237 */ 15238 enum qca_wlan_vendor_attr_coap_offload_filter { 15239 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0, 15240 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1, 15241 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2, 15242 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3, 15243 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4, 15244 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5, 15245 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6, 15246 15247 /* keep last */ 15248 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST, 15249 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX = 15250 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1, 15251 }; 15252 15253 /** 15254 * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used 15255 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute. 15256 * 15257 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4: 15258 * u32 attribute. Source address (in network byte order) for replying 15259 * the matching broadcast/multicast IPv4 packets. 15260 * This attribute is optional. 15261 * 15262 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6: 15263 * NLA_BINARY attribute, length is 16 bytes. 15264 * Source address (in network byte order) for replying the matching 15265 * multicast IPv6 packets. 15266 * This attribute is optional. 15267 * 15268 * For broadcast/multicast offload reply, one of 15269 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and 15270 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be 15271 * configured according to version of the IP address(es) configured in 15272 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER; 15273 * while for unicast case, firmware will take the destination IP address 15274 * in the received matching packet as the source address for replying. 15275 * 15276 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER: 15277 * Nested attribute. Filter for the received UDP packets, only the matching 15278 * packets will be replied and cached. 15279 * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported 15280 * attributes. 15281 * This attribute is mandatory. 15282 * 15283 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG: 15284 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 15285 * CoAP message (UDP payload) to be sent upon receiving matching packets. 15286 * Firmware is responsible for adding any necessary protocol headers. 15287 * This attribute is mandatory. 15288 * 15289 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME: 15290 * u32 attribute. Expiration time in milliseconds of the cached CoAP messages. 15291 * A cached message will be dropped by firmware if it's expired. 15292 * This attribute is optional. A default value of 40000 will be used in the 15293 * absence of it. 15294 */ 15295 enum qca_wlan_vendor_attr_coap_offload_reply { 15296 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0, 15297 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1, 15298 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2, 15299 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3, 15300 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4, 15301 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5, 15302 15303 /* keep last */ 15304 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST, 15305 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX = 15306 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1, 15307 }; 15308 15309 /** 15310 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for 15311 * CoAP message (UDP) transmitting on IPv4. 15312 * 15313 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR: 15314 * u32 attribute. Source address (in network byte order) for transmitting 15315 * packets on IPv4. 15316 * This attribute is mandatory. 15317 * 15318 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT: 15319 * u16 attribute. Source UDP port. 15320 * This attribute is optional, a random port is taken if it's not present. 15321 * 15322 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR: 15323 * u32 attribute. Destination IPv4 address (in network byte order). 15324 * This attribute is mandatory. 15325 * 15326 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC: 15327 * Flag attribute. If it's present, indicates that 15328 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast 15329 * address; while if not, indicates that the address is unicast/multicast 15330 * address. 15331 * This attribute is optional. 15332 * 15333 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT: 15334 * u16 attribute. Destination UDP port. 15335 * This attribute is mandatory. 15336 */ 15337 enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 { 15338 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0, 15339 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1, 15340 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2, 15341 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3, 15342 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4, 15343 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5, 15344 15345 /* keep last */ 15346 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST, 15347 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX = 15348 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1, 15349 }; 15350 15351 /** 15352 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for 15353 * CoAP message (UDP) transmitting on IPv6. 15354 * 15355 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR: 15356 * NLA_BINARY attribute, length is 16 bytes. 15357 * Source address (in network byte order) for transmitting packets on IPv6. 15358 * This attribute is mandatory. 15359 * 15360 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT: 15361 * u16 attribute. Source UDP port. 15362 * This attribute is optional, a random port is taken if it's not present. 15363 * 15364 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR: 15365 * NLA_BINARY attribute, length is 16 bytes. 15366 * Destination IPv6 address (in network byte order). 15367 * This attribute is mandatory. 15368 * 15369 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT: 15370 * u16 attribute. Destination UDP port. 15371 * This attribute is mandatory. 15372 */ 15373 enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 { 15374 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0, 15375 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1, 15376 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2, 15377 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3, 15378 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4, 15379 15380 /* keep last */ 15381 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST, 15382 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX = 15383 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1, 15384 }; 15385 15386 /** 15387 * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used 15388 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute. 15389 * 15390 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4: 15391 * Nested attribute. The IPv4 source/destination address/port for offload 15392 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list 15393 * of supported attributes. 15394 * This attribute is optional. 15395 * 15396 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6: 15397 * Nested attribute. The IPv6 source/destination address/port for offload 15398 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list 15399 * of supported attributes. 15400 * This attribute is optional. 15401 * 15402 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and 15403 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured. 15404 * Firmware will transmit the packets on both IPv4 and IPv6 if both are 15405 * configured. 15406 * 15407 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD: 15408 * u32 attribute. Period in milliseconds for the periodic transmitting. 15409 * This attribute is mandatory. 15410 * 15411 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG: 15412 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 15413 * CoAP message (UDP payload) to be periodically transmitted. Firmware 15414 * is responsible for adding any necessary protocol headers. 15415 * This attribute is mandatory. 15416 */ 15417 enum qca_wlan_vendor_attr_coap_offload_periodic_tx { 15418 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0, 15419 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1, 15420 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2, 15421 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3, 15422 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4, 15423 15424 /* keep last */ 15425 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST, 15426 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX = 15427 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1, 15428 }; 15429 15430 /** 15431 * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used 15432 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute. 15433 * 15434 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS: 15435 * u64 attribute. Received time (since system booted in microseconds) of 15436 * the cached CoAP message. 15437 * This attribute is mandatory. 15438 * 15439 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4: 15440 * u32 attribute. Source IPv4 address (in network byte order) of the cached 15441 * CoAP message. 15442 * This attribute is optional. 15443 * 15444 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6: 15445 * NLA_BINARY attribute, length is 16 bytes. 15446 * Source IPv6 address (in network byte order) of the cached CoAP message. 15447 * This attribute is optional. 15448 * 15449 * At most and at least one of 15450 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and 15451 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for 15452 * an entry. 15453 * 15454 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG: 15455 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 15456 * The cached CoAP message (UDP payload). If the actual message size is 15457 * greater than the maximum size, it will be truncated and leaving only 15458 * the first 1152 bytes. 15459 * This attribute is mandatory. 15460 */ 15461 enum qca_wlan_vendor_attr_coap_offload_cache_info { 15462 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0, 15463 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1, 15464 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2, 15465 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3, 15466 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4, 15467 15468 /* keep last */ 15469 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST, 15470 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX = 15471 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1, 15472 }; 15473 15474 /** 15475 * enum qca_wlan_vendor_coap_offload_action - Actions for 15476 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD. 15477 * 15478 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE: 15479 * Enable CoAP offload reply. 15480 * If it's enabled, firmware will start offload processing on each suspend 15481 * and stop on each resume. 15482 * 15483 * Offload reply on match works as follows: 15484 * Reply the packets that match the filter with the given CoAP 15485 * message (with necessary protocol headers), increase the CoAP message 15486 * ID in the given CoAP message by one for the next use after each successful 15487 * transmission, and try to store the information of the received packet, 15488 * including the received time, source IP address, and CoAP message (UDP 15489 * payload). 15490 * 15491 * Firmware has a limit to the maximum stored entries, it takes the source IP 15492 * address as the key of an entry, and keeps at most one entry for each key. 15493 * A packet won't be stored if no entry for the same key is present and the 15494 * total number of the existing unexpired entries reaches the maximum value. 15495 * 15496 * If any configured item is changed, user space should disable offload reply 15497 * first and then issue a new enable request. 15498 * 15499 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE: 15500 * Disable CoAP offload reply and return information of any cached CoAP 15501 * messages. 15502 * 15503 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE: 15504 * Enable CoAP offload periodic transmitting. 15505 * If it's enabled, firmware will start offload periodic transmitting on 15506 * each suspend and stop on each resume. 15507 * 15508 * Offload periodic transmitting works as follows: 15509 * Send the given CoAP message (with necessary protocol headers) with the given 15510 * source/destination IP address/UDP port periodically based on the given 15511 * period and increase the CoAP message ID in the given CoAP message by one 15512 * for the next use after each successful transmission. 15513 * 15514 * If any configured item is changed, user space should disable offload 15515 * periodic transmitting first and then issue a new enable request. 15516 * 15517 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE: 15518 * Disable CoAP offload periodic transmitting. 15519 * 15520 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET: 15521 * Get information of the CoAP messages cached during offload reply 15522 * processing. The cache is cleared after retrieval. 15523 */ 15524 enum qca_wlan_vendor_coap_offload_action { 15525 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0, 15526 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1, 15527 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2, 15528 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3, 15529 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4, 15530 }; 15531 15532 /** 15533 * enum qca_wlan_vendor_attr_coap_offload - Used by the 15534 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD. 15535 * This is used to set parameters for CoAP offload processing, or get 15536 * cached CoAP messages from firmware. 15537 * 15538 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION: 15539 * u32 attribute. Action to take in this vendor command. 15540 * See enum qca_wlan_vendor_coap_offload_action for supported actions. 15541 * This attribute is mandatory. 15542 * 15543 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID: 15544 * u32 attribute. Represents the Request ID for the CoAP offload 15545 * configuration, which can help to identify the user entity starting 15546 * the CoAP offload processing and accordingly stop the respective 15547 * ones/get the cached CoAP messages with the matching ID. 15548 * This attribute is mandatory. 15549 * 15550 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY: 15551 * Nested attribute. Parameters for offload reply. 15552 * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of 15553 * supported attributes. 15554 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION 15555 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored 15556 * otherwise. 15557 * 15558 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX: 15559 * Nested attribute. Parameters for offload periodic transmitting. 15560 * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of 15561 * supported attributes. 15562 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is 15563 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored 15564 * otherwise. 15565 * 15566 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES: 15567 * Array of nested attributes. Information of the cached CoAP messages, 15568 * where each entry is taken from 15569 * enum qca_wlan_vendor_attr_coap_offload_cache_info. 15570 * This attribute is used for reporting the cached CoAP messages 15571 * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION 15572 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or 15573 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no 15574 * cached item if this attribute is not present. 15575 */ 15576 enum qca_wlan_vendor_attr_coap_offload { 15577 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0, 15578 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1, 15579 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2, 15580 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3, 15581 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4, 15582 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5, 15583 15584 /* keep last */ 15585 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST, 15586 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX = 15587 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1, 15588 }; 15589 15590 /** 15591 * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command 15592 * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification 15593 * Service (SCS) rule. 15594 * 15595 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute. 15596 * Represents the unique id of SCS rule to be configured. 15597 15598 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute. 15599 * Represents the request type: add, remove, or change. 15600 * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request 15601 * Type definitions). 15602 * 15603 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute 15604 * in case of add/change request type. 15605 * Represents the output traffic identifier (TID) to be assigned to the flow 15606 * matching the rule. 15607 * 15608 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8 15609 * attribute in case of add/change request type. 15610 * Represents type of classifier parameters present in SCS rule. 15611 * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type). 15612 * Only classifier types 4 and 10 are supported for SCS. 15613 * 15614 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute 15615 * in case of add/change request type when classifier type is TCLAS4. 15616 * Represents the IP version (4: IPv4, 6: IPv6) of the rule. 15617 * 15618 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional 15619 * attribute in case of add/change request type when classifier type is TCLAS4 15620 * and version attribute is IPv4. 15621 * Represents the source IPv4 address in the rule which is to be compared 15622 * against the source IP address in the IPv4 header. 15623 * 15624 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional 15625 * attribute in case of add/change request type when classifier type is TCLAS4 15626 * and version attribute is IPv4. 15627 * Represents the destination IPv4 address in the rule which is to be compared 15628 * against the destination IP address in the IPv4 header. 15629 * 15630 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional 15631 * attribute in case of add/change request type when classifier type is TCLAS4 15632 * and version attribute is IPv6. 15633 * Represents the source IPv6 address in the rule which is to be compared 15634 * against the source IP address in the IPv6 header. 15635 * 15636 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional 15637 * attribute in case of add/change request type when classifier type is TCLAS4 15638 * and version attribute is IPv6. 15639 * Represents the destination IPv6 address in the rule which is to be compared 15640 * against the destination IP address in the IPv6 header. 15641 * 15642 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute 15643 * in case of add/change request type when classifier type is TCLAS4. 15644 * Represents the source port number in the rule which is to be compared against 15645 * the source port number in the protocol header. 15646 * 15647 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute 15648 * in case of add/change request type when classifier type is TCLAS4. 15649 * Represents the destination port number in the rule which is to be compared 15650 * against the destination port number in the protocol header. 15651 * 15652 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute 15653 * in case of add/change request type when classifier type is TCLAS4. 15654 * Represents the DSCP value in the rule which is to be compared against the 15655 * DSCP field present in the IP header. 15656 * 15657 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8 15658 * attribute in case of add/change request type when classifier type is TCLAS4. 15659 * Represents the protocol/next header in the rule which is to be compared 15660 * against the protocol/next header field present in the IPv4/IPv6 header. 15661 * 15662 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional 15663 * attribute of size 3 bytes present in case of add/change request type 15664 * when classifier type is TCLAS4 and version is IPv6. 15665 * Represents the flow label value in the rule which is to be compared against 15666 * the flow label field present in the IPv6 header. 15667 * 15668 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8 15669 * attribute in case of add/change request type when classifier type is TCLAS10. 15670 * Represents the protocol instance number in the rule. 15671 * 15672 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8 15673 * attribute in case of add/change request type when classifier type is TCLAS10. 15674 * Represents the protocol/next header in the rule which is to be compared 15675 * against the protocol/next header field present in the IPv4/IPv6 header. 15676 * 15677 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional 15678 * attribute of variable length present when request type is add/change and 15679 * classifier type is TCLAS10. 15680 * Represents the mask to be used for masking the header contents of the header 15681 * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER 15682 * attribute. 15683 * 15684 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional 15685 * attribute of variable length present when request type is add/change and 15686 * classifier type is TCLAS10. 15687 * Represents the value to be compared against after masking the header contents 15688 * of the header specified by the 15689 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the 15690 * filter mask specified by the 15691 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute. 15692 * 15693 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16 15694 * attribute. 15695 * Represents the service class id of the configured SCS rule. 15696 * 15697 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes 15698 * MAC address. 15699 * Represents the destination MAC address in the rule. 15700 * 15701 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute 15702 * Represents the netdevice interface index in the rule. 15703 */ 15704 enum qca_wlan_vendor_attr_scs_rule_config { 15705 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0, 15706 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1, 15707 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2, 15708 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3, 15709 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4, 15710 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5, 15711 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6, 15712 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7, 15713 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8, 15714 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9, 15715 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10, 15716 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11, 15717 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12, 15718 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13, 15719 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14, 15720 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15, 15721 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16, 15722 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17, 15723 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18, 15724 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19, 15725 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20, 15726 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21, 15727 15728 /* Keep last */ 15729 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST, 15730 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX = 15731 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1, 15732 }; 15733 15734 /** 15735 * enum qca_wlan_vendor_sar_version - This describes the current SAR version 15736 * used in the firmware. 15737 * 15738 * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR. 15739 * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits. 15740 * 15741 * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2, 15742 * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for 15743 * each CTL group. So user can select up to 6 SAR indexes from the current CTL 15744 * groups. 15745 * 15746 * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3, 15747 * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each 15748 * CTL group but user can choose up to 3 SAR set index only, as the top half 15749 * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of 15750 * the SAR index (3 to 5) is used for DBS mode. 15751 * 15752 * @QCA_WLAN_VENDOR_SAR_VERSION_4: The firmware supports SAR version 4, 15753 * known as SAR Smart Transmit (STX) mode. STX is time averaging algorithmic 15754 * for power limit computation in collaboration with WWAN. 15755 * In STX mode, firmware has 41 indexes and there is no ctl grouping uses. 15756 * 15757 * @QCA_WLAN_VENDOR_SAR_VERSION_5: The firmware supports SAR version 5, 15758 * known as TAS (Time Averaging SAR) mode. In TAS mode, as name implies 15759 * instead of fixed static SAR power limit firmware uses time averaging 15760 * to adjust the SAR limit dynamically. It is wlan soc standalone mechanism. 15761 * In this mode firmware has up to 43 indexes. 15762 */ 15763 enum qca_wlan_vendor_sar_version { 15764 QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0, 15765 QCA_WLAN_VENDOR_SAR_VERSION_1 = 1, 15766 QCA_WLAN_VENDOR_SAR_VERSION_2 = 2, 15767 QCA_WLAN_VENDOR_SAR_VERSION_3 = 3, 15768 QCA_WLAN_VENDOR_SAR_VERSION_4 = 4, 15769 QCA_WLAN_VENDOR_SAR_VERSION_5 = 5, 15770 }; 15771 15772 /** 15773 * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether 15774 * CTL grouping is enabled or disabled in the firmware. 15775 * 15776 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping 15777 * is enabled in firmware. 15778 * 15779 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping 15780 * is disabled in firmware. 15781 * 15782 */ 15783 enum qca_wlan_vendor_sar_ctl_group_state { 15784 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0, 15785 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1, 15786 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2, 15787 }; 15788 15789 /** 15790 * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command 15791 * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities 15792 * supported by the firmware. 15793 15794 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION: 15795 * u32 attribute. This field describes current SAR version supported by the 15796 * firmware. 15797 * See enum qca_wlan_vendor_sar_version for more information. 15798 * This attribute is mandatory. 15799 15800 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE: 15801 * u32 attribute. This field describes whether CTL groups are enabled 15802 * or disabled in the firmware. 15803 * See enum qca_wlan_vendor_sar_ctl_group_state for more information. 15804 * This attribute is optional. 15805 */ 15806 15807 enum qca_wlan_vendor_attr_sar_capability { 15808 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0, 15809 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1, 15810 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2, 15811 15812 /* Keep last */ 15813 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST, 15814 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX = 15815 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1, 15816 }; 15817 15818 /** 15819 * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics. 15820 * These statistics are sent from the driver in a response when userspace 15821 * queries to get the statistics using the operation 15822 * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset 15823 * by the driver when the SR feature is enabled, when the driver receives 15824 * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected. 15825 * 15826 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute. 15827 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15828 * This represents the number of non-SRG TX opportunities. 15829 * 15830 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute. 15831 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15832 * This represents the number of non-SRG PPDUs tried to transmit. 15833 * 15834 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute. 15835 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15836 * This represents the number of non-SRG PPDUs successfully transmitted. 15837 * 15838 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute. 15839 * Mandatory only when SRG is supported by the AP and optional otherwise. 15840 * This represents the number of SRG TX opportunities. 15841 * 15842 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute. 15843 * Mandatory only when SRG is supported by the AP and optional otherwise. 15844 * This represents the number of SRG PPDUs tried to transmit. 15845 * 15846 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute. 15847 * Mandatory only when SRG is supported by the AP and optional otherwise. 15848 * This represents the number of SRG PPDUs successfully transmitted. 15849 */ 15850 enum qca_wlan_vendor_attr_sr_stats { 15851 QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0, 15852 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1, 15853 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2, 15854 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3, 15855 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4, 15856 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5, 15857 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6, 15858 15859 /* Keep last */ 15860 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST, 15861 QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX = 15862 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1, 15863 }; 15864 15865 /** 15866 * enum qca_wlan_sr_reason_code - Defines the different reason codes used in 15867 * Spatial Reuse feature. 15868 * 15869 * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to 15870 * roaming to an AP that doesn't support/supports SR feature, respectively. 15871 * 15872 * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due 15873 * to change in concurrent interfaces that are supported by the driver. 15874 */ 15875 enum qca_wlan_sr_reason_code { 15876 QCA_WLAN_SR_REASON_CODE_ROAMING = 0, 15877 QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1, 15878 }; 15879 15880 /** 15881 * enum qca_wlan_sr_operation - Defines the different types of SR operations. 15882 * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION. 15883 * 15884 * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the 15885 * driver to enable the Spatial Reuse feature. Attributes 15886 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and 15887 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this 15888 * operation. 15889 * 15890 * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the 15891 * driver to disable the Spatial Reuse feature. 15892 * 15893 * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an 15894 * asynchronous event sent to userspace when the SR feature is disabled. 15895 * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE 15896 * and sent along with the asynchronous event. 15897 * 15898 * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an 15899 * asynchronous event when the SR feature is enabled again after the SR feature 15900 * was suspended by the driver earlier. The enable reason is 15901 * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are 15902 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and 15903 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD. 15904 * 15905 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is 15906 * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial 15907 * reuse transmissions. Userspace sends this operation to the driver. 15908 * The driver/firmware upon receiving this operation shall prohibit PSR-based 15909 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions. 15910 * 15911 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is 15912 * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial 15913 * reuse transmissions. Userspace sends this operation to the driver. 15914 * The driver/firmware upon receiving this operation shall allow PSR-based 15915 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions. 15916 * 15917 * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the 15918 * driver to get the SR statistics and the driver sends a synchronous response 15919 * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the 15920 * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS. 15921 * 15922 * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the 15923 * driver to clear the SR statistics and upon receiving this operation 15924 * the driver/firmware shall clear the SR statistics. 15925 * 15926 * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the 15927 * driver to get the SR parameters and the driver sends the synchronous response 15928 * with the following required attributes: 15929 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET, 15930 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET, 15931 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET, 15932 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE, 15933 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW. 15934 * 15935 * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an 15936 * asynchronous event to userspace to update any changes in SR parameters. 15937 * The following attributes are used with this operation: 15938 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET, 15939 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET, 15940 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET, 15941 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE, 15942 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW. 15943 */ 15944 enum qca_wlan_sr_operation { 15945 QCA_WLAN_SR_OPERATION_SR_ENABLE = 0, 15946 QCA_WLAN_SR_OPERATION_SR_DISABLE = 1, 15947 QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2, 15948 QCA_WLAN_SR_OPERATION_SR_RESUME = 3, 15949 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4, 15950 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5, 15951 QCA_WLAN_SR_OPERATION_GET_STATS = 6, 15952 QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7, 15953 QCA_WLAN_SR_OPERATION_GET_PARAMS = 8, 15954 QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9, 15955 }; 15956 15957 /** 15958 * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration 15959 * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS. 15960 * 15961 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute. 15962 * This attribute is optionally set in response to 15963 * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to 15964 * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std 15965 * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more 15966 * about HESIGA_Spatial_reuse_value15_allowed. 15967 * 15968 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute. 15969 * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS 15970 * operation. This indicates whether non-SRG OBSS PD SR transmissions are 15971 * allowed or not at non-AP STAs that are associated with the AP. If present 15972 * non-SRG OBSS PD SR transmissions are not allowed else are allowed. 15973 * 15974 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8 15975 * attribute. This attribute is used in response to 15976 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD 15977 * Min Offset field which contains an unsigned integer that is added to -82 dBm 15978 * to generate the value of the SRG OBSS PD Min parameter. 15979 * 15980 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8 15981 * attribute. This attribute is used in response to 15982 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD 15983 * Max Offset field which contains an unsigned integer that is added to -82 dBm 15984 * to generate the value of the SRG OBSS PD Max parameter. 15985 * 15986 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8 15987 * attribute. This attribute is used in response to 15988 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS 15989 * PD Max Offset field which contains an unsigned integer that is added to -82 15990 * dBm to generate the value of the Non-SRG OBSS PD Max parameter. 15991 * 15992 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm). 15993 * Userspace optionally sends this attribute with 15994 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the 15995 * preferred SRG PD threshold. The driver shall send this attribute to 15996 * userspace in SR resume event to indicate the PD threshold being used for SR. 15997 * When there is change in SRG PD threshold (for example, due to roaming, etc.) 15998 * the driver shall indicate the userspace the newly configured SRG PD threshold 15999 * using an asynchronous event. 16000 * 16001 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm). 16002 * Userspace optionally sends this attribute with 16003 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the 16004 * preferred non-SRG PD threshold. The driver shall send this attribute to 16005 * userspace in SR resume event to indicate the PD threshold being used for SR. 16006 * When there is change in non-SRG PD threshold (for example, due to roaming, 16007 * etc.) the driver shall indicate the userspace the newly configured non-SRG PD 16008 * threshold using an asynchronous event. 16009 * 16010 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible 16011 * values are defined in enum qca_wlan_sr_reason_code. This 16012 * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and 16013 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations. 16014 */ 16015 enum qca_wlan_vendor_attr_sr_params { 16016 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0, 16017 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1, 16018 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2, 16019 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3, 16020 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4, 16021 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5, 16022 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6, 16023 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7, 16024 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8, 16025 16026 /* keep last */ 16027 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST, 16028 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX = 16029 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1, 16030 }; 16031 16032 /** 16033 * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor 16034 * command QCA_NL80211_VENDOR_SUBCMD_SR. 16035 * 16036 * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests 16037 * from userspace to the driver. Possible values are defined in enum 16038 * qca_wlan_sr_operation. 16039 * 16040 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR 16041 * configuration parameters. The possible attributes inside this attribute are 16042 * defined in enum qca_wlan_vendor_attr_sr_params. 16043 * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to 16044 * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and 16045 * also in response from the driver to userspace when the response is sent for 16046 * %QCA_WLAN_SR_OPERATION_GET_PARAMS. 16047 * The driver uses this attribute in asynchronous events in which the operation 16048 * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME, 16049 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS. 16050 * 16051 * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR 16052 * statistics. These attributes used inside this are defined in enum 16053 * qca_wlan_vendor_attr_sr_stats. 16054 * This attribute is used in response from the driver to a command in which 16055 * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to 16056 * %QCA_WLAN_SR_OPERATION_GET_STATS. 16057 */ 16058 enum qca_wlan_vendor_attr_sr { 16059 QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0, 16060 QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1, 16061 QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2, 16062 QCA_WLAN_VENDOR_ATTR_SR_STATS = 3, 16063 16064 /* Keep last */ 16065 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST, 16066 QCA_WLAN_VENDOR_ATTR_SR_MAX = 16067 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1, 16068 }; 16069 16070 /** 16071 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes 16072 * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand. 16073 * 16074 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address 16075 * used by the peer on the link that corresponds to the link used for sending 16076 * the event notification. 16077 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte 16078 * MLD MAC address of the peer. 16079 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute, 16080 * used to pass ifindex of the primary netdev. 16081 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX: u32 attribute, 16082 * used to pass ifindex of the MLD netdev. 16083 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS: u8 attribute, 16084 * used to indicate the number of links that the non-AP MLD negotiated to be 16085 * used in the ML connection. 16086 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO: Nested 16087 * attribute, contains information regarding links of the non-AP MLD. 16088 * User applications need to know all the links of a non-AP MLD that are 16089 * participating in the ML association. The possible attributes inside this 16090 * attribute are defined in enum qca_wlan_vendor_attr_mlo_link_info. 16091 */ 16092 enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event { 16093 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0, 16094 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1, 16095 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2, 16096 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3, 16097 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX = 4, 16098 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS = 5, 16099 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO = 6, 16100 16101 /* keep last */ 16102 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST, 16103 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX = 16104 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1, 16105 }; 16106 16107 /** 16108 * enum qca_wlan_vendor_attr_mlo_link_info - Defines attributes for 16109 * non-AP MLD link parameters used by the attribute 16110 * %QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO. 16111 * 16112 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX: u32 attribute, used 16113 * to pass the netdev ifindex of the non-AP MLD link. 16114 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR: 6 byte MAC address of 16115 * the non-AP MLD link. 16116 */ 16117 enum qca_wlan_vendor_attr_mlo_link_info { 16118 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_INVALID = 0, 16119 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX = 1, 16120 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR = 2, 16121 16122 /* keep last */ 16123 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST, 16124 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MAX = 16125 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST - 1, 16126 }; 16127 16128 /** 16129 * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with 16130 * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and 16131 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range 16132 * and PSD information. 16133 * 16134 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is 16135 * u32. This attribute is used to indicate the start of the queried frequency 16136 * range in MHz. 16137 * 16138 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32. 16139 * This attribute is used to indicate the end of the queried frequency range 16140 * in MHz. 16141 * 16142 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32. 16143 * This attribute will contain the PSD information for a single range as 16144 * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and 16145 * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes. 16146 * 16147 * The PSD power info (dBm/MHz) from user space should be multiplied 16148 * by a factor of 100 when sending to the driver to preserve granularity 16149 * up to 2 decimal places. 16150 * Example: 16151 * PSD power value: 10.21 dBm/MHz 16152 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021. 16153 * 16154 * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only 16155 * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with 16156 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when 16157 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16158 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE. 16159 * 16160 * The following set of attributes will be used to exchange frequency and 16161 * corresponding PSD information for AFC between the user space and the driver. 16162 */ 16163 enum qca_wlan_vendor_attr_afc_freq_psd_info { 16164 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0, 16165 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1, 16166 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2, 16167 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3, 16168 16169 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST, 16170 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX = 16171 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1, 16172 }; 16173 16174 /** 16175 * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with 16176 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the 16177 * channel list and corresponding EIRP information. 16178 * 16179 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8. 16180 * This attribute is used to indicate queried channel from 16181 * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO. 16182 * 16183 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32. 16184 * This attribute is used to configure the EIRP power info corresponding 16185 * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM. 16186 * The EIRP power info(dBm) from user space should be multiplied 16187 * by a factor of 100 when sending to Driver to preserve granularity up to 16188 * 2 decimal places. 16189 * Example: 16190 * EIRP power value: 34.23 dBm 16191 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423. 16192 * 16193 * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with 16194 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 16195 * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when 16196 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16197 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: 16198 * 16199 * The following set of attributes will be used to exchange Channel and 16200 * corresponding EIRP information for AFC between the user space and Driver. 16201 */ 16202 enum qca_wlan_vendor_attr_afc_chan_eirp_info { 16203 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0, 16204 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1, 16205 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2, 16206 16207 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST, 16208 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX = 16209 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1, 16210 }; 16211 16212 /** 16213 * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested 16214 * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 16215 * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class, 16216 * channel, and EIRP related information. 16217 * 16218 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8. 16219 * This attribute is used to indicate the operating class, as listed under 16220 * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list. 16221 * 16222 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes 16223 * for updating the channel number and EIRP power information. 16224 * It uses the attributes defined in 16225 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. 16226 * 16227 * Operating class information packing format for 16228 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when 16229 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16230 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY. 16231 * 16232 * m - Total number of operating classes. 16233 * n, j - Number of queried channels for the corresponding operating class. 16234 * 16235 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0] 16236 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0] 16237 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 16238 * ..... 16239 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1] 16240 * .... 16241 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m] 16242 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m] 16243 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 16244 * .... 16245 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1] 16246 * 16247 * Operating class information packing format for 16248 * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 16249 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when 16250 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16251 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE. 16252 * 16253 * m - Total number of operating classes. 16254 * n, j - Number of channels for the corresponding operating class. 16255 * 16256 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0] 16257 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0] 16258 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 16259 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0] 16260 * ..... 16261 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1] 16262 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1] 16263 * .... 16264 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m] 16265 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m] 16266 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 16267 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0] 16268 * .... 16269 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1] 16270 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1] 16271 * 16272 * The following set of attributes will be used to exchange operating class 16273 * information for AFC between the user space and the driver. 16274 */ 16275 enum qca_wlan_vendor_attr_afc_opclass_info { 16276 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0, 16277 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1, 16278 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2, 16279 16280 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST, 16281 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX = 16282 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1, 16283 }; 16284 16285 /** 16286 * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type. 16287 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute. 16288 * 16289 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the 16290 * driver to userspace in order to query the new AFC power values. 16291 * 16292 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update 16293 * complete event will be sent from the driver to userspace to indicate 16294 * processing of the AFC response. 16295 * 16296 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event 16297 * will be sent from the driver to userspace to indicate last received 16298 * AFC response data has been cleared on the AP due to invalid data 16299 * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. 16300 * 16301 * The following enum defines the different event types that will be 16302 * used by the driver to help trigger corresponding AFC functionality in user 16303 * space. 16304 */ 16305 enum qca_wlan_vendor_afc_event_type { 16306 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0, 16307 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1, 16308 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2, 16309 }; 16310 16311 /** 16312 * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP 16313 * deployment type. 16314 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute. 16315 * 16316 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment. 16317 * 16318 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment. 16319 * 16320 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment. 16321 * 16322 * The following enum defines different deployment modes that the AP might 16323 * come up in. This information will be essential to retrieve deployment-type 16324 * specific SP power values for AFC operation. 16325 */ 16326 enum qca_wlan_vendor_afc_ap_deployment_type { 16327 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0, 16328 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1, 16329 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2, 16330 }; 16331 16332 /** 16333 * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to 16334 * indicate AFC response status. 16335 * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute. 16336 * 16337 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success 16338 * 16339 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication 16340 * command was not received within the expected time of the AFC expiry event 16341 * being triggered. 16342 * 16343 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data 16344 * parsing error by the driver. 16345 * 16346 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local 16347 * error. 16348 * 16349 * The following enum defines the status codes that the driver will use to 16350 * indicate whether the AFC data is valid or not. 16351 */ 16352 enum qca_wlan_vendor_afc_evt_status_code { 16353 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0, 16354 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1, 16355 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2, 16356 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3, 16357 }; 16358 16359 /** 16360 * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with 16361 * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will 16362 * support sending only a single request to the user space at a time. 16363 * 16364 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute. 16365 * Used with event to notify the type of AFC event received. 16366 * Valid values are defined in enum qca_wlan_vendor_afc_event_type. 16367 * 16368 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when 16369 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, 16370 * otherwise unused. 16371 * 16372 * This attribute is used to indicate the AP deployment type in the AFC request. 16373 * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type. 16374 * 16375 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute. 16376 * Unique request identifier generated by the AFC client for every 16377 * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID. 16378 * The user space application is responsible for ensuring no duplicate values 16379 * are in-flight with the server, e.g., by delaying a request, should the same 16380 * value be received from different radios in parallel. 16381 * 16382 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional. 16383 * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16384 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused. 16385 * 16386 * This attribute indicates the AFC spec version information. This will 16387 * indicate the AFC version AFC client must use to query the AFC data. 16388 * Bits 15:0 - Minor version 16389 * Bits 31:16 - Major version 16390 * 16391 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when 16392 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, 16393 * otherwise unused. 16394 * This attribute indicates the minimum desired power (in dBm) for 16395 * the queried spectrum. 16396 * 16397 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when 16398 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16399 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16400 * 16401 * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code. 16402 * This attribute is used to indicate if there were any errors parsing the 16403 * AFC response. 16404 * 16405 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required 16406 * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16407 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16408 * 16409 * This attribute indicates the AFC response code. The AFC response codes are 16410 * in the following categories: 16411 * -1: General Failure. 16412 * 0: Success. 16413 * 100 - 199: General errors related to protocol. 16414 * 300 - 399: Error events specific to message exchange 16415 * for the Available Spectrum Inquiry. 16416 * 16417 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when 16418 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16419 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16420 * 16421 * This attribute indicates the date until which the current response is 16422 * valid for in UTC format. 16423 * Date format: bits 7:0 - DD (Day 1-31) 16424 * bits 15:8 - MM (Month 1-12) 16425 * bits 31:16 - YYYY (Year) 16426 * 16427 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when 16428 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16429 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16430 * 16431 * This attribute indicates the time until which the current response is 16432 * valid for in UTC format. 16433 * Time format: bits 7:0 - SS (Seconds 0-59) 16434 * bits 15:8 - MM (Minutes 0-59) 16435 * bits 23:16 - HH (Hours 0-23) 16436 * bits 31:24 - Reserved 16437 * 16438 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes 16439 * for updating the list of frequency ranges to be queried. 16440 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16441 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or 16442 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16443 * It uses the attributes defined in 16444 * enum qca_wlan_vendor_attr_afc_freq_psd_info. 16445 * 16446 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes 16447 * for updating the list of operating classes and corresponding channels to be 16448 * queried. 16449 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16450 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or 16451 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16452 * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info. 16453 */ 16454 enum qca_wlan_vendor_attr_afc_event { 16455 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0, 16456 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1, 16457 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2, 16458 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3, 16459 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4, 16460 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5, 16461 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6, 16462 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7, 16463 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8, 16464 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9, 16465 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10, 16466 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11, 16467 16468 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST, 16469 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX = 16470 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1, 16471 }; 16472 16473 /** 16474 * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used 16475 * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes 16476 * will support sending only a single AFC response to the driver at a time. 16477 * 16478 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute. 16479 * This attribute will be used to send a single Spectrum Inquiry response object 16480 * from the 'availableSpectrumInquiryResponses' array object from the response 16481 * JSON. 16482 * 16483 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute. 16484 * 16485 * This attribute indicates the period (in seconds) for which the response 16486 * data received is valid for. 16487 * 16488 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute. 16489 * 16490 * This attribute indicates the request ID for which the corresponding 16491 * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID. 16492 * 16493 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute. 16494 * 16495 * This attribute indicates the date until which the current response is 16496 * valid for in UTC format. 16497 * Date format: bits 7:0 - DD (Day 1-31) 16498 * bits 15:8 - MM (Month 1-12) 16499 * bits 31:16 - YYYY (Year) 16500 * 16501 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute. 16502 * 16503 * This attribute indicates the time until which the current response is 16504 * valid for in UTC format. 16505 * Time format: bits 7:0 - SS (Seconds 0-59) 16506 * bits 15:8 - MM (Minutes 0-59) 16507 * bits 23:16 - HH (Hours 0-23) 16508 * bits 31:24 - Reserved 16509 * 16510 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute. 16511 * 16512 * This attribute indicates the AFC response code. The AFC response codes are 16513 * in the following categories: 16514 * -1: General Failure. 16515 * 0: Success. 16516 * 100 - 199: General errors related to protocol. 16517 * 300 - 399: Error events specific to message exchange 16518 * for the Available Spectrum Inquiry. 16519 * 16520 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes 16521 * for PSD info of all the queried frequency ranges. It uses the attributes 16522 * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute. 16523 * 16524 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested 16525 * attributes for EIRP info of all queried operating class/channels. It uses 16526 * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and 16527 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute. 16528 * 16529 */ 16530 enum qca_wlan_vendor_attr_afc_response { 16531 QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0, 16532 QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1, 16533 QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2, 16534 QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3, 16535 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4, 16536 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5, 16537 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6, 16538 QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7, 16539 QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8, 16540 16541 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST, 16542 QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX = 16543 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1, 16544 }; 16545 16546 /** 16547 * enum qca_wlan_dozed_ap_state - Doze states for AP interface 16548 * 16549 * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface. 16550 * 16551 * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts 16552 * beaconing at higher beacon interval with Rx disabled. 16553 */ 16554 enum qca_wlan_dozed_ap_state { 16555 QCA_WLAN_DOZED_AP_DISABLE = 0, 16556 QCA_WLAN_DOZED_AP_ENABLE = 1, 16557 }; 16558 16559 /** 16560 * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command 16561 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode 16562 * configuration. 16563 * 16564 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute. 16565 * Configures the doze state for an AP interface. Possible values are defined 16566 * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event 16567 * gets triggered asynchronously to provide updated AP interface configuration. 16568 * 16569 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by 16570 * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP 16571 * command, which is used later to maintain synchronization between commands 16572 * and asynchronous events. 16573 * 16574 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute. 16575 * Used in event to indicate the next TBTT TSF timer value after applying the 16576 * doze mode configuration. Next TBTT TSF is the time at which the AP sends 16577 * the first beacon after entering or exiting dozed mode. 16578 * 16579 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute. 16580 * Used with event to inform the periodicity of beacon transmission that would 16581 * be skipped at all TBTTs in between. 16582 */ 16583 enum qca_wlan_vendor_attr_dozed_ap { 16584 QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0, 16585 QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1, 16586 QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2, 16587 QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3, 16588 QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4, 16589 16590 /* Keep last */ 16591 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST, 16592 QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX = 16593 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1, 16594 }; 16595 16596 /** 16597 * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes 16598 * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE. 16599 * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no 16600 * capture running status. 16601 * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate 16602 * capture running status. 16603 **/ 16604 16605 enum qca_wlan_vendor_monitor_mode_status { 16606 QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0, 16607 QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1, 16608 }; 16609 16610 /** 16611 * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the 16612 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report 16613 * information regarding the local packet capture over the monitor mode. 16614 * 16615 * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute 16616 * represents the status of the start capture commands. The values used with 16617 * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This 16618 * is returned by the driver in the response to the command. 16619 */ 16620 16621 enum qca_wlan_vendor_attr_get_monitor_mode { 16622 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0, 16623 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1, 16624 16625 /* Keep last */ 16626 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST, 16627 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX = 16628 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1, 16629 }; 16630 16631 /** 16632 * enum qca_wlan_vendor_link_state_op_types - Defines different types of 16633 * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used. 16634 * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute. 16635 * 16636 * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information. 16637 * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information. 16638 */ 16639 enum qca_wlan_vendor_link_state_op_types { 16640 QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0, 16641 QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1, 16642 }; 16643 16644 /** 16645 * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO 16646 * links state control modes. This enum is used by 16647 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute. 16648 * 16649 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled 16650 * by the driver. 16651 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by 16652 * user space. 16653 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the 16654 * desired number of MLO links to operate in active state at any given time. 16655 * The driver will choose which MLO links should operate in the active state. 16656 * See enum qca_wlan_vendor_link_state for active state definition. 16657 */ 16658 enum qca_wlan_vendor_link_state_control_modes { 16659 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0, 16660 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1, 16661 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2, 16662 }; 16663 16664 /** 16665 * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO 16666 * links state operation modes. This enum is used by 16667 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute. 16668 * 16669 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation 16670 * mode, the driver selects the operating mode of the links, without any 16671 * guidance from the user space. 16672 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency 16673 * operation mode the driver should select MLO links that will achieve low 16674 * latency. 16675 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high 16676 * throughput operation mode the driver should select MLO links that will 16677 * achieve higher throughput. 16678 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power 16679 * operation mode the driver should select MLO links that will achieve low 16680 * power. 16681 */ 16682 enum qca_wlan_vendor_link_state_operation_modes { 16683 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0, 16684 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1, 16685 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2, 16686 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3, 16687 }; 16688 16689 /** 16690 * enum qca_wlan_vendor_link_state - Represents the possible link states of an 16691 * MLO link. 16692 * 16693 * @QCA_WLAN_VENDOR_LINK_STATE_INACTIVE: In this state, the link will not 16694 * be used for data transmission but it can have TIDs mapped to it. It will be 16695 * in doze state always and does not monitor the beacons. 16696 * @QCA_WLAN_VENDOR_LINK_STATE_ACTIVE: In this state, the link will be 16697 * used for data TX/RX and monitors the beacons to check TIM bit indication. 16698 * It may enter doze state and comes out based on the transmit data traffic and 16699 * TIM bit indication in the beacon. 16700 */ 16701 enum qca_wlan_vendor_link_state { 16702 QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0, 16703 QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1, 16704 }; 16705 16706 /** 16707 * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used 16708 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG. 16709 * 16710 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the 16711 * MLO link. 16712 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See 16713 * enum qca_wlan_vendor_link_state for possible MLO link states. 16714 */ 16715 16716 enum qca_wlan_vendor_attr_link_state_config { 16717 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0, 16718 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1, 16719 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2, 16720 16721 /* Keep last */ 16722 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST, 16723 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX = 16724 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1, 16725 }; 16726 16727 /** 16728 * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by 16729 * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command. 16730 * 16731 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type 16732 * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for. 16733 * Required only in a command. Possible values for this attribute are defined in 16734 * enum qca_wlan_vendor_link_state_op_types. 16735 * 16736 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO 16737 * links control mode type. Optional attribute in a command when 16738 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16739 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when 16740 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16741 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 16742 * See enum qca_wlan_vendor_link_state_control_modes for possible control modes. 16743 * 16744 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes. 16745 * Indicates the state of the each MLO link affiliated with the interface. 16746 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE 16747 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and 16748 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to 16749 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a 16750 * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16751 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 16752 * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes. 16753 * 16754 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute. 16755 * Represents the number of active state links. See enum 16756 * qca_wlan_vendor_link_state for active state definition. 16757 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE 16758 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and 16759 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to 16760 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED. 16761 * 16762 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO 16763 * links operation mode type. Optional attribute in a command when 16764 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16765 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when 16766 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16767 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 16768 * See enum qca_wlan_vendor_link_state_operation_modes for possible operation 16769 * modes. 16770 */ 16771 enum qca_wlan_vendor_attr_mlo_link_state { 16772 QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0, 16773 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1, 16774 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2, 16775 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3, 16776 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4, 16777 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5, 16778 16779 /* keep last */ 16780 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST, 16781 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX = 16782 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1, 16783 }; 16784 16785 /** 16786 * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used 16787 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS. 16788 * 16789 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute 16790 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS. 16791 * Indicates the link mapping bitmap of a TID for uplink traffic. It is a 16792 * bitmask of the link IDs in which a bit set means that the TID is mapped with 16793 * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink 16794 * traffic for that link. 16795 * 16796 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute 16797 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS. 16798 * Indicates the link mapping bitmap of a TID for downlink traffic. It is a 16799 * bitmask of the link IDs in which a bit set means that the TID is mapped with 16800 * that link ID in downlink traffic. Otherwise, the TID is not mapped to 16801 * downlink traffic for that link. 16802 */ 16803 enum qca_wlan_vendor_attr_tid_link_map_status { 16804 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0, 16805 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1, 16806 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2, 16807 16808 /* keep last */ 16809 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST, 16810 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX = 16811 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1, 16812 }; 16813 16814 /* 16815 * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with 16816 * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event. 16817 * 16818 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte 16819 * AP MLD address with which this TID-to-link negotiation mapping is 16820 * established/updated. 16821 * 16822 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of 16823 * nested attributes containing TID-to-links mapping information. This will have 16824 * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink 16825 * map information. If this attribute is not present the default TID-to-link 16826 * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and 16827 * downlink traffic. 16828 * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes. 16829 */ 16830 enum qca_wlan_vendor_attr_tid_to_link_map { 16831 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0, 16832 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1, 16833 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2, 16834 16835 /* keep last */ 16836 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST, 16837 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX = 16838 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1, 16839 }; 16840 16841 /** 16842 * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used 16843 * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event. 16844 * 16845 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute. 16846 * 6-byte AP MLD address of the AP which indicated the link reconfiguration. 16847 * 16848 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute. 16849 * A bitmap of the removed setup links link IDs. 16850 */ 16851 enum qca_wlan_vendor_attr_link_reconfig { 16852 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0, 16853 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1, 16854 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2, 16855 16856 /* keep last */ 16857 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST, 16858 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX = 16859 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1, 16860 }; 16861 16862 /** 16863 * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by 16864 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command. 16865 * 16866 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute. 16867 * Indicates the MLO link id on which the TDLS discovery response 16868 * frame is to be transmitted. 16869 */ 16870 enum qca_wlan_vendor_attr_tdls_disc_rsp_ext { 16871 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0, 16872 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1, 16873 16874 /* Keep last */ 16875 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST, 16876 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX = 16877 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1, 16878 }; 16879 16880 /** 16881 * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states. 16882 * 16883 * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status 16884 * for all stations. 16885 * 16886 * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to 16887 * establish the session. 16888 * 16889 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is 16890 * established. 16891 * 16892 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS 16893 * session is established using MCC. 16894 * 16895 * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was 16896 * established, but is temporarily dropped currently. 16897 * 16898 * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish. 16899 */ 16900 enum qca_wlan_vendor_tdls_state { 16901 QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1, 16902 QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2, 16903 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3, 16904 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4, 16905 QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5, 16906 QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6, 16907 }; 16908 16909 /** 16910 * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons. 16911 * 16912 * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established. 16913 * 16914 * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason. 16915 * 16916 * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported. 16917 * 16918 * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported. 16919 * 16920 * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better 16921 * than through direct link. 16922 * 16923 * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS 16924 * session anymore. 16925 */ 16926 16927 enum qca_wlan_vendor_tdls_reason { 16928 QCA_WLAN_TDLS_REASON_SUCCESS = 0, 16929 QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1, 16930 QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2, 16931 QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3, 16932 QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4, 16933 QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5, 16934 }; 16935 16936 /** 16937 * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by 16938 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command. 16939 * 16940 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer 16941 * station to enable the TDLS session. Optional attribute. The driver sends the 16942 * TDLS session result as an asynchronous response using the command 16943 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in 16944 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command. 16945 * 16946 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the 16947 * channel on which the TDLS session to be established. Required only when 16948 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present. 16949 * 16950 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute. 16951 * Indicates the global operating class of the TDLS session to be established. 16952 * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present. 16953 * 16954 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates 16955 * the maximum latency of the WLAN packets to be transmitted/received in 16956 * milliseconds on TDLS session. Required only when 16957 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present. 16958 * 16959 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute. 16960 * Indicates the minimum bandwidth to be used to establish the TDLS session 16961 * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is 16962 * present. 16963 */ 16964 enum qca_wlan_vendor_attr_tdls_enable { 16965 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0, 16966 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1, 16967 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2, 16968 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3, 16969 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4, 16970 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5, 16971 16972 /* keep last */ 16973 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST, 16974 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX = 16975 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1, 16976 }; 16977 16978 /** 16979 * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by 16980 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command. 16981 * 16982 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer 16983 * station to disable the TDLS session. Optional attribute. 16984 */ 16985 enum qca_wlan_vendor_attr_tdls_disable { 16986 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0, 16987 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1, 16988 16989 /* keep last */ 16990 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST, 16991 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX = 16992 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1, 16993 }; 16994 16995 /** 16996 * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by 16997 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command. 16998 * 16999 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the 17000 * peer station. Optional attribute. Used in 17001 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response. 17002 * 17003 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the 17004 * TDLS session state with the peer specified in 17005 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from 17006 * enum qca_wlan_vendor_tdls_state. Used in 17007 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 17008 * 17009 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the 17010 * reason for the TDLS session state indicated in 17011 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum 17012 * qca_wlan_vendor_tdls_reason. Used in 17013 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 17014 * 17015 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the 17016 * channel of the TDLS session established with 17017 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in 17018 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 17019 * 17020 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute. 17021 * Indicates the global operating class of the TDLS session established with 17022 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in 17023 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 17024 * 17025 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates 17026 * the current number of active TDLS sessions. This is indicated in the response 17027 * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with 17028 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute. 17029 * 17030 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates 17031 * whether the driver can initiate new TDLS session. This is indicated in the 17032 * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with 17033 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute. 17034 */ 17035 enum qca_wlan_vendor_attr_tdls_get_status { 17036 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0, 17037 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1, 17038 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2, 17039 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3, 17040 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4, 17041 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5, 17042 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6, 17043 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7, 17044 17045 /* keep last */ 17046 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST, 17047 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX = 17048 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1, 17049 }; 17050 17051 /** 17052 * enum qca_wlan_vendor_attr_tdls_state - Attributes used by 17053 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command. 17054 * 17055 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the 17056 * peer station. Required attribute. 17057 * 17058 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates 17059 * the current TDLS state. Required attribute. Uses the values from 17060 * enum qca_wlan_vendor_tdls_state. 17061 * 17062 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the 17063 * reason of the current TDLS session state. Required attribute. Uses the values 17064 * from enum qca_wlan_vendor_tdls_reason. 17065 * 17066 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the 17067 * TDLS session channel. Required attribute. 17068 * 17069 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute. 17070 * Indicates the TDLS session global operating class. Required attribute. 17071 */ 17072 enum qca_wlan_vendor_attr_tdls_state { 17073 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0, 17074 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1, 17075 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2, 17076 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3, 17077 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4, 17078 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5, 17079 17080 /* keep last */ 17081 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST, 17082 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX = 17083 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1, 17084 }; 17085 17086 /* 17087 * enum qca_wlan_vendor_opm_mode - Modes supported by 17088 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute. 17089 * 17090 * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled 17091 * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled 17092 * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user 17093 * to configure power save inactivity timeout and speculative wake up 17094 * interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and 17095 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes. 17096 */ 17097 17098 enum qca_wlan_vendor_opm_mode { 17099 QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0, 17100 QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1, 17101 QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2, 17102 }; 17103 17104 /* enum qca_wlan_audio_transport_switch_type - Represents the possible transport 17105 * switch types. 17106 * 17107 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN: Request to route audio data 17108 * via non-WLAN transport (ex: bluetooth). 17109 * 17110 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN: Request to route audio data via 17111 * WLAN transport. 17112 */ 17113 enum qca_wlan_audio_transport_switch_type { 17114 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN = 0, 17115 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN = 1, 17116 }; 17117 17118 /** 17119 * enum qca_wlan_audio_transport_switch_status - Represents the status of audio 17120 * transport switch request. 17121 * 17122 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED: Request to switch transport 17123 * has been rejected. For ex: when transport switch is requested from WLAN 17124 * to non-WLAN transport, user space modules and peers would evaluate the switch 17125 * request and may not be ready for switch and hence switch to non-WLAN transport 17126 * gets rejected. 17127 * 17128 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED: Request to switch transport 17129 * has been completed. This is sent only in command path. Ex: when host driver 17130 * had requested for audio transport switch and userspace modules as well as 17131 * peers are ready for the switch, userspace module switches the transport and 17132 * sends subcommand with status completed to host driver. 17133 */ 17134 enum qca_wlan_audio_transport_switch_status { 17135 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED = 0, 17136 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED = 1, 17137 }; 17138 17139 /** 17140 * enum qca_wlan_vendor_attr_audio_transport_switch - Attributes used by 17141 * %QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH vendor command. 17142 * 17143 * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE: u8 attribute. Indicates 17144 * the transport switch type from one of the values in enum 17145 * qca_wlan_audio_transport_switch_type. This is mandatory param in both 17146 * command and event path. This attribute is included in both requests and 17147 * responses. 17148 * 17149 * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS: u8 attribute. Indicates 17150 * the transport switch status from one of the values in enum 17151 * qca_wlan_audio_transport_switch_status. This is optional param and used in 17152 * both command and event path. This attribute must not be included in requests. 17153 */ 17154 enum qca_wlan_vendor_attr_audio_transport_switch { 17155 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_INVALID = 0, 17156 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE = 1, 17157 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS = 2, 17158 /* keep last */ 17159 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST, 17160 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_MAX = 17161 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST - 1, 17162 }; 17163 17164 /* 17165 * enum qca_wlan_vendor_tx_latency_type - Represents the possible latency 17166 * types. 17167 * 17168 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER: Per MSDU latency 17169 * from: An MSDU is presented to the driver 17170 * to: the MSDU is queued into TCL SRNG 17171 * 17172 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING: Per MSDU latency 17173 * from: the MSDU is queued into TCL SRNG 17174 * to: the MSDU is released by the driver 17175 * 17176 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW: Per MSDU latency 17177 * from: the MSDU is presented to the hardware 17178 * to: the MSDU is released by the hardware 17179 * 17180 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA: Per PPDU latency 17181 * The time spent on Clear Channel Assessment, the maximum value is 50000 (us) 17182 * from: A PPDU is presented to the hardware LMAC 17183 * to: over-the-air transmission is started for the PPDU 17184 */ 17185 enum qca_wlan_vendor_tx_latency_type { 17186 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER = 0, 17187 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING = 1, 17188 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW = 2, 17189 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA = 3, 17190 }; 17191 17192 /** 17193 * enum qca_wlan_vendor_attr_tx_latency_bucket - Definition of attributes 17194 * used inside nested attributes 17195 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS and 17196 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS. 17197 * 17198 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE: u8 attribute. 17199 * Indicates the latency type. 17200 * See enum qca_wlan_vendor_tx_latency_type for the supported types. 17201 * 17202 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY: u32 attribute. 17203 * Indicates the granularity (in microseconds) of the distribution for the 17204 * type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE), the value 17205 * must be positive. 17206 * If %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE is 17207 * %QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA, the value must be an integer multiple 17208 * of 1000, and the maximum allowed value is 15000 (us). 17209 * 17210 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE: u32 attribute. 17211 * Indicates the average of the latency (in microseconds) for the type 17212 * (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE) within a cycle. 17213 * If there is no transmitted MSDUs/MPDUs during a cycle, this average is 0; 17214 * otherwise, it represents the quotient of <accumulated latency of the 17215 * transmitted MSDUs/MPDUs in a cycle> divided by <the number of the transmitted 17216 * MSDUs/MPDUs in a cycle>. 17217 * 17218 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION: 17219 * Array of u32, 4 elements in total, represents the latency distribution for 17220 * the type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE). 17221 * Each element holds the count of MSDUs/PPDUs (according to the latency type) 17222 * within a range: 17223 * element[0]: latency >= 0 && latency < granularity 17224 * element[1]: latency >= granularity && latency < granularity * 2 17225 * element[2]: latency >= granularity * 2 && latency < granularity * 3 17226 * element[3]: latency >= granularity * 3 17227 */ 17228 enum qca_wlan_vendor_attr_tx_latency_bucket { 17229 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_INVALID = 0, 17230 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE = 1, 17231 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY = 2, 17232 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE = 3, 17233 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION = 4, 17234 17235 /* keep last */ 17236 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST, 17237 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_MAX = 17238 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST - 1, 17239 }; 17240 17241 /** 17242 * enum qca_wlan_vendor_attr_tx_latency_link - Definition of attributes 17243 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS. 17244 * 17245 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE: 6-byte MAC address. 17246 * Indicates link MAC address of the remote peer. For example, when running 17247 * in station mode, it's the BSSID of the link; while when running in AP 17248 * mode, it's the link MAC address of the remote station. 17249 * 17250 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS: 17251 * Array of nested attribute. 17252 * Represents the transmit latency statistics for the link specified by 17253 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE. 17254 * Each entry represents the statistics for one of the types defined in 17255 * enum qca_wlan_vendor_tx_latency_type. 17256 * Each defined type has and must have one entry. 17257 * See enum qca_wlan_vendor_attr_tx_latency_bucket for nested attributes. 17258 */ 17259 enum qca_wlan_vendor_attr_tx_latency_link { 17260 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_INVALID = 0, 17261 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE = 1, 17262 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS = 2, 17263 17264 /* keep last */ 17265 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST, 17266 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAX = 17267 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST - 1, 17268 }; 17269 17270 /** 17271 * enum qca_wlan_vendor_tx_latency_action - Represents the possible actions 17272 * for %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY. 17273 * 17274 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE: 17275 * Disable transmit latency monitoring. 17276 * 17277 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE: 17278 * Enable transmit latency monitoring. 17279 * 17280 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET: 17281 * Get transmit latency statistics of the last cycle (period is specified by 17282 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD). 17283 */ 17284 enum qca_wlan_vendor_tx_latency_action { 17285 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE = 0, 17286 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE = 1, 17287 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET = 2, 17288 }; 17289 17290 /** 17291 * enum qca_wlan_vendor_attr_tx_latency - Definition of attributes used by 17292 * %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY to configure, retrieve, and report 17293 * per-link transmit latency statistics. 17294 * 17295 * There are 6 uses of %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY: 17296 * 1) used as a command to enable the feature 17297 * Precondition(s): 17298 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 17299 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE 17300 * Mandatory attribute(s): 17301 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION, 17302 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD, 17303 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS with nested attributes 17304 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE, 17305 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY. 17306 * Notes: 17307 * The driver will monitor the transmit latency for the active links 17308 * and save the statistics for each cycle (period is set by 17309 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD) when the feature is enabled. 17310 * Set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT if periodical 17311 * report is required. 17312 * 17313 * 2) used as a command to disable the feature 17314 * Precondition(s): 17315 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 17316 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE 17317 * Mandatory attribute(s): 17318 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION 17319 * 17320 * 3) used as a command to retrieve the statistics for all the active links on 17321 * the requested interface 17322 * Precondition(s): 17323 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 17324 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and 17325 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is NOT present. 17326 * Mandatory attribute(s): 17327 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION 17328 * Notes: 17329 * The driver returns failure directly if the feature is not enabled or 17330 * there is no active link. 17331 * The driver returns the statistics of the last cycle in the case of 17332 * success. 17333 * 17334 * 4) used as a command to retrieve the statistics for the specified links 17335 * Precondition(s): 17336 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 17337 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and 17338 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is present. 17339 * Mandatory attribute(s): 17340 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION, 17341 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attribute 17342 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE. 17343 * Notes: 17344 * The driver returns failure directly if the feature is not enabled or 17345 * any of the links (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS) 17346 * does not exist or is not in active state. 17347 * 17348 * 5) used as a command response for #3 or #4 17349 * Precondition(s): 17350 * Userspace issues command #3 or #4, and the driver gets corresponding 17351 * statistics successfully. 17352 * Mandatory attribute(s): 17353 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes 17354 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE, 17355 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested 17356 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE, 17357 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY, 17358 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and 17359 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION. 17360 * 17361 * 6) used as an asynchronous event to report the statistics periodically 17362 * Precondition(s): 17363 * Userspace set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT in 17364 * #1. 17365 * One or more links are in active state. 17366 * Mandatory attribute(s): 17367 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes 17368 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE, 17369 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested 17370 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE, 17371 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY, 17372 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and 17373 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION. 17374 * 17375 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID: Invalid attribute 17376 * 17377 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION: u32 attribute. 17378 * Action to take in this vendor command. 17379 * See enum qca_wlan_vendor_tx_latency_action for supported actions. 17380 * 17381 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT: Flag attribute. 17382 * Enable (flag attribute present) - The driver needs to report transmit latency 17383 * statistics at the end of each statistical period. 17384 * Disable (flag attribute not present) - The driver doesn't need to report 17385 * transmit latency statistics periodically. 17386 * 17387 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD: u32 attribute. 17388 * Indicates statistical period for transmit latency in terms of milliseconds, 17389 * the minimal allowed value is 100 and the maximum allowed value is 60000. 17390 * 17391 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS: Array of nested attribute. 17392 * Each entry represents the latency buckets configuration for one of the types 17393 * defined in enum qca_wlan_vendor_tx_latency_type. 17394 * Each defined type has and must have one entry. 17395 * See enum qca_wlan_vendor_attr_tx_latency_bucket for the list of 17396 * supported attributes. 17397 * 17398 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS: Array of nested attribute. 17399 * Information of the links, each entry represents for one link. 17400 * See enum qca_wlan_vendor_attr_tx_latency_link for the list of 17401 * supported attributes for each entry. 17402 */ 17403 enum qca_wlan_vendor_attr_tx_latency { 17404 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID = 0, 17405 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION = 1, 17406 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT = 2, 17407 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD = 3, 17408 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS = 4, 17409 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS = 5, 17410 17411 /* keep last */ 17412 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST, 17413 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_MAX = 17414 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST - 1, 17415 }; 17416 17417 /** 17418 * qca_wlan_vendor_attr_RECONFIG_REMOVE_COMPLETE_EVENT - Defines attributes for 17419 * ML Reconfig (Mlo Link removal) parameters used by the attribute 17420 * @QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_IFINDEX: u32 attribute 17421 * used to pass the netdev ifindex of the MLO Reconfiguration link. 17422 */ 17423 enum qca_wlan_vendor_attr_reconfig_remove_complete_EVENT { 17424 QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_IFINDEX = 0, 17425 17426 /* keep last */ 17427 QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_AFTER_LAST, 17428 QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_MAX = 17429 QCA_WLAN_VENDOR_ATTR_RECONFIG_REMOVE_COMPLETE_EVENT_AFTER_LAST - 1, 17430 }; 17431 17432 /** 17433 * enum qca_wlan_vendor_attr_tpc_pwr_level - Definition of attributes 17434 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL. 17435 * 17436 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY: u32 channel center 17437 * frequency (MHz): If PSD power, carries one 20 MHz sub-channel center 17438 * frequency. If non PSD power, carries either 20 MHz bandwidth's center 17439 * channel frequency or 40 MHz bandwidth's center channel frequency 17440 * (or 80/160 MHz bandwidth's center channel frequency). 17441 * 17442 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER: s8 transmit power limit (dBm). 17443 * If PSD power, carries PSD power value of the 17444 * QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY mentioned sub-channel. 17445 * If non PSD power, carries EIRP power value of bandwidth mentioned 17446 * by QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY center frequency. 17447 */ 17448 enum qca_wlan_vendor_attr_tpc_pwr_level { 17449 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_INVALID = 0, 17450 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY = 1, 17451 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER = 2, 17452 17453 /* keep last */ 17454 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST, 17455 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_MAX = 17456 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST - 1, 17457 }; 17458 17459 /** 17460 * enum qca_wlan_vendor_tpc - Definition of link attributes 17461 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_LINKS. 17462 * 17463 * @QCA_WLAN_VENDOR_ATTR_TPC_BSSID: 6-bytes AP BSSID. 17464 * For MLO STA, AP BSSID indicates the AP's link address. 17465 * 17466 * @QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER: PSD power flag 17467 * Indicates using PSD power mode if this flag is present. 17468 * 17469 * @QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER: s8 Regulatory EIRP power 17470 * value in dBm 17471 * 17472 * @QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ: u8 power type of 6 GHz 17473 * AP, refer to Table E-12-Regulatory Info subfield encoding in 17474 * IEEE P802.11-REVme/D4.0. Only present if link is connected to 6 GHz AP. 17475 * 17476 * @QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER: u8 Local Power Constraint 17477 * (dBm) advertised by AP in Power Constraint element, refer to 17478 * IEEE Std 802.11-2020, 9.4.2.13 Power Constraint element. 17479 * 17480 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL: A nested attribute containing 17481 * attributes defined by enum qca_wlan_vendor_attr_tpc_pwr_level. 17482 * If PSD power, each power level describes each 20 MHz subchannel PSD 17483 * power value. If non PSD power, each power level describes each supported 17484 * bandwidth's EIRP power value (up to Max bandwidth of AP operating on), 17485 * each level attribute contains corresponding bandwidth's center channel 17486 * frequency and its EIRP power value. 17487 */ 17488 enum qca_wlan_vendor_attr_tpc { 17489 QCA_WLAN_VENDOR_ATTR_TPC_INVALID = 0, 17490 QCA_WLAN_VENDOR_ATTR_TPC_BSSID = 1, 17491 QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER = 2, 17492 QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER = 3, 17493 QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ = 4, 17494 QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER = 5, 17495 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL = 6, 17496 17497 /* keep last */ 17498 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST, 17499 QCA_WLAN_VENDOR_ATTR_TPC_MAX = 17500 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1, 17501 }; 17502 17503 /** 17504 * enum qca_wlan_vendor_attr_tpc_links - Definition of attributes 17505 * for %QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO subcommand 17506 * 17507 * @QCA_WLAN_VENDOR_ATTR_TPC_LINKS: A nested attribute containing 17508 * per-link TPC information of all the active links of MLO STA. 17509 * For non MLO STA, only one link TPC information will be returned 17510 * for connected AP in this nested attribute. 17511 * The attributes used inside this nested attributes are defined 17512 * in enum qca_wlan_vendor_attr_tpc. 17513 */ 17514 enum qca_wlan_vendor_attr_tpc_links { 17515 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_INVALID = 0, 17516 QCA_WLAN_VENDOR_ATTR_TPC_LINKS = 1, 17517 17518 /* keep last */ 17519 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_AFTER_LAST, 17520 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_MAX = 17521 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1, 17522 }; 17523 17524 /** 17525 * enum qca_wlan_btm_support: BTM support configuration 17526 * 17527 * @QCA_WLAN_BTM_SUPPORT_DEFAULT: Restore default BTM support policy. The driver 17528 * follows the BSS Transition bit in the Extended Capabilities element from the 17529 * connect request IEs with the default BTM support policy. 17530 * 17531 * @QCA_WLAN_BTM_SUPPORT_DISABLE: Disable BTM support for the subsequent 17532 * (re)association attempts. The driver shall restore the default BTM support 17533 * policy during the first disconnection after successful association. When this 17534 * configuration is enabled, the driver shall overwrite the BSS Transition bit 17535 * as zero in the Extended Capabilities element while sending (Re)Association 17536 * Request frames. Also, the driver shall drop the BTM frames from userspace and 17537 * the connected AP when this configuration is enabled. 17538 */ 17539 enum qca_wlan_btm_support { 17540 QCA_WLAN_BTM_SUPPORT_DEFAULT = 0, 17541 QCA_WLAN_BTM_SUPPORT_DISABLE = 1, 17542 }; 17543 #endif 17544