1 /* 2 * Qualcomm Atheros OUI and vendor specific assignments 3 * Copyright (c) 2014-2017, Qualcomm Atheros, Inc. 4 * Copyright (c) 2018-2020, The Linux Foundation 5 * Copyright (c) 2021-2023, Qualcomm Innovation Center, Inc. 6 * 7 * This software may be distributed under the terms of the BSD license. 8 * See README for more details. 9 */ 10 11 #ifndef QCA_VENDOR_H 12 #define QCA_VENDOR_H 13 14 /* 15 * This file is a registry of identifier assignments from the Qualcomm Atheros 16 * OUI 00:13:74 for purposes other than MAC address assignment. New identifiers 17 * can be assigned through normal review process for changes to the upstream 18 * hostap.git repository. 19 */ 20 21 #define OUI_QCA 0x001374 22 23 #ifndef BIT 24 #define BIT(x) (1U << (x)) 25 #endif 26 27 /** 28 * enum qca_radiotap_vendor_ids - QCA radiotap vendor namespace IDs 29 */ 30 enum qca_radiotap_vendor_ids { 31 QCA_RADIOTAP_VID_WLANTEST = 0, 32 }; 33 34 /** 35 * DOC: TX/RX NSS and chain configurations 36 * This document describes all of the attributes used in the vendor command 37 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION to configure the number of 38 * spatial streams (NSS) and the number of chains used for transmitting (TX) and 39 * receiving (RX) the data. 40 * 41 * Global NSS configuration - Applies to all bands (2.4 GHz and 5/6 GHz) 42 * The following attributes are used to dynamically configure the number of 43 * spatial streams to be used for transmitting or receiving the data in the 44 * 2.4 GHz and 5/6 GHz bands. When configured in disconnected state, the 45 * updated configuration will be considered for the immediately following 46 * connection attempt. If the NSS is updated during a connection, the updated 47 * NSS value is notified to the peer using operating mode notification/spatial 48 * multiplexing power save frame. The updated NSS value after the connection 49 * shall not be greater than the one negotiated during the connection. The 50 * driver rejects any such higher value configuration with a failure. 51 * 52 * @QCA_WLAN_VENDOR_ATTR_CONFIG_NSS: Only symmetric NSS configuration 53 * (such as 2X2 or 1X1) can be done using this attribute. 54 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS: Configure NSS for transmitting the data 55 * @QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS: Configure NSS for receiving the data 56 * 57 * The QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS and QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS 58 * attributes must be defined together or the driver will reject the command 59 * with a failure. They can be used to configure either symmetric NSS 60 * configuration (such as 2X2 or 1X1) or asymmetric configuration (such as 1X2). 61 * 62 * Per band NSS configuration - Applies to the 2.4 GHz or 5/6 GHz band 63 * The following attributes are used to dynamically configure the number of 64 * spatial streams to be used for transmitting or receiving the data in the 65 * 2.4 GHz band or 5/6 GHz band. All these attributes must be defined together 66 * to configure symmetric NSS configuration (such as 1X1 or 2X2) or asymmetric 67 * NSS configuration (such as 1X2). If any of the attributes is missing, the 68 * driver will reject the command with a failure. This configuration is allowed 69 * only when in connected state and will be effective until disconnected. The 70 * NSS value configured after the connection shall not be greater than the value 71 * negotiated during the connection. Any such higher value configuration shall 72 * be treated as invalid configuration by the driver. 73 * 74 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS_2GHZ: Configure TX_NSS in 2.4 GHz band 75 * @QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS_2GHZ: Configure RX_NSS in 2.4 GHz band 76 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS_5GHZ: Configure TX_NSS in 5 or 6 GHz band 77 * @QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS_5GHZ: Configure RX_NSS in 5 or 6 GHz band 78 * 79 * Global chain configuration - Applies to all bands (2.4 GHz and 5/6 GHz) 80 * The following attributes are used to dynamically configure the number of 81 * chains to be used for transmitting or receiving the data in the 2.4 GHz and 82 * 5/6 GHz bands. This configuration is allowed only when in connected state 83 * and will be effective until disconnected. The driver rejects this 84 * configuration if the number of spatial streams being used in the current 85 * connection cannot be supported by this configuration. 86 * 87 * @QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS: The number of chains to be used 88 * for transmitting the data in both the 2.4 GHz and 5/6 GHz bands. 89 * @QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS: The number of chains to be used 90 * for receiving the data in both the 2.4 GHz and 5/6 GHz bands. 91 * 92 * The attributes QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS and 93 * QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS must be defined together or the 94 * driver will reject the command with a failure. 95 * 96 * Per band chain configuration - Applies to the 2.4 GHz or 5/6 GHz band 97 * The following band specific attributes are used to dynamically configure the 98 * number of chains to be used for tranmissting or receiving the data in the 99 * 2.4 GHz or 5/6 GHz band. These attributes must be defined together or the 100 * driver will reject the command. This configuration is allowed only when in 101 * connected state and will be effective until disconnected. The driver rejects 102 * this configuration if the number of spatial streams being used in the 103 * current connection cannot be supported by this configuration. 104 * 105 * @QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS_2GHZ: The number of chains to be 106 * used for transmitting the data in the 2.4 GHz band. 107 * @QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS_2GHZ: The number of chains to be 108 * used for receiving the data in the 2.4 GHz band. 109 * @QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS_5GHZ: The number of chains to be 110 * used for transmitting the data in the 5/6 GHz band. 111 * @QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS_5GHZ: The number of chains to be 112 * used for receiving the data in the 5/6 GHz band. 113 * 114 * The following scenarios capture how the driver process the configuration when 115 * different TX/RX NSS and chain config attributes are used in the command. 116 * 117 * Case 1: CONFIG_NSS + CONFIG_TX_NSS/RX_NSS - Only CONFIG_NSS is applied 118 * since only one of the TX_NSS or RX_NSS attribute is present. 119 * 120 * Case 2: CONFIG_NSS + CONFIG_TX_NSS + CONFIG_RX_NSS - Same NSS values are 121 * used to configure TX,RX in both the 2.4 GHz and 5/6 GHz bands. 122 * 123 * Case 3: Case 2 + NUM_TX_CHAINS + NUM_RX_CHAINS - The NSS and the number of 124 * chains values are used to configure TX,RX in both the 2.4 GHz and 5/6 GHz 125 * bands. 126 * 127 * Case 4: TX_NSS_2GHZ/TX_NSS_5GHZ + RX_NSS_2GHZ/RX_NSS_5GHZ - Since per band 128 * TX/RX NSS attribute is missing, the driver rejects the command. 129 * 130 * Case 5: TX_NSS_2GHZ + TX_NSS_5GHZ + RX_NSS_2GHZ + RX_NSS_5GHZ - The 2.4 GHz 131 * band is configured with the TX_NSS_2GHZ, RX_NSS_2GHZ values. The 5/6 GHz band 132 * is configured with the TX_NSS_5GHZ, RX_NSS_5GHZ values. 133 * 134 * Case 6: TX_CHAINS_2GHZ/TX_CHAINS_5GHZ + RX_CHAINS_5GHZ/RX_CHAINS_5GHZ - Since 135 * per band TX/RX chains attribute is missing, the driver rejects the command. 136 * 137 * Case 7: TX_CHAINS_2GHZ + TX_CHAINS_5GHZ + RX_CHAINS_5GHZ + RX_CHAINS_5GHZ - 138 * The 2.4 GHz band is configured with the TX_CHAINS_2GHZ, RX_CHAINS_2GHZ 139 * values. The 5/6 GHz band is configured with the TX_CHAINS_5GHZ, 140 * RX_CHAINS_5GHZ values. 141 * 142 * Case 8: Case 5 + Case 7 - Per band TX,RX NSS and chains are configured. 143 * 144 * Case 9: Case 2 + Case 8 - Per band TX,RX NSS and chains are configured. 145 */ 146 147 /** 148 * enum qca_nl80211_vendor_subcmds - QCA nl80211 vendor command identifiers 149 * 150 * @QCA_NL80211_VENDOR_SUBCMD_UNSPEC: Reserved value 0 151 * 152 * @QCA_NL80211_VENDOR_SUBCMD_TEST: Test command/event 153 * 154 * @QCA_NL80211_VENDOR_SUBCMD_ROAMING: Set roaming policy for drivers that use 155 * internal BSS-selection. This command uses 156 * @QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY to specify the new roaming policy 157 * for the current connection (i.e., changes policy set by the nl80211 158 * Connect command). @QCA_WLAN_VENDOR_ATTR_MAC_ADDR may optionally be 159 * included to indicate which BSS to use in case roaming is disabled. 160 * 161 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY: Recommendation of frequency 162 * ranges to avoid to reduce issues due to interference or internal 163 * co-existence information in the driver. These frequencies aim to 164 * minimize the traffic but not to totally avoid the traffic. That said 165 * for a P2P use case, these frequencies are allowed for the P2P 166 * discovery/negotiation but avoid the group to get formed on these 167 * frequencies. The event data structure is defined in 168 * struct qca_avoid_freq_list. 169 * 170 * @QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY: Command to check driver support 171 * for DFS offloading. 172 * 173 * @QCA_NL80211_VENDOR_SUBCMD_NAN: NAN command/event which is used to pass 174 * NAN Request/Response and NAN Indication messages. These messages are 175 * interpreted between the framework and the firmware component. While 176 * sending the command from userspace to the driver, payload is not 177 * encapsulated inside any attribute. Attribute QCA_WLAN_VENDOR_ATTR_NAN 178 * is used when receiving vendor events in userspace from the driver. 179 * 180 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE: This command is used to enable TDLS 181 * capability or to form a session with the specified peer. 182 * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this 183 * indicates to enable TDLS capability on the interface. 184 * If %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is nested in 185 * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to 186 * form a TDLS session with the specified peer MAC address. 187 * The attributes used with this command are defined in 188 * enum qca_wlan_vendor_attr_tdls_enable. 189 * 190 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE: This command is used to disable TDLS 191 * capability or to terminate the session with the specified peer. 192 * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this 193 * indicates to disable TDLS capability on the interface. 194 * If %QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR is nested in 195 * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to 196 * terminate TDLS session with the specified peer MAC address. 197 * The attributes used with this command are defined in 198 * enum qca_wlan_vendor_attr_tdls_disable. 199 * 200 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS: This command is to get the TDLS 201 * status at the interface level or with the specific peer. 202 * If %NL80211_ATTR_VENDOR_DATA is sent as an empty nested attribute this 203 * indicates the TDLS status query is at interface level. 204 * If %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR is nested in 205 * %NL80211_ATTR_VENDOR_DATA this indicates the userspace requests to 206 * get TDLS session status with the specified peer MAC address. 207 * The attributes used with this command are defined in 208 * enum qca_wlan_vendor_attr_tdls_get_status. 209 * 210 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE: This event is to indicate the result 211 * of the TDLS session request with the peer sent by userspace in 212 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE. 213 * The attributes used with this command are defined in 214 * enum qca_wlan_vendor_attr_tdls_state. 215 * 216 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY: Set key operation that can be 217 * used to configure PMK to the driver even when not connected. This can 218 * be used to request offloading of key management operations. Only used 219 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD. 220 * 221 * @QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH: An extended version of 222 * NL80211_CMD_ROAM event with optional attributes including information 223 * from offloaded key management operation. Uses 224 * enum qca_wlan_vendor_attr_roam_auth attributes. Only used 225 * if device supports QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD. 226 * 227 * @QCA_NL80211_VENDOR_SUBCMD_DO_ACS: ACS command/event which is used to 228 * invoke the ACS function in device and pass selected channels to 229 * hostapd. Uses enum qca_wlan_vendor_attr_acs_offload attributes. 230 * 231 * @QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES: Command to get the features 232 * supported by the driver. enum qca_wlan_vendor_features defines 233 * the possible features. 234 * 235 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver, 236 * which supports DFS offloading, to indicate a channel availability check 237 * start. 238 * 239 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver, 240 * which supports DFS offloading, to indicate a channel availability check 241 * completion. 242 * 243 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver, 244 * which supports DFS offloading, to indicate that the channel availability 245 * check aborted, no change to the channel status. 246 * 247 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by 248 * driver, which supports DFS offloading, to indicate that the 249 * Non-Occupancy Period for this channel is over, channel becomes usable. 250 * 251 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver, 252 * which supports DFS offloading, to indicate a radar pattern has been 253 * detected. The channel is now unusable. 254 * 255 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: Get information from the driver. 256 * Attributes defined in enum qca_wlan_vendor_attr_get_wifi_info. 257 * 258 * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: This command is used to 259 * configure various wiphy or interface level configurations. Attributes 260 * are defined in enum qca_wlan_vendor_attr_config. Userspace can send one 261 * or more configuration attributes with a single command. The driver 262 * accepts the command only if all the configurations are known, otherwise 263 * it rejects the command. The driver returns success only if processing of 264 * all the configurations succeeds. The driver continues to process all the 265 * configurations even if processing of some configurations failed and 266 * returns the last error occurred while processing the failed 267 * configurations. 268 * 269 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: This command is used to 270 * get the current values of the various wiphy or interface level 271 * configurations. Attributes are defined in enum 272 * qca_wlan_vendor_attr_config. Userspace needs to specify the 273 * configuration attributes for which it wants to get the values in the 274 * command, there is no significance for the value sent in the attribute 275 * unless explicitly specified in the corresponding configuration 276 * attribute documentation. The driver accepts the command only if all the 277 * configurations are known, otherwise it rejects the command. The driver 278 * returns success only if fetching of all configuration values succeeds 279 * and indicates the configuration values in corresponding attributes in 280 * the response. The driver continues to process all the configurations 281 * even if processing of some configurations failed and returns the last 282 * error occurred while processing the failed configurations. 283 * 284 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap 285 * based on enum wifi_logger_supported_features. Attributes defined in 286 * enum qca_wlan_vendor_attr_get_logger_features. 287 * 288 * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular 289 * logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the 290 * attribute for this command. Attributes defined in 291 * enum qca_wlan_vendor_attr_wifi_logger_start. 292 * 293 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS 294 * capabilities of the driver, parameters includes the attributes defined 295 * in enum qca_wlan_vendor_attr_tdls_get_capabilities. 296 * 297 * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload 298 * sending of certain periodic IP packet to firmware, attributes defined in 299 * enum qca_wlan_vendor_attr_offloaded_packets. 300 * 301 * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI 302 * monitoring, defines min and max RSSI which are configured for RSSI 303 * monitoring. Also used to notify the RSSI breach and provides the BSSID 304 * and RSSI value that was breached. Attributes defined in 305 * enum qca_wlan_vendor_attr_rssi_monitoring. 306 * 307 * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN 308 * Data Path (NDP) related operations, attributes defined in 309 * enum qca_wlan_vendor_attr_ndp_params. 310 * 311 * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable 312 * Neighbour Discovery offload, attributes defined in 313 * enum qca_wlan_vendor_attr_nd_offload. 314 * 315 * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various 316 * configuration parameter for BPF packet filter, attributes defined in 317 * enum qca_wlan_vendor_attr_packet_filter. 318 * 319 * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware 320 * maximum supported size, attributes defined in 321 * enum qca_wlan_vendor_drv_info. 322 * 323 * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various 324 * data about wake reasons and datapath IP statistics, attributes defined 325 * in enum qca_wlan_vendor_attr_wake_stats. 326 * 327 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration 328 * for IEEE 802.11 communicating outside the context of a basic service 329 * set, called OCB command. Uses the attributes defines in 330 * enum qca_wlan_vendor_attr_ocb_set_config. 331 * 332 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB 333 * UTC time. Use the attributes defines in 334 * enum qca_wlan_vendor_attr_ocb_set_utc_time. 335 * 336 * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start 337 * sending OCB timing advert frames. Uses the attributes defines in 338 * enum qca_wlan_vendor_attr_ocb_start_timing_advert. 339 * 340 * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop 341 * OCB timing advert. Uses the attributes defines in 342 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert. 343 * 344 * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF 345 * timer value. Uses the attributes defines in 346 * enum qca_wlan_vendor_attr_ocb_get_tsf_resp. 347 * 348 * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the 349 * link properties of the respective interface. As an event, is used 350 * to notify the connected station's status. The attributes for this 351 * command are defined in enum qca_wlan_vendor_attr_link_properties. 352 * 353 * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the enabled band(s) 354 * to the driver. This command sets the band(s) through either the 355 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or 356 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK (or both). 357 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE refers enum qca_set_band as unsigned 358 * integer values and QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 359 * bit unsigned bitmask values. The allowed values for 360 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are limited to QCA_SETBAND_AUTO, 361 * QCA_SETBAND_5G, and QCA_SETBAND_2G. Other values/bitmasks are valid for 362 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The attribute 363 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the recommendation 364 * is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the both attributes 365 * are included for backwards compatibility, the configurations through 366 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK will take the precedence with drivers 367 * that support both attributes. 368 * 369 * @QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY: This command is used to configure 370 * DFS policy and channel hint for ACS operation. This command uses the 371 * attributes defined in enum qca_wlan_vendor_attr_acs_config and 372 * enum qca_acs_dfs_mode. 373 * 374 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to 375 * start the P2P Listen offload function in device and pass the listen 376 * channel, period, interval, count, device types, and vendor specific 377 * information elements to the device driver and firmware. 378 * Uses the attributes defines in 379 * enum qca_wlan_vendor_attr_p2p_listen_offload. 380 * 381 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to 382 * indicate stop request/response of the P2P Listen offload function in 383 * device. As an event, it indicates either the feature stopped after it 384 * was already running or feature has actually failed to start. Uses the 385 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload. 386 * 387 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts 388 * beaconing, this sub command provides the driver, the frequencies on the 389 * 5 GHz band to check for any radar activity. Driver selects one channel 390 * from this priority list provided through 391 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts 392 * to check for radar activity on it. If no radar activity is detected 393 * during the channel availability check period, driver internally switches 394 * to the selected frequency of operation. If the frequency is zero, driver 395 * internally selects a channel. The status of this conditional switch is 396 * indicated through an event using the same sub command through 397 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are 398 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch. 399 * 400 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the 401 * attributes defined in enum qca_wlan_gpio_attr. 402 * 403 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities. 404 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which 405 * capabilities are to be fetched and other 406 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the 407 * requested capabilities. 408 * 409 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension. 410 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this 411 * command and event. 412 * 413 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for 414 * indoor location features. Capabilities are reported in 415 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA. 416 * 417 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM 418 * (fine timing measurement) session with one or more peers. 419 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and 420 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS. 421 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT 422 * events will be reported, followed by 423 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate 424 * end of session. 425 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6 426 * 427 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session. 428 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with 429 * status code indicating session was aborted. 430 * 431 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement 432 * results for one peer. Results are reported in 433 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS. 434 * 435 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when 436 * FTM session is finished, either successfully or aborted by 437 * request. 438 * 439 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder 440 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether 441 * to enable or disable the responder. LCI/LCR reports can be 442 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and 443 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple 444 * times to update the LCI/LCR reports. 445 * 446 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of 447 * arrival) measurement with a single peer. Specify peer MAC address in 448 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in 449 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel 450 * scan results cache and use the frequency from there). 451 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE. 452 * Measurement result is reported in 453 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event. 454 * 455 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify 456 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR. 457 * 458 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports 459 * the AOA measurement result. 460 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR. 461 * success/failure status is reported in 462 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS. 463 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT. 464 * The antenna array(s) used in the measurement are reported in 465 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK. 466 * 467 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given 468 * data as per the given parameters. 469 * 470 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a 471 * specific chain. 472 * 473 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level 474 * configuration for a DMG RF sector. Specify sector index in 475 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in 476 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules 477 * to return sector information for in 478 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration 479 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the 480 * exact time where information was captured in 481 * QCA_WLAN_VENDOR_ATTR_TSF. 482 * 483 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level 484 * configuration for a DMG RF sector. Specify sector index in 485 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in 486 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration 487 * for one or more DMG RF modules in 488 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. 489 * 490 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected 491 * DMG RF sector for a station. This is the sector that the HW 492 * will use to communicate with the station. Specify the MAC address 493 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not 494 * needed for unassociated station). Specify sector type to return in 495 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected 496 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX. 497 * Also return the exact time where the information was captured 498 * in QCA_WLAN_VENDOR_ATTR_TSF. 499 * 500 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the 501 * selected DMG RF sector for a station. This is the sector that 502 * the HW will use to communicate with the station. 503 * Specify the MAC address of associated station/AP/PCP in 504 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in 505 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index 506 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX. 507 * The selected sector will be locked such that it will not be 508 * modified like it normally does (for example when station 509 * moves around). To unlock the selected sector for a station 510 * pass the special value 0xFFFF in the sector index. To unlock 511 * all connected stations also pass a broadcast MAC address. 512 * 513 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior 514 * in the host driver. The different TDLS configurations are defined 515 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration. 516 * 517 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE 518 * capabilities. The response uses the attributes defined in 519 * enum qca_wlan_vendor_attr_get_he_capabilities. 520 * 521 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was 522 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command 523 * carries the scan cookie of the corresponding scan request. The scan 524 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE. 525 * 526 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific 527 * Absorption Rate (SAR) power limits. A critical regulation for 528 * FCC compliance, OEMs require methods to set SAR limits on TX 529 * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits 530 * attributes are used with this command. 531 * 532 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the 533 * host driver for offloading the implementation of Auto Channel Selection 534 * (ACS) to an external user space entity. This interface is used as the 535 * event from the host driver to the user space entity and also as the 536 * request from the user space entity to the host driver. The event from 537 * the host driver is used by the user space entity as an indication to 538 * start the ACS functionality. The attributes used by this event are 539 * represented by the enum qca_wlan_vendor_attr_external_acs_event. 540 * User space entity uses the same interface to inform the host driver with 541 * selected channels after the ACS operation using the attributes defined 542 * by enum qca_wlan_vendor_attr_external_acs_channels. 543 * 544 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the 545 * requisite information leading to a power save failure. The information 546 * carried as part of this event is represented by the 547 * enum qca_attr_chip_power_save_failure attributes. 548 * 549 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics 550 * collection. Uses attributes defined in enum qca_attr_nud_stats_set. 551 * 552 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These 553 * statistics are represented by the enum qca_attr_nud_stats_get 554 * attributes. 555 * 556 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch 557 * the BSS transition status, whether accept or reject, for a list of 558 * candidate BSSIDs provided by the userspace. This uses the vendor 559 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and 560 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify 561 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an 562 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in 563 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response 564 * the driver shall specify array of 565 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and 566 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in 567 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. 568 * 569 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a 570 * specific QCA module. The trace levels are represented by 571 * enum qca_attr_trace_level attributes. 572 * 573 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement 574 * Protocol antenna limit in different modes. See enum 575 * qca_wlan_vendor_attr_brp_ant_limit_mode. 576 * 577 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan 578 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan. 579 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) 580 * identifying the operation in success case. In failure cases an 581 * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE) 582 * describing the reason for the failure is returned. 583 * 584 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses 585 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from 586 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to 587 * be stopped. 588 * 589 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the 590 * specific interface. This can be used to modify some of the low level 591 * scan parameters (off channel dwell time, home channel time) in the 592 * driver/firmware. These parameters are maintained within the host driver. 593 * This command is valid only when the interface is in the connected state. 594 * These scan parameters shall be reset by the driver/firmware once 595 * disconnected. The attributes used with this command are defined in 596 * enum qca_wlan_vendor_attr_active_tos. 597 * 598 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the 599 * driver has detected an internal failure. This event carries the 600 * information indicating the reason that triggered this detection. The 601 * attributes for this command are defined in 602 * enum qca_wlan_vendor_attr_hang. 603 * 604 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values 605 * of spectral parameters used. The spectral scan parameters are specified 606 * by enum qca_wlan_vendor_attr_spectral_scan. 607 * 608 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats 609 * for spectral scan functionality. The debug stats are specified by 610 * enum qca_wlan_vendor_attr_spectral_diag_stats. 611 * 612 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral 613 * scan system capabilities. The capabilities are specified 614 * by enum qca_wlan_vendor_attr_spectral_cap. 615 * 616 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current 617 * status of spectral scan. The status values are specified 618 * by enum qca_wlan_vendor_attr_spectral_scan_status. 619 * 620 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush 621 * peer pending packets. Specify the peer MAC address in 622 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets 623 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed 624 * in enum qca_wlan_vendor_attr_flush_pending. 625 * 626 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative 627 * RF Operating Parameter (RROP) information. The attributes for this 628 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is 629 * intended for use by external Auto Channel Selection applications. 630 * 631 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate 632 * (SAR) power limits. This is a companion to the command 633 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the 634 * settings currently in use. The attributes returned by this command are 635 * defined by enum qca_vendor_attr_sar_limits. 636 * 637 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of 638 * the WLAN hardware MAC. Also, provides the WLAN netdev interface 639 * information attached to the respective MAC. 640 * This works both as a query (user space asks the current mode) or event 641 * interface (driver advertising the current mode to the user space). 642 * Driver does not trigger this event for temporary hardware mode changes. 643 * Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion, 644 * channel change, etc.) are updated with this event. Attributes for this 645 * interface are defined in enum qca_wlan_vendor_attr_mac. 646 * 647 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold 648 * per peer per TID. Attributes for this command are define in 649 * enum qca_wlan_set_qdepth_thresh_attr. 650 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action 651 * guide for WLAN driver. Request to suspend of driver and FW if the 652 * temperature is higher than the suspend threshold; resume action is 653 * requested to driver if the temperature is lower than the resume 654 * threshold. In user poll mode, request temperature data by user. For test 655 * purpose, getting thermal shutdown configuration parameters is needed. 656 * Attributes for this interface are defined in 657 * enum qca_wlan_vendor_attr_thermal_cmd. 658 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from 659 * driver. Thermal temperature and indication of resume completion are 660 * reported as thermal events. The attributes for this command are defined 661 * in enum qca_wlan_vendor_attr_thermal_event. 662 * 663 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi 664 * test configuration. Attributes for this command are defined in 665 * enum qca_wlan_vendor_attr_wifi_test_config. 666 * 667 * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an 668 * RX filter to receive frames from stations that are active on the 669 * operating channel, but not associated with the local device (e.g., STAs 670 * associated with other APs). Filtering is done based on a list of BSSIDs 671 * and STA MAC addresses added by the user. This command is also used to 672 * fetch the statistics of unassociated stations. The attributes used with 673 * this command are defined in enum qca_wlan_vendor_attr_bss_filter. 674 * 675 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor 676 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN, 677 * carried a payload which was a binary blob of data. The command was not 678 * extendable to send more information. The newer version carries the 679 * legacy blob encapsulated within an attribute and can be extended with 680 * additional vendor attributes that can enhance the NAN command interface. 681 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered 682 * or stopped within driver/firmware in order to initiate roaming. The 683 * attributes used with this event are defined in enum 684 * qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events 685 * in few cases, e.g., if the host processor is sleeping when this event 686 * is generated in firmware. 687 * 688 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to 689 * configure parameters per peer to capture Channel Frequency Response 690 * (CFR) and enable Periodic CFR capture. The attributes for this command 691 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command 692 * can also be used to send CFR data from the driver to userspace when 693 * netlink events are used to send CFR data. 694 * 695 * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes 696 * in throughput dynamically. The driver estimates the throughput based on 697 * number of packets being transmitted/received per second and indicates 698 * the changes in throughput to user space. Userspace tools can use this 699 * information to configure kernel's TCP parameters in order to achieve 700 * peak throughput. Optionally, the driver will also send guidance on 701 * modifications to kernel's TCP parameters which can be referred by 702 * userspace tools. The attributes used with this event are defined in enum 703 * qca_wlan_vendor_attr_throughput_change. 704 * 705 * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set 706 * priorities among different types of traffic during coex scenarios. 707 * Current supported prioritization is among WLAN/BT/ZIGBEE with different 708 * profiles mentioned in enum qca_coex_config_profiles. The associated 709 * attributes used with this command are defined in enum 710 * qca_vendor_attr_coex_config. 711 * 712 * Based on the config provided, FW will boost the weight and prioritize 713 * the traffic for that subsystem (WLAN/BT/Zigbee). 714 * 715 * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query 716 * the supported AKM suite selectorss from the driver. It returns the list 717 * of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES. 718 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware 719 * state from the driver. It returns the firmware state in the attribute 720 * QCA_WLAN_VENDOR_ATTR_FW_STATE. 721 * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand 722 * is used by the driver to flush per-peer cached statistics to user space 723 * application. This interface is used as an event from the driver to 724 * user space application. Attributes for this event are specified in 725 * enum qca_wlan_vendor_attr_peer_stats_cache_params. 726 * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be 727 * sent in the event. 728 * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to 729 * improve the success rate of Zigbee joining network. 730 * Due to PTA master limitation, Zigbee joining network success rate is 731 * low while WLAN is working. The WLAN driver needs to configure some 732 * parameters including Zigbee state and specific WLAN periods to enhance 733 * PTA master. All these parameters are delivered by the attributes 734 * defined in enum qca_mpta_helper_vendor_attr. 735 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to 736 * implement Beacon frame reporting feature. 737 * 738 * Userspace can request the driver/firmware to periodically report 739 * received Beacon frames whose BSSID is same as the current connected 740 * BSS's MAC address. 741 * 742 * In case the STA seamlessly (without sending disconnect indication to 743 * userspace) roams to a different BSS, Beacon frame reporting will be 744 * automatically enabled for the Beacon frames whose BSSID is same as the 745 * MAC address of the new BSS. Beacon reporting will be stopped when the 746 * STA is disconnected (when the disconnect indication is sent to 747 * userspace) and need to be explicitly enabled by userspace for next 748 * connection. 749 * 750 * When a Beacon frame matching configured conditions is received, and if 751 * userspace has requested to send asynchronous beacon reports, the 752 * driver/firmware will encapsulate the details of the Beacon frame in an 753 * event and send it to userspace along with updating the BSS information 754 * in cfg80211 scan cache, otherwise driver will only update the cfg80211 755 * scan cache with the information from the received Beacon frame but will 756 * not send any active report to userspace. 757 * 758 * The userspace can request the driver/firmware to stop reporting Beacon 759 * frames. If the driver/firmware is not able to receive Beacon frames due 760 * to other Wi-Fi operations such as off-channel activities, etc., the 761 * driver/firmware will send a pause event to userspace and stop reporting 762 * Beacon frames. Whether the beacon reporting will be automatically 763 * resumed or not by the driver/firmware later will be reported to 764 * userspace using the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES 765 * flag. The beacon reporting shall be resumed for all the cases except 766 * either when userspace sets 767 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag in the command 768 * which triggered the current beacon reporting or during any disconnection 769 * case as indicated by setting 770 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to 771 * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the 772 * driver. 773 * 774 * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received 775 * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES 776 * flag not set, the next first 777 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver 778 * shall be considered as un-pause event. 779 * 780 * All the attributes used with this command are defined in 781 * enum qca_wlan_vendor_attr_beacon_reporting_params. 782 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have 783 * interop issues with the DUT. This sub command is used to transfer the 784 * AP info between the driver and user space. This works both as a command 785 * and an event. As a command, it configures the stored list of APs from 786 * user space to firmware; as an event, it indicates the AP info detected 787 * by the firmware to user space for persistent storage. The attributes 788 * defined in enum qca_vendor_attr_interop_issues_ap are used to deliver 789 * the parameters. 790 * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command/event is used to 791 * send/receive OEM data binary blobs to/from application/service to/from 792 * firmware. The attributes defined in enum 793 * qca_wlan_vendor_attr_oem_data_params are used to deliver the 794 * parameters. 795 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used 796 * to send/receive avoid frequency data using 797 * enum qca_wlan_vendor_attr_avoid_frequency_ext. 798 * This new command is alternative to existing command 799 * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event 800 * is using stream of bytes instead of structured data using vendor 801 * attributes. User space sends unsafe frequency ranges to the driver using 802 * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On 803 * reception of this command, the driver shall check if an interface is 804 * operating on an unsafe frequency and the driver shall try to move to a 805 * safe channel when needed. If the driver is not able to find a safe 806 * channel the interface can keep operating on an unsafe channel with the 807 * TX power limit derived based on internal configurations like 808 * regulatory/SAR rules. 809 * 810 * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to 811 * add the STA node details in driver/firmware. Attributes for this event 812 * are specified in enum qca_wlan_vendor_attr_add_sta_node_params. 813 * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT 814 * coex chain mode from application/service. 815 * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used 816 * to deliver the parameters. 817 * 818 * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to 819 * get information of a station from driver to userspace. This command can 820 * be used in both STA and AP modes. For STA mode, it provides information 821 * of the current association when in connected state or the last 822 * association when in disconnected state. For AP mode, only information 823 * of the currently connected stations is available. This command uses 824 * attributes defined in enum qca_wlan_vendor_attr_get_sta_info. 825 * 826 * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event. 827 * Host drivers can request the user space entity to set the SAR power 828 * limits with this event. Accordingly, the user space entity is expected 829 * to set the SAR power limits. Host drivers can retry this event to the 830 * user space for the SAR power limits configuration from user space. If 831 * the driver does not get the SAR power limits from user space for all 832 * the retried attempts, it can configure a default SAR power limit. 833 * 834 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and 835 * is used to update the information about the station from the driver to 836 * userspace. Uses attributes from enum 837 * qca_wlan_vendor_attr_update_sta_info. 838 * 839 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event. 840 * The host driver initiates the disconnection for scenarios such as beacon 841 * miss, NUD failure, peer kick out, etc. The disconnection indication 842 * through cfg80211_disconnected() expects the reason codes from enum 843 * ieee80211_reasoncode which does not signify these various reasons why 844 * the driver has triggered the disconnection. This event will be used to 845 * send the driver specific reason codes by the host driver to userspace. 846 * Host drivers should trigger this event and pass the respective reason 847 * code immediately prior to triggering cfg80211_disconnected(). The 848 * attributes used with this event are defined in enum 849 * qca_wlan_vendor_attr_driver_disconnect_reason. 850 * 851 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to 852 * add/delete TSPEC for each AC. One command is for one specific AC only. 853 * This command can only be used in STA mode and the STA must be 854 * associated with an AP when the command is issued. Uses attributes 855 * defined in enum qca_wlan_vendor_attr_config_tspec. 856 * 857 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT. 858 * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt. 859 * 860 * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the enabled band(s) from 861 * the driver. The band configurations obtained are referred through 862 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. 863 * 864 * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium 865 * assessment. 866 * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess. 867 * 868 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is 869 * used to update SSID information in hostapd when it is updated in the 870 * driver. Uses the attribute NL80211_ATTR_SSID. 871 * 872 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by 873 * the driver to send opaque data from the firmware to userspace. The 874 * driver sends an event to userspace whenever such data is received from 875 * the firmware. 876 * 877 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to 878 * send this opaque data for this event. 879 * 880 * The format of the opaque data is specific to the particular firmware 881 * version and there is no guarantee of the format remaining same. 882 * 883 * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event. 884 * The host driver selects Tx VDEV, and notifies user. The attributes 885 * used with this event are defined in enum 886 * qca_wlan_vendor_attr_mbssid_tx_vdev_status. 887 * This event contains Tx VDEV group information, other VDEVs 888 * interface index, and status information. 889 * 890 * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to 891 * configure the concurrent session policies when multiple interfaces 892 * are (getting) active. The attributes used by this command are defined 893 * in enum qca_wlan_vendor_attr_concurrent_policy. 894 * 895 * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command 896 * to query usable channels for different interface types such as STA, 897 * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable 898 * channels in the response based on country code, different static 899 * configurations, concurrency combinations, etc. The attributes used 900 * with this command are defined in 901 * enum qca_wlan_vendor_attr_usable_channels. 902 * 903 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used 904 * to get DFS radar history from the driver to userspace. The driver 905 * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an 906 * array of nested entries. 907 * 908 * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to 909 * enable/disable mDNS offload to the firmware. The attributes used with 910 * this command are defined in enum qca_wlan_vendor_attr_mdns_offload. 911 * 912 * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used 913 * to set packet monitor mode that aims to send the specified set of TX and 914 * RX frames on the current client interface to an active monitor 915 * interface. If this monitor mode is set, the driver will send the 916 * configured frames, from the interface on which the command is issued, to 917 * an active monitor interface. The attributes used with this command are 918 * defined in enum qca_wlan_vendor_attr_set_monitor_mode. 919 * 920 * Though the monitor mode is configured for the respective 921 * Data/Management/Control frames, it is up to the respective WLAN 922 * driver/firmware/hardware designs to consider the possibility of sending 923 * these frames over the monitor interface. For example, the Control frames 924 * are handled within the hardware and thus passing such frames over the 925 * monitor interface is left to the respective designs. 926 * 927 * Also, this monitor mode is governed to behave accordingly in 928 * suspend/resume states. If the firmware handles any of such frames in 929 * suspend state without waking up the host and if the monitor mode is 930 * configured to notify all such frames, the firmware is expected to resume 931 * the host and forward the respective frames to the monitor interface. 932 * Please note that such a request to get the frames over the monitor 933 * interface will have a definite power implication. 934 * 935 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both 936 * as a request to set the driver/firmware with the parameters to trigger 937 * the roaming events, and also used by the driver/firmware to pass on the 938 * various roam events to userspace. 939 * Applicable only for the STA mode. The attributes used with this command 940 * are defined in enum qca_wlan_vendor_attr_roam_events. 941 * 942 * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Subcommand to set or reset the 943 * rate mask config for a list of PHY types. Userspace shall provide an 944 * array of the vendor attributes defined in 945 * enum qca_wlan_vendor_attr_ratemask_params. 946 * 947 * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs 948 * when two interfaces are active on the same band, using two different 949 * home channels, and only supported by a single radio. In this scenario 950 * the device must split the use of the radio between the two interfaces. 951 * The percentage of time allocated to a given interface is the quota. 952 * Depending on the configuration, the quota can either be fixed or 953 * dynamic. 954 * 955 * When used as an event, the device will report the quota type, and for 956 * all interfaces operating in MCC it will report the current quota. 957 * When used as a command, the device can be configured for a specific 958 * quota type, and in the case of a fixed quota, the quota to apply to one 959 * of the interfaces. 960 * 961 * Applications can use the event to do TX bitrate control based on the 962 * information, and can use the command to explicitly set the quota to 963 * enhance performance in specific scenarios. 964 * 965 * The attributes used with this command are defined in 966 * enum qca_wlan_vendor_attr_mcc_quota. 967 * 968 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to 969 * get the WLAN radio combinations matrix supported by the device which 970 * provides the device simultaneous radio configurations such as 971 * standalone, dual band simultaneous, and single band simultaneous. 972 * 973 * The attributes used with this command are defined in 974 * enum qca_wlan_vendor_attr_radio_combination_matrix. 975 * 976 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the user space 977 * that the driver is ready for operations again after recovering from 978 * internal failures. This occurs following a failure that was indicated by 979 * @QCA_NL80211_VENDOR_SUBCMD_HANG. 980 * 981 * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation 982 * security negotiation and key generation to user space. 983 * 984 * When used as an event, the driver requests userspace to trigger the PASN 985 * authentication or dropping of a PTKSA for the indicated peer devices. 986 * When used as a command response, userspace indicates a consolidated 987 * status report for all the peers that were requested for. 988 * 989 * The attributes used with this command are defined in 990 * enum qca_wlan_vendor_attr_pasn. 991 * 992 * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set 993 * secure ranging context such as TK and LTF keyseed for each peer 994 * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event. 995 * 996 * The attributes used with this command are defined in 997 * enum qca_wlan_vendor_attr_secure_ranging_ctx. 998 * 999 * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to 1000 * enable/disable offload processing in firmware during system/runtime 1001 * suspend for CoAP messages (see RFC7252: The Constrained Application 1002 * Protocol) and fetch information of the CoAP messages cached during 1003 * offload processing. 1004 * 1005 * The attributes used with this command are defined in 1006 * enum qca_wlan_vendor_attr_coap_offload. 1007 * 1008 * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure 1009 * (add, remove, or change) a Stream Classification Service (SCS) rule. 1010 * 1011 * The attributes used with this event are defined in 1012 * enum qca_wlan_vendor_attr_scs_rule_config. 1013 * 1014 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities 1015 * supported by the WLAN firmware. 1016 * 1017 * The attributes used with this command are defined in 1018 * enum qca_wlan_vendor_attr_sar_capability. 1019 * 1020 * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse 1021 * (SR) feature. This command is used by userspace to configure SR 1022 * parameters to the driver and to get the SR related parameters and 1023 * statistics with synchronous responses from the driver. 1024 * The driver also uses this command to send asynchronous events to 1025 * userspace to indicate suspend/resume of SR feature and changes 1026 * in SR parameters. 1027 * 1028 * The attributes used with this command are defined in 1029 * enum qca_wlan_vendor_attr_sr. 1030 * 1031 * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to 1032 * notify application layer about the primary netdev of an MLO connection. 1033 * In some implementations, MLO has multiple netdevs out of which one 1034 * netdev is designated as primary to provide a unified interface to the 1035 * bridge. In those implementations this event is sent on every MLO peer 1036 * connection. User applications on an AP MLD will use this event to get 1037 * info for all the links from non-AP MLD that were negotiated to be used 1038 * for the ML association. 1039 * 1040 * The attributes used with this event are defined in 1041 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event. 1042 * 1043 * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the 1044 * driver to notify different AFC events to userspace. The attributes used 1045 * with this command are defined in enum qca_wlan_vendor_attr_afc_event. 1046 * 1047 * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by 1048 * userspace to deliver AFC response data to driver. The attributes used 1049 * with this command are defined in enum qca_wlan_vendor_attr_afc_response. 1050 * 1051 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to 1052 * operate in doze mode. 1053 * 1054 * Userspace uses this command to configure the AP interface to enter or 1055 * exit from doze mode. The driver sends this event after it enters or 1056 * exits the doze mode with the updated AP doze mode settings. 1057 * 1058 * The attributes used with this subcommand are defined in 1059 * enum qca_wlan_vendor_attr_dozed_ap. 1060 * 1061 * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used 1062 * to get the status of local packet capture of monitor mode. The monitor 1063 * mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE 1064 * subcommand. 1065 * 1066 * The attributes used with this command are defined in enum 1067 * qca_wlan_vendor_attr_get_monitor_mode. 1068 * 1069 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to 1070 * get roam information from the driver to user space. It provides the 1071 * latest several instances of roam information cached in the driver. 1072 * The command is only used for STA mode. The attributes used with this 1073 * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats. 1074 * 1075 * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to 1076 * configure and fetch the state information of the MLO links affiliated 1077 * with the STA interface. The attributes used with this command are 1078 * defined in enum qca_wlan_vendor_attr_mlo_link_state. 1079 * 1080 * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this 1081 * vendor subcommand to trigger channel utilization measurement on entire 1082 * channel width of the connected channel(s). For MLO connection, connected 1083 * channel utilization measurement shall be done on all the MLO links. 1084 * The driver may use regular scan or wideband energy detection feature 1085 * based on the hardware capability for connected channel(s) utilization 1086 * measurement. The driver indicates the connected channel(s) utilization 1087 * measurement completion as an asynchronous event with this command ID to 1088 * userspace. Upon receiving this event, userspace can use 1089 * %NL80211_CMD_GET_INTERFACE to determine the channel width of the current 1090 * connected channel(s) and can derive the channel utilization percentage 1091 * (CU) of each 20 MHz sub-channel of the entire connected channel using 1092 * %NL80211_CMD_GET_SURVEY response. 1093 * CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME. 1094 * This command is only used for STA mode. 1095 * 1096 * @QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP: This vendor subcommand is 1097 * used as an event to notify the userspace of TID-to-link map changes 1098 * negotiated by the driver or updated by associated AP MLD with Beacon, 1099 * Probe Response, or Action frames. The attributes used with this command 1100 * are defined in enum qca_wlan_vendor_attr_tid_to_link_map. 1101 * 1102 * Note that the attribute 1103 * %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to 1104 * the current connected AP MLD address. 1105 * 1106 * @QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG: Notify userspace about the removal 1107 * of STA MLD setup links due to the AP MLD removing the corresponding 1108 * affiliated APs with Multi-Link reconfiguration. If all the STA MLD setup 1109 * links are removed during Multi-Link reconfiguration, the driver shall 1110 * use %NL80211_CMD_DISCONNECT instead of this command since it is a 1111 * connection drop. The attributes used with this command are defined in 1112 * enum qca_wlan_vendor_attr_link_reconfig. 1113 * Note that the attribute 1114 * %QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR may not correspond to 1115 * the current connected AP MLD address. 1116 * 1117 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT: Vendor command to configure 1118 * the driver with MLO link id information on which to transmit the TDLS 1119 * discovery response frame on the configured MLO BSS link when the 1120 * local station is connected in MLO mode. This command is sent to the 1121 * driver prior to the TDLS discovery response management transmit 1122 * operation and is followed immediately by the TDLS discovery response 1123 * management frame transmit command. 1124 * 1125 * The driver saves the configured MLO link id information and uses it for 1126 * the following TDLS discovery response frame transmission on the 1127 * configured MLO BSS link and the link id information is cleared in the 1128 * driver after the TDLS discovery response frame is successfully 1129 * transmitted. This behavior is indepent of the TDLS peer STA connection 1130 * mode (MLO or non-MLO). 1131 * 1132 * Uses the attributes defined in 1133 * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext. 1134 * 1135 * @QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY: This vendor subcommand is used to 1136 * configure, retrieve, and report per-link transmit latency statistics. 1137 * 1138 * The attributes used with this subcommand are defined in 1139 * enum qca_wlan_vendor_attr_tx_latency. 1140 * 1141 * @QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO: Vendor command is used to 1142 * query transmit power information on STA interface from the driver for a 1143 * connected AP. The attributes included in response are defined in 1144 * enum qca_wlan_vendor_attr_tpc_links. In case of MLO STA, multiple links 1145 * TPC info may be returned. The information includes regulatory maximum 1146 * transmit power limit, AP local power constraint advertised from AP's 1147 * Beacon and Probe Response frames. For PSD power mode, the information 1148 * includes PSD power levels for each subchannel of operating bandwidth. 1149 * The information is driver calculated power limits based on the current 1150 * regulatory domain, AP local power constraint, and other IEs. The 1151 * information will be set to target. Target will decide the final TX power 1152 * based on this and chip specific power conformance test limits (CTL), and 1153 * SAR limits. 1154 * 1155 * @QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT: Event indication from the 1156 * driver to user space which is carrying firmware page fault related 1157 * summary report. The attributes for this command are defined in 1158 * enum qca_wlan_vendor_attr_fw_page_fault_report. 1159 * 1160 * @QCA_NL80211_VENDOR_SUBCMD_DISASSOC_PEER: Event indication from the driver 1161 * to user space to disassociate with a peer based on the peer MAC address 1162 * provided. Specify the peer MAC address in 1163 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR. For MLO, MLD MAC address is provided. 1164 * 1165 * @QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER: This vendor command is used to 1166 * adjust transmit power. The attributes used with this subcommand are 1167 * defined in enum qca_wlan_vendor_attr_adjust_tx_power. 1168 * 1169 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE: Event indication from the 1170 * driver to notify user application about the spectral scan completion. 1171 * The attributes used with this subcommand are defined in 1172 * enum qca_wlan_vendor_attr_spectral_scan_complete. 1173 * 1174 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION: Register for receiving 1175 * %NL80211_CMD_GET_STATION responses as unicast events when there are 1176 * %NL80211_CMD_GET_STATION requests from any userspace module on the same 1177 * interface index with which this command is sent. This command is also 1178 * used as the unicast event to indicate the %NL80211_CMD_GET_STATION 1179 * response. The attributes for this command are defined in 1180 * enum qca_wlan_vendor_async_get_station_attr. 1181 * 1182 * The driver will send the unicast events with same netlink port ID which 1183 * is used by userspace application for sending the registration command. 1184 * If multiple registration commands are received with different netlink 1185 * port IDs, the driver will send unicast events with each netlink port ID 1186 * separately. 1187 * 1188 * Userspace applications can deregister the unicast event reporting with 1189 * disable configuration. The registrations will be removed automatically 1190 * by the driver when the corresponding netlink socket is closed. 1191 * 1192 * @QCA_NL80211_VENDOR_SUBCMD_AP_SUSPEND: Vendor command to put an AP interface 1193 * in suspend state. On enabling suspend, AP deauthenticates all associated 1194 * stations and stops TX/RX operations on the interface. The driver 1195 * retains the AP configuration and on resume, starts all TX/RX operations 1196 * with the same AP configuration. 1197 * 1198 * This subcommand is also used as an event to notify userspace about AP 1199 * suspended/resumed state changes. 1200 * 1201 * The attributes used with this command/event are defined in enum 1202 * qca_wlan_vendor_attr_ap_suspend. 1203 * 1204 * @QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS: Event indication from the driver to 1205 * the userspace which contains all the statistics collected for a flow to 1206 * be classified. This event is sent if the userspace enables the 1207 * flow stats reporting via the command 1208 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY and when the driver has 1209 * collected the required flow statistics, as specified by the attributes 1210 * of this event. The attributes for this event are defined in 1211 * enum qca_wlan_vendor_attr_flow_stats. 1212 * @QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT: This vendor command is used 1213 * to indicate the flow classification result based on the flow samples 1214 * received as a part of @QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS. The 1215 * attributes for this command are defined in the 1216 * enum qca_wlan_vendor_attr_flow_classify_result. 1217 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY: This vendor command is used to 1218 * indicate the ASYNC statistics policy from the userspace to the driver 1219 * and it contains the STATS type for which the command is intended. The 1220 * attributes for this command are defined in the 1221 * enum qca_wlan_vendor_attr_async_stats_policy. 1222 * @QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT: Event indication from the 1223 * driver to the userspace containing all the samples of a classified 1224 * flow along with its classification result. This event is sent by the 1225 * driver to userspace when it receives classification result via the 1226 * command @QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT and the 1227 * collection of these statistics has been enabled by the command 1228 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY. The attributes for this 1229 * event are defined in enum qca_wlan_vendor_attr_flow_stats. 1230 */ 1231 enum qca_nl80211_vendor_subcmds { 1232 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, 1233 QCA_NL80211_VENDOR_SUBCMD_TEST = 1, 1234 /* subcmds 2..8 not yet allocated */ 1235 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9, 1236 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10, 1237 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11, 1238 QCA_NL80211_VENDOR_SUBCMD_NAN = 12, 1239 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13, 1240 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14, 1241 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15, 1242 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16, 1243 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17, 1244 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18, 1245 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19, 1246 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20, 1247 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21, 1248 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22, 1249 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23, 1250 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24, 1251 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25, 1252 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26, 1253 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27, 1254 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28, 1255 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29, 1256 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30, 1257 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31, 1258 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32, 1259 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33, 1260 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34, 1261 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35, 1262 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36, 1263 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37, 1264 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38, 1265 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39, 1266 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40, 1267 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41, 1268 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42, 1269 /* 43..49 - reserved for QCA */ 1270 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50, 1271 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51, 1272 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52, 1273 /* 53 - reserved - was used by QCA, but not in use anymore */ 1274 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54, 1275 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55, 1276 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56, 1277 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57, 1278 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58, 1279 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59, 1280 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60, 1281 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61, 1282 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62, 1283 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63, 1284 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64, 1285 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65, 1286 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66, 1287 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67, 1288 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68, 1289 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69, 1290 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70, 1291 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71, 1292 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72, 1293 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73, 1294 /* Wi-Fi configuration subcommands */ 1295 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74, 1296 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75, 1297 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76, 1298 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77, 1299 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78, 1300 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79, 1301 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80, 1302 QCA_NL80211_VENDOR_SUBCMD_NDP = 81, 1303 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82, 1304 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83, 1305 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84, 1306 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85, 1307 /* 86-90 - reserved for QCA */ 1308 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91, 1309 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92, 1310 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93, 1311 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94, 1312 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95, 1313 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96, 1314 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97, 1315 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98, 1316 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99, 1317 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100, 1318 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101, 1319 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102, 1320 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103, 1321 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104, 1322 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105, 1323 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106, 1324 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107, 1325 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108, 1326 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109, 1327 /* 110..114 - reserved for QCA */ 1328 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115, 1329 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116, 1330 /* 117 - reserved for QCA */ 1331 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118, 1332 QCA_NL80211_VENDOR_SUBCMD_TSF = 119, 1333 QCA_NL80211_VENDOR_SUBCMD_WISA = 120, 1334 /* 121 - reserved for QCA */ 1335 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122, 1336 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123, 1337 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124, 1338 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125, 1339 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126, 1340 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127, 1341 /* FTM/indoor location subcommands */ 1342 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128, 1343 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129, 1344 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130, 1345 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131, 1346 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132, 1347 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133, 1348 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134, 1349 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135, 1350 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136, 1351 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137, 1352 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138, 1353 /* DMG low level RF sector operations */ 1354 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139, 1355 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140, 1356 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141, 1357 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142, 1358 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143, 1359 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144, 1360 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145, 1361 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146, 1362 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147, 1363 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148, 1364 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149, 1365 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150, 1366 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151, 1367 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152, 1368 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153, 1369 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154, 1370 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155, 1371 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156, 1372 QCA_NL80211_VENDOR_SUBCMD_HANG = 157, 1373 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158, 1374 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159, 1375 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160, 1376 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161, 1377 /* Flush peer pending data */ 1378 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162, 1379 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163, 1380 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164, 1381 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165, 1382 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166, 1383 /* Thermal shutdown commands to protect wifi chip */ 1384 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167, 1385 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168, 1386 /* Wi-Fi test configuration subcommand */ 1387 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169, 1388 /* Frame filter operations for other BSSs/unassociated STAs */ 1389 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170, 1390 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171, 1391 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172, 1392 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173, 1393 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174, 1394 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175, 1395 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176, 1396 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177, 1397 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178, 1398 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179, 1399 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180, 1400 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181, 1401 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182, 1402 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183, 1403 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184, 1404 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185, 1405 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186, 1406 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187, 1407 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188, 1408 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189, 1409 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190, 1410 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191, 1411 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192, 1412 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193, 1413 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194, 1414 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195, 1415 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196, 1416 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197, 1417 QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198, 1418 QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199, 1419 QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200, 1420 /* 201 - reserved for QCA */ 1421 QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202, 1422 QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203, 1423 QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204, 1424 QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205, 1425 /* 206..212 - reserved for QCA */ 1426 QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213, 1427 QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214, 1428 QCA_NL80211_VENDOR_SUBCMD_PASN = 215, 1429 QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216, 1430 QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217, 1431 QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218, 1432 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219, 1433 QCA_NL80211_VENDOR_SUBCMD_SR = 220, 1434 QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221, 1435 QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222, 1436 QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223, 1437 QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224, 1438 QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225, 1439 QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226, 1440 QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227, 1441 QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228, 1442 QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229, 1443 QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230, 1444 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231, 1445 /* 232 - reserved for QCA */ 1446 QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY = 233, 1447 /* 234 - reserved for QCA */ 1448 QCA_NL80211_VENDOR_SUBCMD_SDWF_PHY_OPS = 235, 1449 QCA_NL80211_VENDOR_SUBCMD_SDWF_DEV_OPS = 236, 1450 QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO = 237, 1451 QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT = 238, 1452 QCA_NL80211_VENDOR_SUBCMD_FLOW_POLICY = 239, 1453 QCA_NL80211_VENDOR_SUBCMD_DISASSOC_PEER = 240, 1454 QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER = 241, 1455 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE = 242, 1456 QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION = 243, 1457 QCA_NL80211_VENDOR_SUBCMD_AP_SUSPEND = 244, 1458 QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS = 245, 1459 QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT = 246, 1460 QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY = 247, 1461 QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT = 248, 1462 }; 1463 1464 /* Compatibility defines for previously used subcmd names. 1465 * These values should not be used in any new implementation. 1466 */ 1467 #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \ 1468 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY 1469 1470 enum qca_wlan_vendor_attr { 1471 QCA_WLAN_VENDOR_ATTR_INVALID = 0, 1472 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */ 1473 QCA_WLAN_VENDOR_ATTR_DFS = 1, 1474 /* Used only when driver sends vendor events to the userspace under the 1475 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends 1476 * commands to the driver. 1477 */ 1478 QCA_WLAN_VENDOR_ATTR_NAN = 2, 1479 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 1480 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3, 1481 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 1482 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4, 1483 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined 1484 * by enum qca_roaming_policy. 1485 */ 1486 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5, 1487 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6, 1488 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ 1489 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7, 1490 QCA_WLAN_VENDOR_ATTR_TEST = 8, 1491 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ 1492 /* Unsigned 32-bit value. */ 1493 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9, 1494 /* Unsigned 32-bit value */ 1495 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10, 1496 /* Unsigned 32-bit value */ 1497 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11, 1498 /* Unsigned 32-bit value from enum qca_set_band. The allowed values for 1499 * this attribute are limited to QCA_SETBAND_AUTO, QCA_SETBAND_5G, and 1500 * QCA_SETBAND_2G. This attribute is deprecated. Recommendation is to 1501 * use QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. 1502 */ 1503 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12, 1504 /* Attribute used for padding for 64-bit alignment */ 1505 QCA_WLAN_VENDOR_ATTR_PAD = 13, 1506 /* Unique FTM session cookie (Unsigned 64 bit). Specified in 1507 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in 1508 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and 1509 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE. 1510 */ 1511 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14, 1512 /* Indoor location capabilities, returned by 1513 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA. 1514 * see enum qca_wlan_vendor_attr_loc_capa. 1515 */ 1516 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15, 1517 /* Array of nested attributes containing information about each peer 1518 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info 1519 * for supported attributes for each peer. 1520 */ 1521 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16, 1522 /* Array of nested attributes containing measurement results for 1523 * one or more peers, reported by the 1524 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event. 1525 * See enum qca_wlan_vendor_attr_peer_result for list of supported 1526 * attributes. 1527 */ 1528 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17, 1529 /* Flag attribute for enabling or disabling responder functionality. */ 1530 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18, 1531 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 1532 * command to specify the LCI report that will be sent by 1533 * the responder during a measurement exchange. The format is 1534 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10. 1535 */ 1536 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19, 1537 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 1538 * command to specify the location civic report that will 1539 * be sent by the responder during a measurement exchange. 1540 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13. 1541 */ 1542 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20, 1543 /* Session/measurement completion status code, 1544 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and 1545 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT 1546 * see enum qca_vendor_attr_loc_session_status. 1547 */ 1548 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21, 1549 /* Initial dialog token used by responder (0 if not specified), 1550 * unsigned 8 bit value. 1551 */ 1552 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22, 1553 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS 1554 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if 1555 * AOA measurements are needed as part of an FTM session. 1556 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See 1557 * enum qca_wlan_vendor_attr_aoa_type. 1558 */ 1559 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23, 1560 /* A bit mask (unsigned 32 bit value) of antenna arrays used 1561 * by indoor location measurements. Refers to the antenna 1562 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS. 1563 */ 1564 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24, 1565 /* AOA measurement data. Its contents depends on the AOA measurement 1566 * type and antenna array mask: 1567 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values, 1568 * phase of the strongest CIR path for each antenna in the measured 1569 * array(s). 1570 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16 1571 * values, phase and amplitude of the strongest CIR path for each 1572 * antenna in the measured array(s). 1573 */ 1574 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25, 1575 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1576 * to specify the chain number (unsigned 32 bit value) to inquire 1577 * the corresponding antenna RSSI value 1578 */ 1579 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26, 1580 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1581 * to report the specific antenna RSSI value (unsigned 32 bit value) 1582 */ 1583 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27, 1584 /* Frequency in MHz, various uses. Unsigned 32 bit value */ 1585 QCA_WLAN_VENDOR_ATTR_FREQ = 28, 1586 /* TSF timer value, unsigned 64 bit value. 1587 * May be returned by various commands. 1588 */ 1589 QCA_WLAN_VENDOR_ATTR_TSF = 29, 1590 /* DMG RF sector index, unsigned 16 bit number. Valid values are 1591 * 0..127 for sector indices or 65535 as special value used to 1592 * unlock sector selection in 1593 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR. 1594 */ 1595 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30, 1596 /* DMG RF sector type, unsigned 8 bit value. One of the values 1597 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type. 1598 */ 1599 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31, 1600 /* Bitmask of DMG RF modules for which information is requested. Each 1601 * bit corresponds to an RF module with the same index as the bit 1602 * number. Unsigned 32 bit number but only low 8 bits can be set since 1603 * all DMG chips currently have up to 8 RF modules. 1604 */ 1605 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32, 1606 /* Array of nested attributes where each entry is DMG RF sector 1607 * configuration for a single RF module. 1608 * Attributes for each entry are taken from enum 1609 * qca_wlan_vendor_attr_dmg_rf_sector_cfg. 1610 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG 1611 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG. 1612 */ 1613 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33, 1614 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command 1615 * to report frame aggregation statistics to userspace. 1616 */ 1617 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34, 1618 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35, 1619 /* Unsigned 8-bit value representing MBO transition reason code as 1620 * provided by the AP used by subcommand 1621 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is 1622 * specified by the userspace in the request to the driver. 1623 */ 1624 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36, 1625 /* Array of nested attributes, BSSID and status code, used by subcommand 1626 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each 1627 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info. 1628 * The userspace space specifies the list/array of candidate BSSIDs in 1629 * the order of preference in the request. The driver specifies the 1630 * status code, for each BSSID in the list, in the response. The 1631 * acceptable candidates are listed in the order preferred by the 1632 * driver. 1633 */ 1634 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37, 1635 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 1636 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode. 1637 */ 1638 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38, 1639 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 1640 * to define the number of antennas to use for BRP. 1641 * different purpose in each ANT_LIMIT_MODE: 1642 * DISABLE - ignored 1643 * EFFECTIVE - upper limit to number of antennas to be used 1644 * FORCE - exact number of antennas to be used 1645 * unsigned 8 bit value 1646 */ 1647 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39, 1648 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1649 * to report the corresponding antenna index to the chain RSSI value 1650 */ 1651 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40, 1652 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report 1653 * the specific antenna EVM value (unsigned 32 bit value). With a 1654 * determinate group of antennas, the driver specifies the EVM value 1655 * for each antenna ID, and application extract them in user space. 1656 */ 1657 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41, 1658 /* 1659 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report 1660 * wlan firmware current state. FW state is an unsigned 8 bit value, 1661 * one of the values in enum qca_wlan_vendor_attr_fw_state. 1662 */ 1663 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42, 1664 1665 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the 1666 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only a subset 1667 * of single values from enum qca_set_band are valid. This attribute 1668 * uses bitmask combinations to define the respective allowed band 1669 * combinations and this attributes takes precedence over 1670 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE if both attributes are included. 1671 */ 1672 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43, 1673 1674 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES. 1675 * This field describes the maximum number of links supported by the 1676 * chip for MLO association. 1677 * This is an optional attribute. 1678 */ 1679 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_ASSOCIATION_COUNT = 44, 1680 1681 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES. 1682 * This field describes the maximum number of Simultaneous Transmit 1683 * and Receive (STR) links used in Multi-Link Operation. 1684 * The maximum number of STR links used can be different 1685 * from the maximum number of radios supported by the chip. 1686 * This is a static configuration of the chip. 1687 * This is an optional attribute. 1688 */ 1689 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_STR_LINK_COUNT = 45, 1690 1691 /* keep last */ 1692 QCA_WLAN_VENDOR_ATTR_AFTER_LAST, 1693 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1, 1694 }; 1695 1696 /** 1697 * enum qca_roaming_policy - Represents the policies for roaming. Used by 1698 * QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY. 1699 * 1700 * QCA_ROAMING_NOT_ALLOWED: Roaming is not allowed/disabled. 1701 * 1702 * QCA_ROAMING_ALLOWED_WITHIN_ESS: Roaming is allowed with in an ESS with 1703 * default RSSI thresholds. 1704 * 1705 * QCA_ROAMING_MODE_AGGRESSIVE: This mode is an extension of 1706 * QCA_ROAMING_ALLOWED_WITHIN_ESS. The driver/firmware roams on higher RSSI 1707 * thresholds when compared to QCA_ROAMING_ALLOWED_WITHIN_ESS. 1708 */ 1709 enum qca_roaming_policy { 1710 QCA_ROAMING_NOT_ALLOWED, 1711 QCA_ROAMING_ALLOWED_WITHIN_ESS, 1712 QCA_ROAMING_MODE_AGGRESSIVE, 1713 }; 1714 1715 /** 1716 * enum qca_roam_reason - Represents the reason codes for roaming. Used by 1717 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON. 1718 * 1719 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below 1720 * reasons. 1721 * 1722 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached 1723 * the configured threshold. 1724 * 1725 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured 1726 * beacon misses from the then connected AP. 1727 * 1728 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported 1729 * by the connected AP. 1730 * 1731 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better 1732 * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor. 1733 * 1734 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel 1735 * or environment being very noisy or congested. 1736 * 1737 * @QCA_ROAM_REASON_USER_TRIGGER: Roam triggered due to an explicit request 1738 * from the user (user space). 1739 * 1740 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from 1741 * the connected AP. 1742 * 1743 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization 1744 * breaching out the configured threshold. 1745 * 1746 * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS 1747 * transition request. 1748 * 1749 * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, there is no 1750 * data activity with the AP and the current RSSI falls below a certain 1751 * threshold. 1752 * 1753 * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to Deauthentication or 1754 * Disassociation frames received from the connected AP. 1755 * 1756 * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic scan 1757 * that happens when there is no candidate AP found during the poor RSSI scan 1758 * trigger. 1759 * 1760 * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan results 1761 * obtained from an external scan (not aimed at roaming). 1762 * 1763 * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to Bluetooth connection is 1764 * established when the station is connected in the 2.4 GHz band. 1765 * 1766 * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame 1767 * failures to the connected AP. 1768 */ 1769 enum qca_roam_reason { 1770 QCA_ROAM_REASON_UNKNOWN, 1771 QCA_ROAM_REASON_PER, 1772 QCA_ROAM_REASON_BEACON_MISS, 1773 QCA_ROAM_REASON_POOR_RSSI, 1774 QCA_ROAM_REASON_BETTER_RSSI, 1775 QCA_ROAM_REASON_CONGESTION, 1776 QCA_ROAM_REASON_USER_TRIGGER, 1777 QCA_ROAM_REASON_BTM, 1778 QCA_ROAM_REASON_BSS_LOAD, 1779 QCA_ROAM_REASON_WTC, 1780 QCA_ROAM_REASON_IDLE, 1781 QCA_ROAM_REASON_DISCONNECTION, 1782 QCA_ROAM_REASON_PERIODIC_TIMER, 1783 QCA_ROAM_REASON_BACKGROUND_SCAN, 1784 QCA_ROAM_REASON_BT_ACTIVITY, 1785 QCA_ROAM_REASON_STA_KICKOUT, 1786 }; 1787 1788 enum qca_wlan_vendor_attr_roam_auth { 1789 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0, 1790 /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address 1791 * of the roamed AP for MLO roaming. 1792 */ 1793 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID, 1794 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE, 1795 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE, 1796 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED, 1797 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR, 1798 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK, 1799 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK, 1800 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS, 1801 /* Indicates the status of re-association requested by user space for 1802 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID. 1803 * Type u16. 1804 * Represents the status code from AP. Use 1805 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the 1806 * real status code for failures. 1807 */ 1808 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS, 1809 /* This attribute indicates that the old association was maintained when 1810 * a re-association is requested by user space and that re-association 1811 * attempt fails (i.e., cannot connect to the requested BSS, but can 1812 * remain associated with the BSS with which the association was in 1813 * place when being requested to roam). Used along with 1814 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current 1815 * re-association status. Type flag. 1816 * This attribute is applicable only for re-association failure cases. 1817 */ 1818 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION, 1819 /* This attribute specifies the PMK if one was newly generated during 1820 * FILS roaming. This is added to the PMKSA cache and is used in 1821 * subsequent connections with PMKSA caching. 1822 */ 1823 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11, 1824 /* This attribute specifies the PMKID used/generated for the current 1825 * FILS roam. This is used in subsequent connections with PMKSA caching. 1826 */ 1827 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12, 1828 /* A 16-bit unsigned value specifying the next sequence number to use 1829 * in ERP message in the currently associated realm. This is used in 1830 * doing subsequent ERP based connections in the same realm. 1831 */ 1832 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13, 1833 /* A 16-bit unsigned value representing the reasons for the roaming. 1834 * Defined by enum qca_roam_reason. 1835 */ 1836 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14, 1837 /* A nested attribute containing per-link information of all the links 1838 * of MLO connection done while roaming. The attributes used inside this 1839 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links. 1840 */ 1841 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15, 1842 1843 /* keep last */ 1844 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST, 1845 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX = 1846 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1 1847 }; 1848 1849 enum qca_wlan_vendor_attr_p2p_listen_offload { 1850 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0, 1851 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one 1852 * of the social channels. 1853 */ 1854 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL, 1855 /* A 32-bit unsigned value; the P2P listen offload period (ms). 1856 */ 1857 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD, 1858 /* A 32-bit unsigned value; the P2P listen interval duration (ms). 1859 */ 1860 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL, 1861 /* A 32-bit unsigned value; number of interval times the firmware needs 1862 * to run the offloaded P2P listen operation before it stops. 1863 */ 1864 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT, 1865 /* An array of arbitrary binary data with one or more 8-byte values. 1866 * The device types include both primary and secondary device types. 1867 */ 1868 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES, 1869 /* An array of unsigned 8-bit characters; vendor information elements. 1870 */ 1871 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE, 1872 /* A 32-bit unsigned value; a control flag to indicate whether listen 1873 * results need to be flushed to wpa_supplicant. 1874 */ 1875 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG, 1876 /* A 8-bit unsigned value; reason code for P2P listen offload stop 1877 * event. 1878 */ 1879 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON, 1880 /* keep last */ 1881 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST, 1882 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX = 1883 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1 1884 }; 1885 1886 /** 1887 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with 1888 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. 1889 * 1890 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8). 1891 * Used with event to notify the primary channel number selected in ACS 1892 * operation. 1893 * Note: If both the driver and user-space application supports the 6 GHz band, 1894 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use 1895 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead. 1896 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL 1897 * is still used if either of the driver or user space application doesn't 1898 * support the 6 GHz band. 1899 * 1900 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8). 1901 * Used with event to notify the secondary channel number selected in ACS 1902 * operation. 1903 * Note: If both the driver and user-space application supports the 6 GHz band, 1904 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use 1905 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead. 1906 * To maintain backward compatibility, 1907 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of 1908 * the driver or user space application doesn't support 6 GHz band. 1909 * 1910 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8). 1911 * (a) Used with command to configure hw_mode from 1912 * enum qca_wlan_vendor_acs_hw_mode for ACS operation. 1913 * (b) Also used with event to notify the hw_mode of selected primary channel 1914 * in ACS operation. 1915 * 1916 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute. 1917 * Used with command to configure ACS operation for HT mode. 1918 * Disable (flag attribute not present) - HT disabled and 1919 * Enable (flag attribute present) - HT enabled. 1920 * 1921 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute. 1922 * Used with command to configure ACS operation for HT40 mode. 1923 * Disable (flag attribute not present) - HT40 disabled and 1924 * Enable (flag attribute present) - HT40 enabled. 1925 * 1926 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute. 1927 * Used with command to configure ACS operation for VHT mode. 1928 * Disable (flag attribute not present) - VHT disabled and 1929 * Enable (flag attribute present) - VHT enabled. 1930 * 1931 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and 1932 * mandatory with event. 1933 * If specified in command path, ACS operation is configured with the given 1934 * channel width (in MHz). 1935 * In event path, specifies the channel width of the primary channel selected. 1936 * 1937 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC. 1938 * Used with command to configure channel list using an array of 1939 * channel numbers (u8). 1940 * Note: If both the driver and user-space application supports the 6 GHz band, 1941 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas 1942 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional. 1943 * 1944 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8). 1945 * Used with event to notify the VHT segment 0 center channel number selected in 1946 * ACS operation. The value is the index of the channel center frequency for 1947 * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index 1948 * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels. 1949 * Note: If both the driver and user-space application supports the 6 GHz band, 1950 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use 1951 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead. 1952 * To maintain backward compatibility, 1953 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of 1954 * the driver or user space application doesn't support the 6 GHz band. 1955 * 1956 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8). 1957 * Used with event to notify the VHT segment 1 center channel number selected in 1958 * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels. 1959 * The value is the index of the channel center frequency for 160 MHz channels 1960 * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz 1961 * channels. 1962 * Note: If both the driver and user-space application supports the 6 GHz band, 1963 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use 1964 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead. 1965 * To maintain backward compatibility, 1966 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of 1967 * the driver or user space application doesn't support the 6 GHz band. 1968 * 1969 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC. 1970 * Used with command to configure the channel list using an array of channel 1971 * center frequencies in MHz (u32). 1972 * Note: If both the driver and user-space application supports the 6 GHz band, 1973 * the driver first parses the frequency list and if it fails to get a frequency 1974 * list, parses the channel list specified using 1975 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in 1976 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST). 1977 * 1978 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32). 1979 * Used with event to notify the primary channel center frequency (MHz) selected 1980 * in ACS operation. 1981 * Note: If the driver supports the 6 GHz band, the event sent from the driver 1982 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL. 1983 * 1984 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32). 1985 * Used with event to notify the secondary channel center frequency (MHz) 1986 * selected in ACS operation. 1987 * Note: If the driver supports the 6 GHz band, the event sent from the driver 1988 * includes this attribute along with 1989 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL. 1990 * 1991 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32). 1992 * Used with event to notify the VHT segment 0 center channel frequency (MHz) 1993 * selected in ACS operation. 1994 * Note: If the driver supports the 6 GHz band, the event sent from the driver 1995 * includes this attribute along with 1996 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL. 1997 * 1998 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32). 1999 * Used with event to notify the VHT segment 1 center channel frequency (MHz) 2000 * selected in ACS operation. 2001 * Note: If the driver supports the 6 GHz band, the event sent from the driver 2002 * includes this attribute along with 2003 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL. 2004 * 2005 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute. 2006 * Used with command to notify the driver of EDMG request for ACS 2007 * operation. 2008 * 2009 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8). 2010 * Used with event to notify the EDMG channel number selected in ACS 2011 * operation. 2012 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL 2013 * 2014 * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16). 2015 * Used with event to notify the puncture pattern selected in ACS operation. 2016 * Encoding for this attribute will follow the convention used in the Disabled 2017 * Subchannel Bitmap field of the EHT Operation IE. 2018 * 2019 * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute. 2020 * Used with command to configure ACS operation for EHT mode. 2021 * Disable (flag attribute not present) - EHT disabled and 2022 * Enable (flag attribute present) - EHT enabled. 2023 * 2024 * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32). 2025 * Used with command to configure how older scan can be considered for ACS 2026 * scoring. In case scan was performed on a partial set of channels configured 2027 * with this command within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME 2028 * (in ms), scan only the remaining channels. 2029 * 2030 * @QCA_WLAN_VENDOR_ATTR_ACS_LINK_ID: Mandatory on AP MLD (u8). 2031 * Used with command to configure ACS operation for a specific link affiliated 2032 * to an AP MLD. 2033 * 2034 */ 2035 enum qca_wlan_vendor_attr_acs_offload { 2036 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0, 2037 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1, 2038 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2, 2039 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3, 2040 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4, 2041 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5, 2042 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6, 2043 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7, 2044 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8, 2045 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9, 2046 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10, 2047 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11, 2048 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12, 2049 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13, 2050 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14, 2051 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15, 2052 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16, 2053 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17, 2054 QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18, 2055 QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19, 2056 QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20, 2057 QCA_WLAN_VENDOR_ATTR_ACS_LINK_ID = 21, 2058 2059 /* keep last */ 2060 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST, 2061 QCA_WLAN_VENDOR_ATTR_ACS_MAX = 2062 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1 2063 }; 2064 2065 /** 2066 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the 2067 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. 2068 * 2069 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode 2070 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode 2071 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode 2072 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode 2073 * @QCA_ACS_MODE_IEEE80211ANY: all modes 2074 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode 2075 */ 2076 enum qca_wlan_vendor_acs_hw_mode { 2077 QCA_ACS_MODE_IEEE80211B, 2078 QCA_ACS_MODE_IEEE80211G, 2079 QCA_ACS_MODE_IEEE80211A, 2080 QCA_ACS_MODE_IEEE80211AD, 2081 QCA_ACS_MODE_IEEE80211ANY, 2082 QCA_ACS_MODE_IEEE80211AX, 2083 }; 2084 2085 /** 2086 * enum qca_wlan_vendor_features - Vendor device/driver feature flags 2087 * 2088 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key 2089 * management offload, a mechanism where the station's firmware 2090 * does the exchange with the AP to establish the temporal keys 2091 * after roaming, rather than having the user space wpa_supplicant do it. 2092 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic 2093 * band selection based on channel selection results. 2094 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports 2095 * simultaneous off-channel operations. 2096 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P 2097 * Listen offload; a mechanism where the station's firmware takes care of 2098 * responding to incoming Probe Request frames received from other P2P 2099 * Devices whilst in Listen state, rather than having the user space 2100 * wpa_supplicant do it. Information from received P2P requests are 2101 * forwarded from firmware to host whenever the host processor wakes up. 2102 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA 2103 * specific features. 2104 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific 2105 * features. 2106 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON 2107 * specific features only. If a Device sets this bit but not the 2108 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that 2109 * this Device may not support all OCE AP functionalities but can support 2110 * only OCE STA-CFON functionalities. 2111 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self 2112 * managed regulatory. 2113 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time). 2114 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE) 2115 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation 2116 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving 2117 * and applying thermal configuration through 2118 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and 2119 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from 2120 * userspace. 2121 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r. 2122 * With Adaptive 11r feature, access points advertise the vendor 2123 * specific IEs and MDE but do not include FT AKM in the RSNE. 2124 * The Adaptive 11r supported stations are expected to identify 2125 * such vendor specific IEs and connect to the AP in FT mode though 2126 * the profile is configured in non-FT mode. 2127 * The driver-based SME cases also need to have this support for 2128 * Adaptive 11r to handle the connection and roaming scenarios. 2129 * This flag indicates the support for the same to the user space. 2130 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports 2131 * concurrent network sessions on different Wi-Fi bands. This feature 2132 * capability is attributed to the hardware's capability to support 2133 * the same (e.g., DBS). 2134 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the 2135 * responses for the respective TWT operations are asynchronous (separate 2136 * event message) from the driver. If not specified, the responses are 2137 * synchronous (in vendor command reply) to the request. Each TWT 2138 * operation is specifically mentioned (against its respective 2139 * documentation) to support either of these or both modes. 2140 * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates 2141 * that the driver requires add/del virtual interface path using the 2142 * generic nl80211 commands for NDP interface create/delete and to 2143 * register/unregister the netdev instead of creating/deleting the NDP 2144 * interface using the vendor commands 2145 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and 2146 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel 2147 * (5.12 version onward), interface creation/deletion is not allowed using 2148 * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK 2149 * during the register/unregister of netdev. Create and delete NDP 2150 * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE 2151 * commands respectively if the driver advertises this capability set. 2152 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in 2153 * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is 2154 * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored. 2155 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP 2156 * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then 2157 * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored. 2158 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in 2159 * station mode supports secure RTT measurement exchange. If 2160 * NL80211_EXT_FEATURE_SECURE_RTT is set, 2161 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored. 2162 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP 2163 * mode supports secure RTT measurement exchange. If 2164 * NL80211_EXT_FEATURE_SECURE_RTT is set, 2165 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored. 2166 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that 2167 * the device in station mode supports protection of range negotiation and 2168 * measurement management frames. If 2169 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then 2170 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored. 2171 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that 2172 * the device in AP mode supports protection of range negotiation and 2173 * measurement management frames. If 2174 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then 2175 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored. 2176 * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device 2177 * in AP mode supports configuring allowed frequency list for AP operation 2178 * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST. 2179 * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates 2180 * that the device supports enhanced audio experience over WLAN feature. 2181 * @QCA_WLAN_VENDOR_FEATURE_HT_VHT_TWT_RESPONDER: Flag indicates that the device 2182 * in AP mode supports TWT responder mode in HT and VHT modes. 2183 * 2184 * @QCA_WLAN_VENDOR_FEATURE_RSN_OVERRIDE_STA: Flag indicates that the device 2185 * supports RSNE/RSNXE overriding in STA mode. Supplicant should enable 2186 * RSN overriding elements use only when the driver indicates this feature 2187 * flag. For BSS selection offload to the driver case, the driver shall 2188 * strip/modify the RSN Selection element indicated in connect request 2189 * elements or add that element if none was provided based on the BSS 2190 * selected by the driver. 2191 * 2192 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits 2193 */ 2194 enum qca_wlan_vendor_features { 2195 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0, 2196 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1, 2197 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2, 2198 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3, 2199 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4, 2200 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5, 2201 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6, 2202 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7, 2203 QCA_WLAN_VENDOR_FEATURE_TWT = 8, 2204 QCA_WLAN_VENDOR_FEATURE_11AX = 9, 2205 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10, 2206 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11, 2207 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12, 2208 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13, 2209 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14, 2210 QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15, 2211 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16, 2212 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17, 2213 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18, 2214 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19, 2215 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20, 2216 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21, 2217 QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22, 2218 QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23, 2219 QCA_WLAN_VENDOR_FEATURE_HT_VHT_TWT_RESPONDER = 24, 2220 QCA_WLAN_VENDOR_FEATURE_RSN_OVERRIDE_STA = 25, 2221 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */ 2222 }; 2223 2224 /** 2225 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication 2226 * 2227 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to 2228 * the offloaded data. 2229 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded 2230 * data. 2231 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload 2232 * indication. 2233 */ 2234 enum qca_wlan_vendor_attr_data_offload_ind { 2235 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0, 2236 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION, 2237 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL, 2238 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT, 2239 2240 /* keep last */ 2241 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST, 2242 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX = 2243 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1 2244 }; 2245 2246 /** 2247 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set 2248 * OCB config 2249 * 2250 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the 2251 * configuration 2252 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule 2253 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels 2254 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be 2255 * scheduled 2256 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel 2257 * information 2258 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL 2259 * active state configuration 2260 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as 2261 * OCB_CONFIG_FLAG_80211_FRAME_MODE 2262 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to 2263 * use in the case that a packet is sent without a TX control header 2264 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the 2265 * last TA received that the local time set by TA is synchronous to other 2266 * communicating OCB STAs. 2267 */ 2268 enum qca_wlan_vendor_attr_ocb_set_config { 2269 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0, 2270 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1, 2271 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2, 2272 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3, 2273 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4, 2274 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5, 2275 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6, 2276 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7, 2277 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8, 2278 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9, 2279 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST, 2280 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX = 2281 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1 2282 }; 2283 2284 /** 2285 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set 2286 * UTC time 2287 * 2288 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of 2289 * 10 bytes 2290 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of 2291 * 5 bytes 2292 */ 2293 enum qca_wlan_vendor_attr_ocb_set_utc_time { 2294 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0, 2295 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1, 2296 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2, 2297 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST, 2298 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX = 2299 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1 2300 }; 2301 2302 /** 2303 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes 2304 * to start sending timing advert frames 2305 * 2306 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency 2307 * on which to send the frames 2308 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times 2309 * the frame is sent in 5 seconds 2310 */ 2311 enum qca_wlan_vendor_attr_ocb_start_timing_advert { 2312 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0, 2313 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1, 2314 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2, 2315 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST, 2316 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX = 2317 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1 2318 }; 2319 2320 /** 2321 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes 2322 * to stop timing advert 2323 * 2324 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel 2325 * frequency on which to stop the timing advert 2326 */ 2327 enum qca_wlan_vendor_attr_ocb_stop_timing_advert { 2328 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0, 2329 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1, 2330 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST, 2331 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX = 2332 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1 2333 }; 2334 2335 /** 2336 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to 2337 * get TSF timer value 2338 * 2339 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the 2340 * timer 2341 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer 2342 */ 2343 enum qca_wlan_vendor_attr_ocb_get_tsf_resp { 2344 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0, 2345 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1, 2346 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2, 2347 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST, 2348 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX = 2349 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1 2350 }; 2351 2352 enum qca_vendor_attr_get_preferred_freq_list { 2353 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID, 2354 /* A 32-unsigned value; the interface type/mode for which the preferred 2355 * frequency list is requested (see enum qca_iface_type for possible 2356 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to 2357 * kernel and in the kernel response back to user-space. 2358 */ 2359 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE, 2360 /* An array of 32-unsigned values; values are frequency (MHz); sent 2361 * from kernel space to user space. 2362 */ 2363 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST, 2364 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl 2365 * attribute. Each element contains frequency (MHz), weight, and flag 2366 * bit mask indicating how the frequency should be used in P2P 2367 * negotiation; sent from kernel space to user space. 2368 */ 2369 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL, 2370 /* keep last */ 2371 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST, 2372 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX = 2373 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1 2374 }; 2375 2376 enum qca_vendor_attr_probable_oper_channel { 2377 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID, 2378 /* 32-bit unsigned value; indicates the connection/iface type likely to 2379 * come on this channel (see enum qca_iface_type). 2380 */ 2381 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE, 2382 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */ 2383 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ, 2384 /* keep last */ 2385 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST, 2386 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX = 2387 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1 2388 }; 2389 2390 enum qca_iface_type { 2391 QCA_IFACE_TYPE_STA, 2392 QCA_IFACE_TYPE_AP, 2393 QCA_IFACE_TYPE_P2P_CLIENT, 2394 QCA_IFACE_TYPE_P2P_GO, 2395 QCA_IFACE_TYPE_IBSS, 2396 QCA_IFACE_TYPE_TDLS, 2397 }; 2398 2399 enum qca_set_band { 2400 QCA_SETBAND_AUTO = 0, 2401 QCA_SETBAND_5G = BIT(0), 2402 QCA_SETBAND_2G = BIT(1), 2403 QCA_SETBAND_6G = BIT(2), 2404 }; 2405 2406 /** 2407 * enum qca_access_policy - Access control policy 2408 * 2409 * Access control policy is applied on the configured IE 2410 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE). 2411 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY. 2412 * 2413 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match 2414 * the specific configuration (IE) set, i.e., allow all the 2415 * connections which do not match the configuration. 2416 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match 2417 * the specific configuration (IE) set, i.e., deny all the 2418 * connections which do not match the configuration. 2419 */ 2420 enum qca_access_policy { 2421 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED, 2422 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED, 2423 }; 2424 2425 /** 2426 * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture 2427 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32) 2428 * Specify the TSF command. Possible values are defined in 2429 * &enum qca_tsf_cmd. 2430 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64) 2431 * This attribute contains TSF timer value. This attribute is only available 2432 * in %QCA_TSF_GET, %QCA_TSF_SYNC_GET or %QCA_TSF_SYNC_GET_CSA_TIMESTAMP 2433 * response. 2434 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64) 2435 * This attribute contains SOC timer value at TSF capture. This attribute is 2436 * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response. 2437 * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32) 2438 * This attribute is used to provide TSF sync interval and only applicable when 2439 * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the 2440 * driver will use the default value. Time unit is in milliseconds. 2441 * @QCA_WLAN_VENDOR_ATTR_TSF_PAD: Attribute used for padding for 64-bit 2442 * alignment. 2443 */ 2444 enum qca_vendor_attr_tsf_cmd { 2445 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0, 2446 QCA_WLAN_VENDOR_ATTR_TSF_CMD, 2447 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE, 2448 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE, 2449 QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL, 2450 QCA_WLAN_VENDOR_ATTR_TSF_PAD, 2451 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST, 2452 QCA_WLAN_VENDOR_ATTR_TSF_MAX = 2453 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1 2454 }; 2455 2456 /** 2457 * enum qca_tsf_cmd: TSF driver commands 2458 * @QCA_TSF_CAPTURE: Initiate TSF Capture 2459 * @QCA_TSF_GET: Get TSF capture value 2460 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value 2461 * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target 2462 * will automatically send TSF report to the host. To query 2463 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY or 2464 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER, this operation needs 2465 * to be initiated first. 2466 * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target 2467 * will not automatically send TSF report to the host. If 2468 * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and 2469 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY or 2470 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER is not queried 2471 * anymore, this operation needs to be initiated. 2472 * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically 2473 * fetches TSF and host time mapping from the firmware with interval configured 2474 * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the 2475 * interval value is not provided the driver will use the default value. The 2476 * userspace can query the TSF and host time mapping via the %QCA_TSF_GET 2477 * command. 2478 * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature. 2479 * @QCA_TSF_SYNC_GET_CSA_TIMESTAMP: Get TSF timestamp when AP will move and 2480 * starts beaconing on a new channel. The driver synchronously responds with the 2481 * TSF value using attribute %QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE. Userspace 2482 * gets the valid CSA TSF after receiving %NL80211_CMD_CH_SWITCH_STARTED_NOTIFY 2483 * on the AP interface. This TSF can be sent via OOB mechanism to connected 2484 * clients. 2485 */ 2486 enum qca_tsf_cmd { 2487 QCA_TSF_CAPTURE, 2488 QCA_TSF_GET, 2489 QCA_TSF_SYNC_GET, 2490 QCA_TSF_AUTO_REPORT_ENABLE, 2491 QCA_TSF_AUTO_REPORT_DISABLE, 2492 QCA_TSF_SYNC_START, 2493 QCA_TSF_SYNC_STOP, 2494 QCA_TSF_SYNC_GET_CSA_TIMESTAMP, 2495 }; 2496 2497 /** 2498 * enum qca_vendor_attr_wisa_cmd 2499 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32) 2500 * WISA setup vendor commands 2501 */ 2502 enum qca_vendor_attr_wisa_cmd { 2503 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0, 2504 QCA_WLAN_VENDOR_ATTR_WISA_MODE, 2505 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST, 2506 QCA_WLAN_VENDOR_ATTR_WISA_MAX = 2507 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1 2508 }; 2509 2510 /* IEEE 802.11 Vendor Specific elements */ 2511 2512 /** 2513 * enum qca_vendor_element_id - QCA Vendor Specific element types 2514 * 2515 * These values are used to identify QCA Vendor Specific elements. The 2516 * payload of the element starts with the three octet OUI (OUI_QCA) and 2517 * is followed by a single octet type which is defined by this enum. 2518 * 2519 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list. 2520 * This element can be used to specify preference order for supported 2521 * channels. The channels in this list are in preference order (the first 2522 * one has the highest preference) and are described as a pair of 2523 * (global) Operating Class and Channel Number (each one octet) fields. 2524 * 2525 * This extends the standard P2P functionality by providing option to have 2526 * more than one preferred operating channel. When this element is present, 2527 * it replaces the preference indicated in the Operating Channel attribute. 2528 * For supporting other implementations, the Operating Channel attribute is 2529 * expected to be used with the highest preference channel. Similarly, all 2530 * the channels included in this Preferred channel list element are 2531 * expected to be included in the Channel List attribute. 2532 * 2533 * This vendor element may be included in GO Negotiation Request, P2P 2534 * Invitation Request, and Provision Discovery Request frames. 2535 * 2536 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element. 2537 * This element can be used for pre-standard publication testing of HE 2538 * before P802.11ax draft assigns the element ID. The payload of this 2539 * vendor specific element is defined by the latest P802.11ax draft. 2540 * Please note that the draft is still work in progress and this element 2541 * payload is subject to change. 2542 * 2543 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element. 2544 * This element can be used for pre-standard publication testing of HE 2545 * before P802.11ax draft assigns the element ID. The payload of this 2546 * vendor specific element is defined by the latest P802.11ax draft. 2547 * Please note that the draft is still work in progress and this element 2548 * payload is subject to change. 2549 * 2550 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set 2551 * element). 2552 * This element can be used for pre-standard publication testing of HE 2553 * before P802.11ax draft assigns the element ID extension. The payload of 2554 * this vendor specific element is defined by the latest P802.11ax draft 2555 * (not including the Element ID Extension field). Please note that the 2556 * draft is still work in progress and this element payload is subject to 2557 * change. 2558 * 2559 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element. 2560 * This element can be used for pre-standard publication testing of HE 2561 * before P802.11ax draft assigns the element ID extension. The payload of 2562 * this vendor specific element is defined by the latest P802.11ax draft 2563 * (not including the Element ID Extension field). Please note that the 2564 * draft is still work in progress and this element payload is subject to 2565 * change. 2566 * 2567 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element. 2568 * This element can be used for pre-standard publication testing of HE 2569 * before P802.11ax draft assigns the element ID extension. The payload of 2570 * this vendor specific element is defined by the latest P802.11ax draft 2571 * (not including the Element ID Extension field). Please note that the 2572 * draft is still work in progress and this element payload is subject to 2573 * change. 2574 * 2575 * @QCA_VENDOR_ELEM_ALLPLAY: Allplay element 2576 */ 2577 enum qca_vendor_element_id { 2578 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0, 2579 QCA_VENDOR_ELEM_HE_CAPAB = 1, 2580 QCA_VENDOR_ELEM_HE_OPER = 2, 2581 QCA_VENDOR_ELEM_RAPS = 3, 2582 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4, 2583 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5, 2584 QCA_VENDOR_ELEM_ALLPLAY = 6, 2585 }; 2586 2587 /** 2588 * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the 2589 * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take. 2590 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority 2591 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority 2592 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority 2593 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority 2594 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority 2595 */ 2596 enum qca_wlan_vendor_scan_priority { 2597 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0, 2598 QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1, 2599 QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2, 2600 QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3, 2601 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4, 2602 }; 2603 2604 /** 2605 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes 2606 * 2607 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan 2608 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes 2609 * with frequencies to be scanned (in MHz) 2610 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned 2611 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported 2612 * rates to be included 2613 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests 2614 * at non CCK rate in 2GHz band 2615 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags 2616 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the 2617 * driver for the specific scan request 2618 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan 2619 * request decoded as in enum scan_status 2620 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation 2621 * scan flag is set 2622 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with 2623 * randomisation 2624 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the 2625 * specific BSSID to scan for. 2626 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in 2627 * microseconds. This is a common value which applies across all 2628 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES. 2629 * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to 2630 * other scan requests. It is a u32 attribute and takes values from enum 2631 * qca_wlan_vendor_scan_priority. This is an optional attribute. 2632 * If this attribute is not configured, the driver shall use 2633 * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan. 2634 * @QCA_WLAN_VENDOR_ATTR_SCAN_PAD: Attribute used for padding for 64-bit 2635 * alignment. 2636 * @QCA_WLAN_VENDOR_ATTR_SCAN_LINK_ID: This u8 attribute is used for OBSS scan 2637 * when AP is operating as MLD to specify which link is requesting the 2638 * scan or which link the scan result is for. No need of this attribute 2639 * in other cases. 2640 */ 2641 enum qca_wlan_vendor_attr_scan { 2642 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0, 2643 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1, 2644 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2, 2645 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3, 2646 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4, 2647 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5, 2648 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6, 2649 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7, 2650 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8, 2651 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9, 2652 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10, 2653 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11, 2654 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12, 2655 QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13, 2656 QCA_WLAN_VENDOR_ATTR_SCAN_PAD = 14, 2657 QCA_WLAN_VENDOR_ATTR_SCAN_LINK_ID = 15, 2658 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST, 2659 QCA_WLAN_VENDOR_ATTR_SCAN_MAX = 2660 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1 2661 }; 2662 2663 /** 2664 * enum scan_status - Specifies the valid values the vendor scan attribute 2665 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take 2666 * 2667 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with 2668 * new scan results 2669 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between 2670 */ 2671 enum scan_status { 2672 VENDOR_SCAN_STATUS_NEW_RESULTS, 2673 VENDOR_SCAN_STATUS_ABORTED, 2674 VENDOR_SCAN_STATUS_MAX, 2675 }; 2676 2677 /** 2678 * enum qca_vendor_attr_ota_test - Specifies the values for vendor 2679 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST 2680 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test 2681 */ 2682 enum qca_vendor_attr_ota_test { 2683 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID, 2684 /* 8-bit unsigned value to indicate if OTA test is enabled */ 2685 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE, 2686 /* keep last */ 2687 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST, 2688 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX = 2689 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1 2690 }; 2691 2692 /** 2693 * enum qca_vendor_attr_txpower_scale - vendor sub commands index 2694 * 2695 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value 2696 */ 2697 enum qca_vendor_attr_txpower_scale { 2698 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID, 2699 /* 8-bit unsigned value to indicate the scaling of tx power */ 2700 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE, 2701 /* keep last */ 2702 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST, 2703 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX = 2704 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1 2705 }; 2706 2707 /** 2708 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease 2709 * 2710 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB. 2711 */ 2712 enum qca_vendor_attr_txpower_decr_db { 2713 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID, 2714 /* 8-bit unsigned value to indicate the reduction of TX power in dB for 2715 * a virtual interface. 2716 */ 2717 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB, 2718 /* keep last */ 2719 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST, 2720 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX = 2721 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1 2722 }; 2723 2724 /* Attributes for data used by 2725 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and 2726 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands. 2727 */ 2728 enum qca_wlan_vendor_attr_config { 2729 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0, 2730 /* Unsigned 32-bit value to set the DTIM period. 2731 * Whether the wifi chipset wakes at every dtim beacon or a multiple of 2732 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3 2733 * DTIM beacons. 2734 */ 2735 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1, 2736 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor 2737 * used to calculate statistics like average the TSF offset or average 2738 * number of frame leaked. 2739 * For instance, upon Beacon frame reception: 2740 * current_avg = ((beacon_TSF - TBTT) * factor + 2741 * previous_avg * (0x10000 - factor)) / 0x10000 2742 * For instance, when evaluating leaky APs: 2743 * current_avg = ((num frame received within guard time) * factor + 2744 * previous_avg * (0x10000 - factor)) / 0x10000 2745 */ 2746 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2, 2747 /* Unsigned 32-bit value to configure guard time, i.e., when 2748 * implementing IEEE power management based on frame control PM bit, how 2749 * long the driver waits before shutting down the radio and after 2750 * receiving an ACK frame for a Data frame with PM bit set. 2751 */ 2752 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3, 2753 /* Unsigned 32-bit value to change the FTM capability dynamically */ 2754 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4, 2755 /* Unsigned 16-bit value to configure maximum TX rate dynamically */ 2756 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5, 2757 /* Unsigned 32-bit value to configure the number of continuous 2758 * Beacon Miss which shall be used by the firmware to penalize 2759 * the RSSI. 2760 */ 2761 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6, 2762 /* Unsigned 8-bit value to configure the channel avoidance indication 2763 * behavior. Firmware to send only one indication and ignore duplicate 2764 * indications when set to avoid multiple Apps wakeups. 2765 */ 2766 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7, 2767 /* 8-bit unsigned value to configure the maximum TX MPDU for 2768 * aggregation. 2769 */ 2770 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8, 2771 /* 8-bit unsigned value to configure the maximum RX MPDU for 2772 * aggregation. 2773 */ 2774 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9, 2775 /* 8-bit unsigned value to configure the Non aggregrate/11g sw 2776 * retry threshold (0 disable, 31 max). 2777 */ 2778 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10, 2779 /* 8-bit unsigned value to configure the aggregrate sw 2780 * retry threshold (0 disable, 31 max). 2781 */ 2782 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11, 2783 /* 8-bit unsigned value to configure the MGMT frame 2784 * retry threshold (0 disable, 31 max). 2785 */ 2786 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12, 2787 /* 8-bit unsigned value to configure the CTRL frame 2788 * retry threshold (0 disable, 31 max). 2789 */ 2790 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13, 2791 /* 8-bit unsigned value to configure the propagation delay for 2792 * 2G/5G band (0~63, units in us) 2793 */ 2794 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14, 2795 /* Unsigned 32-bit value to configure the number of unicast TX fail 2796 * packet count. The peer is disconnected once this threshold is 2797 * reached. 2798 */ 2799 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15, 2800 /* Attribute used to set scan default IEs to the driver. 2801 * 2802 * These IEs can be used by scan operations that will be initiated by 2803 * the driver/firmware. 2804 * 2805 * For further scan requests coming to the driver, these IEs should be 2806 * merged with the IEs received along with scan request coming to the 2807 * driver. If a particular IE is present in the scan default IEs but not 2808 * present in the scan request, then that IE should be added to the IEs 2809 * sent in the Probe Request frames for that scan request. 2810 */ 2811 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16, 2812 /* Unsigned 32-bit attribute for generic commands */ 2813 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17, 2814 /* Unsigned 32-bit value attribute for generic commands */ 2815 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18, 2816 /* Unsigned 32-bit data attribute for generic command response */ 2817 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19, 2818 /* Unsigned 32-bit length attribute for 2819 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 2820 */ 2821 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20, 2822 /* Unsigned 32-bit flags attribute for 2823 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 2824 */ 2825 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21, 2826 /* Unsigned 32-bit, defining the access policy. 2827 * See enum qca_access_policy. Used with 2828 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. 2829 */ 2830 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22, 2831 /* Sets the list of full set of IEs for which a specific access policy 2832 * has to be applied. Used along with 2833 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access. 2834 * Zero length payload can be used to clear this access constraint. 2835 */ 2836 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23, 2837 /* Unsigned 32-bit, specifies the interface index (netdev) for which the 2838 * corresponding configurations are applied. If the interface index is 2839 * not specified, the configurations are attributed to the respective 2840 * wiphy. 2841 */ 2842 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24, 2843 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */ 2844 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25, 2845 /* 8-bit unsigned value to configure the driver and below layers to 2846 * ignore the assoc disallowed set by APs while connecting 2847 * 1-Ignore, 0-Don't ignore 2848 */ 2849 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26, 2850 /* 32-bit unsigned value to trigger antenna diversity features: 2851 * 1-Enable, 0-Disable 2852 */ 2853 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27, 2854 /* 32-bit unsigned value to configure specific chain antenna */ 2855 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28, 2856 /* 32-bit unsigned value to trigger cycle selftest 2857 * 1-Enable, 0-Disable 2858 */ 2859 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29, 2860 /* 32-bit unsigned to configure the cycle time of selftest 2861 * the unit is micro-second 2862 */ 2863 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30, 2864 /* 32-bit unsigned value to set reorder timeout for AC_VO */ 2865 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31, 2866 /* 32-bit unsigned value to set reorder timeout for AC_VI */ 2867 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32, 2868 /* 32-bit unsigned value to set reorder timeout for AC_BE */ 2869 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33, 2870 /* 32-bit unsigned value to set reorder timeout for AC_BK */ 2871 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34, 2872 /* 6-byte MAC address to point out the specific peer */ 2873 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC = 35, 2874 /* Backward compatibility with the original name */ 2875 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 2876 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC, 2877 /* 32-bit unsigned value to set window size for specific peer */ 2878 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36, 2879 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */ 2880 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37, 2881 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */ 2882 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38, 2883 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for 2884 * station device while in disconnect state. The attribute use the 2885 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz, 2886 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or 2887 * 10 MHz channel width, the station will not connect to a BSS using 20 2888 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to 2889 * clear this constraint. 2890 */ 2891 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39, 2892 /* 32-bit unsigned value to configure the propagation absolute delay 2893 * for 2G/5G band (units in us) 2894 */ 2895 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40, 2896 /* 32-bit unsigned value to set probe period */ 2897 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41, 2898 /* 32-bit unsigned value to set stay period */ 2899 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42, 2900 /* 32-bit unsigned value to set snr diff */ 2901 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43, 2902 /* 32-bit unsigned value to set probe dwell time */ 2903 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44, 2904 /* 32-bit unsigned value to set mgmt snr weight */ 2905 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45, 2906 /* 32-bit unsigned value to set data snr weight */ 2907 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46, 2908 /* 32-bit unsigned value to set ack snr weight */ 2909 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47, 2910 /* 32-bit unsigned value to configure the listen interval. 2911 * This is in units of beacon intervals. This configuration alters 2912 * the negotiated listen interval with the AP during the connection. 2913 * It is highly recommended to configure a value less than or equal to 2914 * the one negotiated during the association. Configuring any greater 2915 * value can have adverse effects (frame loss, AP disassociating STA, 2916 * etc.). 2917 */ 2918 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48, 2919 /* 2920 * 8 bit unsigned value that is set on an AP/GO virtual interface to 2921 * disable operations that would cause the AP/GO to leave its operating 2922 * channel. 2923 * 2924 * This will restrict the scans to the AP/GO operating channel and the 2925 * channels of the other band, if DBS is supported.A STA/CLI interface 2926 * brought up after this setting is enabled, will be restricted to 2927 * connecting to devices only on the AP/GO interface's operating channel 2928 * or on the other band in DBS case. P2P supported channel list is 2929 * modified, to only include AP interface's operating-channel and the 2930 * channels of the other band if DBS is supported. 2931 * 2932 * These restrictions are only applicable as long as the AP/GO interface 2933 * is alive. If the AP/GO interface is brought down then this 2934 * setting/restriction is forgotten. 2935 * 2936 * If this variable is set on an AP/GO interface while a multi-channel 2937 * concurrent session is active, it has no effect on the operation of 2938 * the current interfaces, other than restricting the scan to the AP/GO 2939 * operating channel and the other band channels if DBS is supported. 2940 * However, if the STA is brought down and restarted then the new STA 2941 * connection will either be formed on the AP/GO channel or on the 2942 * other band in a DBS case. This is because of the scan being 2943 * restricted on these channels as mentioned above. 2944 * 2945 * 1-Restrict / 0-Don't restrict offchannel operations. 2946 */ 2947 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49, 2948 /* 2949 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload) 2950 * on an interface. 2951 * 1 - Enable, 0 - Disable. 2952 */ 2953 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50, 2954 2955 /* 2956 * 8 bit unsigned value to globally enable/disable scan 2957 * 1 - Enable, 0 - Disable. 2958 */ 2959 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51, 2960 2961 /* 8-bit unsigned value to set the total beacon miss count 2962 * This parameter will set the total beacon miss count. 2963 */ 2964 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52, 2965 2966 /* Unsigned 32-bit value to configure the number of continuous 2967 * Beacon Miss which shall be used by the firmware to penalize 2968 * the RSSI for BTC. 2969 */ 2970 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53, 2971 2972 /* 8-bit unsigned value to configure the driver and below layers to 2973 * enable/disable all FILS features. 2974 * 0-enable, 1-disable 2975 */ 2976 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54, 2977 2978 /* 16-bit unsigned value to configure the level of WLAN latency 2979 * module. See enum qca_wlan_vendor_attr_config_latency_level. 2980 */ 2981 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55, 2982 2983 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from 2984 * the connect interface. Exclusively used for the scenarios where the 2985 * device is used as a test bed device with special functionality and 2986 * not recommended for production. This helps driver to not validate the 2987 * RSNE passed from user space and thus allow arbitrary IE data to be 2988 * used for testing purposes. 2989 * 1-enable, 0-disable. 2990 * Applications set/reset this configuration. If not reset, this 2991 * parameter remains in use until the driver is unloaded. 2992 */ 2993 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56, 2994 2995 /* 8-bit unsigned value to trigger green Tx power saving. 2996 * 1-Enable, 0-Disable 2997 */ 2998 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57, 2999 3000 /* Attribute to configure disconnect IEs to the driver. 3001 * This carries an array of unsigned 8-bit characters. 3002 * 3003 * If this is configured, driver shall fill the IEs in disassoc/deauth 3004 * frame. 3005 * These IEs are expected to be considered only for the next 3006 * immediate disconnection (disassoc/deauth frame) originated by 3007 * the DUT, irrespective of the entity (user space/driver/firmware) 3008 * triggering the disconnection. 3009 * The host drivers are not expected to use the IEs set through 3010 * this interface for further disconnections after the first immediate 3011 * disconnection initiated post the configuration. 3012 * If the IEs are also updated through cfg80211 interface (after the 3013 * enhancement to cfg80211_disconnect), host driver is expected to 3014 * take the union of IEs from both of these interfaces and send in 3015 * further disassoc/deauth frames. 3016 */ 3017 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58, 3018 3019 /* 8-bit unsigned value for ELNA bypass. 3020 * 0 - Disable eLNA bypass. 3021 * 1 - Enable eLNA bypass. 3022 * 2 - Reset eLNA bypass configuration, the driver should 3023 * revert to the default configuration of eLNA bypass. 3024 */ 3025 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59, 3026 3027 /* 8-bit unsigned value. This attribute enables/disables the host driver 3028 * to send the Beacon Report Response with failure reason for the 3029 * scenarios where STA cannot honor the Beacon Report Request from AP. 3030 * 1-Enable, 0-Disable. 3031 */ 3032 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60, 3033 3034 /* 8-bit unsigned value. This attribute enables/disables the host driver 3035 * to send roam reason information in the Reassociation Request frame to 3036 * the target AP when roaming within the same ESS. 3037 * 1-Enable, 0-Disable. 3038 */ 3039 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61, 3040 3041 /* 32-bit unsigned value to configure different PHY modes to the 3042 * driver/firmware. The possible values are defined in 3043 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to 3044 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting 3045 * the driver. 3046 */ 3047 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62, 3048 3049 /* 8-bit unsigned value to configure the maximum supported channel width 3050 * for STA mode. If this value is configured when STA is in connected 3051 * state, it should not exceed the negotiated channel width. If it is 3052 * configured when STA is in disconnected state, the configured value 3053 * will take effect for the next immediate connection. 3054 * This configuration can be sent inside 3055 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum 3056 * supported channel width per-MLO link. 3057 * 3058 * This uses values defined in enum nl80211_chan_width. 3059 */ 3060 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63, 3061 3062 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment. 3063 * This attribute is only applicable for STA mode. When dynamic 3064 * bandwidth adjustment is disabled, STA will use static channel width 3065 * the value of which is negotiated during connection. 3066 * 1-enable (default), 0-disable 3067 */ 3068 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64, 3069 3070 /* 8-bit unsigned value to configure the maximum number of subframes of 3071 * TX MSDU for aggregation. Possible values are 0-31. When set to 0, 3072 * it is decided by the hardware. 3073 */ 3074 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65, 3075 3076 /* 8-bit unsigned value to configure the maximum number of subframes of 3077 * RX MSDU for aggregation. Possible values are 0-31. When set to 0, 3078 * it is decided by the hardware. 3079 */ 3080 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66, 3081 3082 /* 8-bit unsigned value. This attribute is used to dynamically 3083 * enable/disable the LDPC capability of the device. When configured in 3084 * the disconnected state, the updated configuration will be considered 3085 * for the immediately following connection attempt. If this 3086 * configuration is modified while the device is in the connected state, 3087 * the LDPC TX will be updated with this configuration immediately, 3088 * while the LDPC RX configuration update will take place starting from 3089 * the subsequent association attempt. 3090 * 1-Enable, 0-Disable. 3091 */ 3092 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67, 3093 3094 /* 8-bit unsigned value. This attribute is used to dynamically 3095 * enable/disable the TX STBC capability of the device. When configured 3096 * in the disconnected state, the updated configuration will be 3097 * considered for the immediately following connection attempt. If the 3098 * connection is formed with TX STBC enabled and if this configuration 3099 * is disabled during that association, the TX will be impacted 3100 * immediately. Further connection attempts will disable TX STBC. 3101 * However, enabling the TX STBC for a connected session with disabled 3102 * capability is not allowed and will fail. 3103 * 1-Enable, 0-Disable. 3104 */ 3105 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68, 3106 3107 /* 8-bit unsigned value. This attribute is used to dynamically 3108 * enable/disable the RX STBC capability of the device. When configured 3109 * in the disconnected state, the updated configuration will be 3110 * considered for the immediately following connection attempt. If the 3111 * configuration is modified in the connected state, there will be no 3112 * impact for the current association, but further connection attempts 3113 * will use the updated configuration. 3114 * 1-Enable, 0-Disable. 3115 */ 3116 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69, 3117 3118 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3119 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70, 3120 3121 /* 8-bit unsigned value to configure Optimized Power Management mode: 3122 * Modes are defined by enum qca_wlan_vendor_opm_mode. 3123 * 3124 * This attribute shall be configured along with 3125 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and 3126 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes 3127 * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED. 3128 */ 3129 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71, 3130 3131 /* 8-bit unsigned value. This attribute takes the QoS/access category 3132 * value represented by the enum qca_wlan_ac_type and expects the driver 3133 * to upgrade the UDP frames to this access category. The value of 3134 * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the 3135 * DSCP value configured in the frame with the intention to only upgrade 3136 * the access category. That said, it is not intended to downgrade the 3137 * access category for the frames. 3138 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be 3139 * disabled, as BK is of the lowest priority and an upgrade to it does 3140 * not result in any changes for the frames. 3141 * 3142 * If only UDP frames of BE or BK access category needs to be upgraded 3143 * without changing the access category of VO or VI UDP frames, refer to 3144 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK. 3145 * 3146 * This attribute is not recommended to be used as it blindly forces all 3147 * UDP packets to a higher access category which could impact the 3148 * traffic pattern of all apps using UDP and can cause unknown behavior. 3149 */ 3150 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72, 3151 3152 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3153 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73, 3154 3155 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3156 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74, 3157 3158 /* 8-bit unsigned value to configure ANI setting type. 3159 * See &enum qca_wlan_ani_setting for possible values. 3160 */ 3161 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75, 3162 /* 32-bit signed value to configure ANI level. This is used when 3163 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED. 3164 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO 3165 * is invalid, the driver will return a failure. 3166 */ 3167 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76, 3168 3169 /* 8-bit unsigned value. This attribute is used to dynamically configure 3170 * the number of spatial streams used for transmitting the data. When 3171 * configured in the disconnected state, the configured value will 3172 * be considered for the following connection attempt. 3173 * If the NSS is updated after the connection, the updated NSS value 3174 * is notified to the peer using the Operating Mode Notification/Spatial 3175 * Multiplexing Power Save frame. 3176 * The TX NSS value configured after the connection shall not be greater 3177 * than the value negotiated during the connection. Any such higher 3178 * value configuration shall be treated as invalid configuration by 3179 * the driver. This attribute shall be configured along with 3180 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric 3181 * configuration (such as 2X2 or 1X1) or the asymmetric 3182 * configuration (such as 1X2). 3183 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along 3184 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver 3185 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS. 3186 */ 3187 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77, 3188 3189 /* 8-bit unsigned value. This attribute is used to dynamically configure 3190 * the number of spatial streams used for receiving the data. When 3191 * configured in the disconnected state, the configured value will 3192 * be considered for the following connection attempt. 3193 * If the NSS is updated after the connection, the updated NSS value 3194 * is notified to the peer using the Operating Mode Notification/Spatial 3195 * Multiplexing Power Save frame. 3196 * The RX NSS value configured after the connection shall not be greater 3197 * than the value negotiated during the connection. Any such higher 3198 * value configuration shall be treated as invalid configuration by 3199 * the driver. This attribute shall be configured along with 3200 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric 3201 * configuration (such as 2X2 or 1X1) or the asymmetric 3202 * configuration (such as 1X2). 3203 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along 3204 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver 3205 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS. 3206 */ 3207 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78, 3208 3209 /* 3210 * 8-bit unsigned value. This attribute, when set, indicates whether the 3211 * specified interface is the primary STA interface when there are more 3212 * than one STA interfaces concurrently active. 3213 * 3214 * This configuration helps the firmware/hardware to support certain 3215 * features (e.g., roaming) on this primary interface, if the same 3216 * cannot be supported on the concurrent STA interfaces simultaneously. 3217 * 3218 * This configuration is only applicable for a single STA interface on 3219 * a device and gives the priority for it only over other concurrent STA 3220 * interfaces. 3221 * 3222 * If the device is a multi wiphy/soc, this configuration applies to a 3223 * single STA interface across the wiphys. 3224 * 3225 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA) 3226 */ 3227 QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79, 3228 3229 /* 3230 * 8-bit unsigned value. This attribute can be used to configure the 3231 * driver to enable/disable FT-over-DS feature. Possible values for 3232 * this attribute are 1-Enable and 0-Disable. 3233 */ 3234 QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80, 3235 3236 /* 3237 * 8-bit unsigned value. This attribute can be used to configure the 3238 * firmware to enable/disable ARP/NS offload feature. Possible values 3239 * for this attribute are 0-Disable and 1-Enable. 3240 * 3241 * This attribute is only applicable for STA/P2P-Client interface, 3242 * and is optional, default behavior is ARP/NS offload enabled. 3243 * 3244 * This attribute can be set in disconnected and connected state, and 3245 * will restore to the default behavior if the interface is closed. 3246 */ 3247 QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81, 3248 3249 /* 3250 * 8-bit unsigned value. This attribute can be used to configure the 3251 * data path mode to be followed for audio traffic. Possible values 3252 * are defined in enum qca_wlan_audio_data_path. 3253 * 3254 * This attribute is used only when the driver advertises support for 3255 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN. 3256 */ 3257 QCA_WLAN_VENDOR_ATTR_CONFIG_AUDIO_DATA_PATH = 82, 3258 3259 /* 3260 * 8-bit unsigned value. This attribute can be used to configure the 3261 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values for 3262 * this attribute are defined in the enum qca_wlan_dbam_config. 3263 */ 3264 QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83, 3265 3266 /* 8-bit unsigned value. This attribute takes the QoS/access category 3267 * value represented by the enum qca_wlan_ac_type and expects the driver 3268 * to upgrade the UDP frames of BE or BK access category to this access 3269 * category. This attribute will not modify UDP frames of VO or VI 3270 * access category. The value of QCA_WLAN_AC_ALL is invalid for this 3271 * attribute. 3272 * 3273 * This will override the DSCP value configured in the frame with the 3274 * intention to only upgrade the access category. That said, it is not 3275 * intended to downgrade the access category for the frames. 3276 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be 3277 * disabled, as BK is of the lowest priority and an upgrade to it does 3278 * not result in any changes for the frames. 3279 * 3280 * This attribute behavior is similar to 3281 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that 3282 * only UDP frames of BE or BK access category are upgraded and not 3283 * UDP frames of VI or VO access category. 3284 * 3285 * This attribute is not recommended to be used as it blindly forces all 3286 * UDP packets of BE or BK access category to a higher access category 3287 * which could impact the traffic pattern of all apps using UDP and can 3288 * cause unknown behavior. 3289 */ 3290 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84, 3291 3292 /* 8-bit unsigned value to configure the driver to enable/disable the 3293 * periodic sounding for Tx beamformer functionality. The default 3294 * behavior uses algorithm to do sounding based on packet stats. 3295 * 3296 * 0 - Default behavior. 3297 * 1 - Enable the periodic sounding for Tx beamformer. 3298 */ 3299 QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85, 3300 3301 /* 8-bit unsigned value, whenever wifi calling (wfc) begins or ends, 3302 * userspace sends this information to the driver/firmware to configure 3303 * wfc state. The driver/firmware uses this information to 3304 * optimize power savings, rate adaption, roaming, etc. 3305 * 3306 * 1 - wfc is on. 3307 * 0 - wfc is off. 3308 */ 3309 QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86, 3310 3311 /* 8-bit unsigned value to configure the driver to enable/disable the 3312 * EHT EML capability in management frame EHT capabilities. 3313 * 1 - Enable, 0 - Disable. 3314 */ 3315 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87, 3316 3317 /* 8-bit unsigned value to configure the driver with EHT MLO max 3318 * simultaneous links to be used for MLO connection. 3319 * The range of the value is 0 to 14. 3320 */ 3321 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88, 3322 3323 /* 8-bit unsigned value to configure the driver with EHT MLO maximum 3324 * number of links to be used for MLO connection. Value 0 restores the 3325 * default value of the maximum MLO links capability of the device. 3326 * The range of the value is 0 to 15. 3327 * 3328 * 0 - Restore default device limit. 3329 * 1 to 15 - Set the maximum number of links to be used for an MLO 3330 * connection. 3331 */ 3332 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89, 3333 3334 /* 8-bit unsigned value to configure the driver with EHT MLO mode. 3335 * Uses enum qca_wlan_eht_mlo_mode values. 3336 */ 3337 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90, 3338 3339 /* Nested attribute with frequencies in u32 attributes to configure a 3340 * list of allowed 20 MHz channel center frequencies in MHz for AP 3341 * operation. Whenever performing a channel selection operation, the 3342 * driver shall generate a new list based on this provided list by 3343 * filtering out channels that cannot be used at that time due to 3344 * regulatory or other constraints. The resulting list is used as the 3345 * list of all allowed channels, i.e., operation on any channel that is 3346 * not included is not allowed, whenever performing operations like ACS 3347 * and DFS. 3348 * 3349 * Userspace shall configure this before starting the AP and the 3350 * configuration is valid only from the next BSS start and until the 3351 * BSS is stopped. The driver shall clear this configuration when the 3352 * AP is stopped and fall back to the default behavior for subsequent 3353 * AP operation. 3354 * 3355 * The default behavior when this configuration is not applicable is the 3356 * driver can choose any of the channels supported by the hardware 3357 * except the channels that cannot be used due to regulatory or other 3358 * constraints. 3359 * 3360 * The driver shall reject this configuration if done after the AP is 3361 * started. This attribute can be used to specify user's choice of 3362 * frequencies and static puncture channel list, etc. 3363 */ 3364 QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91, 3365 3366 /* Nested attribute to indicate EHT MLO links to be forced active. 3367 * It contains link MAC address attributes. These nested attributes are 3368 * of the type NL80211_ATTR_MAC and are used to force enabling of the 3369 * MLO links corresponding to the indicated link MAC addresses. 3370 * Subsequently, the links corresponding to the link MAC addresses that 3371 * are not indicated are forced inactive. 3372 */ 3373 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92, 3374 3375 /* 8-bit unsigned value to configure EMLSR mode entry or exit. 3376 * Uses enum qca_wlan_emlsr_mode values. 3377 */ 3378 QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93, 3379 3380 /* 8-bit unsigned value to configure the channel bandwidth 3381 * for CTS frame transmission during the dymamic bandwidth 3382 * signaling CTS procedure referred in IEEE Std 802.11-2020, 3383 * 10.3.2.9 CTS and DMG CTS procedure. 3384 * This configuration is used for testing purposes. 3385 * 3386 * This uses values defined in enum nl80211_chan_width. 3387 */ 3388 QCA_WLAN_VENDOR_ATTR_CONFIG_CTS_CHANNEL_WIDTH = 94, 3389 3390 /* 8-bit unsigned value. This attribute is used to dynamically 3391 * enable/suspend trigger based UL MU transmission. 3392 * This is supported in STA mode and the device sends Operating 3393 * Mode Indication to inform the change as described in 3394 * IEEE Std 802.11ax-2021, 26.9. 3395 * 3396 * This attribute can be configured when the STA is associated 3397 * to an AP and the configuration is maintained until the current 3398 * association terminates. 3399 * 3400 * By default all UL MU transmissions are enabled. 3401 * 3402 * Uses enum qca_ul_mu_config values. 3403 */ 3404 QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95, 3405 3406 /* 8-bit unsigned value. Optionally specified along with 3407 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected 3408 * state. This configuration is applicable only for the current 3409 * connection. This configuration not allowed in disconnected state. 3410 * This configuration can be sent inside 3411 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum 3412 * supported channel width update type per-MLO link. 3413 * 3414 * Uses enum qca_chan_width_update_type values. 3415 */ 3416 QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96, 3417 3418 /* 8-bit unsigned value to set EPCS (Emergency Preparedness 3419 * Communications Service) feature capability 3420 * 1 - Enable, 0 - Disable. 3421 * 3422 * This configuration is used for testing purposes. 3423 */ 3424 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97, 3425 3426 /* 8-bit unsigned value to enable/disable EPCS priority access 3427 * 1 - Enable, 0 - Disable. 3428 * The EPCS priority access shall be enabled only when EPCS feature 3429 * capability is also enabled (see 3430 * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY). 3431 * 3432 * This configuration is used for testing purposes. 3433 */ 3434 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98, 3435 3436 /* 8-bit unsigned value. Used to specify the MLO link ID of a link 3437 * that is being configured. This attribute must be included in each 3438 * record nested inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS, and 3439 * may be included without nesting to indicate the link that is the 3440 * target of other configuration attributes. 3441 */ 3442 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99, 3443 3444 /* Array of nested links each identified by 3445 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in 3446 * enum qca_wlan_vendor_attr_config, explicit documentation shall be 3447 * added for the attributes in enum qca_wlan_vendor_attr_config to 3448 * support per-MLO link configuration through 3449 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS. 3450 * 3451 * Userspace can configure a single link or multiple links with this 3452 * attribute by nesting the corresponding configuration attributes and 3453 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link. 3454 * 3455 * Userspace can fetch the configuration attribute values for a single 3456 * link or multiple links with this attribute by nesting the 3457 * corresponding configuration attributes and 3458 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link. 3459 * 3460 * For STA interface, this attribute is applicable only in connected 3461 * state when the current connection is MLO capable. The valid values of 3462 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the 3463 * connected AP MLD links. 3464 * 3465 * For AP interface, this configuration applicable only after adding 3466 * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the 3467 * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link 3468 * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to 3469 * the AP interface. 3470 */ 3471 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100, 3472 3473 /* 16-bit unsigned value to configure power save inactivity timeout in 3474 * milliseconds. 3475 * 3476 * STA enters into power save mode (PM=1) after TX/RX inactivity of time 3477 * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO. 3478 * 3479 * This attribute shall be configured along with 3480 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when 3481 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT 3482 * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode. 3483 */ 3484 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101, 3485 3486 /* 16-bit unsigned value to configure speculative wake interval in 3487 * milliseconds. 3488 * 3489 * STA speculatively wakes up to look for buffered data by AP at 3490 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after 3491 * entering into power save. If configured zero, STA wakes up at 3492 * upcoming DTIM beacon. 3493 * 3494 * This attribute shall be configured along with 3495 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and 3496 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT 3497 * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode. 3498 */ 3499 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102, 3500 3501 /* 3502 * 16-bit unsigned value to configure TX max A-MPDU count. 3503 * 3504 * For STA interface, this attribute is applicable only in connected 3505 * state, peer MAC address is not required to be provided. 3506 * 3507 * For AP interface, this attribute is applicable only in started 3508 * state and one of the associated peer STAs must be specified with 3509 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. If this is for an ML 3510 * association, the peer MAC address provided is the link address of 3511 * the non-AP MLD. 3512 * 3513 * This attribute runtime configures the TX maximum aggregation size. 3514 * The value must be in range of 1 to BA window size for the specific 3515 * peer. 3516 */ 3517 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_AMPDU_CNT = 103, 3518 3519 /* 3520 * 8-bit unsigned value to configure TID-to-link mapping negotiation 3521 * type. 3522 * Uses enum qca_wlan_ttlm_negotiation_support values. 3523 * 3524 * This value applies to the complete AP/non-AP MLD interface, and the 3525 * MLD advertises it within the Basic Multi-Link element in the 3526 * association frames. If a new value is configured during an active 3527 * connection, it will take effect in the subsequent associations and 3528 * is not reset during disconnection. 3529 * 3530 * This attribute is used for testing purposes. 3531 */ 3532 QCA_WLAN_VENDOR_ATTR_CONFIG_TTLM_NEGOTIATION_SUPPORT = 104, 3533 3534 /* 8-bit unsigned value. 3535 * 3536 * This attribute configures a traffic shaping mode 3537 * applied during coex scenarios. 3538 * By default all coex traffic shaping modes are enabled, 3539 * i.e., shape WLAN traffic based on coex traffic pattern and priority. 3540 * To shape traffic, STA may enter in power save mode 3541 * and AP may send CTS-to-self frame. 3542 * 3543 * Uses enum qca_coex_traffic_shaping_mode values. 3544 */ 3545 QCA_WLAN_VENDOR_ATTR_CONFIG_COEX_TRAFFIC_SHAPING_MODE = 105, 3546 3547 /* 8-bit unsigned value. 3548 * 3549 * This attribute is used to specify whether an associated peer is a QCA 3550 * device. The associated peer is specified with 3551 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. For MLO cases, the MLD MAC 3552 * address of the peer is used. 3553 * 1 - QCA device, 0 - non-QCA device. 3554 */ 3555 QCA_WLAN_VENDOR_ATTR_CONFIG_QCA_PEER = 106, 3556 3557 /* 8-bit unsigned value to configure BTM support. 3558 * 3559 * The attribute is applicable only for STA interface. Uses enum 3560 * qca_wlan_btm_support values. This configuration is not allowed in 3561 * connected state. 3562 */ 3563 QCA_WLAN_VENDOR_ATTR_CONFIG_BTM_SUPPORT = 107, 3564 3565 /* 16-bit unsigned value to configure client's keep-alive interval in 3566 * seconds. The driver will reduce the keep-alive interval to this 3567 * configured value if the AP advertises BSS maximum idle period and if 3568 * that BSS max idle period is larger than this configured value. If the 3569 * AP does not advertise a maximum value, the configured value will be 3570 * used as a keep-alive period for unprotected frames. 3571 * 3572 * This configuration is applicable only during the STA's current 3573 * association. 3574 */ 3575 QCA_WLAN_VENDOR_ATTR_CONFIG_KEEP_ALIVE_INTERVAL = 108, 3576 3577 /* 8-bit unsigned value to configure reduced power scan mode. 3578 * 3579 * This attribute is used to configure the driver to optimize power 3580 * during scan. For example, the driver can switch to 1x1 from 2x2 mode 3581 * for additional power save. 3582 * 3583 * 1 - Enable reduced power scan mode. 3584 * 0 - Disable reduced power scan mode. 3585 */ 3586 QCA_WLAN_VENDOR_ATTR_CONFIG_REDUCED_POWER_SCAN_MODE = 109, 3587 3588 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3589 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS_2GHZ = 110, 3590 3591 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3592 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS_2GHZ = 111, 3593 3594 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3595 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS_5GHZ = 112, 3596 3597 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3598 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS_5GHZ = 113, 3599 3600 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3601 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS_2GHZ = 114, 3602 3603 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3604 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS_2GHZ = 115, 3605 3606 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3607 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS_5GHZ = 116, 3608 3609 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3610 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS_5GHZ = 117, 3611 3612 /* 16-bit unsigned value. This attribute is used to dynamically 3613 * configure the time duration of data stall detection. Unit is 3614 * milliseconds. Valid value range is 0 or 10 ms to 10000 ms. If the 3615 * value is 0, the previously configured value is cleared. The driver 3616 * rejects this configuration if the value is out of range. This 3617 * configuration is effective for all connections on the chip. If the 3618 * duration is greater than this configuration and consecutive TX no ack 3619 * count is greater than 3620 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_THRESHOLD, 3621 * data stall event is sent to userspace. 3622 */ 3623 QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_DURATION = 118, 3624 3625 /* 16-bit unsigned value. This attribute is used to dynamically 3626 * configure the threshold of data stall detection. Valid value is 0 or 3627 * greater than 10. if the value is 0, the previously configured value 3628 * is cleared. The driver rejects this configuration if the value is out 3629 * of range. This configuration is effective for all connections on the 3630 * chip. If consecutive TX no ack count is greater than this 3631 * configuration and duration is greater than 3632 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_DURATION, 3633 * data stall event is sent to userspace. 3634 */ 3635 QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_THRESHOLD = 119, 3636 3637 /* 8-bit unsigned value to configure the interface offload type 3638 * 3639 * This attribute is used to configure the interface offload capability. 3640 * User can configure software based acceleration, hardware based 3641 * acceleration, or a combination of both using this option. More 3642 * details on each option is described under the enum definition below. 3643 * Uses enum qca_wlan_intf_offload_type for values. 3644 */ 3645 QCA_WLAN_VENDOR_ATTR_CONFIG_INTF_OFFLOAD_TYPE = 120, 3646 3647 /* 8-bit unsigned integer to configure the driver to follow AP's 3648 * preference values to select a roam candidate from BTM request. 3649 * 3650 * This attribute is used to configure the driver to select the roam 3651 * candidate based on AP advertised preference values. If not set, 3652 * the driver uses its internal scoring algorithm to do the same. 3653 * 3654 * 1 - STA follows AP's preference values to select a roam candidate 3655 * 0 - STA uses internal scoring algorithm to select a roam candidate 3656 */ 3657 QCA_WLAN_VENDOR_ATTR_CONFIG_FOLLOW_AP_PREFERENCE_FOR_CNDS_SELECT = 121, 3658 3659 /* keep last */ 3660 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST, 3661 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX = 3662 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1, 3663 }; 3664 3665 /* Compatibility defines for previously used incorrect enum 3666 * qca_wlan_vendor_attr_config names. These values should not be used in any 3667 * new implementation. */ 3668 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \ 3669 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES 3670 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \ 3671 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL 3672 3673 /** 3674 * enum qca_ul_mu_config - UL MU configuration 3675 * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended 3676 * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled 3677 */ 3678 enum qca_ul_mu_config { 3679 QCA_UL_MU_SUSPEND = 0, 3680 QCA_UL_MU_ENABLE = 1, 3681 }; 3682 3683 /** 3684 * enum qca_dbam_config - Specifies DBAM config mode 3685 * @QCA_DBAM_DISABLE: Firmware disables DBAM 3686 * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when 3687 * internal criteria are met. 3688 * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully. 3689 */ 3690 enum qca_dbam_config { 3691 QCA_DBAM_DISABLE = 0, 3692 QCA_DBAM_ENABLE = 1, 3693 QCA_DBAM_FORCE_ENABLE = 2, 3694 }; 3695 3696 /** 3697 * enum qca_wlan_ani_setting - ANI setting type 3698 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level 3699 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter 3700 */ 3701 enum qca_wlan_ani_setting { 3702 QCA_WLAN_ANI_SETTING_AUTO = 0, 3703 QCA_WLAN_ANI_SETTING_FIXED = 1, 3704 }; 3705 3706 /** 3707 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration 3708 * 3709 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8) 3710 * Channel number on which Access Point should restart. 3711 * Note: If both the driver and user space application supports the 6 GHz band, 3712 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY 3713 * should be used. 3714 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL 3715 * is still used if either of the driver or user space application doesn't 3716 * support the 6 GHz band. 3717 * 3718 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32) 3719 * Channel center frequency (MHz) on which the access point should restart. 3720 */ 3721 enum qca_wlan_vendor_attr_sap_config { 3722 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0, 3723 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1, 3724 3725 /* List of frequencies on which AP is expected to operate. 3726 * This is irrespective of ACS configuration. This list is a priority 3727 * based one and is looked for before the AP is created to ensure the 3728 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in 3729 * the system. 3730 */ 3731 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2, 3732 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3, 3733 3734 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST, 3735 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX = 3736 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1, 3737 }; 3738 3739 /** 3740 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP 3741 * conditional channel switch 3742 */ 3743 enum qca_wlan_vendor_attr_sap_conditional_chan_switch { 3744 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0, 3745 /* Priority based frequency list (an array of u32 values in host byte 3746 * order) 3747 */ 3748 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1, 3749 /* Status of the conditional switch (u32). 3750 * 0: Success, Non-zero: Failure 3751 */ 3752 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2, 3753 3754 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST, 3755 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX = 3756 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1, 3757 }; 3758 3759 /** 3760 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration 3761 * 3762 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32) 3763 * value to specify the GPIO command. Please refer to enum qca_gpio_cmd_type 3764 * for the available values. 3765 * 3766 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32) 3767 * value to specify the GPIO number. 3768 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3769 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %QCA_WLAN_VENDOR_GPIO_OUTPUT. 3770 * 3771 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32) 3772 * value to specify the GPIO output level. Please refer to enum qca_gpio_value 3773 * for the available values. 3774 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3775 * %QCA_WLAN_VENDOR_GPIO_OUTPUT. 3776 * 3777 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32) 3778 * value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type 3779 * for the available values. 3780 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3781 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 3782 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 3783 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 3784 * attribute is present. 3785 * 3786 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32) 3787 * value to specify the GPIO interrupt mode. Please refer to enum 3788 * qca_gpio_interrupt_mode for the available values. 3789 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3790 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 3791 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 3792 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 3793 * attribute is present. 3794 * 3795 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32) 3796 * value to specify the GPIO direction. Please refer to enum qca_gpio_direction 3797 * for the available values. 3798 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3799 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 3800 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 3801 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 3802 * attribute is present. 3803 * 3804 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32) 3805 * Value to specify the mux config. Meaning of a given value is dependent 3806 * on the target chipset and GPIO pin. Must be of the range 0-15. 3807 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3808 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0. 3809 * 3810 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32) 3811 * Value to specify the drive, refer to enum qca_gpio_drive. 3812 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3813 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0). 3814 * 3815 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag) 3816 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3817 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all 3818 * other parameters for the given GPIO will be obtained from internal 3819 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be 3820 * specified to indicate the GPIO pin being configured. 3821 */ 3822 enum qca_wlan_gpio_attr { 3823 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0, 3824 /* Unsigned 32-bit attribute for GPIO command */ 3825 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1, 3826 /* Unsigned 32-bit attribute for GPIO PIN number to configure */ 3827 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2, 3828 /* Unsigned 32-bit attribute for GPIO value to configure */ 3829 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3, 3830 /* Unsigned 32-bit attribute for GPIO pull type */ 3831 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4, 3832 /* Unsigned 32-bit attribute for GPIO interrupt mode */ 3833 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5, 3834 /* Unsigned 32-bit attribute for GPIO direction to configure */ 3835 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6, 3836 /* Unsigned 32-bit attribute for GPIO mux config */ 3837 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7, 3838 /* Unsigned 32-bit attribute for GPIO drive */ 3839 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8, 3840 /* Flag attribute for using internal GPIO configuration */ 3841 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9, 3842 3843 /* keep last */ 3844 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST, 3845 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX = 3846 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1 3847 }; 3848 3849 /** 3850 * enum gpio_cmd_type - GPIO configuration command type 3851 * @QCA_WLAN_VENDOR_GPIO_CONFIG: Set GPIO configuration info 3852 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: Set GPIO output level 3853 */ 3854 enum qca_gpio_cmd_type { 3855 QCA_WLAN_VENDOR_GPIO_CONFIG = 0, 3856 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1, 3857 }; 3858 3859 /** 3860 * enum qca_gpio_pull_type - GPIO pull type 3861 * @QCA_WLAN_GPIO_PULL_NONE: Set GPIO pull type to none 3862 * @QCA_WLAN_GPIO_PULL_UP: Set GPIO pull up 3863 * @QCA_WLAN_GPIO_PULL_DOWN: Set GPIO pull down 3864 */ 3865 enum qca_gpio_pull_type { 3866 QCA_WLAN_GPIO_PULL_NONE = 0, 3867 QCA_WLAN_GPIO_PULL_UP = 1, 3868 QCA_WLAN_GPIO_PULL_DOWN = 2, 3869 QCA_WLAN_GPIO_PULL_MAX, 3870 }; 3871 3872 /** 3873 * enum qca_gpio_direction - GPIO direction 3874 * @QCA_WLAN_GPIO_INPUT: Set GPIO as input mode 3875 * @QCA_WLAN_GPIO_OUTPUT: Set GPIO as output mode 3876 * @QCA_WLAN_GPIO_VALUE_MAX: Invalid value 3877 */ 3878 enum qca_gpio_direction { 3879 QCA_WLAN_GPIO_INPUT = 0, 3880 QCA_WLAN_GPIO_OUTPUT = 1, 3881 QCA_WLAN_GPIO_DIR_MAX, 3882 }; 3883 3884 /** 3885 * enum qca_gpio_value - GPIO Value 3886 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low 3887 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high 3888 * @QCA_WLAN_GPIO_LEVEL_MAX: Invalid value 3889 */ 3890 enum qca_gpio_value { 3891 QCA_WLAN_GPIO_LEVEL_LOW = 0, 3892 QCA_WLAN_GPIO_LEVEL_HIGH = 1, 3893 QCA_WLAN_GPIO_LEVEL_MAX, 3894 }; 3895 3896 /** 3897 * enum gpio_interrupt_mode - GPIO interrupt mode 3898 * @QCA_WLAN_GPIO_INTMODE_DISABLE: Disable interrupt trigger 3899 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: Interrupt with GPIO rising edge trigger 3900 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: Interrupt with GPIO falling edge trigger 3901 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: Interrupt with GPIO both edge trigger 3902 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: Interrupt with GPIO level low trigger 3903 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: Interrupt with GPIO level high trigger 3904 * @QCA_WLAN_GPIO_INTMODE_MAX: Invalid value 3905 */ 3906 enum qca_gpio_interrupt_mode { 3907 QCA_WLAN_GPIO_INTMODE_DISABLE = 0, 3908 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1, 3909 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2, 3910 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3, 3911 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4, 3912 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5, 3913 QCA_WLAN_GPIO_INTMODE_MAX, 3914 }; 3915 3916 /** 3917 * enum qca_gpio_drive - GPIO drive 3918 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA 3919 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA 3920 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA 3921 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA 3922 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA 3923 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA 3924 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA 3925 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA 3926 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive 3927 */ 3928 enum qca_gpio_drive { 3929 QCA_WLAN_GPIO_DRIVE_2MA = 0, 3930 QCA_WLAN_GPIO_DRIVE_4MA = 1, 3931 QCA_WLAN_GPIO_DRIVE_6MA = 2, 3932 QCA_WLAN_GPIO_DRIVE_8MA = 3, 3933 QCA_WLAN_GPIO_DRIVE_10MA = 4, 3934 QCA_WLAN_GPIO_DRIVE_12MA = 5, 3935 QCA_WLAN_GPIO_DRIVE_14MA = 6, 3936 QCA_WLAN_GPIO_DRIVE_16MA = 7, 3937 QCA_WLAN_GPIO_DRIVE_MAX, 3938 }; 3939 3940 /** 3941 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting 3942 * MSDUQ depth threshold per peer per tid in the target 3943 * 3944 * Associated Vendor Command: 3945 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH 3946 */ 3947 enum qca_wlan_set_qdepth_thresh_attr { 3948 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0, 3949 /* 6-byte MAC address */ 3950 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR, 3951 /* Unsigned 32-bit attribute for holding the TID */ 3952 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID, 3953 /* Unsigned 32-bit attribute for holding the update mask 3954 * bit 0 - Update high priority msdu qdepth threshold 3955 * bit 1 - Update low priority msdu qdepth threshold 3956 * bit 2 - Update UDP msdu qdepth threshold 3957 * bit 3 - Update Non UDP msdu qdepth threshold 3958 * rest of bits are reserved 3959 */ 3960 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK, 3961 /* Unsigned 32-bit attribute for holding the threshold value */ 3962 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE, 3963 3964 /* keep last */ 3965 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST, 3966 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX = 3967 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1, 3968 }; 3969 3970 /** 3971 * enum qca_acs_dfs_mode - Defines different types of DFS channel 3972 * configurations for ACS operation. 3973 * 3974 * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode 3975 * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation 3976 * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation 3977 * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation 3978 */ 3979 enum qca_acs_dfs_mode { 3980 QCA_ACS_DFS_MODE_NONE = 0, 3981 QCA_ACS_DFS_MODE_ENABLE = 1, 3982 QCA_ACS_DFS_MODE_DISABLE = 2, 3983 QCA_ACS_DFS_MODE_DEPRIORITIZE = 3, 3984 }; 3985 3986 /** 3987 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes 3988 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY. 3989 * 3990 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8) 3991 * DFS mode for ACS operation from enum qca_acs_dfs_mode. 3992 * 3993 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8) 3994 * channel number hint for ACS operation, if valid channel is specified then 3995 * ACS operation gives priority to this channel. 3996 * Note: If both the driver and user space application supports the 6 GHz band, 3997 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT 3998 * should be used. 3999 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT 4000 * is still used if either of the driver or user space application doesn't 4001 * support the 6 GHz band. 4002 * 4003 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32). 4004 * Channel center frequency (MHz) hint for ACS operation, if a valid center 4005 * frequency is specified, ACS operation gives priority to this channel. 4006 */ 4007 enum qca_wlan_vendor_attr_acs_config { 4008 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0, 4009 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1, 4010 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2, 4011 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3, 4012 4013 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST, 4014 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX = 4015 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1, 4016 }; 4017 4018 /** 4019 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability 4020 */ 4021 enum qca_wlan_vendor_attr_get_hw_capability { 4022 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID, 4023 /* Antenna isolation 4024 * An attribute used in the response. 4025 * The content of this attribute is encoded in a byte array. Each byte 4026 * value is an antenna isolation value. The array length is the number 4027 * of antennas. 4028 */ 4029 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION, 4030 /* Request HW capability 4031 * An attribute used in the request. 4032 * The content of this attribute is a u32 array for one or more of 4033 * hardware capabilities (attribute IDs) that are being requested. Each 4034 * u32 value has a value from this 4035 * enum qca_wlan_vendor_attr_get_hw_capability 4036 * identifying which capabilities are requested. 4037 */ 4038 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY, 4039 4040 /* keep last */ 4041 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST, 4042 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX = 4043 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1, 4044 }; 4045 4046 /** 4047 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring 4048 * offload which is an extension for LL_STATS. 4049 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms. 4050 * If MAC counters do not exceed the threshold, FW will report monitored 4051 * link layer counters periodically as this setting. The first report is 4052 * always triggered by this timer. 4053 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99). 4054 * For each MAC layer counter, FW holds two copies. One is the current value. 4055 * The other is the last report. Once a current counter's increment is larger 4056 * than the threshold, FW will indicate that counter to host even if the 4057 * monitoring timer does not expire. 4058 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change 4059 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU 4060 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same 4061 * failure code. 4062 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code 4063 * 1: TX packet discarded 4064 * 2: No ACK 4065 * 3: Postpone 4066 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address 4067 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state 4068 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold. 4069 * Threshold for all monitored parameters. If per counter dedicated threshold 4070 * is not enabled, this threshold will take effect. 4071 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this 4072 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0. 4073 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID 4074 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID 4075 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters 4076 * Bit0: TX counter unit in MSDU 4077 * Bit1: TX counter unit in MPDU 4078 * Bit2: TX counter unit in PPDU 4079 * Bit3: TX counter unit in byte 4080 * Bit4: Dropped MSDUs 4081 * Bit5: Dropped Bytes 4082 * Bit6: MPDU retry counter 4083 * Bit7: MPDU failure counter 4084 * Bit8: PPDU failure counter 4085 * Bit9: MPDU aggregation counter 4086 * Bit10: MCS counter for ACKed MPDUs 4087 * Bit11: MCS counter for Failed MPDUs 4088 * Bit12: TX Delay counter 4089 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters 4090 * Bit0: MAC RX counter unit in MPDU 4091 * Bit1: MAC RX counter unit in byte 4092 * Bit2: PHY RX counter unit in PPDU 4093 * Bit3: PHY RX counter unit in byte 4094 * Bit4: Disorder counter 4095 * Bit5: Retry counter 4096 * Bit6: Duplication counter 4097 * Bit7: Discard counter 4098 * Bit8: MPDU aggregation size counter 4099 * Bit9: MCS counter 4100 * Bit10: Peer STA power state change (wake to sleep) counter 4101 * Bit11: Peer STA power save counter, total time in PS mode 4102 * Bit12: Probe request counter 4103 * Bit13: Other management frames counter 4104 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA 4105 * Bit0: Idle time 4106 * Bit1: TX time 4107 * Bit2: time RX in current bss 4108 * Bit3: Out of current bss time 4109 * Bit4: Wireless medium busy time 4110 * Bit5: RX in bad condition time 4111 * Bit6: TX in bad condition time 4112 * Bit7: time wlan card not available 4113 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal 4114 * Bit0: Per channel SNR counter 4115 * Bit1: Per channel noise floor counter 4116 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers 4117 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels 4118 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats 4119 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats 4120 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats 4121 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs 4122 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs 4123 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs 4124 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data 4125 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets 4126 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped 4127 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK 4128 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed 4129 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed 4130 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM: 4131 * aggregation stats buffer length 4132 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats 4133 * buffer for ACKed MPDUs. 4134 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats 4135 * buffer for failed MPDUs. 4136 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE: 4137 * length of delay stats array. 4138 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats 4139 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs 4140 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs 4141 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats 4142 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received 4143 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received 4144 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received 4145 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received 4146 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost 4147 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets 4148 * flagged as retransmissions 4149 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets 4150 * flagged as duplicated 4151 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX 4152 * packets discarded 4153 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation 4154 * stats buffer. 4155 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs 4156 * stats buffer. 4157 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer 4158 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer 4159 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep 4160 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time 4161 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe 4162 * requests received 4163 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt 4164 * frames received 4165 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time 4166 * there is no TX, nor RX, nor interference. 4167 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time 4168 * transmitting packets. 4169 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time 4170 * for receiving. 4171 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time 4172 * interference detected. 4173 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time 4174 * receiving packets with errors. 4175 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time 4176 * TX no-ACK. 4177 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time 4178 * the chip is unable to work in normal conditions. 4179 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time 4180 * receiving packets in current BSS. 4181 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time 4182 * receiving packets not in current BSS. 4183 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas 4184 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL: 4185 * This is a container for per antenna signal stats. 4186 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value 4187 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value 4188 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon 4189 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon 4190 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64 4191 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the 4192 * message, user layer APP could call gettimeofday to get another 4193 * timestamp and calculate transfer delay for the message. 4194 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32 4195 * Real period for this measurement, unit in us. 4196 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD: Attribute used for padding for 4197 * 64-bit alignment. 4198 */ 4199 enum qca_wlan_vendor_attr_ll_stats_ext { 4200 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0, 4201 4202 /* Attributes for configurations */ 4203 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD, 4204 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD, 4205 4206 /* Peer STA power state change */ 4207 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG, 4208 4209 /* TX failure event */ 4210 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID, 4211 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU, 4212 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS, 4213 4214 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE, 4215 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS, 4216 4217 /* MAC counters */ 4218 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL, 4219 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE, 4220 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID, 4221 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID, 4222 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP, 4223 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP, 4224 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP, 4225 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP, 4226 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM, 4227 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM, 4228 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS, 4229 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER, 4230 4231 /* Sub-attributes for PEER_AC_TX */ 4232 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU, 4233 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU, 4234 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU, 4235 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES, 4236 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP, 4237 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES, 4238 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY, 4239 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK, 4240 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK, 4241 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM, 4242 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM, 4243 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM, 4244 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR, 4245 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS, 4246 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS, 4247 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE, 4248 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY, 4249 4250 /* Sub-attributes for PEER_AC_RX */ 4251 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU, 4252 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES, 4253 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU, 4254 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES, 4255 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST, 4256 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY, 4257 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP, 4258 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD, 4259 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM, 4260 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM, 4261 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS, 4262 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR, 4263 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES, 4264 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION, 4265 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ, 4266 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT, 4267 4268 /* Sub-attributes for CCA_BSS */ 4269 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME, 4270 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME, 4271 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME, 4272 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY, 4273 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD, 4274 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD, 4275 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL, 4276 4277 /* sub-attribute for BSS_RX_TIME */ 4278 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME, 4279 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME, 4280 4281 /* Sub-attributes for PEER_SIGNAL */ 4282 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM, 4283 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL, 4284 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR, 4285 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF, 4286 4287 /* Sub-attributes for IFACE_BSS */ 4288 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON, 4289 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON, 4290 4291 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME, 4292 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME, 4293 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD, 4294 4295 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST, 4296 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX = 4297 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1 4298 }; 4299 4300 /* Attributes for FTM commands and events */ 4301 4302 /** 4303 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities 4304 * 4305 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See 4306 * enum qca_wlan_vendor_attr_loc_capa_flags. 4307 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number 4308 * of measurement sessions that can run concurrently. 4309 * Default is one session (no session concurrency). 4310 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique 4311 * peers that are supported in running sessions. For example, 4312 * if the value is 8 and maximum number of sessions is 2, you can 4313 * have one session with 8 unique peers, or 2 sessions with 4 unique 4314 * peers each, and so on. 4315 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number 4316 * of bursts per peer, as an exponent (2^value). Default is 0, 4317 * meaning no multi-burst support. 4318 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number 4319 * of measurement exchanges allowed in a single burst. 4320 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement 4321 * types. A bit mask (unsigned 32 bit value), each bit corresponds 4322 * to an AOA type as defined by enum qca_vendor_attr_aoa_type. 4323 */ 4324 enum qca_wlan_vendor_attr_loc_capa { 4325 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID, 4326 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS, 4327 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS, 4328 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS, 4329 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP, 4330 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST, 4331 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES, 4332 /* keep last */ 4333 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST, 4334 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX = 4335 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1, 4336 }; 4337 4338 /** 4339 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags 4340 * 4341 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver 4342 * can be configured as an FTM responder (for example, an AP that 4343 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 4344 * will be supported if set. 4345 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver 4346 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION 4347 * will be supported if set. 4348 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder 4349 * supports immediate (ASAP) response. 4350 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone 4351 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS. 4352 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports 4353 * requesting AOA measurements as part of an FTM session. 4354 */ 4355 enum qca_wlan_vendor_attr_loc_capa_flags { 4356 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0, 4357 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1, 4358 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2, 4359 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3, 4360 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4, 4361 }; 4362 4363 /** 4364 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about 4365 * a single peer in a measurement session. 4366 * 4367 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer. 4368 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related 4369 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags. 4370 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of 4371 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0 4372 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for 4373 * list of supported attributes. 4374 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for 4375 * secure measurement. 4376 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA 4377 * measurement every <value> bursts. If 0 or not specified, 4378 * AOA measurements will be disabled for this peer. 4379 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where 4380 * the measurement frames are exchanged. Optional; if not 4381 * specified, try to locate the peer in the kernel scan 4382 * results cache and use frequency from there. 4383 */ 4384 enum qca_wlan_vendor_attr_ftm_peer_info { 4385 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID, 4386 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR, 4387 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS, 4388 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS, 4389 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID, 4390 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD, 4391 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ, 4392 /* keep last */ 4393 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST, 4394 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX = 4395 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1, 4396 }; 4397 4398 /** 4399 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags, 4400 * per-peer 4401 * 4402 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request 4403 * immediate (ASAP) response from peer. 4404 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request 4405 * LCI report from peer. The LCI report includes the absolute 4406 * location of the peer in "official" coordinates (similar to GPS). 4407 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information. 4408 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request 4409 * Location civic report from peer. The LCR includes the location 4410 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0, 4411 * 11.24.6.7 for more information. 4412 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set, 4413 * request a secure measurement. 4414 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided. 4415 */ 4416 enum qca_wlan_vendor_attr_ftm_peer_meas_flags { 4417 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0, 4418 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1, 4419 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2, 4420 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3, 4421 }; 4422 4423 /** 4424 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters 4425 * 4426 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements 4427 * to perform in a single burst. 4428 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to 4429 * perform, specified as an exponent (2^value). 4430 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst 4431 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. 4432 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts, 4433 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must 4434 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION. 4435 */ 4436 enum qca_wlan_vendor_attr_ftm_meas_param { 4437 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID, 4438 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST, 4439 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP, 4440 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION, 4441 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD, 4442 /* keep last */ 4443 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST, 4444 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX = 4445 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1, 4446 }; 4447 4448 /** 4449 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results 4450 * 4451 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported 4452 * peer. 4453 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement 4454 * request for this peer. 4455 * See enum qca_wlan_vendor_attr_ftm_peer_result_status. 4456 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related 4457 * to measurement results for this peer. 4458 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags. 4459 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when 4460 * request failed and peer requested not to send an additional request 4461 * for this number of seconds. 4462 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received 4463 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 4464 * 9.4.2.22.10. 4465 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when 4466 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 4467 * 9.4.2.22.13. 4468 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer 4469 * overridden some measurement request parameters. See 4470 * enum qca_wlan_vendor_attr_ftm_meas_param. 4471 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement 4472 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT. 4473 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement 4474 * results. Each entry is a nested attribute defined 4475 * by enum qca_wlan_vendor_attr_ftm_meas. 4476 */ 4477 enum qca_wlan_vendor_attr_ftm_peer_result { 4478 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID, 4479 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR, 4480 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS, 4481 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS, 4482 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS, 4483 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI, 4484 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR, 4485 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS, 4486 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS, 4487 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS, 4488 /* keep last */ 4489 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST, 4490 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX = 4491 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1, 4492 }; 4493 4494 /** 4495 * enum qca_wlan_vendor_attr_ftm_peer_result_status 4496 * 4497 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results 4498 * will be provided. Peer may have overridden some measurement parameters, 4499 * in which case overridden parameters will be report by 4500 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute. 4501 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable 4502 * of performing the measurement request. No more results will be sent 4503 * for this peer in this session. 4504 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request 4505 * failed, and requested not to send an additional request for number 4506 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS 4507 * attribute. 4508 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation 4509 * failed. Request was not sent over the air. 4510 */ 4511 enum qca_wlan_vendor_attr_ftm_peer_result_status { 4512 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK, 4513 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE, 4514 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED, 4515 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID, 4516 }; 4517 4518 /** 4519 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags 4520 * for measurement result, per-peer 4521 * 4522 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set, 4523 * measurement completed for this peer. No more results will be reported 4524 * for this peer in this session. 4525 */ 4526 enum qca_wlan_vendor_attr_ftm_peer_result_flags { 4527 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0, 4528 }; 4529 4530 /** 4531 * enum qca_vendor_attr_loc_session_status: Session completion status code 4532 * 4533 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed 4534 * successfully. 4535 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted 4536 * by request. 4537 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request 4538 * was invalid and was not started. 4539 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error 4540 * and did not complete normally (for example out of resources). 4541 */ 4542 enum qca_vendor_attr_loc_session_status { 4543 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK, 4544 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED, 4545 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID, 4546 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED, 4547 }; 4548 4549 /** 4550 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data 4551 * 4552 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as 4553 * recorded by responder, in picoseconds. 4554 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 4555 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at 4556 * initiator, in picoseconds. 4557 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 4558 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by 4559 * initiator, in picoseconds. 4560 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 4561 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at 4562 * responder, in picoseconds. 4563 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 4564 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded 4565 * during this measurement exchange. Optional and will be provided if 4566 * the hardware can measure it. 4567 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by 4568 * responder. Not always provided. 4569 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 4570 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by 4571 * responder. Not always provided. 4572 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 4573 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by 4574 * initiator. Not always provided. 4575 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 4576 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by 4577 * initiator. Not always provided. 4578 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 4579 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Attribute used for padding for 64-bit 4580 * alignment. 4581 */ 4582 enum qca_wlan_vendor_attr_ftm_meas { 4583 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID, 4584 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1, 4585 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2, 4586 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3, 4587 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4, 4588 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI, 4589 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR, 4590 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR, 4591 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR, 4592 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR, 4593 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD, 4594 /* keep last */ 4595 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST, 4596 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX = 4597 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1, 4598 }; 4599 4600 /** 4601 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type 4602 * 4603 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest 4604 * CIR (channel impulse response) path for each antenna. 4605 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude 4606 * of the strongest CIR path for each antenna. 4607 */ 4608 enum qca_wlan_vendor_attr_aoa_type { 4609 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE, 4610 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP, 4611 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX 4612 }; 4613 4614 /** 4615 * enum qca_wlan_vendor_attr_encryption_test - Attributes to 4616 * validate encryption engine 4617 * 4618 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute. 4619 * This will be included if the request is for decryption; if not included, 4620 * the request is treated as a request for encryption by default. 4621 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value 4622 * indicating the key cipher suite. Takes same values as 4623 * NL80211_ATTR_KEY_CIPHER. 4624 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value 4625 * Key Id to be used for encryption 4626 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values. 4627 * Key (TK) to be used for encryption/decryption 4628 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values. 4629 * Packet number to be specified for encryption/decryption 4630 * 6 bytes for TKIP/CCMP/GCMP. 4631 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values 4632 * representing the 802.11 packet (header + payload + FCS) that 4633 * needs to be encrypted/decrypted. 4634 * Encrypted/decrypted response from the driver will also be sent 4635 * to userspace with the same attribute. 4636 */ 4637 enum qca_wlan_vendor_attr_encryption_test { 4638 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0, 4639 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION, 4640 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER, 4641 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID, 4642 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK, 4643 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN, 4644 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA, 4645 4646 /* keep last */ 4647 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST, 4648 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX = 4649 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1 4650 }; 4651 4652 /** 4653 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of 4654 * sector for DMG RF sector operations. 4655 * 4656 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector 4657 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector 4658 */ 4659 enum qca_wlan_vendor_attr_dmg_rf_sector_type { 4660 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX, 4661 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX, 4662 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX 4663 }; 4664 4665 /** 4666 * enum qca_wlan_vendor_attr_fw_state - State of firmware 4667 * 4668 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state 4669 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active 4670 */ 4671 enum qca_wlan_vendor_attr_fw_state { 4672 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR, 4673 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE, 4674 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX 4675 }; 4676 4677 /** 4678 * BRP antenna limit mode 4679 * 4680 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force 4681 * antenna limit, BRP will be performed as usual. 4682 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal 4683 * antennas limit. the hardware may use less antennas than the 4684 * maximum limit. 4685 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will 4686 * use exactly the specified number of antennas for BRP. 4687 */ 4688 enum qca_wlan_vendor_attr_brp_ant_limit_mode { 4689 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE, 4690 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE, 4691 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE, 4692 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX 4693 }; 4694 4695 /** 4696 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for 4697 * DMG RF sector configuration for a single RF module. 4698 * The values are defined in a compact way which closely matches 4699 * the way it is stored in HW registers. 4700 * The configuration provides values for 32 antennas and 8 distribution 4701 * amplifiers, and together describes the characteristics of the RF 4702 * sector - such as a beam in some direction with some gain. 4703 * 4704 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index 4705 * of RF module for this configuration. 4706 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge 4707 * amplifier gain index. Unsigned 32 bit number containing 4708 * bits for all 32 antennas. 4709 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge 4710 * amplifier gain index. Unsigned 32 bit number containing 4711 * bits for all 32 antennas. 4712 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge 4713 * amplifier gain index. Unsigned 32 bit number containing 4714 * bits for all 32 antennas. 4715 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values 4716 * for first 16 antennas, 2 bits per antenna. 4717 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values 4718 * for last 16 antennas, 2 bits per antenna. 4719 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains 4720 * DTYPE values (3 bits) for each distribution amplifier, followed 4721 * by X16 switch bits for each distribution amplifier. There are 4722 * total of 8 distribution amplifiers. 4723 */ 4724 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg { 4725 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0, 4726 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1, 4727 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2, 4728 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3, 4729 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4, 4730 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5, 4731 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6, 4732 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7, 4733 4734 /* keep last */ 4735 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST, 4736 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX = 4737 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1 4738 }; 4739 4740 enum qca_wlan_vendor_attr_ll_stats_set { 4741 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0, 4742 /* Unsigned 32-bit value */ 4743 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1, 4744 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2, 4745 /* keep last */ 4746 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST, 4747 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX = 4748 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1, 4749 }; 4750 4751 /** 4752 * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS 4753 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK. 4754 * 4755 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics. 4756 * 4757 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within 4758 * radio statistics. 4759 * 4760 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel 4761 * statistics within radio statistics. 4762 * 4763 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within 4764 * radio statistics. 4765 * 4766 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics. 4767 * 4768 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics 4769 * within interface statistics. 4770 * 4771 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within 4772 * interface statistics. 4773 * 4774 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention 4775 * (min, max, avg) statistics within AC statistics. 4776 * 4777 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics 4778 * on this interface. 4779 * 4780 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer 4781 * statistics depending on the peer_mac. 4782 */ 4783 enum qca_wlan_ll_stats_clr_req_bitmap { 4784 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0), 4785 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1), 4786 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2), 4787 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3), 4788 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4), 4789 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5), 4790 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6), 4791 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7), 4792 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8), 4793 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9), 4794 }; 4795 4796 enum qca_wlan_vendor_attr_ll_stats_clr { 4797 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0, 4798 /* Unsigned 32bit bitmap for clearing statistics, specified 4799 * in the enum qca_wlan_ll_stats_clr_req_bitmap. 4800 */ 4801 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1, 4802 /* Unsigned 8 bit value: Request to stop statistics collection */ 4803 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2, 4804 4805 /* Unsigned 32 bit bitmap: Response from the driver 4806 * for the cleared statistics 4807 */ 4808 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3, 4809 /* Unsigned 8 bit value: Response from driver/firmware 4810 * for the stop request 4811 */ 4812 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4, 4813 /* keep last */ 4814 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST, 4815 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX = 4816 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1, 4817 }; 4818 4819 /** 4820 * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS 4821 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK. 4822 * 4823 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics. 4824 * 4825 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics. 4826 * 4827 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics. 4828 * 4829 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics. 4830 */ 4831 enum qca_wlan_ll_stats_get_req_bitmap { 4832 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0), 4833 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1), 4834 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2), 4835 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3), 4836 }; 4837 4838 enum qca_wlan_vendor_attr_ll_stats_get { 4839 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0, 4840 /* Unsigned 32 bit value provided by the caller issuing the GET stats 4841 * command. When reporting the stats results, the driver uses the same 4842 * value to indicate which GET request the results correspond to. 4843 */ 4844 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1, 4845 /* Unsigned 32 bit value - bit mask to identify what statistics are 4846 * requested for retrieval specified in the enum 4847 * qca_wlan_ll_stats_get_req_bitmap 4848 */ 4849 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2, 4850 /* keep last */ 4851 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST, 4852 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX = 4853 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1, 4854 }; 4855 4856 enum qca_wlan_vendor_attr_ll_stats_results { 4857 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0, 4858 4859 /* 4860 * For Multi Link Operation (MLO) connection, per-link statistics will 4861 * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and 4862 * cumulative statistics will be sent outside of 4863 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward 4864 * compatibility with legacy user space. Attributes which don't have 4865 * explicit documentation for MLO will be sent only outside of 4866 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values 4867 * don't depend on whether the connection is MLO capable or not, e.g., 4868 * radio and channel specific attributes. 4869 */ 4870 4871 /* Unsigned 32bit value. Used by the driver; must match the request id 4872 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command. 4873 */ 4874 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1, 4875 4876 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4877 * the link with the best RSSI outside 4878 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4879 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4880 */ 4881 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2, 4882 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4883 * the link with the best RSSI outside 4884 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4885 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4886 */ 4887 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3, 4888 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4889 * the link with the best RSSI outside 4890 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4891 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4892 */ 4893 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4, 4894 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4895 * the link with the best RSSI outside 4896 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4897 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4898 */ 4899 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5, 4900 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4901 * the link with the best RSSI outside 4902 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4903 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4904 */ 4905 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6, 4906 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4907 * the link with the best RSSI outside 4908 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4909 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4910 */ 4911 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7, 4912 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4913 * the link with the best RSSI outside 4914 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4915 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4916 */ 4917 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8, 4918 4919 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are 4920 * nested within the interface stats. 4921 */ 4922 4923 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc. 4924 * Type = enum wifi_interface_mode. 4925 */ 4926 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9, 4927 /* Interface MAC address. An array of 6 Unsigned int8 */ 4928 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10, 4929 /* Type = enum wifi_connection_state, e.g., DISCONNECTED, 4930 * AUTHENTICATING, etc. valid for STA, CLI only. 4931 */ 4932 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11, 4933 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE 4934 */ 4935 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12, 4936 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */ 4937 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13, 4938 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */ 4939 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14, 4940 /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD 4941 * address of the AP. An array of 6 unsigned 8 bit values */ 4942 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15, 4943 /* Country string advertised by AP. An array of 3 unsigned 8 bit 4944 * values. 4945 */ 4946 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16, 4947 /* Country string for this association. An array of 3 unsigned 8 bit 4948 * values. 4949 */ 4950 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17, 4951 4952 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could 4953 * be nested within the interface stats. 4954 * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* 4955 * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* 4956 * indicate the aggregate of all links outside 4957 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4958 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes 4959 * indicate value of the MLO link with the best RSSI outside 4960 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4961 * These attributes indicate the link specific value inside 4962 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4963 */ 4964 4965 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */ 4966 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18, 4967 /* Unsigned int 32 value corresponding to respective AC */ 4968 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19, 4969 /* Unsigned int 32 value corresponding to respective AC */ 4970 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20, 4971 /* Unsigned int 32 value corresponding to respective AC */ 4972 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21, 4973 /* Unsigned int 32 value corresponding to respective AC */ 4974 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22, 4975 /* Unsigned int 32 value corresponding to respective AC */ 4976 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23, 4977 /* Unsigned int 32 value corresponding to respective AC */ 4978 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24, 4979 /* Unsigned int 32 value corresponding to respective AC */ 4980 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25, 4981 /* Unsigned int 32 value corresponding to respective AC */ 4982 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26, 4983 /* Unsigned int 32 value corresponding to respective AC */ 4984 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27, 4985 /* Unsigned int 32 values corresponding to respective AC */ 4986 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28, 4987 /* Unsigned int 32 values corresponding to respective AC */ 4988 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29, 4989 /* Unsigned int 32 values corresponding to respective AC */ 4990 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30, 4991 /* Unsigned int 32 values corresponding to respective AC */ 4992 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31, 4993 /* Unsigned int 32 values corresponding to respective AC */ 4994 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32, 4995 /* Unsigned 32 bit value. Number of peers */ 4996 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33, 4997 4998 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are 4999 * nested within the interface stats. 5000 */ 5001 5002 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */ 5003 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34, 5004 /* MAC addr corresponding to respective peer. An array of 6 unsigned 5005 * 8 bit values. 5006 */ 5007 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35, 5008 /* Unsigned int 32 bit value representing capabilities corresponding 5009 * to respective peer. 5010 */ 5011 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36, 5012 /* Unsigned 32 bit value. Number of rates */ 5013 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37, 5014 5015 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 5016 * are nested within the rate stat. 5017 */ 5018 5019 /* Wi-Fi Rate - separate attributes defined for individual fields */ 5020 5021 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */ 5022 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38, 5023 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */ 5024 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39, 5025 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */ 5026 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40, 5027 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std 5028 * in the units of 0.5 Mbps HT/VHT it would be MCS index 5029 */ 5030 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41, 5031 5032 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */ 5033 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42, 5034 5035 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be 5036 * nested within the peer info stats. 5037 */ 5038 5039 /* Unsigned int 32 bit value. Number of successfully transmitted data 5040 * packets, i.e., with ACK received corresponding to the respective 5041 * rate. 5042 */ 5043 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43, 5044 /* Unsigned int 32 bit value. Number of received data packets 5045 * corresponding to the respective rate. 5046 */ 5047 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44, 5048 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK 5049 * received corresponding to the respective rate. 5050 */ 5051 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45, 5052 /* Unsigned int 32 bit value. Total number of data packet retries for 5053 * the respective rate. 5054 */ 5055 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46, 5056 /* Unsigned int 32 bit value. Total number of short data packet retries 5057 * for the respective rate. 5058 */ 5059 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47, 5060 /* Unsigned int 32 bit value. Total number of long data packet retries 5061 * for the respective rate. 5062 */ 5063 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48, 5064 5065 /* Unsigned 32 bit value. This is used to indicate radio ID of the radio 5066 * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is 5067 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used 5068 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID 5069 * of the MLO link. 5070 */ 5071 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49, 5072 /* Unsigned 32 bit value. Total number of msecs the radio is awake 5073 * accruing over time. 5074 */ 5075 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50, 5076 /* Unsigned 32 bit value. Total number of msecs the radio is 5077 * transmitting accruing over time. 5078 */ 5079 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51, 5080 /* Unsigned 32 bit value. Total number of msecs the radio is in active 5081 * receive accruing over time. 5082 */ 5083 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52, 5084 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 5085 * to all scan accruing over time. 5086 */ 5087 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53, 5088 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 5089 * to NAN accruing over time. 5090 */ 5091 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54, 5092 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 5093 * to GSCAN accruing over time. 5094 */ 5095 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55, 5096 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 5097 * to roam scan accruing over time. 5098 */ 5099 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56, 5100 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 5101 * to PNO scan accruing over time. 5102 */ 5103 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57, 5104 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 5105 * to Hotspot 2.0 scans and GAS exchange accruing over time. 5106 */ 5107 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58, 5108 /* Unsigned 32 bit value. Number of channels. */ 5109 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59, 5110 5111 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could 5112 * be nested within the channel stats. 5113 */ 5114 5115 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */ 5116 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60, 5117 /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to 5118 * indicate the primary frequency of the channel when 5119 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is 5120 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside 5121 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency 5122 * on which the MLO link is operating. 5123 */ 5124 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61, 5125 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */ 5126 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62, 5127 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */ 5128 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63, 5129 5130 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be 5131 * nested within the radio stats. 5132 */ 5133 5134 /* Unsigned int 32 bit value representing total number of msecs the 5135 * radio is awake on that channel accruing over time, corresponding to 5136 * the respective channel. 5137 */ 5138 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64, 5139 /* Unsigned int 32 bit value representing total number of msecs the CCA 5140 * register is busy accruing over time corresponding to the respective 5141 * channel. 5142 */ 5143 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65, 5144 5145 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66, 5146 5147 /* Signifies the nested list of channel attributes 5148 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* 5149 */ 5150 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67, 5151 5152 /* Signifies the nested list of peer info attributes 5153 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection, 5154 * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to 5155 * indicate on which link the peer is connected. 5156 */ 5157 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68, 5158 5159 /* Signifies the nested list of rate info attributes 5160 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 5161 */ 5162 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69, 5163 5164 /* Signifies the nested list of wmm info attributes 5165 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* 5166 */ 5167 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70, 5168 5169 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates 5170 * that more stats, e.g., peers or radio, are to follow in the next 5171 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event. 5172 * Otherwise, it is set to 0. 5173 */ 5174 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71, 5175 5176 /* Unsigned 64 bit value. For an MLO connection, indicates the value of 5177 * the link with the best RSSI outside 5178 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5179 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5180 */ 5181 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72, 5182 5183 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 5184 * the link with the best RSSI outside 5185 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5186 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5187 */ 5188 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73, 5189 5190 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 5191 * the link with the best RSSI outside 5192 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5193 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5194 */ 5195 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74, 5196 5197 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 5198 * the link with the best RSSI outside 5199 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5200 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5201 */ 5202 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75, 5203 5204 /* Unsigned 32 bit value */ 5205 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76, 5206 5207 /* Unsigned 32 bit value */ 5208 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77, 5209 5210 /* Number of msecs the radio spent in transmitting for each power level 5211 */ 5212 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78, 5213 5214 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 5215 * the link with the best RSSI outside 5216 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5217 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5218 */ 5219 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79, 5220 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 5221 * the link with the best RSSI outside 5222 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5223 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5224 */ 5225 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80, 5226 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 5227 * the link with the best RSSI outside 5228 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5229 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5230 */ 5231 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81, 5232 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 5233 * the link with the best RSSI outside 5234 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5235 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5236 */ 5237 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82, 5238 5239 /* Unsigned int 32 value. 5240 * Pending MSDUs corresponding to respective AC. 5241 */ 5242 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83, 5243 5244 /* u32 value representing total time in milliseconds for which the radio 5245 * is transmitting on this channel. This attribute will be nested 5246 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO. 5247 */ 5248 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84, 5249 /* u32 value representing total time in milliseconds for which the radio 5250 * is receiving all 802.11 frames intended for this device on this 5251 * channel. This attribute will be nested within 5252 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO. 5253 */ 5254 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85, 5255 /* u8 value representing the channel load percentage. Possible values 5256 * are 0-100. 5257 */ 5258 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86, 5259 /* u8 value representing the time slicing duty cycle percentage. 5260 * Possible values are 0-100. For an MLO connection, indicates the value 5261 * of the link with the best RSSI outside 5262 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5263 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5264 */ 5265 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87, 5266 /* Unsigned 32 bit value. The number of Beacon frames which are received 5267 * from the associated AP and indicate buffered unicast frame(s) for us 5268 * in the TIM element. For an MLO connection, indicates the value of the 5269 * link with the best RSSI outside 5270 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5271 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5272 */ 5273 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88, 5274 /* Unsigned 32 bit value. The total number of Beacon frames received 5275 * from the associated AP that have wrongly indicated buffered unicast 5276 * traffic in the TIM element for us. 5277 * Below scenarios will be considered as wrong TIM element beacon: 5278 * 1) The related TIM element is set in the beacon for STA but STA 5279 * doesn’t receive any unicast data after this beacon. 5280 * 2) The related TIM element is still set in the beacon for STA 5281 * after STA has indicated power save exit by QoS Null Data frame. 5282 * For an MLO connection, indicates the value of the link with the best 5283 * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link 5284 * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5285 */ 5286 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89, 5287 5288 /* Signed 32 bit value. It represents the noise floor calibration value. 5289 * Possible values are -120~-50 dBm. For an MLO connection, indicates 5290 * the value of the link with the best RSSI outside 5291 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5292 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5293 */ 5294 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90, 5295 5296 /* Attribute used for padding for 64-bit alignment */ 5297 QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91, 5298 5299 /* Unsigned u8 value, link ID of an MLO link. Used inside nested 5300 * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the 5301 * link ID of the MLO link for which the statistics are embedded in the 5302 * nested attribute. Used inside nested attribute 5303 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected 5304 * link ID of the peer. 5305 */ 5306 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92, 5307 5308 /* A nested array of attributes for each MLO link, each containing 5309 * per-link statistics of a multi link connection. The attributes used 5310 * inside this nested attribute are defined in enum 5311 * qca_wlan_vendor_attr_ll_stats_results. 5312 * 5313 * For non-MLO connection, this attribute is not present and the 5314 * statistics will be sent outside this attribute (without nesting). 5315 * 5316 * For MLO connection, this attribute is present and also cumulative 5317 * statistics of all the links will be sent outside of this attribute 5318 * to be compatible with legacy user space. 5319 */ 5320 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93, 5321 5322 /* keep last */ 5323 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST, 5324 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX = 5325 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1, 5326 }; 5327 5328 enum qca_wlan_vendor_attr_ll_stats_type { 5329 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0, 5330 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1, 5331 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2, 5332 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3, 5333 5334 /* keep last */ 5335 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST, 5336 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX = 5337 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1, 5338 }; 5339 5340 /** 5341 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for 5342 * TDLS configuration to the host driver. 5343 * 5344 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger 5345 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode 5346 * represents the different TDLS trigger modes. 5347 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within 5348 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number 5349 * of packets shall meet the criteria for implicit TDLS setup. 5350 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets 5351 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD 5352 * to initiate a TDLS setup. 5353 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate 5354 * a TDLS Discovery to the peer. 5355 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of 5356 * discovery attempts to know the TDLS capability of the peer. A peer is 5357 * marked as TDLS not capable if there is no response for all the attempts. 5358 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32) 5359 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD 5360 * number of TX / RX frames meet the criteria for TDLS teardown. 5361 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32) 5362 * of Tx/Rx packets within a duration 5363 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link. 5364 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold 5365 * corresponding to the RSSI of the peer below which a TDLS setup is 5366 * triggered. 5367 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold 5368 * corresponding to the RSSI of the peer above which a TDLS teardown is 5369 * triggered. 5370 */ 5371 enum qca_wlan_vendor_attr_tdls_configuration { 5372 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0, 5373 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1, 5374 5375 /* Attributes configuring the TDLS Implicit Trigger */ 5376 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2, 5377 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3, 5378 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4, 5379 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5, 5380 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6, 5381 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7, 5382 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8, 5383 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9, 5384 5385 /* keep last */ 5386 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST, 5387 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX = 5388 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1 5389 }; 5390 5391 /** 5392 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in 5393 * the driver 5394 * 5395 * The following are the different values for 5396 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE. 5397 * 5398 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown 5399 * the TDLS connection to a respective peer comes from the user space. 5400 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN, 5401 * TDLS_DISCOVER to do this. 5402 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS 5403 * setup/teardown to the eligible peer once the configured criteria 5404 * (such as TX/RX threshold, RSSI) is met. The attributes 5405 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to 5406 * the different configuration criteria for the TDLS trigger from the 5407 * host driver. 5408 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger 5409 * the TDLS setup / teardown through the implicit mode only to the 5410 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1, 5411 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands). 5412 * External mode works on top of the implicit mode. Thus the host driver 5413 * is expected to configure in TDLS Implicit mode too to operate in 5414 * External mode. 5415 * Configuring External mode alone without Implicit mode is invalid. 5416 * 5417 * All the above implementations work as expected only when the host driver 5418 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing 5419 * that the TDLS message exchange is not internal to the host driver, but 5420 * depends on wpa_supplicant to do the message exchange. 5421 */ 5422 enum qca_wlan_vendor_tdls_trigger_mode { 5423 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0, 5424 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1, 5425 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2, 5426 }; 5427 5428 /** 5429 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits 5430 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0 5431 * that is hard-coded in the Board Data File (BDF). 5432 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1 5433 * that is hard-coded in the Board Data File (BDF). 5434 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2 5435 * that is hard-coded in the Board Data File (BDF). 5436 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3 5437 * that is hard-coded in the Board Data File (BDF). 5438 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4 5439 * that is hard-coded in the Board Data File (BDF). 5440 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any 5441 * source of SAR power limits, thereby disabling the SAR power 5442 * limit feature. 5443 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power 5444 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 5445 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power 5446 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 5447 * 5448 * This enumerates the valid set of values that may be supplied for 5449 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of 5450 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in 5451 * the response to an instance of the 5452 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 5453 */ 5454 enum qca_vendor_attr_sar_limits_selections { 5455 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0, 5456 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1, 5457 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2, 5458 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3, 5459 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4, 5460 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5, 5461 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6, 5462 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7, 5463 }; 5464 5465 /** 5466 * enum qca_vendor_attr_sar_limits_spec_modulations - 5467 * SAR limits specification modulation 5468 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK - 5469 * CCK modulation 5470 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM - 5471 * OFDM modulation 5472 * 5473 * This enumerates the valid set of values that may be supplied for 5474 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an 5475 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an 5476 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor 5477 * command or in the response to an instance of the 5478 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 5479 */ 5480 enum qca_vendor_attr_sar_limits_spec_modulations { 5481 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0, 5482 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1, 5483 }; 5484 5485 /** 5486 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits 5487 * 5488 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to 5489 * select which SAR power limit table should be used. Valid 5490 * values are enumerated in enum 5491 * %qca_vendor_attr_sar_limits_selections. The existing SAR 5492 * power limit selection is unchanged if this attribute is not 5493 * present. 5494 * 5495 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value 5496 * which specifies the number of SAR power limit specifications 5497 * which will follow. 5498 * 5499 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power 5500 * limit specifications. The number of specifications is 5501 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each 5502 * specification contains a set of 5503 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A 5504 * specification is uniquely identified by the attributes 5505 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND, 5506 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and 5507 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always 5508 * contains as a payload the attribute 5509 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT, 5510 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX. 5511 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or 5512 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is 5513 * needed based upon the value of 5514 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE. 5515 * 5516 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to 5517 * indicate for which band this specification applies. Valid 5518 * values are enumerated in enum %nl80211_band (although not all 5519 * bands may be supported by a given device). If the attribute is 5520 * not supplied then the specification will be applied to all 5521 * supported bands. 5522 * 5523 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value 5524 * to indicate for which antenna chain this specification 5525 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the 5526 * attribute is not supplied then the specification will be 5527 * applied to all chains. 5528 * 5529 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32) 5530 * value to indicate for which modulation scheme this 5531 * specification applies. Valid values are enumerated in enum 5532 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute 5533 * is not supplied then the specification will be applied to all 5534 * modulation schemes. 5535 * 5536 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32) 5537 * value to specify the actual power limit value in units of 0.5 5538 * dBm (i.e., a value of 11 represents 5.5 dBm). 5539 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 5540 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER. 5541 * 5542 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32) 5543 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles. 5544 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 5545 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0. 5546 * 5547 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS 5548 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS. 5549 */ 5550 enum qca_vendor_attr_sar_limits { 5551 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0, 5552 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1, 5553 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2, 5554 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3, 5555 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4, 5556 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5, 5557 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6, 5558 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7, 5559 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8, 5560 5561 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST, 5562 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX = 5563 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1 5564 }; 5565 5566 /** 5567 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by 5568 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command. 5569 * 5570 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute 5571 * should be set to any U8 value to indicate that the driver version 5572 * should be returned. When enabled in this manner, in a response this 5573 * attribute will contain a string representation of the driver version. 5574 * 5575 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute 5576 * should be set to any U8 value to indicate that the firmware version 5577 * should be returned. When enabled in this manner, in a response this 5578 * attribute will contain a string representation of the firmware version. 5579 * 5580 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute 5581 * should be set to any U32 value to indicate that the current radio 5582 * index should be returned. When enabled in this manner, in a response 5583 * this attribute will contain a U32 radio index value. 5584 * 5585 */ 5586 enum qca_wlan_vendor_attr_get_wifi_info { 5587 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0, 5588 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1, 5589 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2, 5590 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3, 5591 5592 /* keep last */ 5593 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST, 5594 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX = 5595 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1, 5596 }; 5597 5598 /* 5599 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by 5600 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command. 5601 */ 5602 enum qca_wlan_vendor_attr_wifi_logger_start { 5603 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0, 5604 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1, 5605 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2, 5606 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3, 5607 5608 /* keep last */ 5609 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST, 5610 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX = 5611 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1, 5612 }; 5613 5614 enum qca_wlan_vendor_attr_logger_results { 5615 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0, 5616 5617 /* Unsigned 32-bit value; must match the request Id supplied by 5618 * Wi-Fi HAL in the corresponding subcmd NL msg. 5619 */ 5620 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1, 5621 5622 /* Unsigned 32-bit value; used to indicate the size of memory 5623 * dump to be allocated. 5624 */ 5625 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2, 5626 5627 /* keep last */ 5628 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST, 5629 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX = 5630 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1, 5631 }; 5632 5633 /** 5634 * enum qca_scan_freq_list_type: Frequency list types 5635 * 5636 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list 5637 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as 5638 * a preferred frequency list for roaming. 5639 * 5640 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list 5641 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as 5642 * a specific frequency list for roaming. 5643 */ 5644 enum qca_scan_freq_list_type { 5645 QCA_PREFERRED_SCAN_FREQ_LIST = 1, 5646 QCA_SPECIFIC_SCAN_FREQ_LIST = 2, 5647 }; 5648 5649 /** 5650 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme 5651 * 5652 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values 5653 * List of frequencies in MHz to be considered for a roam scan. 5654 * 5655 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value. 5656 * Type of frequency list scheme being configured/gotten as defined by the 5657 * enum qca_scan_freq_list_type. 5658 */ 5659 enum qca_vendor_attr_scan_freq_list_scheme { 5660 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1, 5661 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2, 5662 5663 /* keep last */ 5664 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST, 5665 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX = 5666 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1, 5667 }; 5668 5669 /** 5670 * enum qca_roam_scan_scheme: Scan scheme 5671 * 5672 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No frequencies specified to scan. 5673 * Indicates the driver to not scan on a Roam Trigger scenario, but 5674 * disconnect. E.g., on a BTM request from the AP the driver/firmware shall 5675 * disconnect from the current connected AP by notifying a failure 5676 * code in the BTM response. 5677 * 5678 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to 5679 * trigger partial frequency scans. These frequencies are the ones learned 5680 * or maintained by the driver based on the probability of finding the 5681 * BSSIDs in the ESS for which the roaming is triggered. 5682 * 5683 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to 5684 * trigger the scan on all the valid frequencies to find better 5685 * candidates to roam. 5686 */ 5687 enum qca_roam_scan_scheme { 5688 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0, 5689 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1, 5690 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2, 5691 }; 5692 5693 /* 5694 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers 5695 * 5696 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on 5697 * a bad packet error rates (PER). 5698 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered 5699 * based on beacon misses from the connected AP. 5700 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered 5701 * due to poor RSSI of the connected AP. 5702 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered 5703 * upon finding a BSSID with a better RSSI than the connected BSSID. 5704 * Also, set if the roam has to be triggered due to the high RSSI of the 5705 * current connected AP (better than 5706 * QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET). Here the RSSI of 5707 * the current BSSID need not be poor. 5708 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered 5709 * by triggering a periodic scan to find a better AP to roam. 5710 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered 5711 * when the connected channel environment is too noisy/congested. 5712 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered 5713 * when BTM Request frame is received from the connected AP. 5714 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered 5715 * when the channel utilization is goes above the configured threshold. 5716 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered 5717 * based on the request from the user (space). 5718 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when 5719 * device receives Deauthentication/Disassociation frame from connected AP. 5720 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the 5721 * device is in idle state (no TX/RX) and suspend mode, if the current RSSI 5722 * is determined to be a poor one. 5723 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered 5724 * based on continuous TX Data frame failures to the connected AP. 5725 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered 5726 * based on the scan results obtained from an external scan (not triggered 5727 * to aim roaming). 5728 * 5729 * Set the corresponding roam trigger reason bit to consider it for roam 5730 * trigger. 5731 * Userspace can set multiple bits and send to the driver. The driver shall 5732 * consider all of them to trigger/initiate a roam scan. 5733 */ 5734 enum qca_vendor_roam_triggers { 5735 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0, 5736 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1, 5737 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2, 5738 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3, 5739 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4, 5740 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5, 5741 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6, 5742 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7, 5743 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8, 5744 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9, 5745 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10, 5746 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11, 5747 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12, 5748 }; 5749 5750 /* 5751 * enum qca_vendor_roam_fail_reasons: Defines the various roam 5752 * fail reasons. This enum value is used in 5753 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute. 5754 * 5755 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not 5756 * able to trigger the scan. 5757 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan. 5758 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam 5759 * scan. 5760 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host. 5761 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame. 5762 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error 5763 * status code. 5764 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received. 5765 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request 5766 * frame. 5767 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame 5768 * with error status code. 5769 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not 5770 * received. 5771 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan. 5772 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication 5773 * frame. 5774 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped 5775 * internally before transmission. 5776 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation 5777 * Request frame. 5778 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is 5779 * dropped internally. 5780 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and 5781 * times out. 5782 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame. 5783 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped 5784 * internally. 5785 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key 5786 * M2 frame. 5787 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received. 5788 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame. 5789 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped 5790 * internally. 5791 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4 5792 * frame. 5793 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not 5794 * started for final beacon miss case. 5795 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame 5796 * received from the AP during roaming handoff. 5797 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps 5798 * or host is suspended and gives the indication of the last roamed AP only 5799 * when the Apps is resumed. If the Apps is resumed while the roaming is in 5800 * progress, this ongoing roaming is aborted and the last roamed AP is 5801 * indicated to host. 5802 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID. 5803 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times 5804 * out. 5805 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails. 5806 * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the 5807 * current network conditions are fine. 5808 */ 5809 enum qca_vendor_roam_fail_reasons { 5810 QCA_ROAM_FAIL_REASON_NONE = 0, 5811 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1, 5812 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2, 5813 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3, 5814 QCA_ROAM_FAIL_REASON_HOST = 4, 5815 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5, 5816 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6, 5817 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7, 5818 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8, 5819 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9, 5820 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10, 5821 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11, 5822 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12, 5823 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13, 5824 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14, 5825 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15, 5826 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16, 5827 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17, 5828 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18, 5829 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19, 5830 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20, 5831 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21, 5832 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22, 5833 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23, 5834 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24, 5835 QCA_ROAM_FAIL_REASON_DISCONNECT = 25, 5836 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26, 5837 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27, 5838 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28, 5839 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29, 5840 QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30, 5841 }; 5842 5843 /* 5844 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam 5845 * invoke fail reasons. This enum value is used in 5846 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute. 5847 * 5848 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed 5849 * in roam invoke command. 5850 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not 5851 * enabled. 5852 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID 5853 * length is invalid. 5854 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already 5855 * in progress. 5856 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response 5857 * of the AP in the roam invoke command to firmware. This reason is sent by the 5858 * firmware when the given AP is configured to be ignored or SSID/security 5859 * does not match. 5860 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of 5861 * firmware internal reasons. 5862 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled. 5863 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke. 5864 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail. 5865 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid. 5866 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to. 5867 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed. 5868 */ 5869 enum qca_vendor_roam_invoke_fail_reasons { 5870 QCA_ROAM_INVOKE_STATUS_NONE = 0, 5871 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1, 5872 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2, 5873 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3, 5874 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4, 5875 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5, 5876 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6, 5877 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7, 5878 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8, 5879 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9, 5880 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10, 5881 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11, 5882 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12, 5883 5884 }; 5885 5886 /** 5887 * enum qca_vendor_attr_roam_candidate_selection_criteria: 5888 * 5889 * Each attribute carries a weightage in percentage (%). 5890 * 5891 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value. 5892 * Represents the weightage to be given for the RSSI selection 5893 * criteria among other parameters. 5894 * 5895 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value. 5896 * Represents the weightage to be given for the rate selection 5897 * criteria among other parameters. 5898 * 5899 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value. 5900 * Represents the weightage to be given for the band width selection 5901 * criteria among other parameters. 5902 * 5903 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value. 5904 * Represents the weightage to be given for the band selection 5905 * criteria among other parameters. 5906 * 5907 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value. 5908 * Represents the weightage to be given for the NSS selection 5909 * criteria among other parameters. 5910 * 5911 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value. 5912 * Represents the weightage to be given for the channel congestion 5913 * selection criteria among other parameters. 5914 * 5915 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value. 5916 * Represents the weightage to be given for the beamforming selection 5917 * criteria among other parameters. 5918 * 5919 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value. 5920 * Represents the weightage to be given for the OCE selection 5921 * criteria among other parameters. 5922 */ 5923 enum qca_vendor_attr_roam_candidate_selection_criteria { 5924 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1, 5925 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2, 5926 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3, 5927 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4, 5928 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5, 5929 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6, 5930 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7, 5931 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8, 5932 5933 /* keep last */ 5934 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST, 5935 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX = 5936 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1, 5937 }; 5938 5939 /** 5940 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration 5941 * The following attributes are used to set/get/clear the respective 5942 * configurations to/from the driver. 5943 * For the get, the attribute for the configuration to be queried shall 5944 * carry any of its acceptable values to the driver. In return, the driver 5945 * shall send the configured values within the same attribute to the user 5946 * space. 5947 * 5948 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value. 5949 * Signifies to enable/disable roam control in driver. 5950 * 1-enable, 0-disable 5951 * Enable: Mandates the driver to do the further roams using the 5952 * configuration parameters set through 5953 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. 5954 * Disable: Disables the driver/firmware roaming triggered through 5955 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is 5956 * expected to continue with the default configurations. 5957 * 5958 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value. 5959 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET. 5960 * Roam control status is obtained through this attribute. 5961 * 5962 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the 5963 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET 5964 * is to be cleared in the driver. 5965 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR 5966 * and shall be ignored if used with other sub commands. 5967 * If this attribute is specified along with subcmd 5968 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore 5969 * all other attributes, if there are any. 5970 * If this attribute is not specified when the subcmd 5971 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall 5972 * clear the data corresponding to the attributes specified. 5973 * 5974 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the 5975 * list of frequencies and its type, represented by 5976 * enum qca_vendor_attr_scan_freq_list_scheme. 5977 * Frequency list and its type are mandatory for this attribute to set 5978 * the frequencies. 5979 * Frequency type is mandatory for this attribute to get the frequencies 5980 * and the frequency list is obtained through 5981 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST. 5982 * Frequency list type is mandatory for this attribute to clear the 5983 * frequencies. 5984 * 5985 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value. 5986 * Carries the value of scan period in seconds to set. 5987 * The value of scan period is obtained with the same attribute for get. 5988 * Clears the scan period in the driver when specified with clear command. 5989 * Scan period is the idle time in seconds between each subsequent 5990 * channel scans. 5991 * 5992 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value. 5993 * Carries the value of full scan period in seconds to set. 5994 * The value of full scan period is obtained with the same attribute for 5995 * get. 5996 * Clears the full scan period in the driver when specified with clear 5997 * command. Full scan period is the idle period in seconds between two 5998 * successive full channel roam scans. 5999 * 6000 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value. 6001 * Carries a bitmap of the roam triggers specified in 6002 * enum qca_vendor_roam_triggers. 6003 * The driver shall enable roaming by enabling corresponding roam triggers 6004 * based on the trigger bits sent with this attribute. 6005 * If this attribute is not configured, the driver shall proceed with 6006 * default behavior. 6007 * The bitmap configured is obtained with the same attribute for get. 6008 * Clears the bitmap configured in driver when specified with clear 6009 * command. 6010 * 6011 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the 6012 * weightage in percentage (%) to be given for each selection criteria. 6013 * Different roam candidate selection criteria are represented by 6014 * enum qca_vendor_attr_roam_candidate_selection_criteria. 6015 * The driver shall select the roam candidate based on corresponding 6016 * candidate selection scores sent. 6017 * 6018 * An empty nested attribute is used to indicate that no specific 6019 * preference score/criteria is configured (i.e., to disable this mechanism 6020 * in the set case and to show that the mechanism is disabled in the get 6021 * case). 6022 * 6023 * Userspace can send multiple attributes out of this enum to the driver. 6024 * Since this attribute represents the weight/percentage of preference for 6025 * the respective selection criteria, it is preferred to configure 100% 6026 * total weightage. The value in each attribute or cumulative weight of the 6027 * values in all the nested attributes should not exceed 100%. The driver 6028 * shall reject such configuration. 6029 * 6030 * If the weights configured through this attribute are less than 100%, 6031 * the driver shall honor the weights (x%) passed for the corresponding 6032 * selection criteria and choose/distribute rest of the weight (100-x)% 6033 * for the other selection criteria, based on its internal logic. 6034 * 6035 * The selection criteria configured is obtained with the same 6036 * attribute for get. 6037 * 6038 * Clears the selection criteria configured in the driver when specified 6039 * with clear command. 6040 * 6041 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value. 6042 * Represents value of the scan frequency scheme from enum 6043 * qca_roam_scan_scheme. 6044 * It's an optional attribute. If this attribute is not configured, the 6045 * driver shall proceed with default behavior. 6046 * 6047 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm, 6048 * signifying the RSSI threshold of the current connected AP, indicating 6049 * the driver to trigger roam only when the current connected AP's RSSI 6050 * is less than this threshold. The RSSI threshold through this attribute 6051 * is only used by the STA when the connected AP asks it to roam through 6052 * a BTM request. Based on this threshold, the STA can either honor or 6053 * reject the AP's request to roam, and notify the status to the AP in a 6054 * BTM response. 6055 * 6056 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm, 6057 * signifying the RSSI threshold of the candidate AP, indicating 6058 * the driver to trigger roam only to the candidate AP with RSSI 6059 * better than this threshold. If RSSI thresholds for candidate APs found 6060 * in the 2.4 GHz, 5 GHz, and 6 GHz bands are configured separately using 6061 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ, 6062 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or 6063 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, those values will 6064 * take precedence over the value configured using the 6065 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute. 6066 * 6067 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the 6068 * user defined reason code to be sent to the AP in response to AP's 6069 * request to trigger the roam if the roaming cannot be triggered. 6070 * Applies to all the scenarios of AP assisted roaming (e.g., BTM). 6071 * 6072 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value. 6073 * Carries a bitmap of the roam triggers specified in 6074 * enum qca_vendor_roam_triggers. 6075 * Represents the roam triggers for which the specific scan scheme from 6076 * enum qca_roam_scan_scheme has to be applied. 6077 * It's an optional attribute. If this attribute is not configured, but 6078 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, the scan scheme 6079 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for 6080 * all the roams. 6081 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and 6082 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the 6083 * driver shall proceed with the default behavior. 6084 * 6085 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value 6086 * in dBm, signifying the RSSI threshold of the candidate AP found in the 6087 * 2.4 GHz band. The driver/firmware shall trigger roaming to the candidate 6088 * AP found in the 2.4 GHz band only if its RSSI value is better than this 6089 * threshold. Optional attribute. If this attribute is not included, the 6090 * threshold value specified by the 6091 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 6092 * 6093 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in 6094 * dBm, signifying the RSSI threshold of the candidate AP found in the 5 6095 * GHz band. The driver/firmware shall trigger roaming to the candidate AP 6096 * found in the 5 GHz band only if its RSSI value is better than this 6097 * threshold. Optional attribute. If this attribute is not included, the 6098 * threshold value specified by tge 6099 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 6100 * 6101 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in 6102 * dBm, signifying the RSSI threshold of the candidate AP found in the 6 6103 * GHz band. The driver/firmware shall trigger roaming to the candidate AP 6104 * found in the 6 GHz band only if its RSSI value is better than this 6105 * threshold. Optional attribute. If this attribute is not included, the 6106 * threshold value specified by the 6107 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 6108 * 6109 * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value. 6110 * Carries bitmask value of bits from &enum qca_set_band and represents 6111 * all the bands in which roaming is allowed. The configuration is valid 6112 * until next disconnection. If this attribute is not present, the 6113 * existing configuration shall be used. By default, roaming is allowed on 6114 * all bands supported by the local device. When the value is set to 6115 * %QCA_SETBAND_AUTO, all supported bands shall be enabled. 6116 * 6117 * @QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME: u16 value in milliseconds. 6118 * Optional parameter. Scan dwell time for active channels in the 2.4/5 GHz 6119 * bands. If this attribute is not configured, the driver shall proceed 6120 * with default behavior. 6121 * 6122 * @QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME: u16 value in milliseconds. 6123 * Optional parameter. Scan dwell time for passive channels in the 5 GHz 6124 * band. If this attribute is not configured, the driver shall proceed with 6125 * default behavior. 6126 * 6127 * @QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME: u16 value in milliseconds. 6128 * Optional parameter. The minimum duration to stay on the connected AP 6129 * channel during the channel scanning. If this attribute is not 6130 * configured, the driver shall proceed with default behavior. 6131 * 6132 * @QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME: u16 value in milliseconds. 6133 * Optional parameter. The maximum duration for which the radio can scan 6134 * foreign channels consecutively without coming back to home channel. If 6135 * this attribute is not configured, the driver shall proceed with default 6136 * behavior. 6137 * 6138 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME: u16 value in milliseconds. 6139 * Optional parameter. Scan dwell time for 6G Preferred Scanning Channels. 6140 * If this attribute is not configured, the driver shall proceed with 6141 * default behavior. 6142 * 6143 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME: u16 value in milliseconds. 6144 * Optional parameter. Scan dwell time for 6G Non Preferred Scanning 6145 * Channels. If this attribute is not configured, the driver shall proceed 6146 * with default behavior. 6147 * 6148 * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps. 6149 * Optional parameter. RX link speed threshold to disable roaming. 6150 * If the current RX link speed is above the threshold, roaming is not 6151 * needed. If this attribute is not configured, or if it is set to 0, the 6152 * driver will not consider the RX link speed in the roaming decision. 6153 * 6154 * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds. 6155 * Optional parameter. This configuration delays hand-off by the 6156 * specified duration to receive pending RX frames from the current BSS. 6157 * 6158 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit 6159 * value. 6160 * During the roam scan, if there are no desired APs found in the partial 6161 * frequency list, an immediate full scan on all the supported frequencies 6162 * is initiated as a fallback. This flag controls the frequency list 6163 * creation for the full scan on the following lines. 6164 * 1 - Full scan to exclude the frequencies that were already scanned by 6165 * the previous partial scan. 6166 * 0 - Full scan to include all the supported frequencies irrespective of 6167 * the ones part of the earlier partial scan. 6168 * If this flag is not specified, a full scan shall include all the 6169 * supported frequencies irrespective of the ones part of an earlier 6170 * partial scan. 6171 * 6172 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit 6173 * value. 6174 * During the roam scan, if there are no desired APs found in the partial 6175 * frequency list, an immediate full scan on all the supported frequencies 6176 * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz 6177 * frequencies, including all PSC frequencies by default. This attribute 6178 * controls the inclusion of the 6 GHz PSC frequencies for the full scan 6179 * as following. 6180 * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the 6181 * prior discovery of any 6 GHz frequency support in the environment. 6182 * This discovery can happen through a prior RNR, 11k neighbor 6183 * request, 11v BTM request, host scan, etc. 6184 * 0 - Default behavior. Full scan to include all the supported 6 GHz 6185 * PSC frequencies regardless of whether 6 GHz BSSs have been 6186 * discovered. 6187 * The default behavior if this flag is not specified is to include all 6188 * the supported 6 GHz PSC frequencies in the roam full scan. 6189 * 6190 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD: Signed 32-bit value 6191 * in dBm. 6192 * This attribute configures the low RSSI threshold of the connected AP, 6193 * based on which the STA can start looking for the neighbor APs and 6194 * trigger the roam eventually. STA keeps monitoring for the connected 6195 * AP's RSSI and will start scanning for neighboring APs once the RSSI 6196 * falls below this threshold. This attribute differs from 6197 * QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD where the configured 6198 * threshold is used only when the connected AP asks the STA to roam 6199 * through a BTM request. 6200 * 6201 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF: Unsigned 8-bit value. 6202 * This attribute signifies the RSSI difference threshold between the 6203 * connected AP and the new candidate AP. This parameter influences the 6204 * STA to roam to the new candidate only when its RSSI is better than 6205 * the current connected one by this threshold. 6206 * This parameter configures the roam behavior among the 2.4/5/6 GHz bands. 6207 * 6208 * @QCA_ATTR_ROAM_CONTROL_6GHZ_CANDIDATE_ROAM_RSSI_DIFF: Unsigned 8-bit value. 6209 * This attribute signifies the RSSI difference threshold between the 6210 * connected AP in the 2.4/5 GHz bands and the new candidate AP in the 6211 * 6 GHz band. This parameter influences the STA to roam to the new 6 GHz 6212 * candidate only when its RSSI is better than the current connected one 6213 * by this threshold. This threshold overrides 6214 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF for the roam from 2.4/5 6215 * GHz to 6 GHz alone with the intention to have a different value to roam 6216 * to the preferred 6 GHz band. 6217 * 6218 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET: Unsigned 8-bit value. 6219 * This attribute signifies the RSSI offset that is added to low RSSI 6220 * threshold (QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD) to imply 6221 * high RSSI threshold. STA is expected to trigger roam if the current 6222 * connected AP's RSSI gets above this high RSSI threshold. STA's roam 6223 * attempt on high RSSI threshold aims to find candidates from other 6224 * better Wi-Fi bands. E.g., STA would initially connect to a 2.4 GHz BSSID 6225 * and would migrate to 5/6 GHz when it comes closer to the AP (high RSSI 6226 * for 2.4 GHz BSS). 6227 */ 6228 enum qca_vendor_attr_roam_control { 6229 QCA_ATTR_ROAM_CONTROL_ENABLE = 1, 6230 QCA_ATTR_ROAM_CONTROL_STATUS = 2, 6231 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3, 6232 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4, 6233 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5, 6234 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6, 6235 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7, 6236 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8, 6237 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9, 6238 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10, 6239 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11, 6240 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12, 6241 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13, 6242 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14, 6243 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15, 6244 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16, 6245 QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17, 6246 QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME = 18, 6247 QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME = 19, 6248 QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME = 20, 6249 QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME = 21, 6250 QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME = 22, 6251 QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME = 23, 6252 QCA_ATTR_ROAM_CONTROL_LINKSPEED_THRESHOLD = 24, 6253 QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25, 6254 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26, 6255 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27, 6256 QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD = 28, 6257 QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF = 29, 6258 QCA_ATTR_ROAM_CONTROL_6GHZ_CANDIDATE_ROAM_RSSI_DIFF = 30, 6259 QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET = 31, 6260 6261 /* keep last */ 6262 QCA_ATTR_ROAM_CONTROL_AFTER_LAST, 6263 QCA_ATTR_ROAM_CONTROL_MAX = 6264 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1, 6265 }; 6266 6267 /* 6268 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by 6269 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command. 6270 * 6271 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value. 6272 * Represents the different roam sub commands referred by 6273 * enum qca_wlan_vendor_roaming_subcmd. 6274 * 6275 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value. 6276 * Represents the Request ID for the specific set of commands. 6277 * This also helps to map specific set of commands to the respective 6278 * ID / client. e.g., helps to identify the user entity configuring the 6279 * ignored BSSIDs and accordingly clear the respective ones with the 6280 * matching ID. 6281 * 6282 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS: Unsigned 6283 * 32-bit value. Represents the number of allowlist SSIDs configured. 6284 * 6285 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST: Nested attribute 6286 * to carry the list of allowlist SSIDs. 6287 * 6288 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID: SSID (binary attribute, 6289 * 0..32 octets). Represents the allow list SSID. Allowlist SSIDs 6290 * represent the list of SSIDs to which the firmware/driver can consider 6291 * to roam to. 6292 * 6293 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when 6294 * comparing with a 2.4GHz BSSID. They are not applied when comparing two 6295 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD - 6296 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS. 6297 * 6298 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit 6299 * value, RSSI threshold above which 5GHz RSSI is favored. 6300 * 6301 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit 6302 * value, RSSI threshold below which 5GHz RSSI is penalized. 6303 * 6304 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit 6305 * value, factor by which 5GHz RSSI is boosted. 6306 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor 6307 * 6308 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit 6309 * value, factor by which 5GHz RSSI is penalized. 6310 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor 6311 * 6312 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit 6313 * value, maximum boost that can be applied to a 5GHz RSSI. 6314 * 6315 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit 6316 * value, boost applied to current BSSID to ensure the currently 6317 * associated BSSID is favored so as to prevent ping-pong situations. 6318 * 6319 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit 6320 * value, RSSI below which "Alert" roam is enabled. 6321 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID 6322 * because the RSSI is low, or because many successive beacons have been 6323 * lost or other bad link conditions. 6324 * 6325 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit 6326 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where 6327 * firmware is hunting for a better BSSID or allow listed SSID even though 6328 * the RSSI of the link is good. The parameters enabling the roaming are 6329 * configured through the PARAM_A_BAND_XX attrbutes. 6330 * 6331 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute, 6332 * represents the BSSIDs preferred over others while evaluating them 6333 * for the roaming. 6334 * 6335 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned 6336 * 32-bit value. Represents the number of preferred BSSIDs set. 6337 * 6338 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC 6339 * address representing the BSSID to be preferred. 6340 * 6341 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed 6342 * 32-bit value, representing the modifier to be applied to the RSSI of 6343 * the BSSID for the purpose of comparing it with other roam candidate. 6344 * 6345 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute, 6346 * represents the BSSIDs to get ignored for roaming. 6347 * 6348 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned 6349 * 32-bit value, represents the number of ignored BSSIDs. 6350 * 6351 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC 6352 * address representing the ignored BSSID. 6353 * 6354 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute, 6355 * indicates this request to ignore the BSSID as a hint to the driver. The 6356 * driver can select this BSSID in the worst case (when no other BSSIDs are 6357 * better). 6358 * 6359 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to 6360 * set/get/clear the roam control config as 6361 * defined @enum qca_vendor_attr_roam_control. 6362 */ 6363 enum qca_wlan_vendor_attr_roaming_config_params { 6364 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0, 6365 6366 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1, 6367 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2, 6368 6369 /* Attributes for wifi_set_ssid_allow_list */ 6370 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS = 3, 6371 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST = 4, 6372 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID = 5, 6373 6374 /* Attributes for set_roam_params */ 6375 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6, 6376 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7, 6377 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8, 6378 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9, 6379 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10, 6380 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11, 6381 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12, 6382 6383 /* Attribute for set_lazy_roam */ 6384 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13, 6385 6386 /* Attribute for set_lazy_roam with preferences */ 6387 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14, 6388 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15, 6389 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16, 6390 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17, 6391 6392 /* Attribute for setting ignored BSSID parameters */ 6393 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18, 6394 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19, 6395 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20, 6396 /* Flag attribute indicates this entry as a hint */ 6397 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21, 6398 6399 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22, 6400 6401 /* keep last */ 6402 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST, 6403 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX = 6404 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1, 6405 }; 6406 6407 /* old names for API compatibility */ 6408 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS \ 6409 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS 6410 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST \ 6411 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST 6412 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID \ 6413 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID 6414 6415 /* 6416 * enum qca_wlan_vendor_roaming_subcmd: Referred by 6417 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD. 6418 * 6419 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST: Sub command to 6420 * configure the allow list SSIDs. These are configured through 6421 * the following attributes. 6422 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS, 6423 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST, 6424 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID 6425 * 6426 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to 6427 * configure the Roam params. These parameters are evaluated on the GScan 6428 * results. Refers the attributes PARAM_A_BAND_XX above to configure the 6429 * params. 6430 * 6431 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses 6432 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE 6433 * to enable/disable Lazy roam. 6434 * 6435 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID 6436 * preference. Contains the attribute 6437 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID 6438 * preference. 6439 * 6440 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID: Sets the list of BSSIDs 6441 * to ignore in roaming decision. Uses 6442 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to set the list. 6443 * 6444 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the 6445 * roam control config to the driver with the attribute 6446 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 6447 * 6448 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the 6449 * roam control config from driver with the attribute 6450 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 6451 * For the get, the attribute for the configuration to be queried shall 6452 * carry any of its acceptable value to the driver. In return, the driver 6453 * shall send the configured values within the same attribute to the user 6454 * space. 6455 * 6456 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the 6457 * roam control config in the driver with the attribute 6458 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 6459 * The driver shall continue with its default roaming behavior when data 6460 * corresponding to an attribute is cleared. 6461 */ 6462 enum qca_wlan_vendor_roaming_subcmd { 6463 QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0, 6464 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST = 1, 6465 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2, 6466 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3, 6467 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4, 6468 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5, 6469 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID = 6, 6470 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7, 6471 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8, 6472 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9, 6473 }; 6474 6475 /* old names for API compatibility */ 6476 #define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST \ 6477 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST 6478 #define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID \ 6479 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID 6480 6481 enum qca_wlan_vendor_attr_gscan_config_params { 6482 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0, 6483 6484 /* Unsigned 32-bit value */ 6485 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1, 6486 6487 /* Attributes for data used by 6488 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command. 6489 */ 6490 /* Unsigned 32-bit value */ 6491 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND 6492 = 2, 6493 /* Unsigned 32-bit value */ 6494 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS 6495 = 3, 6496 6497 /* Attributes for input params used by 6498 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command. 6499 */ 6500 6501 /* Unsigned 32-bit value; channel frequency */ 6502 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4, 6503 /* Unsigned 32-bit value; dwell time in ms. */ 6504 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5, 6505 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */ 6506 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6, 6507 /* Unsigned 8-bit value; channel class */ 6508 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7, 6509 6510 /* Unsigned 8-bit value; bucket index, 0 based */ 6511 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8, 6512 /* Unsigned 8-bit value; band. */ 6513 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9, 6514 /* Unsigned 32-bit value; desired period, in ms. */ 6515 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10, 6516 /* Unsigned 8-bit value; report events semantics. */ 6517 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11, 6518 /* Unsigned 32-bit value. Followed by a nested array of 6519 * GSCAN_CHANNEL_SPEC_* attributes. 6520 */ 6521 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12, 6522 6523 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes. 6524 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 6525 */ 6526 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13, 6527 6528 /* Unsigned 32-bit value; base timer period in ms. */ 6529 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14, 6530 /* Unsigned 32-bit value; number of APs to store in each scan in the 6531 * BSSID/RSSI history buffer (keep the highest RSSI APs). 6532 */ 6533 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15, 6534 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake 6535 * up AP. 6536 */ 6537 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT 6538 = 16, 6539 6540 /* Unsigned 8-bit value; number of scan bucket specs; followed by a 6541 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size 6542 * of the array is determined by NUM_BUCKETS. 6543 */ 6544 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17, 6545 6546 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes. 6547 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS 6548 */ 6549 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18, 6550 6551 /* Unsigned 8-bit value */ 6552 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH 6553 = 19, 6554 /* Unsigned 32-bit value; maximum number of results to be returned. */ 6555 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX 6556 = 20, 6557 6558 /* An array of 6 x unsigned 8-bit value */ 6559 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21, 6560 /* Signed 32-bit value */ 6561 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22, 6562 /* Signed 32-bit value */ 6563 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23, 6564 /* Unsigned 32-bit value */ 6565 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24, 6566 6567 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested 6568 * array of AP_THRESHOLD_PARAM attributes and values. The size of the 6569 * array is determined by NUM_AP. 6570 */ 6571 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25, 6572 6573 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes. 6574 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 6575 */ 6576 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26, 6577 6578 /* Unsigned 32-bit value; number of samples for averaging RSSI. */ 6579 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE 6580 = 27, 6581 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 6582 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE 6583 = 28, 6584 /* Unsigned 32-bit value; number of APs breaching threshold. */ 6585 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29, 6586 /* Unsigned 32-bit value; number of APs. Followed by an array of 6587 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP. 6588 */ 6589 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30, 6590 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 6591 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE 6592 = 31, 6593 /* Unsigned 32-bit value. If max_period is non zero or different than 6594 * period, then this bucket is an exponential backoff bucket. 6595 */ 6596 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32, 6597 /* Unsigned 32-bit value. */ 6598 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33, 6599 /* Unsigned 32-bit value. For exponential back off bucket, number of 6600 * scans to perform for a given period. 6601 */ 6602 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34, 6603 /* Unsigned 8-bit value; in number of scans, wake up AP after these 6604 * many scans. 6605 */ 6606 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS 6607 = 35, 6608 6609 /* Attributes for data used by 6610 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command. 6611 */ 6612 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */ 6613 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE 6614 = 36, 6615 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a 6616 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The 6617 * size of the array is determined by NUM_SSID. 6618 */ 6619 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37, 6620 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_* 6621 * attributes. 6622 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID 6623 */ 6624 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38, 6625 6626 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */ 6627 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39, 6628 /* Unsigned 8-bit value */ 6629 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40, 6630 /* Signed 32-bit value */ 6631 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41, 6632 /* Signed 32-bit value */ 6633 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42, 6634 /* Unsigned 32-bit value; a bitmask with additional gscan config flag. 6635 */ 6636 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43, 6637 6638 /* keep last */ 6639 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST, 6640 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX = 6641 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1, 6642 }; 6643 6644 enum qca_wlan_vendor_attr_gscan_results { 6645 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0, 6646 6647 /* Unsigned 32-bit value; must match the request Id supplied by 6648 * Wi-Fi HAL in the corresponding subcmd NL msg. 6649 */ 6650 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1, 6651 6652 /* Unsigned 32-bit value; used to indicate the status response from 6653 * firmware/driver for the vendor sub-command. 6654 */ 6655 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2, 6656 6657 /* GSCAN Valid Channels attributes */ 6658 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */ 6659 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3, 6660 /* An array of NUM_CHANNELS x unsigned 32-bit value integers 6661 * representing channel numbers. 6662 */ 6663 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4, 6664 6665 /* GSCAN Capabilities attributes */ 6666 /* Unsigned 32-bit value */ 6667 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5, 6668 /* Unsigned 32-bit value */ 6669 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6, 6670 /* Unsigned 32-bit value */ 6671 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN 6672 = 7, 6673 /* Unsigned 32-bit value */ 6674 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE 6675 = 8, 6676 /* Signed 32-bit value */ 6677 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD 6678 = 9, 6679 /* Unsigned 32-bit value */ 6680 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10, 6681 /* Unsigned 32-bit value */ 6682 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS 6683 = 11, 6684 /* Unsigned 32-bit value */ 6685 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES 6686 = 12, 6687 6688 /* GSCAN Attributes used with 6689 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command. 6690 */ 6691 6692 /* Unsigned 32-bit value */ 6693 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13, 6694 6695 /* GSCAN attributes used with 6696 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command. 6697 */ 6698 6699 /* An array of NUM_RESULTS_AVAILABLE x 6700 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_* 6701 */ 6702 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14, 6703 6704 /* Unsigned 64-bit value; age of sample at the time of retrieval */ 6705 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15, 6706 /* 33 x unsigned 8-bit value; NULL terminated SSID */ 6707 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16, 6708 /* An array of 6 x unsigned 8-bit value */ 6709 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17, 6710 /* Unsigned 32-bit value; channel frequency in MHz */ 6711 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18, 6712 /* Signed 32-bit value */ 6713 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19, 6714 /* Unsigned 32-bit value */ 6715 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20, 6716 /* Unsigned 32-bit value */ 6717 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21, 6718 /* Unsigned 16-bit value */ 6719 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22, 6720 /* Unsigned 16-bit value */ 6721 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23, 6722 /* Unsigned 32-bit value; size of the IE DATA blob */ 6723 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24, 6724 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the 6725 * information elements found in the beacon; this data should be a 6726 * packed list of wifi_information_element objects, one after the 6727 * other. 6728 */ 6729 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25, 6730 6731 /* Unsigned 8-bit value; set by driver to indicate more scan results are 6732 * available. 6733 */ 6734 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26, 6735 6736 /* GSCAN attributes for 6737 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command. 6738 */ 6739 /* Unsigned 8-bit value */ 6740 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27, 6741 /* Unsigned 32-bit value */ 6742 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28, 6743 6744 /* GSCAN attributes for 6745 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command. 6746 */ 6747 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE 6748 * to indicate number of results. 6749 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the 6750 * list of results. 6751 */ 6752 6753 /* GSCAN attributes for 6754 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command. 6755 */ 6756 /* An array of 6 x unsigned 8-bit value */ 6757 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29, 6758 /* Unsigned 32-bit value */ 6759 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL 6760 = 30, 6761 /* Unsigned 32-bit value. */ 6762 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI 6763 = 31, 6764 /* A nested array of signed 32-bit RSSI values. Size of the array is 6765 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI. 6766 */ 6767 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST 6768 = 32, 6769 6770 /* GSCAN attributes used with 6771 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command. 6772 */ 6773 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE 6774 * to indicate number of gscan cached results returned. 6775 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate 6776 * the list of gscan cached results. 6777 */ 6778 6779 /* An array of NUM_RESULTS_AVAILABLE x 6780 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_* 6781 */ 6782 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33, 6783 /* Unsigned 32-bit value; a unique identifier for the scan unit. */ 6784 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34, 6785 /* Unsigned 32-bit value; a bitmask w/additional information about scan. 6786 */ 6787 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35, 6788 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE 6789 * to indicate number of wifi scan results/bssids retrieved by the scan. 6790 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the 6791 * list of wifi scan results returned for each cached result block. 6792 */ 6793 6794 /* GSCAN attributes for 6795 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command. 6796 */ 6797 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for 6798 * number of results. 6799 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested 6800 * list of wifi scan results returned for each 6801 * wifi_passpoint_match_result block. 6802 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE. 6803 */ 6804 6805 /* GSCAN attributes for 6806 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command. 6807 */ 6808 /* Unsigned 32-bit value */ 6809 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES 6810 = 36, 6811 /* A nested array of 6812 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_* 6813 * attributes. Array size = 6814 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES. 6815 */ 6816 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37, 6817 6818 /* Unsigned 32-bit value; network block id for the matched network */ 6819 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38, 6820 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested 6821 * list of wifi scan results returned for each 6822 * wifi_passpoint_match_result block. 6823 */ 6824 /* Unsigned 32-bit value */ 6825 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39, 6826 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values; 6827 * ANQP data in the information_element format. 6828 */ 6829 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40, 6830 6831 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 6832 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41, 6833 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 6834 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42, 6835 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 6836 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID 6837 = 43, 6838 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 6839 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID 6840 = 44, 6841 6842 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45, 6843 6844 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. 6845 * This is used to limit the maximum number of BSSIDs while sending 6846 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd 6847 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID and attribute 6848 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID. 6849 */ 6850 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID = 46, 6851 6852 /* Attribute used for padding for 64-bit alignment */ 6853 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_PAD = 47, 6854 6855 /* keep last */ 6856 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST, 6857 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX = 6858 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1, 6859 }; 6860 6861 /* old names for API compatibility */ 6862 #define QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID \ 6863 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID 6864 #define QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID \ 6865 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID 6866 6867 enum qca_wlan_vendor_attr_pno_config_params { 6868 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0, 6869 /* Attributes for data used by 6870 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command. 6871 */ 6872 /* Unsigned 32-bit value */ 6873 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1, 6874 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_* 6875 * attributes. Array size = 6876 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM. 6877 */ 6878 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2, 6879 6880 /* Unsigned 32-bit value */ 6881 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3, 6882 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded 6883 * realm, 0 if unspecified. 6884 */ 6885 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4, 6886 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to 6887 * match, 0 if unspecified. 6888 */ 6889 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5, 6890 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if 6891 * unspecified. 6892 */ 6893 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6, 6894 6895 /* Attributes for data used by 6896 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command. 6897 */ 6898 /* Unsigned 32-bit value */ 6899 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7, 6900 /* Array of nested 6901 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_* 6902 * attributes. Array size = 6903 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS. 6904 */ 6905 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8, 6906 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */ 6907 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9, 6908 /* Signed 8-bit value; threshold for considering this SSID as found, 6909 * required granularity for this threshold is 4 dBm to 8 dBm. 6910 */ 6911 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD 6912 = 10, 6913 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */ 6914 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11, 6915 /* Unsigned 8-bit value; auth bit field for matching WPA IE */ 6916 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12, 6917 /* Unsigned 8-bit to indicate ePNO type; 6918 * It takes values from qca_wlan_epno_type 6919 */ 6920 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13, 6921 6922 /* Nested attribute to send the channel list */ 6923 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14, 6924 6925 /* Unsigned 32-bit value; indicates the interval between PNO scan 6926 * cycles in msec. 6927 */ 6928 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15, 6929 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16, 6930 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17, 6931 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18, 6932 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19, 6933 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20, 6934 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21, 6935 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22, 6936 /* Unsigned 32-bit value, representing the PNO Request ID */ 6937 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23, 6938 6939 /* keep last */ 6940 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST, 6941 QCA_WLAN_VENDOR_ATTR_PNO_MAX = 6942 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1, 6943 }; 6944 6945 /** 6946 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why 6947 * the ACS has to be triggered. These values are used by 6948 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and 6949 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON 6950 */ 6951 enum qca_wlan_vendor_acs_select_reason { 6952 /* Represents the reason that the ACS triggered during the AP start */ 6953 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT, 6954 /* Represents the reason that DFS found with the current channel */ 6955 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS, 6956 /* Represents the reason that LTE co-exist in the current band. */ 6957 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX, 6958 /* Represents the reason that generic, uncategorized interference has 6959 * been found in the current channel. 6960 */ 6961 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE, 6962 /* Represents the reason that excessive 802.11 interference has been 6963 * found in the current channel. 6964 */ 6965 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE, 6966 /* Represents the reason that generic Continuous Wave (CW) interference 6967 * has been found in the current channel. 6968 */ 6969 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE, 6970 /* Represents the reason that Microwave Oven (MWO) interference has been 6971 * found in the current channel. 6972 */ 6973 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE, 6974 /* Represents the reason that generic Frequency-Hopping Spread Spectrum 6975 * (FHSS) interference has been found in the current channel. This may 6976 * include 802.11 waveforms. 6977 */ 6978 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE, 6979 /* Represents the reason that non-802.11 generic Frequency-Hopping 6980 * Spread Spectrum (FHSS) interference has been found in the current 6981 * channel. 6982 */ 6983 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE, 6984 /* Represents the reason that generic Wideband (WB) interference has 6985 * been found in the current channel. This may include 802.11 waveforms. 6986 */ 6987 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE, 6988 /* Represents the reason that non-802.11 generic Wideband (WB) 6989 * interference has been found in the current channel. 6990 */ 6991 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE, 6992 /* Represents the reason that Jammer interference has been found in the 6993 * current channel. 6994 */ 6995 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE, 6996 /* Represents the reason that ACS triggered by AFC */ 6997 QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER, 6998 }; 6999 7000 /** 7001 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for 7002 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd 7003 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the 7004 * external ACS policies to select the channels w.r.t. the PCL weights. 7005 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and 7006 * their PCL weights.) 7007 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to 7008 * select a channel with non-zero PCL weight. 7009 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a 7010 * channel with non-zero PCL weight. 7011 * 7012 */ 7013 enum qca_wlan_vendor_attr_external_acs_policy { 7014 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED, 7015 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY, 7016 }; 7017 7018 /** 7019 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel. 7020 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS. 7021 */ 7022 enum qca_wlan_vendor_channel_prop_flags { 7023 /* Bits 0, 1, 2, and 3 are reserved */ 7024 7025 /* Turbo channel */ 7026 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4, 7027 /* CCK channel */ 7028 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5, 7029 /* OFDM channel */ 7030 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6, 7031 /* 2.4 GHz spectrum channel. */ 7032 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7, 7033 /* 5 GHz spectrum channel */ 7034 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8, 7035 /* Only passive scan allowed */ 7036 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9, 7037 /* Dynamic CCK-OFDM channel */ 7038 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10, 7039 /* GFSK channel (FHSS PHY) */ 7040 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11, 7041 /* Radar found on channel */ 7042 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12, 7043 /* 11a static turbo channel only */ 7044 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13, 7045 /* Half rate channel */ 7046 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14, 7047 /* Quarter rate channel */ 7048 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15, 7049 /* HT 20 channel */ 7050 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16, 7051 /* HT 40 with extension channel above */ 7052 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17, 7053 /* HT 40 with extension channel below */ 7054 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18, 7055 /* HT 40 intolerant */ 7056 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19, 7057 /* VHT 20 channel */ 7058 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20, 7059 /* VHT 40 with extension channel above */ 7060 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21, 7061 /* VHT 40 with extension channel below */ 7062 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22, 7063 /* VHT 80 channel */ 7064 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23, 7065 /* HT 40 intolerant mark bit for ACS use */ 7066 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24, 7067 /* Channel temporarily blocked due to noise */ 7068 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25, 7069 /* VHT 160 channel */ 7070 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26, 7071 /* VHT 80+80 channel */ 7072 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27, 7073 /* HE 20 channel */ 7074 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28, 7075 /* HE 40 with extension channel above */ 7076 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29, 7077 /* HE 40 with extension channel below */ 7078 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30, 7079 /* HE 40 intolerant */ 7080 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31, 7081 }; 7082 7083 /** 7084 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a 7085 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is 7086 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2. 7087 */ 7088 enum qca_wlan_vendor_channel_prop_flags_2 { 7089 /* HE 40 intolerant mark bit for ACS use */ 7090 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0, 7091 /* HE 80 channel */ 7092 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1, 7093 /* HE 160 channel */ 7094 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2, 7095 /* HE 80+80 channel */ 7096 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3, 7097 }; 7098 7099 /** 7100 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for 7101 * each channel. This is used by 7102 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT. 7103 */ 7104 enum qca_wlan_vendor_channel_prop_flags_ext { 7105 /* Radar found on channel */ 7106 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0, 7107 /* DFS required on channel */ 7108 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1, 7109 /* DFS required on channel for 2nd band of 80+80 */ 7110 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2, 7111 /* If channel has been checked for DFS */ 7112 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3, 7113 /* Excluded in 802.11d */ 7114 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4, 7115 /* Channel Switch Announcement received on this channel */ 7116 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5, 7117 /* Ad-hoc is not allowed */ 7118 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6, 7119 /* Station only channel */ 7120 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7, 7121 /* DFS radar history for client device (STA mode) */ 7122 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8, 7123 /* DFS CAC valid for client device (STA mode) */ 7124 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9, 7125 }; 7126 7127 /** 7128 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel 7129 * information. These attributes are sent as part of 7130 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following 7131 * attributes correspond to a single channel. 7132 */ 7133 enum qca_wlan_vendor_external_acs_event_chan_info_attr { 7134 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0, 7135 7136 /* A bitmask (u32) with flags specified in 7137 * enum qca_wlan_vendor_channel_prop_flags. 7138 */ 7139 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1, 7140 /* A bitmask (u32) with flags specified in 7141 * enum qca_wlan_vendor_channel_prop_flags_ext. 7142 */ 7143 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2, 7144 /* frequency in MHz (u32) */ 7145 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3, 7146 /* maximum regulatory transmission power (u32) */ 7147 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4, 7148 /* maximum transmission power (u32) */ 7149 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5, 7150 /* minimum transmission power (u32) */ 7151 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6, 7152 /* regulatory class id (u8) */ 7153 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7, 7154 /* maximum antenna gain in (u8) */ 7155 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8, 7156 /* VHT segment 0 (u8) */ 7157 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9, 7158 /* VHT segment 1 (u8) */ 7159 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10, 7160 /* A bitmask (u32) with flags specified in 7161 * enum qca_wlan_vendor_channel_prop_flags_2. 7162 */ 7163 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11, 7164 7165 /* 7166 * Segment 0 in MHz (u32). 7167 * 7168 * For 20/40/80 MHz bandwidth, this indicates the channel center 7169 * frequency index for the 20/40/80 MHz operating channel. 7170 * For 160 MHz bandwidth, this indicates the channel center 7171 * frequency of the primary 80 MHz channel. 7172 * For 320 MHz bandwidth, indicates the channel center frequency 7173 * of the primary 160 MHz channel. 7174 * 7175 * To maintain backward compatibility, 7176 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 7177 * is also maintained. 7178 */ 7179 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12, 7180 /* Legacy alias for the Segment 0 attribute. 7181 * 7182 * VHT segment 0 in MHz (u32) and the attribute is mandatory. 7183 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes 7184 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 7185 * along with 7186 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0. 7187 * 7188 * If both the driver and user-space application supports the 6 GHz 7189 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 7190 * is deprecated and 7191 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 7192 * should be used. 7193 * 7194 * To maintain backward compatibility, 7195 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 7196 * is still used if either of the driver or user space application 7197 * doesn't support the 6 GHz band. 7198 */ 7199 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 7200 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0, 7201 7202 /* 7203 * Segment 1 in MHz (u32). 7204 * 7205 * For 20/40/80 MHz bandwidth, this is set to 0. 7206 * For 160 MHz bandwidth, indicates the channel center frequency of the 7207 * 160 MHz channel. 7208 * For 320 MHz bandwidth, indicates the channel center frequency of the 7209 * 320 MHz channel. 7210 * 7211 * To maintain backward compatibility, 7212 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 7213 * is also maintained. 7214 */ 7215 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13, 7216 /* Legacy alias for the Segment 1 attribute. 7217 * 7218 * VHT segment 1 in MHz (u32) and the attribute is mandatory. 7219 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes 7220 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 7221 * along with 7222 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1. 7223 * 7224 * If both the driver and user-space application supports the 6 GHz 7225 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 7226 * is deprecated and 7227 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 7228 * should be considered. 7229 * 7230 * To maintain backward compatibility, 7231 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 7232 * is still used if either of the driver or user space application 7233 * doesn't support the 6 GHz band. 7234 */ 7235 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 7236 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1, 7237 7238 /* 7239 * 16-bit attribute of bits indicating the AP power modes supported by 7240 * the channel (u16). 7241 * Note: Currently, only 3 bits are used in the attribute and each bit 7242 * corresponds to the power mode mentioned in enum 7243 * qca_wlan_vendor_external_acs_chan_power_mode and a given bit is 7244 * set if the associated mode is supported. 7245 */ 7246 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES 7247 = 14, 7248 /* Array of nested attributes for each power mode. It takes attr as 7249 * defined in enum 7250 * qca_wlan_vendor_external_acs_event_chan_power_info_attr. 7251 */ 7252 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15, 7253 /* 7254 * This indicates the overlapping 320 MHz center frequency in MHz 7255 * (u32), if the given primary channel supports more than one 7256 * 320 MHz channel bonding. 7257 * 7258 * Example: 7259 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0 7260 * center frequency (primary 160 MHz) is 6185 MHz and there can be two 7261 * possible segment 2 frequencies for this (320 MHz center 7262 * frequencies): 7263 * 7264 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding 7265 * from frequency 5945 MHz - 6265 MHz 7266 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding 7267 * from frequency 6105 MHz - 6425 MHz 7268 * 7269 * In this case, 7270 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will 7271 * return 6185 MHz. 7272 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will 7273 * return 6105 MHz. 7274 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1 7275 * will return 6265 MHz. 7276 */ 7277 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1 7278 = 16, 7279 7280 /* keep last */ 7281 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST, 7282 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX = 7283 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1, 7284 }; 7285 7286 /** 7287 * qca_wlan_vendor_external_acs_chan_power_mode - Specifies the valid 7288 * values that the vendor external ACS channel power attribute 7289 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can 7290 * take. 7291 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode 7292 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode 7293 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode 7294 */ 7295 enum qca_wlan_vendor_external_acs_chan_power_level { 7296 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0, 7297 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1, 7298 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2, 7299 }; 7300 7301 /** 7302 * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested 7303 * attributes for power mode type and power values corresponding to that. 7304 * These attributes are sent as part of 7305 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR. 7306 */ 7307 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr { 7308 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0, 7309 /* 7310 * Power mode (u8) takes the values defined in enum 7311 * qca_wlan_vendor_external_acs_chan_power_mode 7312 */ 7313 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE 7314 = 1, 7315 /* 7316 * Indicates if power value is a PSD/EIRP value (flag). If flag is 7317 * present, it indicates a PSD value. 7318 */ 7319 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2, 7320 /* 7321 * Power value (u32) PSD/EIRP as indicated by 7322 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG, 7323 * for power mode corresponding to the 7324 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE. 7325 * Units for PSD - dBm/MHz 7326 * Units for EIRP - dBm 7327 */ 7328 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE 7329 = 3, 7330 /* keep last */ 7331 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST, 7332 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX = 7333 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1, 7334 }; 7335 7336 /** 7337 * qca_wlan_vendor_attr_pcl: Represents attributes for 7338 * preferred channel list (PCL). These attributes are sent as part of 7339 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and 7340 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST. 7341 */ 7342 enum qca_wlan_vendor_attr_pcl { 7343 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0, 7344 7345 /* Channel number (u8) */ 7346 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1, 7347 /* Channel weightage (u8) */ 7348 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2, 7349 /* Channel frequency (u32) in MHz */ 7350 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3, 7351 /* Channel flags (u32) 7352 * bit 0 set: channel to be used for GO role, 7353 * bit 1 set: channel to be used on CLI role, 7354 * bit 2 set: channel must be considered for operating channel 7355 * selection & peer chosen operating channel should be 7356 * one of the channels with this flag set, 7357 * bit 3 set: channel should be excluded in GO negotiation 7358 */ 7359 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4, 7360 7361 /* Keep last */ 7362 QCA_WLAN_VENDOR_ATTR_PCL_LAST, 7363 QCA_WLAN_VENDOR_ATTR_PCL_MAX = QCA_WLAN_VENDOR_ATTR_PCL_LAST - 1 7364 }; 7365 7366 /** 7367 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command 7368 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by 7369 * host driver. 7370 */ 7371 enum qca_wlan_vendor_attr_external_acs_event { 7372 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0, 7373 7374 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason. 7375 * This helps ACS module to understand why ACS needs to be started. 7376 */ 7377 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1, 7378 /* Flag attribute to indicate if driver supports spectral scanning */ 7379 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2, 7380 /* Flag attribute to indicate if 11ac is offloaded to firmware */ 7381 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3, 7382 /* Flag attribute to indicate if driver provides additional channel 7383 * capability as part of scan operation 7384 */ 7385 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4, 7386 /* Flag attribute to indicate interface status is UP */ 7387 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5, 7388 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype 7389 * values. 7390 */ 7391 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6, 7392 /* Channel width (u8). It takes one of enum nl80211_chan_width values. 7393 * This is the upper bound of channel width. ACS logic should try to get 7394 * a channel with the specified width and if not found, look for lower 7395 * values. 7396 */ 7397 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7, 7398 /* This (u8) will hold values of one of enum nl80211_bands */ 7399 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8, 7400 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode 7401 * values 7402 */ 7403 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9, 7404 /* Array of (u32) supported frequency list among which ACS should choose 7405 * best frequency. 7406 */ 7407 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10, 7408 /* Preferred channel list by the driver which will have array of nested 7409 * values as per enum qca_wlan_vendor_attr_pcl attribute. 7410 */ 7411 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11, 7412 /* Array of nested attribute for each channel. It takes attr as defined 7413 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr. 7414 */ 7415 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12, 7416 /* External ACS policy such as PCL mandatory, PCL preferred, etc. 7417 * It uses values defined in enum 7418 * qca_wlan_vendor_attr_external_acs_policy. 7419 */ 7420 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13, 7421 /* Reference RF Operating Parameter (RROP) availability information 7422 * (u16). It uses values defined in enum 7423 * qca_wlan_vendor_attr_rropavail_info. 7424 */ 7425 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14, 7426 /* Flag attribute to indicate if driver supports 6 GHz AFC trigger 7427 * for External ACS 7428 */ 7429 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15, 7430 7431 /* keep last */ 7432 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST, 7433 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX = 7434 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1, 7435 }; 7436 7437 /** 7438 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd 7439 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels 7440 * in priority order as decided after ACS operation in userspace. 7441 * 7442 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8). 7443 * One of reason code from enum qca_wlan_vendor_acs_select_reason. 7444 * 7445 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required 7446 * Array of nested values for each channel with following attributes: 7447 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, 7448 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, 7449 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, 7450 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, 7451 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 7452 * Note: If both the driver and user-space application supports the 6 GHz band, 7453 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use 7454 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST. 7455 * To maintain backward compatibility, 7456 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST 7457 * is still used if either of the driver or user space application doesn't 7458 * support the 6 GHz band. 7459 * 7460 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8). 7461 * Primary channel number 7462 * Note: If both the driver and user-space application supports the 6 GHz band, 7463 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use 7464 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY. 7465 * To maintain backward compatibility, 7466 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY 7467 * is still used if either of the driver or user space application doesn't 7468 * support the 6 GHz band. 7469 * 7470 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8). 7471 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths. 7472 * Note: If both the driver and user-space application supports the 6 GHz band, 7473 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use 7474 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY. 7475 * To maintain backward compatibility, 7476 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY 7477 * is still used if either of the driver or user space application 7478 * doesn't support the 6 GHz band. 7479 * 7480 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8). 7481 * VHT seg0 channel number 7482 * Note: If both the driver and user-space application supports the 6 GHz band, 7483 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use 7484 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0. 7485 * To maintain backward compatibility, 7486 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 7487 * is still used if either of the driver or user space application 7488 * doesn't support the 6 GHz band. 7489 * 7490 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8). 7491 * VHT seg1 channel number 7492 * Note: If both the driver and user-space application supports the 6 GHz band, 7493 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use 7494 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1. 7495 * To maintain backward compatibility, 7496 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 7497 * is still used if either of the driver or user space application 7498 * doesn't support the 6 GHz band. 7499 * 7500 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8). 7501 * Takes one of enum nl80211_chan_width values. 7502 * 7503 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required 7504 * Array of nested values for each channel with following attributes: 7505 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32), 7506 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32), 7507 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32), 7508 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32), 7509 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 7510 * Note: If user-space application has no support of the 6 GHz band, this 7511 * attribute is optional. 7512 * 7513 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32) 7514 * Primary channel frequency in MHz 7515 * Note: If user-space application has no support of the 6 GHz band, this 7516 * attribute is optional. 7517 * 7518 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32) 7519 * Secondary channel frequency in MHz used for HT 40 MHz channels. 7520 * Note: If user-space application has no support of the 6 GHz band, this 7521 * attribute is optional. 7522 * 7523 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32) 7524 * VHT seg0 channel frequency in MHz 7525 * Note: If user-space application has no support of the 6GHz band, this 7526 * attribute is optional. 7527 * 7528 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32) 7529 * VHT seg1 channel frequency in MHz 7530 * Note: If user-space application has no support of the 6 GHz band, this 7531 * attribute is optional. 7532 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16) 7533 * Puncture Bitmap for selected primary channel. Optional if no support 7534 * for EHT (IEEE 802.11be). Encoding for this attribute follows the 7535 * convention used in the Disabled Subchannel Bitmap field of the EHT Operation 7536 * element. 7537 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_LINK_ID: Mandatory on AP MLD (u8). 7538 * Used with command to configure external ACS operation for a specific link 7539 * affiliated to an AP MLD. 7540 */ 7541 enum qca_wlan_vendor_attr_external_acs_channels { 7542 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0, 7543 7544 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason 7545 */ 7546 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1, 7547 7548 /* Array of nested values for each channel with following attributes: 7549 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND, 7550 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, 7551 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, 7552 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, 7553 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, 7554 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 7555 */ 7556 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2, 7557 /* This (u8) will hold values of one of enum nl80211_bands */ 7558 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3, 7559 /* Primary channel (u8) */ 7560 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4, 7561 /* Secondary channel (u8) used for HT 40 MHz channels */ 7562 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5, 7563 /* VHT seg0 channel (u8) */ 7564 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6, 7565 /* VHT seg1 channel (u8) */ 7566 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7, 7567 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */ 7568 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8, 7569 7570 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9, 7571 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10, 7572 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11, 7573 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12, 7574 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13, 7575 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14, 7576 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_LINK_ID = 15, 7577 7578 /* keep last */ 7579 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST, 7580 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX = 7581 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1 7582 }; 7583 7584 enum qca_chip_power_save_failure_reason { 7585 /* Indicates if the reason for the failure is due to a protocol 7586 * layer/module. 7587 */ 7588 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0, 7589 /* Indicates if the reason for the failure is due to a hardware issue. 7590 */ 7591 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1, 7592 }; 7593 7594 /** 7595 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd 7596 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite 7597 * information leading to the power save failure. 7598 */ 7599 enum qca_attr_chip_power_save_failure { 7600 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0, 7601 /* Reason to cause the power save failure. 7602 * These reasons are represented by 7603 * enum qca_chip_power_save_failure_reason. 7604 */ 7605 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1, 7606 7607 /* keep last */ 7608 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST, 7609 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX = 7610 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1, 7611 }; 7612 7613 /** 7614 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various 7615 * data types for which the stats have to get collected. 7616 */ 7617 enum qca_wlan_vendor_nud_stats_data_pkt_flags { 7618 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0, 7619 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1, 7620 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2, 7621 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3, 7622 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4, 7623 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get 7624 * to represent the stats of respective data type. 7625 */ 7626 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5, 7627 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6, 7628 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7, 7629 }; 7630 7631 enum qca_wlan_vendor_nud_stats_set_data_pkt_info { 7632 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0, 7633 /* Represents the data packet type to be monitored (u32). 7634 * Host driver tracks the stats corresponding to each data frame 7635 * represented by these flags. 7636 * These data packets are represented by 7637 * enum qca_wlan_vendor_nud_stats_data_pkt_flags 7638 */ 7639 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1, 7640 /* Name corresponding to the DNS frame for which the respective DNS 7641 * stats have to get monitored (string). Max string length 255. 7642 */ 7643 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2, 7644 /* source port on which the respective proto stats have to get 7645 * collected (u32). 7646 */ 7647 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3, 7648 /* destination port on which the respective proto stats have to get 7649 * collected (u32). 7650 */ 7651 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4, 7652 /* IPv4 address for which the destined data packets have to be 7653 * monitored. (in network byte order), u32. 7654 */ 7655 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5, 7656 /* IPv6 address for which the destined data packets have to be 7657 * monitored. (in network byte order), 16 bytes array. 7658 */ 7659 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6, 7660 7661 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST, 7662 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX = 7663 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1, 7664 }; 7665 7666 /** 7667 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd 7668 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite 7669 * information to start/stop the NUD statistics collection. 7670 */ 7671 enum qca_attr_nud_stats_set { 7672 QCA_ATTR_NUD_STATS_SET_INVALID = 0, 7673 7674 /* Flag to start/stop the NUD statistics collection. 7675 * Start - If included, Stop - If not included 7676 */ 7677 QCA_ATTR_NUD_STATS_SET_START = 1, 7678 /* IPv4 address of the default gateway (in network byte order), u32 */ 7679 QCA_ATTR_NUD_STATS_GW_IPV4 = 2, 7680 /* Represents the list of data packet types to be monitored. 7681 * Host driver tracks the stats corresponding to each data frame 7682 * represented by these flags. 7683 * These data packets are represented by 7684 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info 7685 */ 7686 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3, 7687 7688 /* keep last */ 7689 QCA_ATTR_NUD_STATS_SET_LAST, 7690 QCA_ATTR_NUD_STATS_SET_MAX = 7691 QCA_ATTR_NUD_STATS_SET_LAST - 1, 7692 }; 7693 7694 enum qca_attr_nud_data_stats { 7695 QCA_ATTR_NUD_DATA_STATS_INVALID = 0, 7696 /* Data packet type for which the stats are collected (u32). 7697 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags 7698 */ 7699 QCA_ATTR_NUD_STATS_PKT_TYPE = 1, 7700 /* Name corresponding to the DNS frame for which the respective DNS 7701 * stats are monitored (string). Max string length 255. 7702 */ 7703 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2, 7704 /* source port on which the respective proto stats are collected (u32). 7705 */ 7706 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3, 7707 /* destination port on which the respective proto stats are collected 7708 * (u32). 7709 */ 7710 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4, 7711 /* IPv4 address for which the destined data packets have to be 7712 * monitored. (in network byte order), u32. 7713 */ 7714 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5, 7715 /* IPv6 address for which the destined data packets have to be 7716 * monitored. (in network byte order), 16 bytes array. 7717 */ 7718 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6, 7719 /* Data packet Request count received from netdev (u32). */ 7720 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7, 7721 /* Data packet Request count sent to lower MAC from upper MAC (u32). */ 7722 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8, 7723 /* Data packet Request count received by lower MAC from upper MAC 7724 * (u32) 7725 */ 7726 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9, 7727 /* Data packet Request count successfully transmitted by the device 7728 * (u32) 7729 */ 7730 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10, 7731 /* Data packet Response count received by lower MAC (u32) */ 7732 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11, 7733 /* Data packet Response count received by upper MAC (u32) */ 7734 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12, 7735 /* Data packet Response count delivered to netdev (u32) */ 7736 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13, 7737 /* Data Packet Response count that are dropped out of order (u32) */ 7738 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14, 7739 7740 /* keep last */ 7741 QCA_ATTR_NUD_DATA_STATS_LAST, 7742 QCA_ATTR_NUD_DATA_STATS_MAX = 7743 QCA_ATTR_NUD_DATA_STATS_LAST - 1, 7744 }; 7745 7746 /** 7747 * qca_attr_nud_stats_get: Attributes to vendor subcmd 7748 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite 7749 * NUD statistics collected when queried. 7750 */ 7751 enum qca_attr_nud_stats_get { 7752 QCA_ATTR_NUD_STATS_GET_INVALID = 0, 7753 /* ARP Request count from netdev (u32) */ 7754 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1, 7755 /* ARP Request count sent to lower MAC from upper MAC (u32) */ 7756 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2, 7757 /* ARP Request count received by lower MAC from upper MAC (u32) */ 7758 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3, 7759 /* ARP Request count successfully transmitted by the device (u32) */ 7760 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4, 7761 /* ARP Response count received by lower MAC (u32) */ 7762 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5, 7763 /* ARP Response count received by upper MAC (u32) */ 7764 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6, 7765 /* ARP Response count delivered to netdev (u32) */ 7766 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7, 7767 /* ARP Response count dropped due to out of order reception (u32) */ 7768 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8, 7769 /* Flag indicating if the station's link to the AP is active. 7770 * Active Link - If included, Inactive link - If not included 7771 */ 7772 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9, 7773 /* Flag indicating if there is any duplicate address detected (DAD). 7774 * Yes - If detected, No - If not detected. 7775 */ 7776 QCA_ATTR_NUD_STATS_IS_DAD = 10, 7777 /* List of Data packet types for which the stats are requested. 7778 * This list does not carry ARP stats as they are done by the 7779 * above attributes. Represented by enum qca_attr_nud_data_stats. 7780 */ 7781 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11, 7782 7783 /* keep last */ 7784 QCA_ATTR_NUD_STATS_GET_LAST, 7785 QCA_ATTR_NUD_STATS_GET_MAX = 7786 QCA_ATTR_NUD_STATS_GET_LAST - 1, 7787 }; 7788 7789 enum qca_wlan_btm_candidate_status { 7790 QCA_STATUS_ACCEPT = 0, 7791 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1, 7792 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2, 7793 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3, 7794 QCA_STATUS_REJECT_LOW_RSSI = 4, 7795 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5, 7796 QCA_STATUS_REJECT_UNKNOWN = 6, 7797 }; 7798 7799 enum qca_wlan_vendor_attr_btm_candidate_info { 7800 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0, 7801 7802 /* 6-byte MAC address representing the BSSID of transition candidate */ 7803 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1, 7804 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status 7805 * returned by the driver. It says whether the BSSID provided in 7806 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by 7807 * the driver, if not it specifies the reason for rejection. 7808 * Note that the user-space can overwrite the transition reject reason 7809 * codes provided by driver based on more information. 7810 */ 7811 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2, 7812 7813 /* keep last */ 7814 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST, 7815 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX = 7816 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1, 7817 }; 7818 7819 enum qca_attr_trace_level { 7820 QCA_ATTR_TRACE_LEVEL_INVALID = 0, 7821 /* 7822 * Nested array of the following attributes: 7823 * QCA_ATTR_TRACE_LEVEL_MODULE, 7824 * QCA_ATTR_TRACE_LEVEL_MASK. 7825 */ 7826 QCA_ATTR_TRACE_LEVEL_PARAM = 1, 7827 /* 7828 * Specific QCA host driver module. Please refer to the QCA host 7829 * driver implementation to get the specific module ID. 7830 */ 7831 QCA_ATTR_TRACE_LEVEL_MODULE = 2, 7832 /* Different trace level masks represented in the QCA host driver. */ 7833 QCA_ATTR_TRACE_LEVEL_MASK = 3, 7834 7835 /* keep last */ 7836 QCA_ATTR_TRACE_LEVEL_AFTER_LAST, 7837 QCA_ATTR_TRACE_LEVEL_MAX = 7838 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1, 7839 }; 7840 7841 /** 7842 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities 7843 */ 7844 enum qca_wlan_vendor_attr_get_he_capabilities { 7845 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0, 7846 /* Whether HE capabilities is supported 7847 * (u8 attribute: 0 = not supported, 1 = supported) 7848 */ 7849 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1, 7850 /* HE PHY capabilities, array of 3 u32 values */ 7851 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2, 7852 /* HE MAC capabilities (u32 attribute) */ 7853 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3, 7854 /* HE MCS map (u32 attribute) */ 7855 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4, 7856 /* Number of SS (u32 attribute) */ 7857 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5, 7858 /* RU count (u32 attribute) */ 7859 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6, 7860 /* PPE threshold data, array of 8 u32 values */ 7861 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7, 7862 7863 /* keep last */ 7864 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST, 7865 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX = 7866 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1, 7867 }; 7868 7869 /** 7870 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters 7871 */ 7872 enum qca_wlan_vendor_attr_spectral_scan { 7873 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0, 7874 /* Number of times the chip enters spectral scan mode before 7875 * deactivating spectral scans. When set to 0, chip will enter spectral 7876 * scan mode continuously. u32 attribute. 7877 */ 7878 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1, 7879 /* Spectral scan period. Period increment resolution is 256*Tclk, 7880 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute. 7881 */ 7882 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2, 7883 /* Spectral scan priority. u32 attribute. */ 7884 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3, 7885 /* Number of FFT data points to compute. u32 attribute. */ 7886 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4, 7887 /* Enable targeted gain change before starting the spectral scan FFT. 7888 * u32 attribute. 7889 */ 7890 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5, 7891 /* Restart a queued spectral scan. u32 attribute. */ 7892 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6, 7893 /* Noise floor reference number for the calculation of bin power. 7894 * u32 attribute. 7895 */ 7896 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7, 7897 /* Disallow spectral scan triggers after TX/RX packets by setting 7898 * this delay value to roughly SIFS time period or greater. 7899 * u32 attribute. 7900 */ 7901 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8, 7902 /* Number of strong bins (inclusive) per sub-channel, below 7903 * which a signal is declared a narrow band tone. u32 attribute. 7904 */ 7905 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9, 7906 /* Specify the threshold over which a bin is declared strong (for 7907 * scan bandwidth analysis). u32 attribute. 7908 */ 7909 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10, 7910 /* Spectral scan report mode. u32 attribute. */ 7911 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11, 7912 /* RSSI report mode, if the ADC RSSI is below 7913 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR, 7914 * then FFTs will not trigger, but timestamps and summaries get 7915 * reported. u32 attribute. 7916 */ 7917 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12, 7918 /* ADC RSSI must be greater than or equal to this threshold (signed dB) 7919 * to ensure spectral scan reporting with normal error code. 7920 * u32 attribute. 7921 */ 7922 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13, 7923 /* Format of frequency bin magnitude for spectral scan triggered FFTs: 7924 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)). 7925 * u32 attribute. 7926 */ 7927 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14, 7928 /* Format of FFT report to software for spectral scan triggered FFTs. 7929 * 0: No FFT report (only spectral scan summary report) 7930 * 1: 2-dword summary of metrics for each completed FFT + spectral scan 7931 * report 7932 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled 7933 * bins (in-band) per FFT + spectral scan summary report 7934 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled 7935 * bins (all) per FFT + spectral scan summary report 7936 * u32 attribute. 7937 */ 7938 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15, 7939 /* Number of LSBs to shift out in order to scale the FFT bins. 7940 * u32 attribute. 7941 */ 7942 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16, 7943 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes 7944 * in dBm power. u32 attribute. 7945 */ 7946 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17, 7947 /* Per chain enable mask to select input ADC for search FFT. 7948 * u32 attribute. 7949 */ 7950 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18, 7951 /* An unsigned 64-bit integer provided by host driver to identify the 7952 * spectral scan request. This attribute is included in the scan 7953 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START 7954 * and used as an attribute in 7955 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the 7956 * specific scan to be stopped. 7957 */ 7958 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19, 7959 /* Skip interval for FFT reports. u32 attribute */ 7960 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20, 7961 /* Set to report only one set of FFT results. 7962 * u32 attribute. 7963 */ 7964 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21, 7965 /* Debug level for spectral module in driver. 7966 * 0 : Verbosity level 0 7967 * 1 : Verbosity level 1 7968 * 2 : Verbosity level 2 7969 * 3 : Matched filterID display 7970 * 4 : One time dump of FFT report 7971 * u32 attribute. 7972 */ 7973 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22, 7974 /* Type of spectral scan request. u32 attribute. 7975 * It uses values defined in enum 7976 * qca_wlan_vendor_attr_spectral_scan_request_type. 7977 */ 7978 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23, 7979 /* This specifies the frequency span over which spectral 7980 * scan would be carried out. Its value depends on the 7981 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and 7982 * the relation is as follows. 7983 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL 7984 * Not applicable. Spectral scan would happen in the 7985 * operating span. 7986 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE 7987 * Center frequency (in MHz) of the span of interest or 7988 * for convenience, center frequency (in MHz) of any channel 7989 * in the span of interest. For 80+80 MHz agile spectral scan 7990 * request it represents center frequency (in MHz) of the primary 7991 * 80 MHz span or for convenience, center frequency (in MHz) of any 7992 * channel in the primary 80 MHz span. If agile spectral scan is 7993 * initiated without setting a valid frequency it returns the 7994 * error code 7995 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED). 7996 * u32 attribute. 7997 */ 7998 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24, 7999 /* Spectral scan mode. u32 attribute. 8000 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. 8001 * If this attribute is not present, it is assumed to be 8002 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL). 8003 */ 8004 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25, 8005 /* Spectral scan error code. u32 attribute. 8006 * It uses values defined in enum 8007 * qca_wlan_vendor_spectral_scan_error_code. 8008 * This attribute is included only in failure scenarios. 8009 */ 8010 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26, 8011 /* 8-bit unsigned value to enable/disable debug of the 8012 * Spectral DMA ring. 8013 * 1-enable, 0-disable 8014 */ 8015 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27, 8016 /* 8-bit unsigned value to enable/disable debug of the 8017 * Spectral DMA buffers. 8018 * 1-enable, 0-disable 8019 */ 8020 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28, 8021 /* This specifies the frequency span over which spectral scan would be 8022 * carried out. Its value depends on the value of 8023 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as 8024 * follows. 8025 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL 8026 * Not applicable. Spectral scan would happen in the operating span. 8027 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE 8028 * This attribute is applicable only for agile spectral scan 8029 * requests in 80+80 MHz mode. It represents center frequency (in 8030 * MHz) of the secondary 80 MHz span or for convenience, center 8031 * frequency (in MHz) of any channel in the secondary 80 MHz span. 8032 * u32 attribute. 8033 */ 8034 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29, 8035 /* This attribute specifies the bandwidth to be used for spectral scan 8036 * operation. This is an u8 attribute and uses the values in enum 8037 * nl80211_chan_width. This is an optional attribute. 8038 * If this attribute is not populated, the driver should configure the 8039 * spectral scan bandwidth to the maximum value supported by the target 8040 * for the current operating bandwidth. 8041 */ 8042 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30, 8043 /* Spectral FFT recapture flag attribute, to enable FFT recapture. 8044 * Recapture can only be enabled for scan period greater than 52 us. 8045 * If this attribute is enabled, re-triggers will be enabled when AGC 8046 * gain changes. 8047 */ 8048 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31, 8049 /* Attribute used for padding for 64-bit alignment */ 8050 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PAD = 32, 8051 /* Spectral data transport mode. u32 attribute. It uses values 8052 * defined in enum qca_wlan_vendor_spectral_data_transport_mode. 8053 * This is an optional attribute. If this attribute is not populated, 8054 * the driver should configure the default transport mode to netlink. 8055 */ 8056 QCA_WLAN_VENDOR_ATTR_SPECTRAL_DATA_TRANSPORT_MODE = 33, 8057 /* Spectral scan completion timeout. u32 attribute. This 8058 * attribute is used to configure a timeout value (in us). The 8059 * timeout value would be from the beginning of a spectral 8060 * scan. This is an optional attribute. If this attribute is 8061 * not populated, the driver would internally derive the 8062 * timeout value. 8063 */ 8064 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETION_TIMEOUT = 34, 8065 8066 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST, 8067 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX = 8068 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1, 8069 }; 8070 8071 /** 8072 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command 8073 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS. 8074 */ 8075 enum qca_wlan_vendor_attr_spectral_diag_stats { 8076 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0, 8077 /* Number of spectral TLV signature mismatches. 8078 * u64 attribute. 8079 */ 8080 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1, 8081 /* Number of spectral phyerror events with insufficient length when 8082 * parsing for secondary 80 search FFT report. u64 attribute. 8083 */ 8084 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2, 8085 /* Number of spectral phyerror events without secondary 80 8086 * search FFT report. u64 attribute. 8087 */ 8088 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3, 8089 /* Number of spectral phyerror events with vht operation segment 1 id 8090 * mismatches in search fft report. u64 attribute. 8091 */ 8092 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4, 8093 /* Number of spectral phyerror events with vht operation segment 2 id 8094 * mismatches in search fft report. u64 attribute. 8095 */ 8096 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5, 8097 /* Attribute used for padding for 64-bit alignment */ 8098 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_PAD = 6, 8099 8100 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST, 8101 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX = 8102 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1, 8103 }; 8104 8105 /** 8106 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command 8107 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. 8108 */ 8109 enum qca_wlan_vendor_attr_spectral_cap { 8110 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0, 8111 /* Flag attribute to indicate phydiag capability */ 8112 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1, 8113 /* Flag attribute to indicate radar detection capability */ 8114 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2, 8115 /* Flag attribute to indicate spectral capability */ 8116 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3, 8117 /* Flag attribute to indicate advanced spectral capability */ 8118 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4, 8119 /* Spectral hardware generation. u32 attribute. 8120 * It uses values defined in enum 8121 * qca_wlan_vendor_spectral_scan_cap_hw_gen. 8122 */ 8123 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5, 8124 /* Spectral bin scaling formula ID. u16 attribute. 8125 * It uses values defined in enum 8126 * qca_wlan_vendor_spectral_scan_cap_formula_id. 8127 */ 8128 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6, 8129 /* Spectral bin scaling param - low level offset. 8130 * s16 attribute. 8131 */ 8132 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7, 8133 /* Spectral bin scaling param - high level offset. 8134 * s16 attribute. 8135 */ 8136 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8, 8137 /* Spectral bin scaling param - RSSI threshold. 8138 * s16 attribute. 8139 */ 8140 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9, 8141 /* Spectral bin scaling param - default AGC max gain. 8142 * u8 attribute. 8143 */ 8144 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10, 8145 /* Flag attribute to indicate agile spectral scan capability 8146 * for 20/40/80 MHz modes. 8147 */ 8148 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11, 8149 /* Flag attribute to indicate agile spectral scan capability 8150 * for 160 MHz mode. 8151 */ 8152 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12, 8153 /* Flag attribute to indicate agile spectral scan capability 8154 * for 80+80 MHz mode. 8155 */ 8156 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13, 8157 /* Number of spectral detectors used for scan in 20 MHz. 8158 * u32 attribute. 8159 */ 8160 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14, 8161 /* Number of spectral detectors used for scan in 40 MHz. 8162 * u32 attribute. 8163 */ 8164 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15, 8165 /* Number of spectral detectors used for scan in 80 MHz. 8166 * u32 attribute. 8167 */ 8168 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16, 8169 /* Number of spectral detectors used for scan in 160 MHz. 8170 * u32 attribute. 8171 */ 8172 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17, 8173 /* Number of spectral detectors used for scan in 80+80 MHz. 8174 * u32 attribute. 8175 */ 8176 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18, 8177 /* Flag attribute to indicate agile spectral scan capability 8178 * for 320 MHz mode. 8179 */ 8180 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19, 8181 /* Number of spectral detectors used for scan in 320 MHz. 8182 * u32 attribute. 8183 */ 8184 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20, 8185 8186 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST, 8187 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX = 8188 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1, 8189 }; 8190 8191 /** 8192 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command 8193 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. 8194 */ 8195 enum qca_wlan_vendor_attr_spectral_scan_status { 8196 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0, 8197 /* Flag attribute to indicate whether spectral scan is enabled */ 8198 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1, 8199 /* Flag attribute to indicate whether spectral scan is in progress*/ 8200 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2, 8201 /* Spectral scan mode. u32 attribute. 8202 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. 8203 * If this attribute is not present, normal mode 8204 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be 8205 * requested. 8206 */ 8207 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3, 8208 8209 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST, 8210 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX = 8211 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1, 8212 }; 8213 8214 /** 8215 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for 8216 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd 8217 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the 8218 * spectral scan request types. 8219 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to 8220 * set the spectral parameters and start scan. 8221 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to 8222 * only set the spectral parameters. 8223 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to 8224 * only start the spectral scan. 8225 */ 8226 enum qca_wlan_vendor_attr_spectral_scan_request_type { 8227 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG, 8228 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN, 8229 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG, 8230 }; 8231 8232 /** 8233 * qca_wlan_vendor_spectral_scan_mode: Attribute values for 8234 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd 8235 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and 8236 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd 8237 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the 8238 * spectral scan modes. 8239 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan: 8240 * spectral scan in the current operating span. 8241 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan: 8242 * spectral scan in the configured agile span. 8243 */ 8244 enum qca_wlan_vendor_spectral_scan_mode { 8245 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0, 8246 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1, 8247 }; 8248 8249 /** 8250 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for 8251 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd 8252 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. 8253 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value 8254 * of a parameter is not supported. 8255 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan 8256 * mode is not supported. 8257 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter 8258 * has invalid value. 8259 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter 8260 * is not initialized. 8261 */ 8262 enum qca_wlan_vendor_spectral_scan_error_code { 8263 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0, 8264 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1, 8265 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2, 8266 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3, 8267 }; 8268 8269 /** 8270 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for 8271 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd 8272 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the 8273 * spectral hardware generation. 8274 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1 8275 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2 8276 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3 8277 */ 8278 enum qca_wlan_vendor_spectral_scan_cap_hw_gen { 8279 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0, 8280 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1, 8281 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2, 8282 }; 8283 8284 enum qca_wlan_vendor_tos { 8285 QCA_WLAN_VENDOR_TOS_BK = 0, 8286 QCA_WLAN_VENDOR_TOS_BE = 1, 8287 QCA_WLAN_VENDOR_TOS_VI = 2, 8288 QCA_WLAN_VENDOR_TOS_VO = 3, 8289 }; 8290 8291 /** 8292 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command 8293 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS. 8294 */ 8295 enum qca_wlan_vendor_attr_active_tos { 8296 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0, 8297 /* Type Of Service - Represented by qca_wlan_vendor_tos */ 8298 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1, 8299 /* Flag attribute representing the start (attribute included) or stop 8300 * (attribute not included) of the respective TOS. 8301 */ 8302 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2, 8303 }; 8304 8305 enum qca_wlan_vendor_hang_reason { 8306 /* Unspecified reason */ 8307 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0, 8308 /* No Map for the MAC entry for the received frame */ 8309 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1, 8310 /* Peer deletion timeout happened */ 8311 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2, 8312 /* Peer unmap timeout */ 8313 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3, 8314 /* Scan request timed out */ 8315 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4, 8316 /* Consecutive Scan attempt failures */ 8317 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5, 8318 /* Unable to get the message buffer */ 8319 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6, 8320 /* Current command processing is timedout */ 8321 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7, 8322 /* Timeout for an ACK from FW for suspend request */ 8323 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8, 8324 /* Timeout for an ACK from FW for resume request */ 8325 QCA_WLAN_HANG_RESUME_TIMEOUT = 9, 8326 /* Transmission timeout for consecutive data frames */ 8327 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10, 8328 /* Timeout for the TX completion status of data frame */ 8329 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11, 8330 /* DXE failure for TX/RX, DXE resource unavailability */ 8331 QCA_WLAN_HANG_DXE_FAILURE = 12, 8332 /* WMI pending commands exceed the maximum count */ 8333 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13, 8334 /* Timeout for peer STA connection accept command's response from the 8335 * FW in AP mode. This command is triggered when a STA (peer) connects 8336 * to AP (DUT). 8337 */ 8338 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14, 8339 /* Timeout for the AP connection accept command's response from the FW 8340 * in STA mode. This command is triggered when the STA (DUT) connects 8341 * to an AP (peer). 8342 */ 8343 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15, 8344 /* Timeout waiting for the response to the MAC HW mode change command 8345 * sent to FW as a part of MAC mode switch among DBS (Dual Band 8346 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi 8347 * Channel Concurrency) mode. 8348 */ 8349 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16, 8350 /* Timeout waiting for the response from FW to configure the MAC HW's 8351 * mode. This operation is to configure the single/two MACs in either 8352 * SCC/MCC/DBS mode. 8353 */ 8354 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17, 8355 /* Timeout waiting for response of VDEV start command from the FW */ 8356 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18, 8357 /* Timeout waiting for response of VDEV restart command from the FW */ 8358 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19, 8359 /* Timeout waiting for response of VDEV stop command from the FW */ 8360 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20, 8361 /* Timeout waiting for response of VDEV delete command from the FW */ 8362 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21, 8363 /* Timeout waiting for response of peer all delete request command to 8364 * the FW on a specific VDEV. 8365 */ 8366 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22, 8367 /* WMI sequence mismatch between WMI command and Tx completion */ 8368 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23, 8369 /* Write to Device HAL register failed */ 8370 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24, 8371 /* No credit left to send the wow_wakeup_from_sleep to firmware */ 8372 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25, 8373 /* Bus failure */ 8374 QCA_WLAN_HANG_BUS_FAILURE = 26, 8375 /* tasklet/credit latency found */ 8376 QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27, 8377 /* MSDU buffers received in REO error ring, exceeding certain 8378 * threshold 8379 */ 8380 QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28, 8381 /* Vdev SM is out of sync and connect req received 8382 * when already connected 8383 */ 8384 QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29, 8385 /* Stats request timeout */ 8386 QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30, 8387 /* Leak in TX descriptor for a packet */ 8388 QCA_WLAN_HANG_TX_DESC_LEAK = 31, 8389 /* Scheduler watchdog timeout */ 8390 QCA_WLAN_HANG_SCHED_TIMEOUT = 32, 8391 /* Failed to send self peer deletion cmd to firmware */ 8392 QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33, 8393 /* Received del self sta without del bss */ 8394 QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34, 8395 /* Recovery needed when sending flush completion to userspace */ 8396 QCA_WLAN_HANG_FLUSH_LOGS = 35, 8397 /* Host wakeup because of page fault */ 8398 QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36, 8399 }; 8400 8401 /** 8402 * enum qca_wlan_vendor_attr_hang - Used by the vendor command 8403 * QCA_NL80211_VENDOR_SUBCMD_HANG. 8404 */ 8405 enum qca_wlan_vendor_attr_hang { 8406 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0, 8407 /* Reason for the hang - u32 attribute with a value from enum 8408 * qca_wlan_vendor_hang_reason. 8409 */ 8410 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1, 8411 /* The binary blob data associated with the hang reason specified by 8412 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to 8413 * contain the required dump to analyze the reason for the hang. 8414 * NLA_BINARY attribute, the max size is 1024 bytes. 8415 */ 8416 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2, 8417 8418 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST, 8419 QCA_WLAN_VENDOR_ATTR_HANG_MAX = 8420 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1, 8421 }; 8422 8423 /** 8424 * enum qca_wlan_vendor_flush_pending_policy: Represents values for 8425 * the policy to flush pending frames, configured via 8426 * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the 8427 * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY. 8428 * 8429 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all 8430 * the flush policy configured before. This command basically disables the 8431 * flush config set by the user. 8432 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures 8433 * the flush policy to be immediate. All pending packets for the peer/TID are 8434 * flushed when this command/policy is received. 8435 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures 8436 * the flush policy to the end of TWT SP. All pending packets for the peer/TID 8437 * are flushed when the end of TWT SP is reached. 8438 */ 8439 enum qca_wlan_vendor_flush_pending_policy { 8440 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0, 8441 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1, 8442 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2, 8443 }; 8444 8445 /** 8446 * enum qca_wlan_vendor_attr_flush_pending - Attributes for 8447 * flushing pending traffic in firmware. 8448 * 8449 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address. 8450 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending 8451 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK, 8452 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to 8453 * flush packets with access category. This is optional. See below. 8454 * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets. 8455 * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding 8456 * bit to 1 to act upon the TID. This is optional. Either this attribute or 8457 * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided, 8458 * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided 8459 * it is an error. 8460 * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending 8461 * packets corresponding to the peer/TID provided. It is a u32 value, 8462 * represented by %enum qca_wlan_vendor_flush_pending_policy. This 8463 * value is honored only when TID mask is provided. This is not honored when AC 8464 * mask is provided. 8465 */ 8466 enum qca_wlan_vendor_attr_flush_pending { 8467 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0, 8468 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1, 8469 QCA_WLAN_VENDOR_ATTR_AC = 2, 8470 QCA_WLAN_VENDOR_ATTR_TID_MASK = 3, 8471 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4, 8472 8473 /* keep last */ 8474 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST, 8475 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX = 8476 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1, 8477 }; 8478 8479 /** 8480 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for 8481 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd 8482 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the 8483 * Spectral bin scaling formula ID. 8484 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling 8485 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain 8486 * and RSSI threshold based formula. 8487 */ 8488 enum qca_wlan_vendor_spectral_scan_cap_formula_id { 8489 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0, 8490 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1, 8491 }; 8492 8493 /** 8494 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative 8495 * RF Operating Parameter (RROP) information is available, and if so, at which 8496 * point in the application-driver interaction sequence it can be retrieved by 8497 * the application from the driver. This point may vary by architecture and 8498 * other factors. This is a u16 value. 8499 */ 8500 enum qca_wlan_vendor_attr_rropavail_info { 8501 /* RROP information is unavailable. */ 8502 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE, 8503 /* RROP information is available and the application can retrieve the 8504 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS 8505 * event from the driver. 8506 */ 8507 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START, 8508 /* RROP information is available only after a vendor specific scan 8509 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has 8510 * successfully completed. The application can retrieve the information 8511 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from 8512 * the driver. 8513 */ 8514 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END, 8515 }; 8516 8517 /** 8518 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific 8519 * Representative RF Operating Parameter (RROP) information. It is sent for the 8520 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is 8521 * intended for use by external Auto Channel Selection applications. It provides 8522 * guidance values for some RF parameters that are used by the system during 8523 * operation. These values could vary by channel, band, radio, and so on. 8524 */ 8525 enum qca_wlan_vendor_attr_rrop_info { 8526 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0, 8527 8528 /* Representative Tx Power List (RTPL) which has an array of nested 8529 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst. 8530 */ 8531 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1, 8532 8533 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST, 8534 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX = 8535 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1 8536 }; 8537 8538 /** 8539 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list 8540 * entry instances in the Representative Tx Power List (RTPL). It provides 8541 * simplified power values intended for helping external Auto channel Selection 8542 * applications compare potential Tx power performance between channels, other 8543 * operating conditions remaining identical. These values are not necessarily 8544 * the actual Tx power values that will be used by the system. They are also not 8545 * necessarily the max or average values that will be used. Instead, they are 8546 * relative, summarized keys for algorithmic use computed by the driver or 8547 * underlying firmware considering a number of vendor specific factors. 8548 */ 8549 enum qca_wlan_vendor_attr_rtplinst { 8550 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0, 8551 8552 /* Primary channel number (u8). 8553 * Note: If both the driver and user space application support the 8554 * 6 GHz band, this attribute is deprecated and 8555 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To 8556 * maintain backward compatibility, 8557 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the 8558 * driver or user space application or both do not support the 6 GHz 8559 * band. 8560 */ 8561 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1, 8562 /* Representative Tx power in dBm (s32) with emphasis on throughput. */ 8563 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2, 8564 /* Representative Tx power in dBm (s32) with emphasis on range. */ 8565 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3, 8566 /* Primary channel center frequency (u32) in MHz */ 8567 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4, 8568 8569 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST, 8570 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX = 8571 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1, 8572 }; 8573 8574 /** 8575 * enum qca_wlan_vendor_attr_config_latency_level - Level for 8576 * wlan latency module. 8577 * 8578 * There will be various of Wi-Fi functionality like scan/roaming/adaptive 8579 * power saving which would causing data exchange out of service, this 8580 * would be a big impact on latency. For latency sensitive applications over 8581 * Wi-Fi are intolerant to such operations and thus would configure them 8582 * to meet their respective needs. It is well understood by such applications 8583 * that altering the default behavior would degrade the Wi-Fi functionality 8584 * w.r.t the above pointed WLAN operations. 8585 * 8586 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL: 8587 * Default WLAN operation level which throughput orientated. 8588 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR: 8589 * Use XR level to benefit XR (extended reality) application to achieve 8590 * latency and power by via constraint scan/roaming/adaptive PS. 8591 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW: 8592 * Use low latency level to benefit application like concurrent 8593 * downloading or video streaming via constraint scan/adaptive PS. 8594 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW: 8595 * Use ultra low latency level to benefit for gaming/voice 8596 * application via constraint scan/roaming/adaptive PS. 8597 */ 8598 enum qca_wlan_vendor_attr_config_latency_level { 8599 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0, 8600 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1, 8601 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2, 8602 /* legacy name */ 8603 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 8604 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR, 8605 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3, 8606 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4, 8607 8608 /* keep last */ 8609 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST, 8610 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX = 8611 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1, 8612 }; 8613 8614 /** 8615 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command 8616 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 8617 */ 8618 enum qca_wlan_vendor_attr_mac { 8619 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0, 8620 8621 /* MAC mode info list which has an array of nested values as 8622 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info. 8623 */ 8624 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1, 8625 8626 /* keep last */ 8627 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST, 8628 QCA_WLAN_VENDOR_ATTR_MAC_MAX = 8629 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1, 8630 }; 8631 8632 /** 8633 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected 8634 * Wi-Fi netdev interface on a respective MAC. 8635 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO. 8636 */ 8637 enum qca_wlan_vendor_attr_mac_iface_info { 8638 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0, 8639 /* Wi-Fi netdev's interface index (u32) */ 8640 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1, 8641 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */ 8642 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2, 8643 8644 /* keep last */ 8645 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST, 8646 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX = 8647 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1, 8648 }; 8649 8650 /** 8651 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information. 8652 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the 8653 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 8654 */ 8655 enum qca_wlan_vendor_attr_mac_info { 8656 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0, 8657 /* Hardware MAC ID associated for the MAC (u32) */ 8658 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1, 8659 /* Band supported by the MAC at a given point. 8660 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum 8661 * nl80211_band. 8662 */ 8663 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2, 8664 /* Refers to list of WLAN netdev interfaces associated with this MAC. 8665 * Represented by enum qca_wlan_vendor_attr_mac_iface_info. 8666 */ 8667 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3, 8668 8669 /* keep last */ 8670 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST, 8671 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX = 8672 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1, 8673 }; 8674 8675 /** 8676 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command 8677 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET. 8678 */ 8679 enum qca_wlan_vendor_attr_get_logger_features { 8680 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0, 8681 /* Unsigned 32-bit enum value of wifi_logger_supported_features */ 8682 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1, 8683 /* keep last */ 8684 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST, 8685 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX = 8686 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1, 8687 }; 8688 8689 /** 8690 * enum wifi_logger_supported_features - Values for supported logger features 8691 */ 8692 enum wifi_logger_supported_features { 8693 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)), 8694 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)), 8695 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)), 8696 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)), 8697 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)), 8698 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)), 8699 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)), 8700 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)), 8701 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)), 8702 }; 8703 8704 /** 8705 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get 8706 * capabilities features 8707 */ 8708 enum qca_wlan_tdls_caps_features_supported { 8709 WIFI_TDLS_SUPPORT = (1 << (0)), 8710 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)), 8711 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)), 8712 8713 /* Indicates if the TDLS session can be formed with the peer using 8714 * higher bandwidth than the bandwidth of the AP path. 8715 */ 8716 WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)), 8717 }; 8718 8719 /** 8720 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command 8721 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES. 8722 */ 8723 enum qca_wlan_vendor_attr_tdls_get_capabilities { 8724 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0, 8725 /* Indicates the max concurrent sessions */ 8726 /* Unsigned 32-bit value */ 8727 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS, 8728 /* Indicates the support for features */ 8729 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported 8730 */ 8731 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED, 8732 8733 /* keep last */ 8734 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST, 8735 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX = 8736 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1, 8737 }; 8738 8739 /** 8740 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control 8741 * command used as value for the attribute 8742 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL. 8743 */ 8744 enum qca_wlan_offloaded_packets_sending_control { 8745 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0, 8746 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START, 8747 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP 8748 }; 8749 8750 /** 8751 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command 8752 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS. 8753 */ 8754 enum qca_wlan_vendor_attr_offloaded_packets { 8755 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0, 8756 /* Takes valid value from the enum 8757 * qca_wlan_offloaded_packets_sending_control 8758 * Unsigned 32-bit value 8759 */ 8760 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL, 8761 /* Unsigned 32-bit value */ 8762 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID, 8763 /* array of u8 len: Max packet size */ 8764 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA, 8765 /* 6-byte MAC address used to represent source MAC address */ 8766 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR, 8767 /* 6-byte MAC address used to represent destination MAC address */ 8768 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR, 8769 /* Unsigned 32-bit value, in milli seconds */ 8770 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD, 8771 /* This optional unsigned 16-bit attribute is used for specifying 8772 * ethernet protocol type. If not specified ethertype defaults to IPv4. 8773 */ 8774 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE, 8775 8776 /* keep last */ 8777 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST, 8778 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX = 8779 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1, 8780 }; 8781 8782 /** 8783 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values 8784 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL. 8785 */ 8786 enum qca_wlan_rssi_monitoring_control { 8787 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0, 8788 QCA_WLAN_RSSI_MONITORING_START, 8789 QCA_WLAN_RSSI_MONITORING_STOP, 8790 }; 8791 8792 /** 8793 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command 8794 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI. 8795 */ 8796 enum qca_wlan_vendor_attr_rssi_monitoring { 8797 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0, 8798 /* Takes valid value from the enum 8799 * qca_wlan_rssi_monitoring_control 8800 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control 8801 */ 8802 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL, 8803 /* Unsigned 32-bit value */ 8804 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID, 8805 /* Signed 8-bit value in dBm */ 8806 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI, 8807 /* Signed 8-bit value in dBm */ 8808 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI, 8809 /* attributes to be used/received in callback */ 8810 /* 6-byte MAC address used to represent current BSSID MAC address */ 8811 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID, 8812 /* Signed 8-bit value indicating the current RSSI */ 8813 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI, 8814 /* keep last */ 8815 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST, 8816 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX = 8817 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1, 8818 }; 8819 8820 /** 8821 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command 8822 * QCA_NL80211_VENDOR_SUBCMD_NDP. 8823 */ 8824 enum qca_wlan_vendor_attr_ndp_params { 8825 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0, 8826 /* Unsigned 32-bit value 8827 * enum of sub commands values in qca_wlan_ndp_sub_cmd 8828 */ 8829 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD, 8830 /* Unsigned 16-bit value */ 8831 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID, 8832 /* NL attributes for data used NDP SUB cmds */ 8833 /* Unsigned 32-bit value indicating a service info */ 8834 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID, 8835 /* Unsigned 32-bit value; channel frequency in MHz */ 8836 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL, 8837 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */ 8838 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR, 8839 /* Interface name on which NDP is being created */ 8840 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR, 8841 /* Unsigned 32-bit value for security */ 8842 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */ 8843 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY, 8844 /* Unsigned 32-bit value for QoS */ 8845 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS, 8846 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */ 8847 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO, 8848 /* Unsigned 32-bit value for NDP instance Id */ 8849 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID, 8850 /* Array of instance Ids */ 8851 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY, 8852 /* Unsigned 32-bit value for initiator/responder NDP response code 8853 * accept/reject 8854 */ 8855 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE, 8856 /* NDI MAC address. An array of 6 Unsigned int8 */ 8857 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR, 8858 /* Unsigned 32-bit value errors types returned by driver 8859 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy 8860 * NanStatusType includes these values. 8861 */ 8862 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE, 8863 /* Unsigned 32-bit value error values returned by driver 8864 * The nan_i.h in AOSP project platform/hardware/qcom/wlan 8865 * NanInternalStatusType includes these values. 8866 */ 8867 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE, 8868 /* Unsigned 32-bit value for Channel setup configuration 8869 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy 8870 * NanDataPathChannelCfg includes these values. 8871 */ 8872 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG, 8873 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */ 8874 QCA_WLAN_VENDOR_ATTR_NDP_CSID, 8875 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */ 8876 QCA_WLAN_VENDOR_ATTR_NDP_PMK, 8877 /* Security Context Identifier that contains the PMKID 8878 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes 8879 */ 8880 QCA_WLAN_VENDOR_ATTR_NDP_SCID, 8881 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */ 8882 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE, 8883 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */ 8884 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME, 8885 /* Unsigned 32-bit bitmap indicating schedule update 8886 * BIT_0: NSS Update 8887 * BIT_1: Channel list update 8888 */ 8889 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON, 8890 /* Unsigned 32-bit value for NSS */ 8891 QCA_WLAN_VENDOR_ATTR_NDP_NSS, 8892 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */ 8893 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS, 8894 /* Unsigned 32-bit value for CHANNEL BANDWIDTH 8895 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz 8896 */ 8897 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH, 8898 /* Array of channel/band width */ 8899 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO, 8900 /* IPv6 address used by NDP (in network byte order), 16 bytes array. 8901 * This attribute is used and optional for ndp request, ndp response, 8902 * ndp indication, and ndp confirm. 8903 */ 8904 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27, 8905 /* Unsigned 16-bit value indicating transport port used by NDP. 8906 * This attribute is used and optional for ndp response, ndp indication, 8907 * and ndp confirm. 8908 */ 8909 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28, 8910 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by 8911 * the Internet Assigned Numbers Authority (IANA) as per: 8912 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml 8913 * This attribute is used and optional for ndp response, ndp indication, 8914 * and ndp confirm. 8915 */ 8916 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29, 8917 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE. 8918 * 1:support 0:not support 8919 */ 8920 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30, 8921 /* As per Wi-Fi Aware Specification v3.2 Service Id is the first 8922 * 48 bits of the SHA-256 hash of the Service Name. 8923 * A lower-case representation of the Service Name shall be used to 8924 * calculate the Service ID. 8925 * Array of u8: length is 6 bytes 8926 * This attribute is used and optional for ndp indication. 8927 */ 8928 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31, 8929 /* Unsigned 8-bit value for Cipher Suite capabilities. 8930 * u8 attribute. 8931 * This attribute is used and optional in ndp request, ndp response, 8932 * ndp indication, and ndp confirm. 8933 * This attribute is used to indicate the Capabilities field of Cipher 8934 * Suite Information attribute (CSIA) of NDP frames as defined in 8935 * Wi-Fi Aware Specification v4.0, 9.5.21.2, Table 122. 8936 * Firmware can accept or ignore any of the capability bits. 8937 */ 8938 QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32, 8939 /* Indicate that GTK protection is required for NDP. 8940 * NLA_FLAG attribute. 8941 * This attribute can be used in ndp request, ndp response, ndp 8942 * indication, and ndp confirm. 8943 * GTK protection required is indicated in the NDPE attribute of NAN 8944 * action frame (NAF) during NDP negotiation as defined in 8945 * Wi-Fi Aware Specification v4.0, 9.5.16.2. 8946 * If the device and peer supports GTKSA and if GTK protection required 8947 * bit is set in NDPE IE, devices will share GTK to each other in SKDA 8948 * of Data Path Security Confirm and Data Path Security Install frames 8949 * of NDP negotiation to send and receive protected group addressed data 8950 * frames from each other. 8951 */ 8952 QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33, 8953 8954 /* keep last */ 8955 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST, 8956 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX = 8957 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1, 8958 }; 8959 8960 enum qca_wlan_ndp_sub_cmd { 8961 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0, 8962 /* Command to create a NAN data path interface. 8963 * This command was initially designed to both create and start a NAN 8964 * data path interface. However, changes to Linux 5.12 no longer allow 8965 * interface creation via vendor commands. When the driver advertises 8966 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI 8967 * userspace must explicitly first create the interface using 8968 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command 8969 * to start the interface. 8970 */ 8971 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1, 8972 /* Command to delete a NAN data path interface. 8973 * This command was initially designed to both stop and delete a NAN 8974 * data path interface. However, changes to Linux 5.12 no longer allow 8975 * interface deletion via vendor commands. When the driver advertises 8976 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI 8977 * userspace must explicitly delete the interface using 8978 * NL80211_CMD_DEL_INTERFACE after calling this command. 8979 */ 8980 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2, 8981 /* Command to initiate a NAN data path session */ 8982 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3, 8983 /* Command to notify if the NAN data path session was sent */ 8984 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4, 8985 /* Command to respond to NAN data path session */ 8986 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5, 8987 /* Command to notify on the responder about the response */ 8988 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6, 8989 /* Command to initiate a NAN data path end */ 8990 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7, 8991 /* Command to notify the if end request was sent */ 8992 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8, 8993 /* Command to notify the peer about the end request */ 8994 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9, 8995 /* Command to confirm the NAN data path session is complete */ 8996 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10, 8997 /* Command to indicate the peer about the end request being received */ 8998 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11, 8999 /* Command to indicate the peer of schedule update */ 9000 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12 9001 }; 9002 9003 /** 9004 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command 9005 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD. 9006 */ 9007 enum qca_wlan_vendor_attr_nd_offload { 9008 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0, 9009 /* Flag to set Neighbour Discovery offload */ 9010 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG, 9011 /* Keep last */ 9012 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST, 9013 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX = 9014 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1, 9015 }; 9016 9017 /** 9018 * enum packet_filter_sub_cmd - Packet filter sub commands 9019 */ 9020 enum packet_filter_sub_cmd { 9021 /** 9022 * Write packet filter program and/or data. The driver/firmware should 9023 * disable APF before writing into local buffer and re-enable APF after 9024 * writing is done. 9025 */ 9026 QCA_WLAN_SET_PACKET_FILTER = 1, 9027 /* Get packet filter feature capabilities from driver */ 9028 QCA_WLAN_GET_PACKET_FILTER = 2, 9029 /** 9030 * Write packet filter program and/or data. User space will send the 9031 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command 9032 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key 9033 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over 9034 * enable/disable is given to user space with this command. Also, 9035 * user space sends the length of program portion in the buffer within 9036 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH. 9037 */ 9038 QCA_WLAN_WRITE_PACKET_FILTER = 3, 9039 /* Read packet filter program and/or data */ 9040 QCA_WLAN_READ_PACKET_FILTER = 4, 9041 /* Enable APF feature */ 9042 QCA_WLAN_ENABLE_PACKET_FILTER = 5, 9043 /* Disable APF feature */ 9044 QCA_WLAN_DISABLE_PACKET_FILTER = 6, 9045 }; 9046 9047 /** 9048 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by 9049 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER. 9050 */ 9051 enum qca_wlan_vendor_attr_packet_filter { 9052 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0, 9053 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */ 9054 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD, 9055 /* Unsigned 32-bit value indicating the packet filter version */ 9056 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION, 9057 /* Unsigned 32-bit value indicating the packet filter id */ 9058 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID, 9059 /** 9060 * Unsigned 32-bit value indicating the packet filter size including 9061 * program + data. 9062 */ 9063 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE, 9064 /* Unsigned 32-bit value indicating the packet filter current offset */ 9065 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET, 9066 /* Program and/or data in bytes */ 9067 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM, 9068 /* Unsigned 32-bit value of the length of the program section in packet 9069 * filter buffer. 9070 */ 9071 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7, 9072 9073 /* keep last */ 9074 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST, 9075 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX = 9076 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1, 9077 }; 9078 9079 /** 9080 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command 9081 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE. 9082 */ 9083 enum qca_wlan_vendor_drv_info { 9084 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0, 9085 /* Maximum Message size info between firmware & HOST 9086 * Unsigned 32-bit value 9087 */ 9088 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE, 9089 /* keep last */ 9090 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST, 9091 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX = 9092 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1, 9093 }; 9094 9095 /** 9096 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor 9097 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS. 9098 */ 9099 enum qca_wlan_vendor_attr_wake_stats { 9100 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0, 9101 /* Unsigned 32-bit value indicating the total count of wake event */ 9102 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE, 9103 /* Array of individual wake count, each index representing wake reason 9104 */ 9105 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR, 9106 /* Unsigned 32-bit value representing wake count array */ 9107 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ, 9108 /* Unsigned 32-bit total wake count value of driver/fw */ 9109 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE, 9110 /* Array of wake stats of driver/fw */ 9111 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR, 9112 /* Unsigned 32-bit total wake count value of driver/fw */ 9113 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ, 9114 /* Unsigned 32-bit total wake count value of packets received */ 9115 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE, 9116 /* Unsigned 32-bit wake count value unicast packets received */ 9117 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT, 9118 /* Unsigned 32-bit wake count value multicast packets received */ 9119 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT, 9120 /* Unsigned 32-bit wake count value broadcast packets received */ 9121 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT, 9122 /* Unsigned 32-bit wake count value of ICMP packets */ 9123 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT, 9124 /* Unsigned 32-bit wake count value of ICMP6 packets */ 9125 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT, 9126 /* Unsigned 32-bit value ICMP6 router advertisement */ 9127 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA, 9128 /* Unsigned 32-bit value ICMP6 neighbor advertisement */ 9129 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA, 9130 /* Unsigned 32-bit value ICMP6 neighbor solicitation */ 9131 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS, 9132 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */ 9133 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT, 9134 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */ 9135 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT, 9136 /* Unsigned 32-bit wake count value of receive side multicast */ 9137 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT, 9138 /* Unsigned 32-bit wake count value of a given RSSI breach */ 9139 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT, 9140 /* Unsigned 32-bit wake count value of low RSSI */ 9141 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT, 9142 /* Unsigned 32-bit value GSCAN count */ 9143 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT, 9144 /* Unsigned 32-bit value PNO complete count */ 9145 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT, 9146 /* Unsigned 32-bit value PNO match count */ 9147 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT, 9148 /* keep last */ 9149 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST, 9150 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX = 9151 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1, 9152 }; 9153 9154 /** 9155 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels 9156 * configured by userspace to the driver/firmware. 9157 * The values can be encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL or 9158 * QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL attribute. 9159 * The driver/firmware takes actions requested by userspace such as throttling 9160 * wifi TX etc. in order to mitigate high temperature. 9161 * 9162 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions. 9163 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle TX lightly. 9164 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle TX moderately. 9165 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle TX severely. 9166 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached. 9167 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached. 9168 */ 9169 enum qca_wlan_vendor_thermal_level { 9170 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0, 9171 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1, 9172 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2, 9173 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3, 9174 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4, 9175 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5, 9176 }; 9177 9178 /** 9179 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set 9180 * cmd value. Used for NL attributes for data used by 9181 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 9182 */ 9183 enum qca_wlan_vendor_attr_thermal_cmd { 9184 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0, 9185 /* The value of command, driver will implement different operations 9186 * according to this value. It uses values defined in 9187 * enum qca_wlan_vendor_attr_thermal_cmd_type. 9188 * u32 attribute. 9189 */ 9190 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1, 9191 /* Userspace uses this attribute to configure thermal level to the 9192 * driver/firmware, or get thermal level from the driver/firmware. 9193 * Used in request or response, u32 attribute, 9194 * possible values are defined in enum qca_wlan_vendor_thermal_level. 9195 */ 9196 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2, 9197 /* Userspace uses this attribute to configure the time in which the 9198 * driver/firmware should complete applying settings it received from 9199 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL 9200 * command type. Used in request, u32 attribute, value is in 9201 * milliseconds. A value of zero indicates to apply the settings 9202 * immediately. The driver/firmware can delay applying the configured 9203 * thermal settings within the time specified in this attribute if 9204 * there is any critical ongoing operation. 9205 */ 9206 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3, 9207 /* Nested attribute, the driver/firmware uses this attribute to report 9208 * thermal statistics of different thermal levels to userspace when 9209 * requested using the 9210 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command 9211 * type. This attribute contains a nested array of records of thermal 9212 * statistics of multiple levels. The attributes used inside this nested 9213 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats. 9214 */ 9215 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4, 9216 9217 /* keep last */ 9218 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST, 9219 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX = 9220 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1 9221 }; 9222 9223 /** 9224 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for 9225 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd 9226 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the 9227 * thermal command types sent to driver. 9228 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to 9229 * get thermal shutdown configuration parameters for display. Parameters 9230 * responded from driver are defined in 9231 * enum qca_wlan_vendor_attr_get_thermal_params_rsp. 9232 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to 9233 * get temperature. Host should respond with a temperature data. It is defined 9234 * in enum qca_wlan_vendor_attr_thermal_get_temperature. 9235 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal 9236 * suspend action. 9237 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal 9238 * resume action. 9239 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to 9240 * the driver/firmware. 9241 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current 9242 * thermal level from the driver/firmware. The driver should respond with a 9243 * thermal level defined in enum qca_wlan_vendor_thermal_level. 9244 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the 9245 * current thermal statistics from the driver/firmware. The driver should 9246 * respond with statistics of all thermal levels encapsulated in the attribute 9247 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS. 9248 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear 9249 * the current thermal statistics for all thermal levels maintained in the 9250 * driver/firmware and start counting from zero again. 9251 */ 9252 enum qca_wlan_vendor_attr_thermal_cmd_type { 9253 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS, 9254 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE, 9255 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND, 9256 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME, 9257 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL, 9258 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL, 9259 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS, 9260 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS, 9261 }; 9262 9263 /** 9264 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes 9265 * to get chip temperature by user. 9266 * enum values are used for NL attributes for data used by 9267 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used 9268 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 9269 */ 9270 enum qca_wlan_vendor_attr_thermal_get_temperature { 9271 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0, 9272 /* Temperature value (degree Celsius) from driver. 9273 * u32 attribute. 9274 */ 9275 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA, 9276 9277 /* keep last */ 9278 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST, 9279 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX = 9280 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1, 9281 }; 9282 9283 /** 9284 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes 9285 * to get configuration parameters of thermal shutdown feature. Enum values are 9286 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data 9287 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 9288 */ 9289 enum qca_wlan_vendor_attr_get_thermal_params_rsp { 9290 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0, 9291 /* Indicate if the thermal shutdown feature is enabled. 9292 * NLA_FLAG attribute. 9293 */ 9294 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN, 9295 /* Indicate if the auto mode is enabled. 9296 * Enable: Driver triggers the suspend/resume action. 9297 * Disable: User space triggers the suspend/resume action. 9298 * NLA_FLAG attribute. 9299 */ 9300 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN, 9301 /* Thermal resume threshold (degree Celsius). Issue the resume command 9302 * if the temperature value is lower than this threshold. 9303 * u16 attribute. 9304 */ 9305 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH, 9306 /* Thermal warning threshold (degree Celsius). FW reports temperature 9307 * to driver if it's higher than this threshold. 9308 * u16 attribute. 9309 */ 9310 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH, 9311 /* Thermal suspend threshold (degree Celsius). Issue the suspend command 9312 * if the temperature value is higher than this threshold. 9313 * u16 attribute. 9314 */ 9315 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH, 9316 /* FW reports temperature data periodically at this interval (ms). 9317 * u16 attribute. 9318 */ 9319 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE, 9320 9321 /* keep last */ 9322 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST, 9323 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX = 9324 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1, 9325 }; 9326 9327 /** 9328 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to 9329 * report thermal events from driver to user space. 9330 * enum values are used for NL attributes for data used by 9331 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command. 9332 */ 9333 enum qca_wlan_vendor_attr_thermal_event { 9334 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0, 9335 /* Temperature value (degree Celsius) from driver. 9336 * u32 attribute. 9337 */ 9338 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE, 9339 /* Indication of resume completion from power save mode. 9340 * NLA_FLAG attribute. 9341 */ 9342 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE, 9343 /* Thermal level from the driver. 9344 * u32 attribute. Possible values are defined in 9345 * enum qca_wlan_vendor_thermal_level. 9346 */ 9347 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3, 9348 9349 /* keep last */ 9350 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST, 9351 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX = 9352 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1, 9353 }; 9354 9355 /** 9356 * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes 9357 * to get thermal status from the driver/firmware. 9358 * enum values are used for NL attributes encapsulated inside the 9359 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute. 9360 * 9361 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature 9362 * of a thermal level in Celsius. u32 size. 9363 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature 9364 * of a thermal level in Celsius. u32 size. 9365 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each 9366 * thermal level in milliseconds. u32 size. 9367 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number 9368 * of times the temperature crossed into the temperature range defined by the 9369 * thermal level from both higher and lower directions. u32 size. 9370 */ 9371 enum qca_wlan_vendor_attr_thermal_stats { 9372 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0, 9373 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE, 9374 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE, 9375 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME, 9376 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER, 9377 9378 /* keep last */ 9379 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST, 9380 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX = 9381 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1, 9382 }; 9383 9384 /** 9385 * enum he_fragmentation_val - HE fragmentation support values 9386 * Indicates level of dynamic fragmentation that is supported by 9387 * a STA as a recipient. 9388 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2 9389 * (HE MAC Capabilities Information field) and are used in HE Capabilities 9390 * element to advertise the support. These values are validated in the driver 9391 * to check the device capability and advertised in the HE Capabilities 9392 * element. These values are used to configure testbed device to allow the 9393 * advertised hardware capabilities to be downgraded for testing purposes. 9394 * 9395 * @HE_FRAG_DISABLE: no support for dynamic fragmentation 9396 * @HE_FRAG_LEVEL1: support for dynamic fragments that are 9397 * contained within an MPDU or S-MPDU, no support for dynamic fragments 9398 * within an A-MPDU that is not an S-MPDU. 9399 * @HE_FRAG_LEVEL2: support for dynamic fragments that are 9400 * contained within an MPDU or S-MPDU and support for up to one dynamic 9401 * fragment for each MSDU, each A-MSDU if supported by the recipient, and 9402 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an 9403 * MPDU or S-MPDU. 9404 * @HE_FRAG_LEVEL3: support for dynamic fragments that are 9405 * contained within an MPDU or S-MPDU and support for multiple dynamic 9406 * fragments for each MSDU and for each A-MSDU if supported by the 9407 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic 9408 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU. 9409 */ 9410 enum he_fragmentation_val { 9411 HE_FRAG_DISABLE, 9412 HE_FRAG_LEVEL1, 9413 HE_FRAG_LEVEL2, 9414 HE_FRAG_LEVEL3, 9415 }; 9416 9417 /** 9418 * enum he_mcs_config - HE MCS support configuration 9419 * 9420 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth. 9421 * These values are used in driver to configure the HE MCS map to advertise 9422 * Tx/Rx MCS map in HE capability and these values are applied for all the 9423 * streams supported by the device. To configure MCS for different bandwidths, 9424 * vendor command needs to be sent using this attribute with appropriate value. 9425 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS 9426 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11 9427 * send this command using HE MCS config attribute with value HE_160_MCS0_11. 9428 * These values are used to configure testbed device to allow the advertised 9429 * hardware capabilities to be downgraded for testing purposes. The enum values 9430 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and 9431 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map. 9432 * These values are validated in the driver before setting the MCS map and 9433 * driver returns error if the input is other than these enum values. 9434 * 9435 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7 9436 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9 9437 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11 9438 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7 9439 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9 9440 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11 9441 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7 9442 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9 9443 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11 9444 */ 9445 enum he_mcs_config { 9446 HE_80_MCS0_7 = 0, 9447 HE_80_MCS0_9 = 1, 9448 HE_80_MCS0_11 = 2, 9449 HE_160_MCS0_7 = 4, 9450 HE_160_MCS0_9 = 5, 9451 HE_160_MCS0_11 = 6, 9452 HE_80P80_MCS0_7 = 8, 9453 HE_80P80_MCS0_9 = 9, 9454 HE_80P80_MCS0_11 = 10, 9455 }; 9456 9457 /** 9458 * enum qca_wlan_ba_session_config - BA session configuration 9459 * 9460 * Indicates the configuration values for BA session configuration attribute. 9461 * 9462 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration. 9463 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID. 9464 */ 9465 enum qca_wlan_ba_session_config { 9466 QCA_WLAN_ADD_BA = 1, 9467 QCA_WLAN_DELETE_BA = 2, 9468 }; 9469 9470 /** 9471 * enum qca_wlan_ac_type - Access category type 9472 * 9473 * Indicates the access category type value. 9474 * 9475 * @QCA_WLAN_AC_BE: BE access category 9476 * @QCA_WLAN_AC_BK: BK access category 9477 * @QCA_WLAN_AC_VI: VI access category 9478 * @QCA_WLAN_AC_VO: VO access category 9479 * @QCA_WLAN_AC_ALL: All ACs 9480 */ 9481 enum qca_wlan_ac_type { 9482 QCA_WLAN_AC_BE = 0, 9483 QCA_WLAN_AC_BK = 1, 9484 QCA_WLAN_AC_VI = 2, 9485 QCA_WLAN_AC_VO = 3, 9486 QCA_WLAN_AC_ALL = 4, 9487 }; 9488 9489 /** 9490 * enum qca_wlan_he_ltf_cfg - HE LTF configuration 9491 * 9492 * Indicates the HE LTF configuration value. 9493 * 9494 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF, 9495 * based on the GI setting 9496 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF 9497 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF 9498 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF 9499 */ 9500 enum qca_wlan_he_ltf_cfg { 9501 QCA_WLAN_HE_LTF_AUTO = 0, 9502 QCA_WLAN_HE_LTF_1X = 1, 9503 QCA_WLAN_HE_LTF_2X = 2, 9504 QCA_WLAN_HE_LTF_4X = 3, 9505 }; 9506 9507 /** 9508 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration 9509 * 9510 * Indicates the HE trigger frame MAC padding duration value. 9511 * 9512 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to 9513 * process the trigger frame. 9514 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for 9515 * trigger frame. 9516 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for 9517 * trigger frame. 9518 */ 9519 enum qca_wlan_he_mac_padding_dur { 9520 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0, 9521 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1, 9522 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2, 9523 }; 9524 9525 /** 9526 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration 9527 * 9528 * Indicates the HE Operating mode control channel width setting value. 9529 * 9530 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz 9531 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz 9532 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz 9533 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz 9534 */ 9535 enum qca_wlan_he_om_ctrl_ch_bw { 9536 QCA_WLAN_HE_OM_CTRL_BW_20M = 0, 9537 QCA_WLAN_HE_OM_CTRL_BW_40M = 1, 9538 QCA_WLAN_HE_OM_CTRL_BW_80M = 2, 9539 QCA_WLAN_HE_OM_CTRL_BW_160M = 3, 9540 }; 9541 9542 /** 9543 * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration 9544 * 9545 * Indicates the frame types to use for keep alive data. 9546 * 9547 * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive. 9548 * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive. 9549 * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive. 9550 */ 9551 enum qca_wlan_keep_alive_data_type { 9552 QCA_WLAN_KEEP_ALIVE_DEFAULT = 0, 9553 QCA_WLAN_KEEP_ALIVE_DATA = 1, 9554 QCA_WLAN_KEEP_ALIVE_MGMT = 2, 9555 }; 9556 9557 /** 9558 * enum eht_mcs_config - EHT MCS support configuration 9559 * 9560 * Configures the EHT Tx/Rx MCS map in EHT Capability element. 9561 * These values are used in the driver to configure the EHT MCS map to advertise 9562 * Tx/Rx MCS map in EHT capability and these values are applied for all the 9563 * streams supported by the device. 9564 * @EHT_MCS0_7: EHT MCS 0 to 7 support 9565 * @EHT_MCS0_9: EHT MCS 0 to 9 support 9566 * @EHT_MCS0_11: EHT MCS 0 to 11 support 9567 * @EHT_MCS0_13: EHT MCS 0 to 13 support 9568 */ 9569 enum eht_mcs_config { 9570 EHT_MCS0_7 = 0, 9571 EHT_MCS0_9 = 1, 9572 EHT_MCS0_11 = 2, 9573 EHT_MCS0_13 = 3, 9574 }; 9575 9576 /** 9577 * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration. 9578 * @QCA_WLAN_EHT_MODE_INVALID: Invalid. 9579 * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode 9580 * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode. 9581 * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive 9582 * multi-link multi radio mode. 9583 * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive 9584 * multi-link multi radio mode. 9585 */ 9586 enum qca_wlan_eht_mlo_mode { 9587 QCA_WLAN_EHT_MODE_INVALID = 0, 9588 QCA_WLAN_EHT_MLSR = 1, 9589 QCA_WLAN_EHT_EMLSR = 2, 9590 QCA_WLAN_EHT_NON_STR_MLMR = 3, 9591 QCA_WLAN_EHT_STR_MLMR = 4, 9592 }; 9593 9594 /** 9595 * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration 9596 * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode 9597 * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode 9598 */ 9599 enum qca_wlan_emlsr_mode { 9600 QCA_WLAN_EMLSR_MODE_ENTER = 0, 9601 QCA_WLAN_EMLSR_MODE_EXIT = 1, 9602 }; 9603 9604 /** 9605 * enum qca_wlan_ttlm_negotiation_support: TID-To-Link Mapping Negotiation 9606 * support 9607 * @QCA_WLAN_TTLM_DISABLE: TTLM disabled 9608 * @QCA_WLAN_TTLM_SAME_LINK_SET: Mapping of all TIDs to the same link set, 9609 * both DL and UL 9610 * @QCA_WLAN_TTLM_SAME_DIFF_LINK_SET: Mapping of each TID to the same or 9611 * different link set 9612 */ 9613 enum qca_wlan_ttlm_negotiation_support { 9614 QCA_WLAN_TTLM_DISABLE = 0, 9615 QCA_WLAN_TTLM_SAME_LINK_SET = 1, 9616 QCA_WLAN_TTLM_SAME_DIFF_LINK_SET = 2, 9617 }; 9618 9619 /** 9620 * enum qca_coex_traffic_shaping_mode: Coex traffic shaping mode 9621 * @QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE: Coex policies disabled 9622 * @QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE: All coex policies enabled 9623 */ 9624 enum qca_coex_traffic_shaping_mode { 9625 QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE = 0, 9626 QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE = 1, 9627 }; 9628 9629 /** 9630 * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and 9631 * EHT operating mode control transmit request. These attributes are 9632 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and 9633 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 9634 * 9635 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value 9636 * indicates the maximum number of spatial streams, NSS, that the STA 9637 * supports in reception for PPDU bandwidths less than or equal to 80 MHz 9638 * and is set to NSS - 1. 9639 * 9640 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value 9641 * indicates the operating channel width supported by the STA for both 9642 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values. 9643 * 9644 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value 9645 * indicates the all trigger based UL MU operations by the STA. 9646 * 0 - UL MU operations are enabled by the STA. 9647 * 1 - All triggered UL MU transmissions are suspended by the STA. 9648 * 9649 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value 9650 * indicates the maximum number of space-time streams, NSTS, that 9651 * the STA supports in transmission and is set to NSTS - 1. 9652 * 9653 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value 9654 * combined with the UL MU Disable subfield and the recipient's setting 9655 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC 9656 * capabilities to determine which HE TB PPDUs are possible by the 9657 * STA to transmit. 9658 * 0 - UL MU data operations are enabled by the STA. 9659 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable 9660 * bit is not set, else UL MU Tx is suspended. 9661 * 9662 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM 9663 * Control subfield combined with the Rx NSS subfield in the OM Control subfield 9664 * indicates NSS - 1, where NSS is the maximum number of spatial streams that 9665 * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz. 9666 * 9667 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates 9668 * 320 MHz operating channel width supported by the EHT STA for both reception 9669 * and transmission. 9670 * 9671 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM 9672 * Control subfield combined with the Tx NSTS subfield in OM Control subfield 9673 * indicates NSTS - 1, where NSTS is the maximum number of space-time streams 9674 * that the STA supports in transmission for PPDU bandwidths less than or equal 9675 * to 80 MHz. 9676 */ 9677 enum qca_wlan_vendor_attr_omi_tx { 9678 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0, 9679 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1, 9680 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2, 9681 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3, 9682 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4, 9683 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5, 9684 QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6, 9685 QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7, 9686 QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8, 9687 9688 /* keep last */ 9689 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST, 9690 QCA_WLAN_VENDOR_ATTR_OMI_MAX = 9691 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1, 9692 }; 9693 9694 /* deprecated legacy names */ 9695 #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \ 9696 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX 9697 #define qca_wlan_vendor_attr_he_omi_tx \ 9698 qca_wlan_vendor_attr_omi_tx 9699 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \ 9700 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST 9701 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \ 9702 QCA_WLAN_VENDOR_ATTR_OMI_MAX 9703 9704 /** 9705 * enum qca_wlan_vendor_phy_mode - Different PHY modes 9706 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE. 9707 * 9708 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect 9709 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect 9710 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect 9711 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM 9712 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK 9713 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM 9714 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz 9715 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20 9716 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1) 9717 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1) 9718 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40 9719 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20 9720 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1) 9721 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1) 9722 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40 9723 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20 9724 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1) 9725 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1) 9726 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40 9727 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80 9728 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80 9729 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160 9730 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20 9731 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40 9732 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1) 9733 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1) 9734 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80 9735 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80 9736 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160 9737 */ 9738 enum qca_wlan_vendor_phy_mode { 9739 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0, 9740 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1, 9741 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2, 9742 QCA_WLAN_VENDOR_PHY_MODE_11A = 3, 9743 QCA_WLAN_VENDOR_PHY_MODE_11B = 4, 9744 QCA_WLAN_VENDOR_PHY_MODE_11G = 5, 9745 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6, 9746 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7, 9747 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8, 9748 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9, 9749 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10, 9750 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11, 9751 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12, 9752 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13, 9753 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14, 9754 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15, 9755 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16, 9756 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17, 9757 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18, 9758 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19, 9759 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20, 9760 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21, 9761 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22, 9762 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23, 9763 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24, 9764 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25, 9765 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26, 9766 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27, 9767 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28, 9768 }; 9769 9770 /* Attributes for data used by 9771 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION 9772 */ 9773 enum qca_wlan_vendor_attr_wifi_test_config { 9774 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0, 9775 /* 8-bit unsigned value to configure the driver to enable/disable 9776 * WMM feature. This attribute is used to configure testbed device. 9777 * 1-enable, 0-disable 9778 */ 9779 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1, 9780 9781 /* 8-bit unsigned value to configure the driver to accept/reject 9782 * the addba request from peer. This attribute is used to configure 9783 * the testbed device. 9784 * 1-accept addba, 0-reject addba 9785 */ 9786 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2, 9787 9788 /* 8-bit unsigned value to configure the driver to send or not to 9789 * send the addba request to peer. 9790 * This attribute is used to configure the testbed device. 9791 * 1-send addba, 0-do not send addba 9792 */ 9793 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3, 9794 9795 /* 8-bit unsigned value to indicate the HE fragmentation support. 9796 * Uses enum he_fragmentation_val values. 9797 * This attribute is used to configure the testbed device to 9798 * allow the advertised hardware capabilities to be downgraded 9799 * for testing purposes. 9800 */ 9801 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4, 9802 9803 /* 8-bit unsigned value to indicate the HE MCS support. 9804 * Uses enum he_mcs_config values. 9805 * This attribute is used to configure the testbed device to 9806 * allow the advertised hardware capabilities to be downgraded 9807 * for testing purposes. 9808 */ 9809 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5, 9810 9811 /* 8-bit unsigned value to configure the driver to allow or not to 9812 * allow the connection with WEP/TKIP in HT/VHT/HE modes. 9813 * This attribute is used to configure the testbed device. 9814 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP. 9815 */ 9816 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6, 9817 9818 /* 8-bit unsigned value to configure the driver to add a 9819 * new BA session or delete the existing BA session for 9820 * given TID. ADDBA command uses the buffer size and TID 9821 * configuration if user specifies the values else default 9822 * value for buffer size is used for all TIDs if the TID 9823 * also not specified. For DEL_BA command TID value is 9824 * required to process the command. 9825 * Uses enum qca_wlan_ba_session_config values. 9826 * This attribute is used to configure the testbed device. 9827 */ 9828 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7, 9829 9830 /* 16-bit unsigned value to configure the buffer size in addba 9831 * request and response frames. 9832 * This attribute is used to configure the testbed device. 9833 * The range of the value is 0 to 256. 9834 */ 9835 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8, 9836 9837 /* 8-bit unsigned value to configure the buffer size in addba 9838 * request and response frames. 9839 * This attribute is used to configure the testbed device. 9840 */ 9841 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9, 9842 9843 /* 8-bit unsigned value to configure the no ack policy. 9844 * To configure no ack policy, access category value is 9845 * required to process the command. 9846 * This attribute is used to configure the testbed device. 9847 * 1 - enable no ack, 0 - disable no ack. 9848 */ 9849 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10, 9850 9851 /* 8-bit unsigned value to configure the AC for no ack policy 9852 * This attribute is used to configure the testbed device. 9853 * Uses the enum qca_wlan_ac_type values. 9854 */ 9855 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11, 9856 9857 /* 8-bit unsigned value to configure the HE LTF 9858 * This attribute is used to configure the testbed device. 9859 * Uses the enum qca_wlan_he_ltf_cfg values. 9860 */ 9861 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12, 9862 9863 /* 8-bit unsigned value to configure the tx beamformee. 9864 * This attribute is used to configure the testbed device. 9865 * 1-enable, 0-disable. 9866 */ 9867 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13, 9868 9869 /* 8-bit unsigned value to configure the tx beamformee number 9870 * of space-time streams. 9871 * This attribute is used to configure the testbed device. 9872 * The range of the value is 0 to 8. 9873 */ 9874 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14, 9875 9876 /* 8-bit unsigned value to configure the MU EDCA params for given AC 9877 * This attribute is used to configure the testbed device. 9878 * Uses the enum qca_wlan_ac_type values. 9879 */ 9880 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15, 9881 9882 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC 9883 * To configure MU EDCA AIFSN value, MU EDCA access category value 9884 * is required to process the command. 9885 * This attribute is used to configure the testbed device. 9886 */ 9887 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16, 9888 9889 /* 8-bit unsigned value to configure the MU EDCA ECW min value for 9890 * given AC. 9891 * To configure MU EDCA ECW min value, MU EDCA access category value 9892 * is required to process the command. 9893 * This attribute is used to configure the testbed device. 9894 */ 9895 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17, 9896 9897 /* 8-bit unsigned value to configure the MU EDCA ECW max value for 9898 * given AC. 9899 * To configure MU EDCA ECW max value, MU EDCA access category value 9900 * is required to process the command. 9901 * This attribute is used to configure the testbed device. 9902 */ 9903 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18, 9904 9905 /* 8-bit unsigned value to configure the MU EDCA timer for given AC 9906 * To configure MU EDCA timer value, MU EDCA access category value 9907 * is required to process the command. 9908 * This attribute is used to configure the testbed device. 9909 */ 9910 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19, 9911 9912 /* 8-bit unsigned value to configure the HE trigger frame MAC padding 9913 * duration. 9914 * This attribute is used to configure the testbed device. 9915 * Uses the enum qca_wlan_he_mac_padding_dur values. 9916 */ 9917 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20, 9918 9919 /* 8-bit unsigned value to override the MU EDCA params to defaults 9920 * regardless of the AP beacon MU EDCA params. If it is enabled use 9921 * the default values else use the MU EDCA params from AP beacon. 9922 * This attribute is used to configure the testbed device. 9923 * 1-enable, 0-disable. 9924 */ 9925 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21, 9926 9927 /* 8-bit unsigned value to configure the support for receiving 9928 * an MPDU that contains an operating mode control subfield. 9929 * This attribute is used to configure the testbed device. 9930 * 1-enable, 0-disable. 9931 */ 9932 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22, 9933 9934 /* Nested attribute values required to setup the TWT session. 9935 * enum qca_wlan_vendor_attr_twt_setup provides the necessary 9936 * information to set up the session. It contains broadcast flags, 9937 * set_up flags, trigger value, flow type, flow ID, wake interval 9938 * exponent, protection, target wake time, wake duration, wake interval 9939 * mantissa. These nested attributes are used to setup a host triggered 9940 * TWT session. 9941 */ 9942 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23, 9943 9944 /* This nested attribute is used to terminate the current TWT session. 9945 * It does not currently carry any attributes. 9946 */ 9947 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24, 9948 9949 /* This nested attribute is used to suspend the current TWT session. 9950 * It does not currently carry any attributes. 9951 */ 9952 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25, 9953 9954 /* Nested attribute values to indicate the request for resume. 9955 * This attribute is used to resume the TWT session. 9956 * enum qca_wlan_vendor_attr_twt_resume provides the necessary 9957 * parameters required to resume the TWT session. 9958 */ 9959 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26, 9960 9961 /* 8-bit unsigned value to set the HE operating mode control 9962 * (OM CTRL) Channel Width subfield. 9963 * The Channel Width subfield indicates the operating channel width 9964 * supported by the STA for both reception and transmission. 9965 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values. 9966 * This setting is cleared with the 9967 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 9968 * flag attribute to reset defaults. 9969 * This attribute is used to configure the testbed device. 9970 */ 9971 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27, 9972 9973 /* 8-bit unsigned value to configure the number of spatial 9974 * streams in HE operating mode control field. 9975 * This setting is cleared with the 9976 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 9977 * flag attribute to reset defaults. 9978 * This attribute is used to configure the testbed device. 9979 */ 9980 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28, 9981 9982 /* Flag attribute to configure the UL MU disable bit in 9983 * HE operating mode control field. 9984 * This setting is cleared with the 9985 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 9986 * flag attribute to reset defaults. 9987 * This attribute is used to configure the testbed device. 9988 */ 9989 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29, 9990 9991 /* Flag attribute to clear the previously set HE operating mode 9992 * control field configuration. 9993 * This attribute is used to configure the testbed device to reset 9994 * defaults to clear any previously set HE operating mode control 9995 * field configuration. 9996 */ 9997 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30, 9998 9999 /* 8-bit unsigned value to configure HE single user PPDU 10000 * transmission. By default this setting is disabled and it 10001 * is disabled in the reset defaults of the device configuration. 10002 * This attribute is used to configure the testbed device. 10003 * 1-enable, 0-disable 10004 */ 10005 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31, 10006 10007 /* 8-bit unsigned value to configure action frame transmission 10008 * in HE trigger based PPDU transmission. 10009 * By default this setting is disabled and it is disabled in 10010 * the reset defaults of the device configuration. 10011 * This attribute is used to configure the testbed device. 10012 * 1-enable, 0-disable 10013 */ 10014 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32, 10015 10016 /* Nested attribute to indicate HE operating mode control field 10017 * transmission. It contains operating mode control field Nss, 10018 * channel bandwidth, Tx Nsts and UL MU disable attributes. 10019 * These nested attributes are used to send HE operating mode control 10020 * with configured values. 10021 * Uses the enum qca_wlan_vendor_attr_omi_tx attributes. 10022 * This attribute is used to configure the testbed device. 10023 */ 10024 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33, 10025 10026 /* 8-bit unsigned value to configure +HTC_HE support to indicate the 10027 * support for the reception of a frame that carries an HE variant 10028 * HT Control field. 10029 * This attribute is used to configure the testbed device. 10030 * 1-enable, 0-disable 10031 */ 10032 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34, 10033 10034 /* 8-bit unsigned value to configure VHT support in 2.4G band. 10035 * This attribute is used to configure the testbed device. 10036 * 1-enable, 0-disable 10037 */ 10038 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35, 10039 10040 /* 8-bit unsigned value to configure HE testbed defaults. 10041 * This attribute is used to configure the testbed device. 10042 * 1-set the device HE capabilities to testbed defaults. 10043 * 0-reset the device HE capabilities to supported config. 10044 */ 10045 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36, 10046 10047 /* 8-bit unsigned value to configure TWT request support. 10048 * This attribute is used to configure the testbed device. 10049 * 1-enable, 0-disable. 10050 */ 10051 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37, 10052 10053 /* 8-bit unsigned value to configure protection for Management 10054 * frames when PMF is enabled for the association. 10055 * This attribute is used to configure the testbed device. 10056 * 0-use the correct key, 1-use an incorrect key, 2-disable protection. 10057 */ 10058 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38, 10059 10060 /* Flag attribute to inject Disassociation frame to the connected AP. 10061 * This attribute is used to configure the testbed device. 10062 */ 10063 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39, 10064 10065 /* 8-bit unsigned value to configure an override for the RSNXE Used 10066 * subfield in the MIC control field of the FTE in FT Reassociation 10067 * Request frame. 10068 * 0 - Default behavior, 1 - override with 1, 2 - override with 0. 10069 * This attribute is used to configure the testbed device. 10070 * This attribute can be configured only when STA is in associated state 10071 * and the configuration is valid until the disconnection. 10072 */ 10073 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40, 10074 10075 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel 10076 * Switch Announcement) when STA is in connected state. 10077 * 0 - Default behavior, 1 - Ignore CSA. 10078 * This attribute is used to configure the testbed device. 10079 * This attribute can be configured only when STA is in associated state 10080 * and the configuration is valid until the disconnection. 10081 */ 10082 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41, 10083 10084 /* Nested attribute values required to configure OCI (Operating Channel 10085 * Information). Attributes defined in enum 10086 * qca_wlan_vendor_attr_oci_override are nested within this attribute. 10087 * This attribute is used to configure the testbed device. 10088 * This attribute can be configured only when STA is in associated state 10089 * and the configuration is valid until the disconnection. 10090 */ 10091 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42, 10092 10093 /* 8-bit unsigned value to configure the driver/firmware to ignore SA 10094 * Query timeout. If this configuration is enabled STA shall not send 10095 * Deauthentication frmae when SA Query times out (mainly, after a 10096 * channel switch when OCV is enabled). 10097 * 0 - Default behavior, 1 - Ignore SA Query timeout. 10098 * This attribute is used to configure the testbed device. 10099 * This attribute can be configured only when STA is in associated state 10100 * and the configuration is valid until the disconnection. 10101 */ 10102 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43, 10103 10104 /* 8-bit unsigned value to configure the driver/firmware to start or 10105 * stop transmitting FILS discovery frames. 10106 * 0 - Stop transmitting FILS discovery frames 10107 * 1 - Start transmitting FILS discovery frames 10108 * This attribute is used to configure the testbed device. 10109 * This attribute can be configured only in AP mode and the 10110 * configuration is valid until AP restart. 10111 */ 10112 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44, 10113 10114 /* 8-bit unsigned value to configure the driver/firmware to enable or 10115 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities 10116 * information field. 10117 * 0 - Disable full bandwidth UL MU-MIMO subfield 10118 * 1 - Enable full bandwidth UL MU-MIMO subfield 10119 * This attribute is used to configure the testbed device. 10120 */ 10121 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45, 10122 10123 /* 16-bit unsigned value to configure the driver with a specific BSS 10124 * max idle period to advertise in the BSS Max Idle Period element 10125 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames. 10126 * This attribute is used to configure the testbed device. 10127 */ 10128 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46, 10129 10130 /* 8-bit unsigned value to configure the driver to use only RU 242 tone 10131 * for data transmission. 10132 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx. 10133 * This attribute is used to configure the testbed device. 10134 */ 10135 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47, 10136 10137 /* 8-bit unsigned value to configure the driver to disable data and 10138 * management response frame transmission to test the BSS max idle 10139 * feature. 10140 * 0 - Default behavior, 1 - Disable data and management response Tx. 10141 * This attribute is used to configure the testbed device. 10142 */ 10143 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48, 10144 10145 /* 8-bit unsigned value to configure the driver/firmware to enable or 10146 * disable Punctured Preamble Rx subfield in the HE PHY capabilities 10147 * information field. 10148 * 0 - Disable Punctured Preamble Rx subfield 10149 * 1 - Enable Punctured Preamble Rx subfield 10150 * This attribute is used to configure the testbed device. 10151 */ 10152 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49, 10153 10154 /* 8-bit unsigned value to configure the driver to ignore the SAE H2E 10155 * requirement mismatch for 6 GHz connection. 10156 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch. 10157 * This attribute is used to configure the testbed device. 10158 */ 10159 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50, 10160 10161 /* 8-bit unsigned value to configure the driver to allow 6 GHz 10162 * connection with all security modes. 10163 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security 10164 * modes. 10165 * This attribute is used for testing purposes. 10166 */ 10167 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51, 10168 10169 /* 8-bit unsigned value to configure the driver to transmit data with 10170 * ER SU PPDU type. 10171 * 10172 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX. 10173 * This attribute is used for testing purposes. 10174 */ 10175 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52, 10176 10177 /* 8-bit unsigned value to configure the driver to use Data or 10178 * Management frame type for keep alive data. 10179 * Uses enum qca_wlan_keep_alive_data_type values. 10180 * 10181 * This attribute is used for testing purposes. 10182 */ 10183 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53, 10184 10185 /* 8-bit unsigned value to configure the driver to use scan request 10186 * BSSID value in Probe Request frame RA(A1) during the scan. The 10187 * driver saves this configuration and applies this setting to all user 10188 * space scan requests until the setting is cleared. If this 10189 * configuration is set, the driver uses the BSSID value from the scan 10190 * request to set the RA(A1) in the Probe Request frames during the 10191 * scan. 10192 * 10193 * 0 - Default behavior uses the broadcast RA in Probe Request frames. 10194 * 1 - Uses the scan request BSSID in RA in Probe Request frames. 10195 * This attribute is used for testing purposes. 10196 */ 10197 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54, 10198 10199 /* 8-bit unsigned value to configure the driver to enable/disable the 10200 * BSS max idle period support. 10201 * 10202 * 0 - Disable the BSS max idle support. 10203 * 1 - Enable the BSS max idle support. 10204 * This attribute is used for testing purposes. 10205 */ 10206 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55, 10207 10208 /* 8-bit unsigned value to configure the driver/firmware to enable or 10209 * disable Rx control frame to MultiBSS subfield in the HE MAC 10210 * capabilities information field. 10211 * 0 - Disable Rx control frame to MultiBSS subfield 10212 * 1 - Enable Rx control frame to MultiBSS subfield 10213 * This attribute is used to configure the testbed device. 10214 */ 10215 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56, 10216 10217 /* 8-bit unsigned value to configure the driver/firmware to enable or 10218 * disable Broadcast TWT support subfield in the HE MAC capabilities 10219 * information field. 10220 * 0 - Disable Broadcast TWT support subfield 10221 * 1 - Enable Broadcast TWT support subfield 10222 * This attribute is used to configure the testbed device. 10223 */ 10224 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57, 10225 10226 /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR 10227 * mode for IEEE 802.11be MLO capable devices. If the attribute is set 10228 * to 1, and if the firmware supports this capability too, the STA 10229 * advertises this capability to the AP over Association Request frame. 10230 * This attribute will not have any effect on legacy devices with no 10231 * IEEE 802.11be support. 10232 * 0 - Default behavior 10233 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode 10234 * This attribute is used to configure the testbed device. 10235 */ 10236 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58, 10237 10238 /* 8-bit unsigned value to configure the driver to enable/disable the 10239 * periodic sounding for Tx beamformer functionality. The default 10240 * behavior uses algorithm to do sounding based on packet stats. 10241 * 10242 * 0 - Default behavior. 10243 * 1 - Enable the periodic sounding for Tx beamformer. 10244 * This attribute is used for testing purposes. 10245 */ 10246 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59, 10247 10248 /* 8-bit unsigned value to configure beamformee SS EHT capability 10249 * to indicate the maximum number of spatial streams that the STA 10250 * can receive in an EHT sounding NDP for <= 80 MHz bandwidth. 10251 * The range of the value is 3 to 7. 10252 * This attribute is used to configure the testbed device. 10253 */ 10254 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60, 10255 10256 /* 8-bit unsigned value to configure beamformee SS EHT capability 10257 * to indicate the maximum number of spatial streams that the STA 10258 * can receive in an EHT sounding NDP for 160 MHz bandwidth. 10259 * The range of the value is 3 to 7. 10260 * This attribute is used to configure the testbed device. 10261 */ 10262 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61, 10263 10264 /* 8-bit unsigned value to configure beamformee SS EHT capability 10265 * to indicate the maximum number of spatial streams that the STA 10266 * can receive in an EHT sounding NDP for 320 MHz bandwidth. 10267 * The range of the value is 3 to 7. 10268 * This attribute is used to configure the testbed device. 10269 */ 10270 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62, 10271 10272 /* 8-bit unsigned value to configure the driver to exclude station 10273 * profile in Probe Request frame Multi-Link element. 10274 * 0 - Default behavior, sends the Probe Request frame with station 10275 * profile data included in the Multi-Link element. 10276 * 1 - Exclude station profile in Probe Request frame Multi-Link 10277 * element. 10278 * This attribute is used to configure the testbed device. 10279 */ 10280 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63, 10281 10282 /* 8-bit unsigned value to configure EHT testbed defaults. 10283 * This attribute is used to configure the testbed device. 10284 * 1 - Set the device EHT capabilities to testbed defaults. 10285 * 0 - Reset the device EHT capabilities to supported config. 10286 */ 10287 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64, 10288 10289 /* 8-bit unsigned value to indicate the EHT MCS support. 10290 * Uses enum eht_mcs_config values. 10291 * This attribute is used to configure the testbed device to 10292 * allow the advertised hardware capabilities to be downgraded 10293 * for testing purposes. 10294 */ 10295 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65, 10296 10297 /* 8-bit unsigned value to configure EHT TB Sounding Feedback 10298 * Rate Limit capability. 10299 * This attribute is used to configure the testbed device. 10300 * 0 - Indicates no maximum supported data rate limitation. 10301 * 1 - Indicates the maximum supported data rate is the lower of 10302 * the 1500 Mb/s and the maximum supported data rate. 10303 */ 10304 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66, 10305 10306 /* 8-bit unsigned value to configure the support for receiving an MPDU 10307 * that contains an EHT operating mode control subfield. 10308 * This attribute is used to configure the testbed device. 10309 * 1-enable, 0-disable. 10310 */ 10311 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67, 10312 10313 /* 8-bit unsigned value to configure the driver with EMLSR padding delay 10314 * subfield value. 10315 * 10316 * 0 - 0 us 10317 * 1 - 32 us 10318 * 2 - 64 us 10319 * 3 - 128 us 10320 * 4 - 256 us 10321 * 5-255 - Reserved 10322 * 10323 * This attribute is used for testing purposes. 10324 */ 10325 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68, 10326 10327 /* 10328 * 8-bit unsigned value to indicate the firmware to force the active MLO 10329 * links to power save mode for the configured number of beacon periods. 10330 * This allows the firmware to suspend STA links for X beacon periods 10331 * and remain asleep even if the AP advertises TIM as opposed to regular 10332 * power save mode where STA links wake up if the AP indicates that it 10333 * has buffered data to send. 10334 * This attribute is used to configure the testbed device. 10335 */ 10336 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69, 10337 10338 /* 10339 * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode 10340 * to enable simultaneous transmission of PPDUs on all active links. 10341 * 0 - Default behavior 10342 * 1 - Enter STR mode for simultaneous data transmission on all links 10343 */ 10344 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70, 10345 10346 /* Nested attribute to indicate EHT MLO links on which powersave to be 10347 * enabled. It contains link ID attributes. These nested attributes are 10348 * of the type u8 and are used to enable the powersave on associated 10349 * MLO links corresponding to the link IDs provided in the command. 10350 * This attribute is used to configure the testbed device. 10351 */ 10352 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_LINK_POWER_SAVE = 71, 10353 10354 /* 8-bit unsigned value to configure the MLD ID of the BSS whose link 10355 * info is requested in the ML Probe Request frame. In the MLO-MBSSID 10356 * testcase, STA can request information of non-Tx BSS through Tx BSS 10357 * by configuring non-Tx BSS MLD ID within the ML probe request that 10358 * is transmitted via host initiated scan request. 10359 * 10360 * This attribute is used for testing purposes. 10361 */ 10362 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MLD_ID_ML_PROBE_REQ = 72, 10363 10364 /* 8-bit unsigned value to configure the SCS traffic description 10365 * support in the EHT capabilities of an Association Request frame. 10366 * 1-enable, 0-disable 10367 * This attribute is used to configure the testbed device. 10368 */ 10369 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_SCS_TRAFFIC_SUPPORT = 73, 10370 10371 /* keep last */ 10372 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST, 10373 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX = 10374 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1, 10375 }; 10376 10377 /** 10378 * enum qca_wlan_twt_operation - Operation of the config TWT request 10379 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION. 10380 * The response for the respective operations can be either synchronous or 10381 * asynchronous (wherever specified). If synchronous, the response to this 10382 * operation is obtained in the corresponding vendor command reply to the user 10383 * space. For the asynchronous case the response is obtained as an event with 10384 * the same operation type. 10385 * 10386 * Drivers shall support either of these modes but not both simultaneously. 10387 * This support for asynchronous mode is advertised through the flag 10388 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised, 10389 * the driver shall support synchronous mode. 10390 * 10391 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured 10392 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10393 * qca_wlan_vendor_attr_twt_setup. Depending upon the 10394 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a 10395 * synchronous or asynchronous operation. 10396 * 10397 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are 10398 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10399 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation. 10400 * 10401 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are 10402 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10403 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup. 10404 * This terminate can either get triggered by the user space or can as well be 10405 * a notification from the firmware if it initiates a terminate. 10406 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, 10407 * the request from user space can either be a synchronous or asynchronous 10408 * operation. 10409 * 10410 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are 10411 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10412 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup. 10413 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, 10414 * this is either a synchronous or asynchronous operation. 10415 * 10416 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are 10417 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10418 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup. 10419 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE 10420 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT 10421 * capability, this is either a synchronous or asynchronous operation. 10422 * 10423 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a 10424 * combination of suspend and resume in a single request. Required parameters 10425 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the 10426 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is 10427 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT 10428 * capability, this is either a synchronous or asynchronous operation. 10429 * 10430 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information. 10431 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT 10432 * session is setup. It's a synchronous operation. 10433 * 10434 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information. 10435 * Valid only after the TWT session is setup. It's a synchronous operation. 10436 * 10437 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its 10438 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous 10439 * operation. 10440 * 10441 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is 10442 * ready for a new TWT session setup after it issued a TWT teardown. 10443 * 10444 * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required 10445 * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer 10446 * the enum qca_wlan_vendor_attr_twt_set_param. 10447 * 10448 * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT 10449 * related information for example TWT required bit in AP capabilities etc. 10450 * The reason for the notification is sent using 10451 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS. 10452 */ 10453 enum qca_wlan_twt_operation { 10454 QCA_WLAN_TWT_SET = 0, 10455 QCA_WLAN_TWT_GET = 1, 10456 QCA_WLAN_TWT_TERMINATE = 2, 10457 QCA_WLAN_TWT_SUSPEND = 3, 10458 QCA_WLAN_TWT_RESUME = 4, 10459 QCA_WLAN_TWT_NUDGE = 5, 10460 QCA_WLAN_TWT_GET_STATS = 6, 10461 QCA_WLAN_TWT_CLEAR_STATS = 7, 10462 QCA_WLAN_TWT_GET_CAPABILITIES = 8, 10463 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9, 10464 QCA_WLAN_TWT_SET_PARAM = 10, 10465 QCA_WLAN_TWT_NOTIFY = 11, 10466 }; 10467 10468 /** 10469 * enum qca_wlan_vendor_attr_config_twt: Defines attributes used by 10470 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10471 * 10472 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: u8 attribute. Specify the TWT 10473 * operation of this request. Possible values are defined in enum 10474 * qca_wlan_twt_operation. The parameters for the respective operation is 10475 * specified through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. 10476 * 10477 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the 10478 * parameters configured for TWT. These parameters are represented by 10479 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume, 10480 * enum qca_wlan_vendor_attr_twt_set_param, or 10481 * enum qca_wlan_vendor_attr_twt_stats based on the operation. 10482 * 10483 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when 10484 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY. 10485 * The values used by this attribute are defined in 10486 * enum qca_wlan_vendor_twt_status. 10487 */ 10488 enum qca_wlan_vendor_attr_config_twt { 10489 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0, 10490 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1, 10491 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2, 10492 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3, 10493 10494 /* keep last */ 10495 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST, 10496 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX = 10497 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1, 10498 }; 10499 10500 /** 10501 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command 10502 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 10503 * The user can add/delete the filter by specifying the BSSID/STA MAC address in 10504 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in 10505 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in 10506 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the 10507 * statistics of an unassociated station by specifying the MAC address in 10508 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in 10509 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in 10510 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get 10511 * the statistics of all unassociated stations by specifying the Broadcast MAC 10512 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with 10513 * above procedure. In the response, driver shall specify statistics 10514 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS. 10515 */ 10516 enum qca_wlan_vendor_attr_bss_filter { 10517 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0, 10518 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1, 10519 /* Other BSS filter type, unsigned 8 bit value. One of the values 10520 * in enum qca_wlan_vendor_bss_filter_type. 10521 */ 10522 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2, 10523 /* Other BSS filter action, unsigned 8 bit value. One of the values 10524 * in enum qca_wlan_vendor_bss_filter_action. 10525 */ 10526 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3, 10527 /* Array of nested attributes where each entry is the statistics 10528 * information of the specified station that belong to another BSS. 10529 * Attributes for each entry are taken from enum 10530 * qca_wlan_vendor_bss_filter_sta_stats. 10531 * Other BSS station configured in 10532 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type 10533 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA. 10534 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER 10535 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET. 10536 */ 10537 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4, 10538 10539 /* keep last */ 10540 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST, 10541 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX = 10542 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1, 10543 }; 10544 10545 /** 10546 * enum qca_wlan_vendor_bss_filter_type - Type of 10547 * filter used in other BSS filter operations. Used by the vendor command 10548 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 10549 * 10550 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter 10551 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter 10552 */ 10553 enum qca_wlan_vendor_bss_filter_type { 10554 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID, 10555 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA, 10556 }; 10557 10558 /** 10559 * enum qca_wlan_vendor_bss_filter_action - Type of 10560 * action in other BSS filter operations. Used by the vendor command 10561 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 10562 * 10563 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter 10564 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter 10565 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics 10566 */ 10567 enum qca_wlan_vendor_bss_filter_action { 10568 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD, 10569 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL, 10570 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET, 10571 }; 10572 10573 /** 10574 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for 10575 * the statistics of a specific unassociated station belonging to another BSS. 10576 * The statistics provides information of the unassociated station 10577 * filtered by other BSS operation - such as MAC, signal value. 10578 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 10579 * 10580 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station. 10581 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength 10582 * of the station. Unsigned 8 bit number containing RSSI. 10583 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host 10584 * driver for the last received RSSI. Unsigned 64 bit number containing 10585 * nanoseconds from the boottime. 10586 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD: Attribute used for padding for 10587 * 64-bit alignment. 10588 */ 10589 enum qca_wlan_vendor_bss_filter_sta_stats { 10590 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0, 10591 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1, 10592 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2, 10593 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3, 10594 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD = 4, 10595 10596 /* keep last */ 10597 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST, 10598 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX = 10599 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1 10600 }; 10601 10602 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute 10603 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command 10604 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 10605 */ 10606 enum qca_wlan_nan_ext_subcmd_type { 10607 /* Subcmd of type NAN Enable Request */ 10608 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1, 10609 /* Subcmd of type NAN Disable Request */ 10610 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2, 10611 }; 10612 10613 /** 10614 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command 10615 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 10616 */ 10617 enum qca_wlan_vendor_attr_nan_params { 10618 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0, 10619 /* Carries NAN command for firmware component. Every vendor command 10620 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a 10621 * payload containing the NAN command. NLA_BINARY attribute. 10622 */ 10623 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1, 10624 /* Indicates the type of NAN command sent with 10625 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type 10626 * describes the possible range of values. This attribute is mandatory 10627 * if the command being issued is either 10628 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or 10629 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute. 10630 */ 10631 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2, 10632 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz 10633 * band. This attribute is mandatory when command type is 10634 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute. 10635 */ 10636 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3, 10637 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz 10638 * band. This attribute is optional and should be included when command 10639 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery 10640 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute. 10641 */ 10642 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4, 10643 10644 /* keep last */ 10645 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST, 10646 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX = 10647 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1 10648 }; 10649 10650 /** 10651 * qca_wlan_twt_setup_state: Represents the TWT session states. 10652 * 10653 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established. 10654 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active. 10655 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state. 10656 */ 10657 enum qca_wlan_twt_setup_state { 10658 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0, 10659 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1, 10660 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2, 10661 }; 10662 10663 /** 10664 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for 10665 * TWT (Target Wake Time) setup request. These attributes are sent as part of 10666 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and 10667 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by 10668 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10669 * 10670 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute. 10671 * Disable (flag attribute not present) - Individual TWT 10672 * Enable (flag attribute present) - Broadcast TWT. 10673 * Individual means the session is between the STA and the AP. 10674 * This session is established using a separate negotiation between 10675 * STA and AP. 10676 * Broadcast means the session is across multiple STAs and an AP. The 10677 * configuration parameters are announced in Beacon frames by the AP. 10678 * This is used in 10679 * 1. TWT SET Request and Response 10680 * 2. TWT GET Response 10681 * 10682 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8). 10683 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to 10684 * specify the TWT request type. This is used in TWT SET operation. 10685 * 10686 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute 10687 * Enable (flag attribute present) - TWT with trigger support. 10688 * Disable (flag attribute not present) - TWT without trigger support. 10689 * Trigger means the AP will send the trigger frame to allow STA to send data. 10690 * Without trigger, the STA will wait for the MU EDCA timer before 10691 * transmitting the data. 10692 * This is used in 10693 * 1. TWT SET Request and Response 10694 * 2. TWT GET Response 10695 * 10696 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8) 10697 * 0 - Announced TWT - In this mode, STA may skip few service periods to 10698 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS 10699 * NULL frame to AP. 10700 * 1 - Unannounced TWT - The STA will wakeup during every SP. 10701 * This is a required parameter for 10702 * 1. TWT SET Request and Response 10703 * 2. TWT GET Response 10704 * 10705 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8) 10706 * Flow ID is the unique identifier for each TWT session. 10707 * If not provided then dialog ID will be set to zero. 10708 * This is an optional parameter for 10709 * 1. TWT SET Request and Response 10710 * 2. TWT GET Request and Response 10711 * 3. TWT TERMINATE Request and Response 10712 * 4. TWT SUSPEND Request and Response 10713 * Flow ID values from 0 to 254 represent a single TWT session 10714 * Flow ID value of 255 represents all TWT sessions for the following 10715 * 1. TWT TERMINATE Request and Response 10716 * 2. TWT SUSPEND Request and Response 10717 * 4. TWT CLEAR STATISTICS request 10718 * 5. TWT GET STATISTICS request and response 10719 * If an invalid dialog ID is provided, status 10720 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 10721 * 10722 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8) 10723 * This attribute (exp) is used along with the mantissa to derive the 10724 * wake interval using the following formula: 10725 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis 10726 * Wake interval is the interval between 2 successive SP. 10727 * This is a required parameter for 10728 * 1. TWT SET Request and Response 10729 * 2. TWT GET Response 10730 * 10731 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute 10732 * Enable (flag attribute present) - Protection required. 10733 * Disable (flag attribute not present) - Protection not required. 10734 * If protection is enabled, then the AP will use protection 10735 * mechanism using RTS/CTS to self to reserve the airtime. 10736 * This is used in 10737 * 1. TWT SET Request and Response 10738 * 2. TWT GET Response 10739 * 10740 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32) 10741 * This attribute is used as the SP offset which is the offset from 10742 * TSF after which the wake happens. The units are in microseconds. If 10743 * this attribute is not provided, then the value will be set to zero. 10744 * This is an optional parameter for 10745 * 1. TWT SET Request and Response 10746 * 2. TWT GET Response 10747 * 10748 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32) 10749 * This is the duration of the service period. This is specified as 10750 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF. 10751 * This is a required parameter for 10752 * 1. TWT SET Request and Response 10753 * 2. TWT GET Response 10754 * 10755 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32) 10756 * This attribute is used to configure wake interval mantissa. 10757 * The units are in TU. 10758 * This is a required parameter for 10759 * 1. TWT SET Request and Response 10760 * 2. TWT GET Response 10761 * 10762 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8) 10763 * This field is applicable for TWT response only. 10764 * This contains status values in enum qca_wlan_vendor_twt_status 10765 * and is passed to the userspace. This is used in TWT SET operation. 10766 * This is a required parameter for 10767 * 1. TWT SET Response 10768 * 2. TWT TERMINATE Response 10769 * 3. TWT SUSPEND Response 10770 * 4. TWT RESUME Response 10771 * 5. TWT NUDGE Response 10772 * 10773 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8) 10774 * This field is applicable for TWT response only. 10775 * This field contains response type from the TWT responder and is 10776 * passed to the userspace. The values for this field are defined in 10777 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET 10778 * response. 10779 * 10780 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64) 10781 * In TWT setup command this field contains absolute TSF that will 10782 * be used by TWT requester during setup. 10783 * In TWT response this field contains absolute TSF value of the 10784 * wake time received from the TWT responder and is passed to 10785 * the userspace. 10786 * This is an optional parameter for 10787 * 1. TWT SET Request 10788 * This is a required parameter for 10789 * 1. TWT SET Response 10790 * 2. TWT GET Response 10791 * 10792 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute. 10793 * Enable (flag attribute present) - Indicates that the TWT responder 10794 * supports reception of TWT information frame from the TWT requestor. 10795 * Disable (flag attribute not present) - Indicates that the responder 10796 * doesn't support reception of TWT information frame from requestor. 10797 * This is used in 10798 * 1. TWT SET Response 10799 * 2. TWT GET Response 10800 * 10801 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address 10802 * Represents the MAC address of the peer for which the TWT session 10803 * is being configured. This is used in AP mode to represent the respective 10804 * client. 10805 * In AP mode, this is a required parameter in response for 10806 * 1. TWT SET 10807 * 2. TWT GET 10808 * 3. TWT TERMINATE 10809 * 4. TWT SUSPEND 10810 * In STA mode, this is an optional parameter in request and response for 10811 * the above four TWT operations. 10812 * In AP mode, this is a required parameter in request for 10813 * 1. TWT GET 10814 * 2. TWT TERMINATE 10815 * 10816 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32) 10817 * Minimum tolerance limit of wake interval parameter in microseconds. 10818 * 10819 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32) 10820 * Maximum tolerance limit of wake interval parameter in microseconds. 10821 * 10822 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32) 10823 * Minimum tolerance limit of wake duration parameter in microseconds. 10824 * 10825 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32) 10826 * Maximum tolerance limit of wake duration parameter in microseconds. 10827 * 10828 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32) 10829 * TWT state for the given dialog id. The values for this are represented 10830 * by enum qca_wlan_twt_setup_state. 10831 * This is obtained through TWT GET operation. 10832 * 10833 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32) 10834 * This attribute is used to configure wake interval mantissa. 10835 * The unit is microseconds. This attribute, when specified, takes 10836 * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA. 10837 * This parameter is used for 10838 * 1. TWT SET Request and Response 10839 * 2. TWT GET Response 10840 * 10841 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8) 10842 * This attribute is used to configure Broadcast TWT ID. 10843 * The Broadcast TWT ID indicates a specific Broadcast TWT for which the 10844 * transmitting STA is providing TWT parameters. The allowed values are 0 to 31. 10845 * This parameter is used for 10846 * 1. TWT SET Request 10847 * 2. TWT TERMINATE Request 10848 * 10849 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8) 10850 * This attribute is used to configure Broadcast TWT recommendation. 10851 * The Broadcast TWT Recommendation subfield contains a value that indicates 10852 * recommendations on the types of frames that are transmitted by TWT 10853 * scheduled STAs and scheduling AP during the broadcast TWT SP. 10854 * The allowed values are 0 - 3. 10855 * This parameter is used for 10856 * 1. TWT SET Request 10857 * 10858 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8) 10859 * This attribute is used to configure Broadcast TWT Persistence. 10860 * The Broadcast TWT Persistence subfield indicates the number of 10861 * TBTTs during which the Broadcast TWT SPs corresponding to this 10862 * broadcast TWT Parameter set are present. The number of beacon intervals 10863 * during which the Broadcast TWT SPs are present is equal to the value in the 10864 * Broadcast TWT Persistence subfield plus 1 except that the value 255 10865 * indicates that the Broadcast TWT SPs are present until explicitly terminated. 10866 * This parameter is used for 10867 * 1. TWT SET Request 10868 * 10869 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8) 10870 * This attribute contains the value of the Responder PM Mode subfield (0 or 1) 10871 * from TWT response frame. During TWT setup request, this attribute is used to 10872 * configure the Responder PM Mode bit in the control field of the TWT element 10873 * for broadcast TWT schedule. 10874 * This parameter is used for 10875 * 1. TWT SET Response 10876 * 2. TWT GET Response 10877 * 3. TWT SET Request 10878 * 10879 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32) 10880 * This attribute is used to configure the announce timeout value (in us) in 10881 * the firmware. This timeout value is only applicable for the announced TWT. If 10882 * the timeout value is non-zero the firmware waits up to the timeout value to 10883 * use Data frame as an announcement frame. If the timeout value is 0 the 10884 * firmware sends an explicit QoS NULL frame as the announcement frame on SP 10885 * start. The default value in the firmware is 0. 10886 * This parameter is used for 10887 * 1. TWT SET Request 10888 * 10889 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD: Attribute used for padding for 64-bit 10890 * alignment. 10891 */ 10892 enum qca_wlan_vendor_attr_twt_setup { 10893 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0, 10894 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1, 10895 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2, 10896 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3, 10897 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4, 10898 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5, 10899 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6, 10900 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7, 10901 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8, 10902 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9, 10903 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10, 10904 10905 /* TWT Response only attributes */ 10906 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11, 10907 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12, 10908 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13, 10909 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14, 10910 10911 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15, 10912 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16, 10913 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17, 10914 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18, 10915 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19, 10916 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20, 10917 10918 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21, 10919 10920 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22, 10921 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23, 10922 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24, 10923 10924 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25, 10925 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26, 10926 10927 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD = 27, 10928 10929 /* keep last */ 10930 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST, 10931 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX = 10932 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1, 10933 }; 10934 10935 /** 10936 * enum qca_wlan_vendor_twt_status - Represents the status of the requested 10937 * TWT operation 10938 * 10939 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed 10940 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled 10941 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used 10942 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy 10943 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist 10944 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state 10945 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters 10946 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready 10947 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted 10948 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the 10949 * request/response frame 10950 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response 10951 * frame 10952 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request 10953 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an 10954 * unknown reason 10955 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in 10956 * suspend state 10957 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to 10958 * invalid IE in the received TWT frame 10959 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from 10960 * the responder are not in the specified range 10961 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT 10962 * session due to request from the responder. Used on the TWT_TERMINATE 10963 * notification from the firmware. 10964 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT 10965 * session due to roaming. Used on the TWT_TERMINATE notification from the 10966 * firmware. 10967 * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the 10968 * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel 10969 * Concurrency). Used on the TWT_TERMINATE notification from the firmware. 10970 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup 10971 * request due to roaming in progress. 10972 * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT 10973 * setup request due to channel switch in progress. 10974 * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup 10975 * request due to scan in progress. 10976 * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to 10977 * terminate an existing TWT session on power save exit request from userspace. 10978 * Used on the TWT_TERMINATE notification from the driver/firmware. 10979 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT 10980 * required bit in its capabilities. 10981 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared 10982 * the TWT required bit(1->0) in its capabilities. 10983 */ 10984 enum qca_wlan_vendor_twt_status { 10985 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0, 10986 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1, 10987 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2, 10988 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3, 10989 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4, 10990 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5, 10991 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6, 10992 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7, 10993 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8, 10994 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9, 10995 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10, 10996 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11, 10997 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12, 10998 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13, 10999 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14, 11000 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15, 11001 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16, 11002 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17, 11003 QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18, 11004 QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19, 11005 QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20, 11006 QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21, 11007 QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22, 11008 QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23, 11009 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24, 11010 }; 11011 11012 /** 11013 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for 11014 * TWT (Target Wake Time) resume request. These attributes are sent as part of 11015 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and 11016 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by 11017 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 11018 * 11019 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8) 11020 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32) 11021 * These attributes are used as the SP offset which is the offset from TSF after 11022 * which the wake happens. The units are in microseconds. Please note that 11023 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data. 11024 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation 11025 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value 11026 * will be set to zero. 11027 * 11028 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32) 11029 * This attribute represents the next TWT subfield size. 11030 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits, 11031 * and 4 for 64 bits. 11032 * 11033 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8). 11034 * Flow ID is the unique identifier for each TWT session. This attribute 11035 * represents the respective TWT session to resume. 11036 * Flow ID values from 0 to 254 represent a single TWT session 11037 * Flow ID value of 255 represents all TWT sessions. 11038 * If an invalid dialog id is provided, status 11039 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 11040 * 11041 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address 11042 * Represents the MAC address of the peer to which TWT Resume is 11043 * being sent. This is used in AP mode to represent the respective 11044 * client and is a required parameter. In STA mode, this is an optional 11045 * parameter 11046 */ 11047 enum qca_wlan_vendor_attr_twt_resume { 11048 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0, 11049 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1, 11050 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2, 11051 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3, 11052 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4, 11053 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5, 11054 11055 /* keep last */ 11056 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST, 11057 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX = 11058 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1, 11059 }; 11060 11061 /** 11062 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for 11063 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend 11064 * and resume in a single request. These attributes are sent as part of 11065 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 11066 * 11067 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8) 11068 * Flow ID is the unique identifier for each TWT session. This attribute 11069 * represents the respective TWT session to suspend and resume. 11070 * Flow ID values from 0 to 254 represent a single TWT session 11071 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request 11072 * and response. 11073 * If an invalid dialog id is provided, status 11074 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 11075 * 11076 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32) 11077 * This attribute is used as the SP offset which is the offset from 11078 * TSF after which the wake happens. The units are in microseconds. 11079 * 11080 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32) 11081 * This attribute represents the next TWT subfield size. 11082 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits, 11083 * and 4 for 64 bits. 11084 * 11085 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address 11086 * Represents the MAC address of the peer to which TWT Suspend and Resume is 11087 * being sent. This is used in AP mode to represent the respective 11088 * client and is a required parameter. In STA mode, this is an optional 11089 * parameter. 11090 * 11091 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64) 11092 * This field contains absolute TSF value of the time at which the TWT 11093 * session will be resumed. 11094 * 11095 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32) 11096 * This field will be used when device supports Flexible TWT. 11097 * This field contains an offset value by which to shift the starting time 11098 * of the next service period. The value of offset can be negative or positive. 11099 * If provided, this attribute will override 11100 * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds. 11101 * 11102 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD: Attribute used for padding for 64-bit 11103 * alignment. 11104 */ 11105 enum qca_wlan_vendor_attr_twt_nudge { 11106 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0, 11107 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1, 11108 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2, 11109 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3, 11110 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4, 11111 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5, 11112 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6, 11113 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD = 7, 11114 11115 /* keep last */ 11116 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST, 11117 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX = 11118 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1, 11119 }; 11120 11121 /** 11122 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for 11123 * TWT (Target Wake Time) get statistics and clear statistics request. 11124 * These attributes are sent as part of 11125 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 11126 * 11127 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8) 11128 * Flow ID is the unique identifier for each TWT session. This attribute 11129 * represents the respective TWT session for get and clear TWT statistics. 11130 * Flow ID values from 0 to 254 represent a single TWT session 11131 * Flow ID value of 255 represents all TWT sessions in 11132 * 1) TWT GET STATISTICS request and response 11133 * 2) TWT CLEAR STATISTICS request 11134 * 11135 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address 11136 * Represents the MAC address of the peer for which TWT Statistics 11137 * is required. 11138 * In AP mode this is used to represent the respective 11139 * client and is a required parameter for 11140 * 1) TWT GET STATISTICS request and response 11141 * 2) TWT CLEAR STATISTICS request and response 11142 * In STA mode, this is an optional parameter. 11143 * 11144 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32) 11145 * This is the duration of the service period in microseconds. 11146 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11147 * 11148 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32) 11149 * Average of the actual wake duration observed so far. Unit is microseconds. 11150 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11151 * 11152 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32) 11153 * The number of TWT service periods elapsed so far. 11154 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11155 * 11156 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32) 11157 * This is the minimum value of the wake duration observed across 11158 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is 11159 * microseconds. 11160 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11161 * 11162 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION: Required (u32) 11163 * This is the maximum value of wake duration observed across 11164 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is 11165 * microseconds. 11166 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11167 * 11168 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32) 11169 * Average number of MPDUs transmitted successfully across 11170 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 11171 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11172 * 11173 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32) 11174 * Average number of MPDUs received successfully across 11175 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 11176 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11177 * 11178 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32) 11179 * Average number of bytes transmitted successfully across 11180 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 11181 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11182 * 11183 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE: Required (u32) 11184 * Average number of bytes received successfully across 11185 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 11186 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11187 * 11188 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32) 11189 * Status of the TWT GET STATISTICS request. 11190 * This contains status values in enum qca_wlan_vendor_twt_status 11191 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11192 */ 11193 enum qca_wlan_vendor_attr_twt_stats { 11194 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0, 11195 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1, 11196 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2, 11197 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3, 11198 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4, 11199 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5, 11200 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6, 11201 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7, 11202 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8, 11203 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9, 11204 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10, 11205 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11, 11206 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12, 11207 11208 /* keep last */ 11209 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST, 11210 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX = 11211 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1, 11212 }; 11213 11214 /** 11215 * qca_wlan_twt_get_capa - Represents the bitmap of TWT capabilities 11216 * supported by the device and the peer. 11217 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES 11218 * 11219 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by 11220 * TWT non-scheduling STA. This capability is advertised in the HE 11221 * Capability/Extended Capabilities information element in the 11222 * Association Request frame by the device. 11223 * 11224 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised by 11225 * the TWT scheduling AP. This capability is advertised in the Extended 11226 * Capabilities/HE Capabilities information element. 11227 * 11228 * @QCA_WLAN_TWT_CAPA_BROADCAST: On the requestor side, this indicates support 11229 * for the broadcast TWT functionality. On the responder side, this indicates 11230 * support for the role of broadcast TWT scheduling functionality. This 11231 * capability is advertised in the HE Capabilities information element. 11232 * 11233 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: The device supports flexible TWT schedule. 11234 * This capability is advertised in the HE Capabilities information element. 11235 * 11236 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate 11237 * that it mandates the associated HE STAs to support TWT. This capability is 11238 * advertised by AP in the HE Operation Parameters field of the HE Operation 11239 * information element. 11240 */ 11241 enum qca_wlan_twt_capa { 11242 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0), 11243 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1), 11244 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2), 11245 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3), 11246 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4), 11247 }; 11248 11249 /** 11250 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT 11251 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT 11252 * operation. 11253 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address 11254 * Represents the MAC address of the peer for which the TWT capabilities 11255 * are being queried. This is used in AP mode to represent the respective 11256 * client. In STA mode, this is an optional parameter. 11257 * 11258 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16). 11259 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in 11260 * enum qca_wlan_twt_capa. 11261 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16). 11262 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in 11263 * enum qca_wlan_twt_capa. 11264 */ 11265 enum qca_wlan_vendor_attr_twt_capability { 11266 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0, 11267 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1, 11268 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2, 11269 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3, 11270 11271 /* keep last */ 11272 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST, 11273 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX = 11274 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1, 11275 }; 11276 11277 /** 11278 * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for 11279 * TWT (Target Wake Time) related parameters. It is used when 11280 * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM. 11281 * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 11282 * 11283 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8) 11284 * This attribute configures AC parameters to be used for all TWT 11285 * sessions in AP mode. 11286 * Uses the enum qca_wlan_ac_type values. 11287 * 11288 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_UNAVAILABILITY_MODE: Flag attribute, 11289 * used by TWT responder to indicate unavailability outside of the SPs. 11290 * Enable (flag attribute present) - Indicates that the TWT responder may be 11291 * unavailable outside of the SPs of its broadcast TWT schedule. 11292 * Disable (flag attribute not present) - Indicates that the responder will be 11293 * available for all TWT sessions (including individual TWT). 11294 */ 11295 enum qca_wlan_vendor_attr_twt_set_param { 11296 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0, 11297 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1, 11298 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_UNAVAILABILITY_MODE = 2, 11299 11300 /* keep last */ 11301 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST, 11302 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX = 11303 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1, 11304 }; 11305 11306 /** 11307 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by 11308 * the TWT responder 11309 * 11310 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT 11311 * parameters that are different from TWT requesting STA suggested 11312 * or demanded TWT parameters 11313 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT 11314 * parameters that are different from TWT requesting STA TWT suggested 11315 * or demanded parameters 11316 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT 11317 * setup 11318 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT 11319 * setup. 11320 */ 11321 enum qca_wlan_vendor_twt_setup_resp_type { 11322 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1, 11323 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2, 11324 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3, 11325 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4, 11326 }; 11327 11328 /** 11329 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8) 11330 * Represents the setup type being requested for TWT. 11331 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT 11332 * parameters but relying on AP to fill the parameters during the negotiation. 11333 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested 11334 * values which the AP may accept or AP may provide alternative parameters 11335 * which the STA may accept. 11336 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any 11337 * alternate parameters than the requested ones. 11338 */ 11339 enum qca_wlan_vendor_twt_setup_req_type { 11340 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1, 11341 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2, 11342 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3, 11343 }; 11344 11345 /** 11346 * enum qca_wlan_roam_scan_event_type - Type of roam scan event 11347 * 11348 * Indicates the type of roam scan event sent by firmware/driver. 11349 * 11350 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type. 11351 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type. 11352 */ 11353 enum qca_wlan_roam_scan_event_type { 11354 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0, 11355 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1, 11356 }; 11357 11358 /** 11359 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason 11360 * 11361 * Indicates the reason for triggering roam scan by firmware/driver. 11362 * 11363 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP. 11364 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate. 11365 */ 11366 enum qca_wlan_roam_scan_trigger_reason { 11367 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0, 11368 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1, 11369 }; 11370 11371 /** 11372 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report 11373 * roam scan related details from driver/firmware to user space. enum values 11374 * are used for NL attributes sent with 11375 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command. 11376 */ 11377 enum qca_wlan_vendor_attr_roam_scan { 11378 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0, 11379 /* Encapsulates type of roam scan event being reported. enum 11380 * qca_wlan_roam_scan_event_type describes the possible range of 11381 * values. u32 attribute. 11382 */ 11383 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1, 11384 /* Encapsulates reason for triggering roam scan. enum 11385 * qca_wlan_roam_scan_trigger_reason describes the possible range of 11386 * values. u32 attribute. 11387 */ 11388 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2, 11389 11390 /* keep last */ 11391 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST, 11392 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX = 11393 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1, 11394 }; 11395 11396 /** 11397 * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data 11398 * transport modes and is used by the attribute 11399 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as a part of the vendor 11400 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG. 11401 * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use relayfs to send CFR data. 11402 * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR 11403 * data. The data shall be encapsulated within 11404 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with the vendor sub command 11405 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event. 11406 */ 11407 enum qca_wlan_vendor_cfr_data_transport_modes { 11408 QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0, 11409 QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1, 11410 }; 11411 11412 /** 11413 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by 11414 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor 11415 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG. 11416 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QoS Null frame 11417 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QoS Null frame 11418 * with phase 11419 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using Probe Response frame 11420 */ 11421 enum qca_wlan_vendor_cfr_method { 11422 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0, 11423 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1, 11424 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2, 11425 }; 11426 11427 /** 11428 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by 11429 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE. 11430 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames. 11431 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames. 11432 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames. 11433 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which 11434 * is provided by one or more of below attributes: 11435 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA 11436 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA 11437 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK 11438 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK 11439 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER 11440 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER 11441 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER 11442 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets. 11443 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames. 11444 */ 11445 enum qca_wlan_vendor_cfr_capture_type { 11446 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0, 11447 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1, 11448 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2, 11449 QCA_WLAN_VENDOR_CFR_TA_RA = 3, 11450 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4, 11451 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5, 11452 }; 11453 11454 /** 11455 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command 11456 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer 11457 * Channel Frequency Response capture parameters and enable periodic CFR 11458 * capture. 11459 * 11460 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address) 11461 * MAC address of peer. This is for CFR version 1 only. 11462 * 11463 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag) 11464 * Enable peer CFR capture. This attribute is mandatory to enable peer CFR 11465 * capture. If this attribute is not present, peer CFR capture is disabled. 11466 * 11467 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8) 11468 * BW of measurement, attribute uses the values in enum nl80211_chan_width 11469 * Supported values: 20, 40, 80, 80+80, 160. 11470 * Note that all targets may not support all bandwidths. 11471 * This attribute is mandatory for version 1 if attribute 11472 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 11473 * 11474 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32) 11475 * Periodicity of CFR measurement in milliseconds. 11476 * Periodicity should be a multiple of Base timer. 11477 * Current Base timer value supported is 10 milliseconds (default). 11478 * 0 for one shot capture. 11479 * This attribute is mandatory for version 1 if attribute 11480 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 11481 * 11482 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8) 11483 * Method used to capture Channel Frequency Response. 11484 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method. 11485 * This attribute is mandatory for version 1 if attribute 11486 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 11487 * 11488 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag) 11489 * Enable periodic CFR capture. 11490 * This attribute is mandatory for version 1 to enable Periodic CFR capture. 11491 * If this attribute is not present, periodic CFR capture is disabled. 11492 * 11493 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION: Optional (u8) 11494 * Value is 1 or 2 since there are two versions of CFR capture. Two versions 11495 * can't be enabled at same time. This attribute is mandatory if target 11496 * support both versions and use one of them. 11497 * 11498 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP: Optional (u32) 11499 * This attribute is mandatory for version 2 if 11500 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used. 11501 * Bits 15:0 bitfield indicates which group is to be enabled. 11502 * Bits 31:16 Reserved for future use. 11503 * 11504 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32) 11505 * CFR capture duration in microsecond. This attribute is mandatory for 11506 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used. 11507 * 11508 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32) 11509 * CFR capture interval in microsecond. This attribute is mandatory for 11510 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used. 11511 * 11512 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32) 11513 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type. 11514 * This attribute is mandatory for version 2. 11515 * 11516 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64) 11517 * Bitfield indicating which user in the current UL MU transmissions are 11518 * enabled for CFR capture. Bits 36 to 0 indicate user indexes for 37 users in 11519 * a UL MU transmission. If bit 0 is set, the CFR capture will happen for user 11520 * index 0 in the current UL MU transmission. If bits 0 and 2 are set, CFR 11521 * capture for UL MU TX corresponds to user indices 0 and 2. Bits 63:37 are 11522 * reserved for future use. This is for CFR version 2 only. 11523 * 11524 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32) 11525 * Indicates the number of consecutive RX frames to be skipped before CFR 11526 * capture is enabled again. This is for CFR version 2 only. 11527 * 11528 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing 11529 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes. 11530 * 11531 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing 11532 * the following group attributes: 11533 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER, 11534 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA, 11535 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA, 11536 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK, 11537 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK, 11538 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS, 11539 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW, 11540 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER, 11541 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER, 11542 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER 11543 * 11544 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32) 11545 * Target supports multiple groups for some configurations. The group number 11546 * can be any value between 0 and 15. This is for CFR version 2 only. 11547 * 11548 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address) 11549 * Transmitter address which is used to filter frames. This MAC address takes 11550 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. This is for CFR 11551 * version 2 only. 11552 * 11553 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address) 11554 * Receiver address which is used to filter frames. This MAC address takes 11555 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. This is for CFR 11556 * version 2 only. 11557 * 11558 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address) 11559 * Mask of transmitter address which is used to filter frames. This is for CFR 11560 * version 2 only. 11561 * 11562 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address) 11563 * Mask of receiver address which is used to filter frames. This is for CFR 11564 * version 2 only. 11565 * 11566 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32) 11567 * Indicates frames with a specific NSS will be filtered for CFR capture. 11568 * This is for CFR version 2 only. This is a bitmask. Bits 7:0 request CFR 11569 * capture to be done for frames matching the NSS specified within this bitmask. 11570 * Bits 31:8 are reserved for future use. Bits 7:0 map to NSS: 11571 * bit 0 : NSS 1 11572 * bit 1 : NSS 2 11573 * ... 11574 * bit 7 : NSS 8 11575 * 11576 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32) 11577 * Indicates frames with a specific bandwidth will be filtered for CFR capture. 11578 * This is for CFR version 2 only. This is a bitmask. Bits 4:0 request CFR 11579 * capture to be done for frames matching the bandwidths specified within this 11580 * bitmask. Bits 31:5 are reserved for future use. Bits 4:0 map to bandwidth 11581 * numerated in enum nl80211_band (although not all bands may be supported 11582 * by a given device). 11583 * 11584 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32) 11585 * Management frames matching the subtype filter categories will be filtered in 11586 * by MAC for CFR capture. This is a bitmask in which each bit represents the 11587 * corresponding Management frame subtype value per IEEE Std 802.11-2016, 11588 * 9.2.4.1.3 Type and Subtype subfields. For example, Beacon frame control type 11589 * is 8 and its value is 1 << 8 = 0x100. This is for CFR version 2 only. 11590 * 11591 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32) 11592 * Control frames matching the subtype filter categories will be filtered in by 11593 * MAC for CFR capture. This is a bitmask in which each bit represents the 11594 * corresponding Control frame subtype value per IEEE Std 802.11-2016, 11595 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only. 11596 * 11597 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32) 11598 * Data frames matching the subtype filter categories will be filtered in by 11599 * MAC for CFR capture. This is a bitmask in which each bit represents the 11600 * corresponding Data frame subtype value per IEEE Std 802.11-2016, 11601 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only. 11602 * 11603 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8) 11604 * Userspace can use this attribute to specify the driver about which transport 11605 * mode shall be used by the driver to send CFR data to userspace. Uses values 11606 * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is 11607 * not present, the driver shall use the default transport mechanism which is 11608 * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS. 11609 * 11610 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32) 11611 * Userspace can use this attribute to specify the nl port id of the application 11612 * which receives the CFR data and processes it further so that the drivers can 11613 * unicast the netlink events to a specific application. Optionally included 11614 * when QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to 11615 * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers 11616 * shall multicast the netlink events when this attribute is not included. 11617 * 11618 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY). 11619 * This attribute will be used by the driver to encapsulate and send CFR data 11620 * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an 11621 * asynchronous event when the driver is configured to send CFR data using 11622 * netlink events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS. 11623 * 11624 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD: Attribute used for padding for 64-bit 11625 * alignment. 11626 */ 11627 enum qca_wlan_vendor_peer_cfr_capture_attr { 11628 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0, 11629 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1, 11630 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2, 11631 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3, 11632 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4, 11633 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5, 11634 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6, 11635 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7, 11636 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8, 11637 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9, 11638 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10, 11639 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11, 11640 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12, 11641 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13, 11642 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14, 11643 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15, 11644 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16, 11645 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17, 11646 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18, 11647 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19, 11648 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20, 11649 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21, 11650 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22, 11651 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23, 11652 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24, 11653 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25, 11654 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26, 11655 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27, 11656 QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28, 11657 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD = 29, 11658 11659 /* Keep last */ 11660 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST, 11661 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX = 11662 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1, 11663 }; 11664 11665 /** 11666 * enum qca_wlan_throughput_level - Current throughput level 11667 * 11668 * Indicates the current level of throughput calculated by the driver. The 11669 * driver may choose different thresholds to decide whether the throughput level 11670 * is low or medium or high based on variety of parameters like physical link 11671 * capacity of the current connection, the number of packets being dispatched 11672 * per second, etc. The throughput level events might not be consistent with the 11673 * actual current throughput value being observed. 11674 * 11675 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput 11676 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput 11677 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput 11678 */ 11679 enum qca_wlan_throughput_level { 11680 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0, 11681 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1, 11682 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2, 11683 }; 11684 11685 /** 11686 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to 11687 * report throughput changes from the driver to user space. enum values are used 11688 * for netlink attributes sent with 11689 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command. 11690 */ 11691 enum qca_wlan_vendor_attr_throughput_change { 11692 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0, 11693 /* Indicates the direction of throughput in which the change is being 11694 * reported. u8 attribute. Value is 0 for TX and 1 for RX. 11695 */ 11696 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1, 11697 /* Indicates the newly observed throughput level. enum 11698 * qca_wlan_throughput_level describes the possible range of values. 11699 * u8 attribute. 11700 */ 11701 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2, 11702 /* Indicates the driver's guidance on the new value to be set to 11703 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The 11704 * driver may optionally include this attribute. 11705 */ 11706 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3, 11707 /* Indicates the driver's guidance on the new value to be set to 11708 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible 11709 * values are from -31 to 31. The driver may optionally include this 11710 * attribute. 11711 */ 11712 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4, 11713 /* Indicates the driver's guidance on the new value to be set to 11714 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may 11715 * optionally include this attribute. 11716 */ 11717 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5, 11718 11719 /* keep last */ 11720 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST, 11721 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX = 11722 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1, 11723 }; 11724 11725 /** 11726 * enum qca_coex_config_profiles - This enum defines different types of 11727 * traffic streams that can be prioritized one over the other during coex 11728 * scenarios. 11729 * The types defined in this enum are categorized in the below manner. 11730 * 0 - 31 values corresponds to WLAN 11731 * 32 - 63 values corresponds to BT 11732 * 64 - 95 values corresponds to Zigbee 11733 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA 11734 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA 11735 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA 11736 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA 11737 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA 11738 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP 11739 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP 11740 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP 11741 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP 11742 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP 11743 * @QCA_BT_A2DP: Prioritize BT A2DP 11744 * @QCA_BT_BLE: Prioritize BT BLE 11745 * @QCA_BT_SCO: Prioritize BT SCO 11746 * @QCA_ZB_LOW: Prioritize Zigbee Low 11747 * @QCA_ZB_HIGH: Prioritize Zigbee High 11748 */ 11749 enum qca_coex_config_profiles { 11750 /* 0 - 31 corresponds to WLAN */ 11751 QCA_WIFI_STA_DISCOVERY = 0, 11752 QCA_WIFI_STA_CONNECTION = 1, 11753 QCA_WIFI_STA_CLASS_3_MGMT = 2, 11754 QCA_WIFI_STA_DATA = 3, 11755 QCA_WIFI_STA_ALL = 4, 11756 QCA_WIFI_SAP_DISCOVERY = 5, 11757 QCA_WIFI_SAP_CONNECTION = 6, 11758 QCA_WIFI_SAP_CLASS_3_MGMT = 7, 11759 QCA_WIFI_SAP_DATA = 8, 11760 QCA_WIFI_SAP_ALL = 9, 11761 QCA_WIFI_CASE_MAX = 31, 11762 /* 32 - 63 corresponds to BT */ 11763 QCA_BT_A2DP = 32, 11764 QCA_BT_BLE = 33, 11765 QCA_BT_SCO = 34, 11766 QCA_BT_CASE_MAX = 63, 11767 /* 64 - 95 corresponds to Zigbee */ 11768 QCA_ZB_LOW = 64, 11769 QCA_ZB_HIGH = 65, 11770 QCA_ZB_CASE_MAX = 95, 11771 /* 0xff is default value if the u8 profile value is not set. */ 11772 QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255 11773 }; 11774 11775 /** 11776 * enum qca_vendor_attr_coex_config_types - Coex configurations types. 11777 * This enum defines the valid set of values of coex configuration types. These 11778 * values may used by attribute 11779 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE. 11780 * 11781 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the 11782 * weights to default values. 11783 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config 11784 * weights with configurability value. 11785 */ 11786 enum qca_vendor_attr_coex_config_types { 11787 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0, 11788 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1, 11789 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2, 11790 }; 11791 11792 /** 11793 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes 11794 * 11795 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable 11796 * length array of 8-bit values from enum qca_coex_config_profiles. 11797 * FW will prioritize the profiles in the order given in the array encapsulated 11798 * in this attribute. 11799 * For example: 11800 * ----------------------------------------------------------------------- 11801 * | 1 | 34 | 32 | 65 | 11802 * ----------------------------------------------------------------------- 11803 * If the attribute contains the values defined in above array then it means 11804 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH. 11805 * 2) BT_SCO has priority over BT_A2DP. 11806 * 3) BT_A2DP has priority over ZIGBEE HIGH. 11807 * Profiles which are not listed in this array shall not be preferred over the 11808 * profiles which are listed in the array as a part of this attribute. 11809 */ 11810 enum qca_vendor_attr_coex_config { 11811 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0, 11812 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1, 11813 11814 /* Keep last */ 11815 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST, 11816 QCA_VENDOR_ATTR_COEX_CONFIG_MAX = 11817 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1, 11818 }; 11819 11820 /** 11821 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config 11822 * attributes 11823 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG 11824 * 11825 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute. 11826 * Indicate config type. 11827 * The config types are 32-bit values from qca_vendor_attr_coex_config_types 11828 * 11829 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute. 11830 * Indicate the Priority 1 profiles. 11831 * The profiles are 8-bit values from enum qca_coex_config_profiles. 11832 * In same priority level, maximum to 4 profiles can be set here. 11833 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute. 11834 * Indicate the Priority 2 profiles. 11835 * The profiles are 8-bit values from enum qca_coex_config_profiles. 11836 * In same priority level, maximum to 4 profiles can be set here. 11837 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute. 11838 * Indicate the Priority 3 profiles. 11839 * The profiles are 8-bit values from enum qca_coex_config_profiles. 11840 * In same priority level, maximum to 4 profiles can be set here. 11841 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute. 11842 * Indicate the Priority 4 profiles. 11843 * The profiles are 8-bit values from enum qca_coex_config_profiles. 11844 * In same priority level, maximum to 4 profiles can be set here. 11845 * NOTE: 11846 * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority 11847 * arrangement: 11848 * 1: In the same u32 attribute (priority x), the profiles enum values own 11849 * same priority level. 11850 * 2: 0xff is default value if the u8 profile value is not set. 11851 * 3: max to 4 rules/profiles in same priority level. 11852 * 4: max to 4 priority level (priority 1 - priority 4) 11853 * 5: one priority level only supports one scenario from WLAN/BT/ZB, 11854 * hybrid rules not support. 11855 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will 11856 * remain blank to reset all parameters. 11857 * For example: 11858 * 11859 * If the attributes as follow: 11860 * priority 1: 11861 * ------------------------------------ 11862 * | 0xff | 0 | 1 | 2 | 11863 * ------------------------------------ 11864 * priority 2: 11865 * ------------------------------------- 11866 * | 0xff | 0xff | 0xff | 32 | 11867 * ------------------------------------- 11868 * priority 3: 11869 * ------------------------------------- 11870 * | 0xff | 0xff | 0xff | 65 | 11871 * ------------------------------------- 11872 * then it means: 11873 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION 11874 * owns same priority level. 11875 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION 11876 * has priority over BT_A2DP and ZB_HIGH. 11877 * 3: BT_A2DP has priority over ZB_HIGH. 11878 */ 11879 enum qca_vendor_attr_coex_config_three_way { 11880 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0, 11881 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1, 11882 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2, 11883 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3, 11884 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4, 11885 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5, 11886 11887 /* Keep last */ 11888 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST, 11889 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX = 11890 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1, 11891 }; 11892 11893 /** 11894 * enum qca_wlan_vendor_attr_link_properties - Represent the link properties. 11895 * 11896 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer 11897 * (STA/AP) for the connected link. 11898 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a 11899 * &struct nl80211_sta_flag_update for the respective connected link. MAC 11900 * address of the peer represented by 11901 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR. 11902 */ 11903 enum qca_wlan_vendor_attr_link_properties { 11904 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0, 11905 /* 1 - 3 are reserved */ 11906 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4, 11907 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5, 11908 11909 /* Keep last */ 11910 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST, 11911 QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX = 11912 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1, 11913 }; 11914 11915 /** 11916 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type 11917 * This enum defines the valid set of values of peer stats cache types. These 11918 * values are used by attribute 11919 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE. 11920 * 11921 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics 11922 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics 11923 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn 11924 * statistics 11925 */ 11926 enum qca_vendor_attr_peer_stats_cache_type { 11927 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0, 11928 11929 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS, 11930 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS, 11931 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS, 11932 }; 11933 11934 /** 11935 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines 11936 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH 11937 * Information in these attributes is used to flush peer rate statistics from 11938 * the driver to user application. 11939 * 11940 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute 11941 * Indicate peer statistics cache type. 11942 * The statistics types are 32-bit values from 11943 * enum qca_vendor_attr_peer_stats_cache_type. 11944 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array 11945 * of size 6 octets, representing the peer MAC address. 11946 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute 11947 * containing buffer of statistics to send to application layer entity. 11948 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute 11949 * representing a cookie for peer unique session. 11950 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD: Attribute used for padding for 11951 * 64-bit alignment. 11952 */ 11953 enum qca_wlan_vendor_attr_peer_stats_cache_params { 11954 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0, 11955 11956 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1, 11957 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2, 11958 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3, 11959 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4, 11960 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD = 5, 11961 11962 /* Keep last */ 11963 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST, 11964 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX = 11965 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1 11966 }; 11967 11968 /** 11969 * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state 11970 * This enum defines all the possible states of Zigbee, which can be 11971 * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute. 11972 * 11973 * @ZIGBEE_IDLE: Zigbee in idle state 11974 * @ZIGBEE_FORM_NETWORK: Zigbee forming network 11975 * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network 11976 * @ZIGBEE_JOIN: Zigbee joining network 11977 * @ZIGBEE_NETWORK_UP: Zigbee network is up 11978 * @ZIGBEE_HMI: Zigbee in HMI mode 11979 */ 11980 enum qca_mpta_helper_attr_zigbee_state { 11981 ZIGBEE_IDLE = 0, 11982 ZIGBEE_FORM_NETWORK = 1, 11983 ZIGBEE_WAIT_JOIN = 2, 11984 ZIGBEE_JOIN = 3, 11985 ZIGBEE_NETWORK_UP = 4, 11986 ZIGBEE_HMI = 5, 11987 }; 11988 11989 /* 11990 * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command 11991 * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG. 11992 */ 11993 enum qca_mpta_helper_vendor_attr { 11994 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0, 11995 /* Optional attribute used to update Zigbee state. 11996 * enum qca_mpta_helper_attr_zigbee_state. 11997 * NLA_U32 attribute. 11998 */ 11999 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1, 12000 /* Optional attribute used to configure WLAN duration for Shape-OCS 12001 * during interrupt. 12002 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION. 12003 * Value range 0 ~ 300 (ms). 12004 * NLA_U32 attribute. 12005 */ 12006 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2, 12007 /* Optional attribute used to configure non-WLAN duration for Shape-OCS 12008 * during interrupt. 12009 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION. 12010 * Value range 0 ~ 300 (ms). 12011 * NLA_U32 attribute. 12012 */ 12013 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3, 12014 /* Optional attribute used to configure WLAN duration for Shape-OCS 12015 * monitor period. 12016 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION. 12017 * Value range 0 ~ 300 (ms) 12018 * NLA_U32 attribute 12019 */ 12020 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4, 12021 /* Optional attribute used to configure non-WLAN duration for Shape-OCS 12022 * monitor period. 12023 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION. 12024 * Value range 0 ~ 300 (ms) 12025 * NLA_U32 attribute 12026 */ 12027 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5, 12028 /* Optional attribute used to configure OCS interrupt duration. 12029 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION. 12030 * Value range 1000 ~ 20000 (ms) 12031 * NLA_U32 attribute 12032 */ 12033 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6, 12034 /* Optional attribute used to configure OCS monitor duration. 12035 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION. 12036 * Value range 1000 ~ 20000 (ms) 12037 * NLA_U32 attribute 12038 */ 12039 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7, 12040 /* Optional attribute used to notify WLAN firmware the current Zigbee 12041 * channel. 12042 * Value range 11 ~ 26 12043 * NLA_U32 attribute 12044 */ 12045 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8, 12046 /* Optional attribute used to configure WLAN mute duration. 12047 * Value range 0 ~ 400 (ms) 12048 * NLA_U32 attribute 12049 */ 12050 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9, 12051 12052 /* keep last */ 12053 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST, 12054 QCA_MPTA_HELPER_VENDOR_ATTR_MAX = 12055 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1 12056 }; 12057 12058 /** 12059 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of 12060 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used. 12061 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE. 12062 * 12063 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver 12064 * to request the driver to start reporting Beacon frames. 12065 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to 12066 * request the driver to stop reporting Beacon frames. 12067 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to 12068 * userspace to report received Beacon frames. 12069 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace 12070 * to indicate that the driver is going to pause reporting Beacon frames. 12071 */ 12072 enum qca_wlan_vendor_beacon_reporting_op_types { 12073 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0, 12074 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1, 12075 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2, 12076 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3, 12077 }; 12078 12079 /** 12080 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types 12081 * of reasons for which the driver is pausing reporting Beacon frames. Will be 12082 * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON. 12083 * 12084 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified 12085 * reasons. 12086 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the 12087 * driver/firmware is starting a scan. 12088 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the 12089 * driver/firmware disconnects from the ESS and indicates the disconnection to 12090 * userspace (non-seamless roaming case). This reason code will be used by the 12091 * driver/firmware to indicate stopping of beacon report events. Userspace will 12092 * need to start beacon reporting again (if desired) by sending vendor command 12093 * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with 12094 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to 12095 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is 12096 * completed. 12097 */ 12098 enum qca_wlan_vendor_beacon_reporting_pause_reasons { 12099 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0, 12100 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1, 12101 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2, 12102 }; 12103 12104 /* 12105 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used 12106 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING. 12107 */ 12108 enum qca_wlan_vendor_attr_beacon_reporting_params { 12109 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0, 12110 /* Specifies the type of operation that the vendor command/event is 12111 * intended for. Possible values for this attribute are defined in 12112 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute. 12113 */ 12114 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1, 12115 /* Optionally set by userspace to request the driver to report Beacon 12116 * frames using asynchronous vendor events when the 12117 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12118 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. 12119 * If this flag is not set, the driver will only update Beacon frames in 12120 * cfg80211 scan cache but not send any vendor events. 12121 */ 12122 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2, 12123 /* Optionally used by userspace to request the driver/firmware to report 12124 * Beacon frames periodically when the 12125 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12126 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. 12127 * u32 attribute, indicates the period of Beacon frames to be reported 12128 * and in the units of beacon interval. 12129 * If this attribute is missing in the command, then the default value 12130 * of 1 will be assumed by driver, i.e., to report every Beacon frame. 12131 * Zero is an invalid value. 12132 * If a valid value is received for this attribute, the driver will 12133 * update the cfg80211 scan cache periodically as per the value received 12134 * in this attribute in addition to updating the cfg80211 scan cache 12135 * when there is significant change in Beacon frame IEs. 12136 */ 12137 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3, 12138 /* Used by the driver to encapsulate the SSID when the 12139 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12140 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 12141 * u8 array with a maximum size of 32. 12142 * 12143 * When generating beacon report from non-MBSSID Beacon frame, the SSID 12144 * will be taken from the SSID element of the received Beacon frame. 12145 * 12146 * When generating beacon report from Multiple BSSID Beacon frame and if 12147 * the BSSID of the current connected BSS matches the BSSID of the 12148 * transmitting BSS, the SSID will be taken from the SSID element of the 12149 * received Beacon frame. 12150 * 12151 * When generating beacon report from Multiple BSSID Beacon frame and if 12152 * the BSSID of the current connected BSS matches the BSSID of one of 12153 * the* nontransmitting BSSs, the SSID will be taken from the SSID field 12154 * included in the nontransmitted BSS profile whose derived BSSID is 12155 * same as the BSSID of the current connected BSS. When there is no 12156 * nontransmitted BSS profile whose derived BSSID is same as the BSSID 12157 * of current connected* BSS, this attribute will not be present. 12158 */ 12159 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4, 12160 /* Used by the driver to encapsulate the BSSID of the AP to which STA is 12161 * currently connected to when the 12162 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12163 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a 12164 * fixed size of 6 bytes. 12165 * 12166 * When generating beacon report from a Multiple BSSID beacon and the 12167 * current connected BSSID matches one of the nontransmitted BSSIDs in a 12168 * Multiple BSSID set, this BSSID will be that particular nontransmitted 12169 * BSSID and not the transmitted BSSID (i.e., the transmitting address 12170 * of the Beacon frame). 12171 */ 12172 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5, 12173 /* Used by the driver to encapsulate the frequency in MHz on which 12174 * the Beacon frame was received when the 12175 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is 12176 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 12177 * u32 attribute. 12178 */ 12179 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6, 12180 /* Used by the driver to encapsulate the Beacon interval 12181 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12182 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 12183 * u16 attribute. The value will be copied from the Beacon frame and the 12184 * units are TUs. 12185 */ 12186 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7, 12187 /* Used by the driver to encapsulate the Timestamp field from the Beacon 12188 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set 12189 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 12190 * u64 attribute. 12191 */ 12192 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8, 12193 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this 12194 * Beacon frame is received in the driver when the 12195 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12196 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in 12197 * the units of nanoseconds. This value is expected to have accuracy of 12198 * about 10 ms. 12199 */ 12200 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9, 12201 /* Used by the driver to encapsulate the IEs of the Beacon frame from 12202 * which this event is generated when the 12203 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12204 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array. 12205 */ 12206 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10, 12207 /* Used by the driver to specify the reason for the driver/firmware to 12208 * pause sending beacons to userspace when the 12209 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12210 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are 12211 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32 12212 * attribute. 12213 */ 12214 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11, 12215 /* Used by the driver to specify whether the driver will automatically 12216 * resume reporting beacon events to userspace later (for example after 12217 * the ongoing off-channel activity is completed etc.) when the 12218 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12219 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute. 12220 */ 12221 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12, 12222 /* Optionally set by userspace to request the driver not to resume 12223 * beacon reporting after a pause is completed, when the 12224 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12225 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. 12226 * If this flag is set, the driver will not resume beacon reporting 12227 * after any pause in beacon reporting is completed. Userspace has to 12228 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order 12229 * to initiate beacon reporting again. If this flag is set in the recent 12230 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the 12231 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any) 12232 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be 12233 * set by the driver. Setting this flag until and unless there is a 12234 * specific need is not recommended as there is a chance of some beacons 12235 * received after pause command and next start command being not 12236 * reported. 12237 */ 12238 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13, 12239 /* Attribute used for padding for 64-bit alignment */ 12240 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAD = 14, 12241 12242 /* Keep last */ 12243 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST, 12244 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX = 12245 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1 12246 }; 12247 12248 /** 12249 * enum qca_vendor_interop_issues_ap_type - Interop issue types 12250 * This enum defines the valid set of values of interop issue types. These 12251 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE. 12252 * 12253 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue 12254 * when the STA's Qpower feature is enabled. 12255 */ 12256 enum qca_vendor_interop_issues_ap_type { 12257 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0, 12258 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1, 12259 }; 12260 12261 /** 12262 * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues 12263 * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP. 12264 * 12265 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value 12266 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type 12267 * 32-bit unsigned value. The values defined in enum 12268 * qca_vendor_interop_issues_ap_type are used. 12269 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container 12270 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes. 12271 * It is present and mandatory for the command but is not used for the event 12272 * since only a single BSSID is reported in an event. 12273 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address. 12274 * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST 12275 * attribute in command case and without such encapsulation in the event case. 12276 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value 12277 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value 12278 */ 12279 enum qca_vendor_attr_interop_issues_ap { 12280 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID, 12281 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE, 12282 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST, 12283 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID, 12284 /* keep last */ 12285 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST, 12286 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX = 12287 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1 12288 }; 12289 12290 /** 12291 * enum qca_vendor_oem_device_type - Represents the target device in firmware. 12292 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO. 12293 * 12294 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for 12295 * a virtual device. 12296 * 12297 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for 12298 * a physical device. 12299 */ 12300 enum qca_vendor_oem_device_type { 12301 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0, 12302 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1, 12303 }; 12304 12305 /** 12306 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event 12307 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA. 12308 * 12309 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is 12310 * used to set/query the data to/from the firmware. On query, the same 12311 * attribute is used to carry the respective data in the reply sent by the 12312 * driver to userspace. The request to set/query the data and the format of the 12313 * respective data from the firmware are embedded in the attribute. The 12314 * maximum size of the attribute payload is 1024 bytes. 12315 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED 12316 * attribute when the data is queried from the firmware. 12317 * 12318 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed 12319 * based on this field. This optional attribute is included to specify whether 12320 * the device type is a virtual device or a physical device for the 12321 * command/event. This attribute can be omitted for a virtual device (default) 12322 * command/event. 12323 * This u8 attribute is used to carry information for the device type using 12324 * values defined by enum qca_vendor_oem_device_type. 12325 * 12326 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute 12327 * is set when the userspace queries data from the firmware. This attribute 12328 * should not be set when userspace sets the OEM data to the firmware. 12329 */ 12330 enum qca_wlan_vendor_attr_oem_data_params { 12331 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0, 12332 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1, 12333 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2, 12334 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3, 12335 12336 /* keep last */ 12337 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST, 12338 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX = 12339 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1 12340 }; 12341 12342 /** 12343 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be 12344 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT. 12345 * 12346 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required 12347 * Nested attribute containing multiple ranges with following attributes: 12348 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START, 12349 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and 12350 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM. 12351 * 12352 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32) 12353 * Starting center frequency in MHz. 12354 * 12355 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32) 12356 * Ending center frequency in MHz. 12357 * 12358 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM: 12359 * s32 attribute, optional. It is a per frequency range attribute. 12360 * The maximum TX power limit from user space is to be applied on an 12361 * unrestricted interface for corresponding frequency range. It is also 12362 * possible that the actual TX power may be even lower than this cap due to 12363 * other considerations such as regulatory compliance, SAR, etc. In absence of 12364 * this attribute the driver shall follow current behavior which means 12365 * interface (SAP/P2P) function can keep operating on an unsafe channel with TX 12366 * power derived by the driver based on regulatory/SAR during interface up. 12367 * 12368 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK: 12369 * u32 attribute, optional. Indicates all the interface types which are 12370 * restricted for all frequency ranges provided in 12371 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and 12372 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END. 12373 * This attribute encapsulates bitmasks of interface types defined in 12374 * enum nl80211_iftype. If an interface is marked as restricted the driver must 12375 * move to a safe channel and if no safe channel is available the driver shall 12376 * terminate that interface functionality. In absence of this attribute, 12377 * interface (SAP/P2P) can still continue operating on an unsafe channel with 12378 * TX power limit derived from either 12379 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on 12380 * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM 12381 * is not provided. 12382 * 12383 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFINDEX: u32 attribute, optional. 12384 * This specifies the interface index (netdev) for which the corresponding 12385 * configurations are applied. If the interface index is not specified, the 12386 * configurations are applied based on 12387 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK. 12388 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK along with this 12389 * attribute shall have the matching nl80211_iftype. 12390 */ 12391 enum qca_wlan_vendor_attr_avoid_frequency_ext { 12392 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0, 12393 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1, 12394 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2, 12395 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3, 12396 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4, 12397 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5, 12398 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFINDEX = 6, 12399 12400 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST, 12401 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX = 12402 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1 12403 }; 12404 12405 /* 12406 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command 12407 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE. 12408 */ 12409 enum qca_wlan_vendor_attr_add_sta_node_params { 12410 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0, 12411 /* 6 byte MAC address of STA */ 12412 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1, 12413 /* Authentication algorithm used by the station of size u16; 12414 * defined in enum nl80211_auth_type. 12415 */ 12416 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2, 12417 12418 /* 12419 * This flag attribute is set if the node being added is an 12420 * MLD STA node. 12421 */ 12422 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_IS_ML = 3, 12423 12424 /* keep last */ 12425 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST, 12426 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX = 12427 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1 12428 }; 12429 12430 /** 12431 * enum qca_btc_chain_mode - Specifies BT coex chain mode. 12432 * This enum defines the valid set of values of BT coex chain mode. 12433 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of 12434 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. 12435 * 12436 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared. 12437 * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are 12438 * separated, hybrid mode. 12439 * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are 12440 * separated, fixed FDD mode. 12441 */ 12442 enum qca_btc_chain_mode { 12443 QCA_BTC_CHAIN_SHARED = 0, 12444 QCA_BTC_CHAIN_SEPARATED_HYBRID = 1, 12445 QCA_BTC_CHAIN_SEPARATED_FDD = 2, 12446 }; 12447 12448 /* deprecated legacy name */ 12449 #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID 12450 12451 /** 12452 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex 12453 * chain mode. 12454 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. 12455 * 12456 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute. 12457 * Indicates the BT coex chain mode, are 32-bit values from 12458 * enum qca_btc_chain_mode. This attribute is mandatory. 12459 * 12460 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute. 12461 * If set, vdev should be restarted when BT coex chain mode is updated. 12462 * This attribute is optional. 12463 */ 12464 enum qca_vendor_attr_btc_chain_mode { 12465 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0, 12466 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1, 12467 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2, 12468 12469 /* Keep last */ 12470 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST, 12471 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX = 12472 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1, 12473 }; 12474 12475 /** 12476 * enum qca_vendor_wlan_sta_flags - Station feature flags 12477 * Bits will be set to 1 if the corresponding features are enabled. 12478 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station 12479 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled 12480 for the station 12481 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled 12482 for the station 12483 */ 12484 enum qca_vendor_wlan_sta_flags { 12485 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0), 12486 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1), 12487 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2), 12488 }; 12489 12490 /** 12491 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval 12492 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval 12493 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval 12494 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE 12495 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE 12496 */ 12497 enum qca_vendor_wlan_sta_guard_interval { 12498 QCA_VENDOR_WLAN_STA_GI_800_NS = 0, 12499 QCA_VENDOR_WLAN_STA_GI_400_NS = 1, 12500 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2, 12501 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3, 12502 }; 12503 12504 /** 12505 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes 12506 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command. 12507 * 12508 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC: 12509 * Required attribute in request for AP mode only, 6-byte MAC address, 12510 * corresponding to the station's MAC address for which information is 12511 * requested. For STA mode this is not required as the info always correspond 12512 * to the self STA and the current/last association. 12513 * 12514 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS: 12515 * Optionally used in response, u32 attribute, contains a bitmap of different 12516 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only. 12517 * 12518 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL: 12519 * Optionally used in response, u32 attribute, possible values are defined in 12520 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only. 12521 * Guard interval used by the station. 12522 * 12523 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT: 12524 * Optionally used in response, u32 attribute, used in AP mode only. 12525 * Value indicates the number of data frames received from station with retry 12526 * bit set to 1 in FC. 12527 * 12528 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT: 12529 * Optionally used in response, u32 attribute, used in AP mode only. 12530 * Counter for number of data frames with broadcast or multicast address in 12531 * the destination address received from the station. 12532 * 12533 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED: 12534 * Optionally used in response, u32 attribute, used in both STA and AP modes. 12535 * Value indicates the number of data frames successfully transmitted only 12536 * after retrying the packets and for which the TX status has been updated 12537 * back to host from target. 12538 * 12539 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED: 12540 * Optionally used in response, u32 attribute, used in both STA and AP mode. 12541 * Value indicates the number of data frames not transmitted successfully even 12542 * after retrying the packets for the number of times equal to the total number 12543 * of retries allowed for that packet and for which the TX status has been 12544 * updated back to host from target. 12545 * 12546 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL: 12547 * Optionally used in response, u32 attribute, used in AP mode only. 12548 * Counter in the target for the number of data frames successfully transmitted 12549 * to the station. 12550 * 12551 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY: 12552 * Optionally used in response, u32 attribute, used in AP mode only. 12553 * Value indicates the number of data frames successfully transmitted only 12554 * after retrying the packets. 12555 * 12556 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED: 12557 * Optionally used in response, u32 attribute, used in both STA & AP mode. 12558 * Value indicates the number of data frames not transmitted successfully even 12559 * after retrying the packets for the number of times equal to the total number 12560 * of retries allowed for that packet. 12561 * 12562 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in 12563 * the STA mode only. Represent the number of probe requests sent by the STA 12564 * while attempting to roam on missing certain number of beacons from the 12565 * connected AP. If queried in the disconnected state, this represents the 12566 * count for the last connected state. 12567 * 12568 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in 12569 * the STA mode. Represent the number of probe responses received by the station 12570 * while attempting to roam on missing certain number of beacons from the 12571 * connected AP. When queried in the disconnected state, this represents the 12572 * count when in last connected state. 12573 * 12574 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the 12575 * STA mode only. Represents the total number of frames sent out by STA 12576 * including Data, ACK, RTS, CTS, Control Management. This data is maintained 12577 * only for the connect session. Represents the count of last connected session, 12578 * when queried in the disconnected state. 12579 * 12580 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode. 12581 * Total number of RTS sent out by the STA. This data is maintained per connect 12582 * session. Represents the count of last connected session, when queried in the 12583 * disconnected state. 12584 * 12585 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the 12586 * STA mode.Represent the number of RTS transmission failure that reach retry 12587 * limit. This data is maintained per connect session. Represents the count of 12588 * last connected session, when queried in the disconnected state. 12589 * 12590 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in 12591 * the STA mode. Represent the total number of non aggregated frames transmitted 12592 * by the STA. This data is maintained per connect session. Represents the count 12593 * of last connected session, when queried in the disconnected state. 12594 * 12595 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the 12596 * STA mode. Represent the total number of aggregated frames transmitted by the 12597 * STA. This data is maintained per connect session. Represents the count of 12598 * last connected session, when queried in the disconnected state. 12599 * 12600 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in 12601 * the STA mode. Represents the number of received frames with a good PLCP. This 12602 * data is maintained per connect session. Represents the count of last 12603 * connected session, when queried in the disconnected state. 12604 * 12605 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32, 12606 * used in the STA mode. Represents the number of occasions that no valid 12607 * delimiter is detected by A-MPDU parser. This data is maintained per connect 12608 * session. Represents the count of last connected session, when queried in the 12609 * disconnected state. 12610 * 12611 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the 12612 * STA mode. Represents the number of frames for which CRC check failed in the 12613 * MAC. This data is maintained per connect session. Represents the count of 12614 * last connected session, when queried in the disconnected state. 12615 * 12616 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the 12617 * STA mode. Represents the number of unicast ACKs received with good FCS. This 12618 * data is maintained per connect session. Represents the count of last 12619 * connected session, when queried in the disconnected state. 12620 * 12621 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA 12622 * mode. Represents the number of received Block Acks. This data is maintained 12623 * per connect session. Represents the count of last connected session, when 12624 * queried in the disconnected state. 12625 * 12626 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA 12627 * mode. Represents the number of beacons received from the connected BSS. This 12628 * data is maintained per connect session. Represents the count of last 12629 * connected session, when queried in the disconnected state. 12630 * 12631 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the 12632 * STA mode. Represents the number of beacons received by the other BSS when in 12633 * connected state (through the probes done by the STA). This data is maintained 12634 * per connect session. Represents the count of last connected session, when 12635 * queried in the disconnected state. 12636 * 12637 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in 12638 * the STA mode. Represents the number of received DATA frames with good FCS and 12639 * matching Receiver Address when in connected state. This data is maintained 12640 * per connect session. Represents the count of last connected session, when 12641 * queried in the disconnected state. 12642 * 12643 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the 12644 * STA mode. Represents the number of RX Data multicast frames dropped by the HW 12645 * when in the connected state. This data is maintained per connect session. 12646 * Represents the count of last connected session, when queried in the 12647 * disconnected state. 12648 * 12649 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the 12650 * STA mode. This represents the target power in dBm for the transmissions done 12651 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per 12652 * connect session. Represents the count of last connected session, when 12653 * queried in the disconnected state. 12654 * 12655 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the 12656 * STA mode. This represents the Target power in dBm for transmissions done to 12657 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect 12658 * session. Represents the count of last connected session, when queried in the 12659 * disconnected state. 12660 * 12661 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the 12662 * STA mode. This represents the Target power in dBm for transmissions done to 12663 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session. 12664 * Represents the count of last connected session, when queried in the 12665 * disconnected state. 12666 * 12667 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the 12668 * STA mode. This represents the Target power in dBm for transmissions done to 12669 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect 12670 * session. Represents the count of last connected session, when queried in 12671 * the disconnected state. 12672 * 12673 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the 12674 * STA mode. This represents the Target power in dBm for transmissions done 12675 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session. 12676 * Represents the count of last connected session, when queried in the 12677 * disconnected state. 12678 * 12679 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used 12680 * in the STA mode. This represents the Nested attribute representing the 12681 * overflow counts of each receive buffer allocated to the hardware during the 12682 * STA's connection. The number of hw buffers might vary for each WLAN 12683 * solution and hence this attribute represents the nested array of all such 12684 * HW buffer count. This data is maintained per connect session. Represents 12685 * the count of last connected session, when queried in the disconnected state. 12686 * 12687 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm) 12688 * allowed as per the regulatory requirements for the current or last connected 12689 * session. Used in the STA mode. 12690 * 12691 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power 12692 * (dBm) used by the station in its latest unicast frame while communicating 12693 * to the AP in the connected state. When queried in the disconnected state, 12694 * this represents the TX power used by the STA with last AP communication 12695 * when in connected state. 12696 * 12697 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity 12698 * level used to adjust the RX sensitivity. Represents the current ANI level 12699 * when queried in the connected state. When queried in the disconnected 12700 * state, this corresponds to the latest ANI level at the instance of 12701 * disconnection. 12702 * 12703 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing 12704 * the raw information elements from Beacon frames. Represents the Beacon frames 12705 * of the current BSS in the connected state. When queried in the disconnected 12706 * state, these IEs correspond to the last connected BSSID. 12707 * 12708 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute 12709 * containing the raw information elements from Probe Response frames. 12710 * Represents the Probe Response frames of the current BSS in the connected 12711 * state. When queried in the disconnected state, these IEs correspond to the 12712 * last connected BSSID. 12713 * 12714 * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver 12715 * disconnect reason for the last disconnection if the disconnection is 12716 * triggered from the host driver. The values are referred from 12717 * enum qca_disconnect_reason_codes. 12718 * 12719 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode 12720 * only. This represents the number of group addressed robust management frames 12721 * received from this station with an invalid MIC or a missing MME when PMF is 12722 * enabled. 12723 * 12724 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode 12725 * only. This represents the number of group addressed robust management frames 12726 * received from this station with the packet number less than or equal to the 12727 * last received packet number when PMF is enabled. 12728 * 12729 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA 12730 * mode only. This represents the number of Beacon frames received from this 12731 * station with an invalid MIC or a missing MME when beacon protection is 12732 * enabled. 12733 * 12734 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode 12735 * only. This represents number of Beacon frames received from this station with 12736 * the packet number less than or equal to the last received packet number when 12737 * beacon protection is enabled. 12738 * 12739 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in 12740 * STA mode only. The driver uses this attribute to populate the connection 12741 * failure reason codes and the values are defined in 12742 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send 12743 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving 12744 * a connection failure indication from the driver. The driver shall not 12745 * include this attribute in response to the 12746 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no connection 12747 * failure observed in the last attempted connection. 12748 * 12749 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps) 12750 * used by the station in its last TX frame while communicating to the AP in the 12751 * connected state. When queried in the disconnected state, this represents the 12752 * rate used by the STA in the last TX frame to the AP when it was connected. 12753 * This attribute is used for STA mode only. 12754 * 12755 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only. 12756 * This represents the rate index used by the STA for the last TX frame to the 12757 * AP. When queried in the disconnected state, this gives the last RIX used by 12758 * the STA in the last TX frame to the AP when it was connected. 12759 * 12760 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA 12761 * mode only. This represents the number of times the STA TSF goes out of sync 12762 * from the AP after the connection. If queried in the disconnected state, this 12763 * gives the count of TSF out of sync for the last connection. 12764 * 12765 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA 12766 * mode only. This represents the roam trigger reason for the last roaming 12767 * attempted by the firmware. This can be queried either in connected state or 12768 * disconnected state. Each bit of this attribute represents the different 12769 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers. 12770 * 12771 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode 12772 * only. This represents the roam fail reason for the last failed roaming 12773 * attempt by the firmware. Different roam failure reason codes are specified 12774 * in enum qca_vendor_roam_fail_reasons. This can be queried either in 12775 * connected state or disconnected state. 12776 * 12777 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in 12778 * STA mode only. This represents the roam invoke fail reason for the last 12779 * failed roam invoke. Different roam invoke failure reason codes 12780 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be 12781 * queried either in connected state or disconnected state. 12782 * 12783 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only. 12784 * This represents the average congestion duration of uplink frames in MAC 12785 * queue in unit of ms. This can be queried either in connected state or 12786 * disconnected state. 12787 * 12788 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Array of u32 nested 12789 * values, used in AP mode. This represents the MPDU packet count per MCS 12790 * rate value of TX packets. Every index of this nested attribute corresponds 12791 * to MCS index, e.g., Index 0 represents MCS0 TX rate. This can be 12792 * queried in connected state. 12793 * 12794 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Array of u32 nested 12795 * values, used in AP mode. This represents the MPDU packet count per MCS 12796 * rate value of RX packets. Every index of this nested attribute corresponds 12797 * to MCS index, e.g., Index 0 represents MCS0 RX rate. This can be 12798 * queried in connected state. 12799 * 12800 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD: Attribute used for padding for 12801 * 64-bit alignment. 12802 * 12803 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER: u32, used in STA mode 12804 * only. This represents the average of the delta between successive uplink 12805 * frames congestion duration in MAC queue in unit of ms. This can be queried 12806 * either in connected state or disconnected state. 12807 * 12808 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT: Array of nested attributes, 12809 * used in STA mode. This represents the number of MSDU packets 12810 * (unicast/multicast/broadcast) transmitted/received with each NSS value. See 12811 * enum qca_wlan_vendor_attr_nss_pkt. 12812 */ 12813 enum qca_wlan_vendor_attr_get_sta_info { 12814 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0, 12815 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1, 12816 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2, 12817 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3, 12818 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4, 12819 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5, 12820 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6, 12821 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7, 12822 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8, 12823 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9, 12824 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10, 12825 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11, 12826 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12, 12827 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13, 12828 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14, 12829 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15, 12830 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16, 12831 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17, 12832 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18, 12833 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19, 12834 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20, 12835 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21, 12836 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22, 12837 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23, 12838 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24, 12839 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25, 12840 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26, 12841 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27, 12842 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28, 12843 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29, 12844 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30, 12845 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31, 12846 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32, 12847 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33, 12848 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34, 12849 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35, 12850 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36, 12851 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37, 12852 QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38, 12853 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39, 12854 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40, 12855 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41, 12856 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42, 12857 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43, 12858 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44, 12859 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45, 12860 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46, 12861 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47, 12862 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48, 12863 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49, 12864 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50, 12865 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51, 12866 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52, 12867 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD = 53, 12868 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER = 54, 12869 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT = 55, 12870 12871 /* keep last */ 12872 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST, 12873 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX = 12874 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1, 12875 }; 12876 12877 /** 12878 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes 12879 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command. 12880 * 12881 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC. 12882 * Used in STA mode. This attribute represents the list of channel center 12883 * frequencies in MHz (u32) the station has learnt during the last connection 12884 * or roaming attempt. This information shall not signify the channels for 12885 * an explicit scan request from the user space. Host drivers can update this 12886 * information to the user space in both connected and disconnected state. 12887 * In the disconnected state this information shall signify the channels 12888 * scanned in the last connection/roam attempt that lead to the disconnection. 12889 */ 12890 enum qca_wlan_vendor_attr_update_sta_info { 12891 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0, 12892 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1, 12893 12894 /* keep last */ 12895 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST, 12896 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX = 12897 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1, 12898 }; 12899 12900 /** 12901 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes. 12902 * Used when the driver triggers the STA to disconnect from the AP. 12903 * 12904 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the 12905 * disconnection with the AP due to unspecified reasons. 12906 * 12907 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the 12908 * disconnection with the AP due to a roaming failure. This roaming is triggered 12909 * internally (host driver/firmware). 12910 * 12911 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from 12912 * the AP when the user/external triggered roaming fails. 12913 * 12914 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used 12915 * by the host driver whenever gateway reachability failure is detected and the 12916 * driver disconnects with AP. 12917 * 12918 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from 12919 * the AP on a channel switch announcement from it with an unsupported channel. 12920 * 12921 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start 12922 * with indoor channels disabled and if the STA is connected on one of these 12923 * disabled channels, the host driver disconnected the STA with this reason 12924 * code. 12925 * 12926 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an 12927 * explicit request from the user to disable the current operating channel. 12928 * 12929 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to 12930 * the internal host driver/firmware recovery. 12931 * 12932 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on 12933 * a timeout for the key installations from the user space. 12934 * 12935 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the 12936 * STA on a band change request from the user space to a different band from the 12937 * current operation channel/band. 12938 * 12939 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an 12940 * interface down trigger from the user space. 12941 * 12942 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the 12943 * STA on getting continuous transmission failures for multiple Data frames. 12944 * 12945 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive 12946 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection 12947 * represents inactivity from AP on such transmissions. 12948 12949 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on 12950 * disconnection when SA Query times out (AP does not respond to SA Query). 12951 * 12952 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the 12953 * STA on missing the beacons continuously from the AP. 12954 * 12955 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not 12956 * able to move to the channel mentioned by the AP in CSA. 12957 * 12958 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection. 12959 */ 12960 enum qca_disconnect_reason_codes { 12961 QCA_DISCONNECT_REASON_UNSPECIFIED = 0, 12962 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1, 12963 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2, 12964 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3, 12965 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4, 12966 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5, 12967 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6, 12968 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7, 12969 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8, 12970 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9, 12971 QCA_DISCONNECT_REASON_IFACE_DOWN = 10, 12972 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11, 12973 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12, 12974 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13, 12975 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14, 12976 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15, 12977 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16, 12978 }; 12979 12980 /** 12981 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes 12982 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command. 12983 * 12984 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute. 12985 * This attribute represents the driver specific reason codes (local 12986 * driver/firmware initiated reasons for disconnection) defined 12987 * in enum qca_disconnect_reason_codes. 12988 */ 12989 enum qca_wlan_vendor_attr_driver_disconnect_reason { 12990 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0, 12991 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1, 12992 12993 /* keep last */ 12994 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST, 12995 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX = 12996 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1, 12997 }; 12998 12999 /** 13000 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request 13001 * 13002 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION. 13003 */ 13004 enum qca_wlan_tspec_operation { 13005 QCA_WLAN_TSPEC_ADD = 0, 13006 QCA_WLAN_TSPEC_DEL = 1, 13007 QCA_WLAN_TSPEC_GET = 2, 13008 }; 13009 13010 /** 13011 * enum qca_wlan_tspec_direction - Direction in TSPEC 13012 * As what is defined in IEEE Std 802.11-2016, Table 9-139. 13013 * 13014 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION. 13015 */ 13016 enum qca_wlan_tspec_direction { 13017 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0, 13018 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1, 13019 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2, 13020 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3, 13021 }; 13022 13023 /** 13024 * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC 13025 * As what is defined in IEEE Std 802.11-2016, Table 9-141. 13026 * 13027 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY. 13028 */ 13029 enum qca_wlan_tspec_ack_policy { 13030 QCA_WLAN_TSPEC_NORMAL_ACK = 0, 13031 QCA_WLAN_TSPEC_NO_ACK = 1, 13032 /* Reserved */ 13033 QCA_WLAN_TSPEC_BLOCK_ACK = 3, 13034 }; 13035 13036 /** 13037 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes 13038 * used by %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command. 13039 * 13040 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION: 13041 * u8 attribute. Specify the TSPEC operation of this request. Possible values 13042 * are defined in enum qca_wlan_tspec_operation. 13043 * Mandatory attribute for all kinds of config TSPEC requests. 13044 * 13045 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID: 13046 * u8 attribute. TS ID. Possible values are 0-7. 13047 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL, 13048 * QCA_WLAN_TSPEC_GET. A mandatory attribute. 13049 * 13050 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION: 13051 * u8 attribute. Direction of data carried by the TS. Possible values are 13052 * defined in enum qca_wlan_tspec_direction. 13053 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13054 * 13055 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD: 13056 * Flag attribute. Indicate whether APSD is enabled for the traffic associated 13057 * with the TS. set - enabled, not set - disabled. 13058 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13059 * 13060 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY: 13061 * u8 attribute. User priority to be used for the transport of MSDUs/A-MSDUs 13062 * belonging to this TS. Possible values are 0-7. 13063 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 13064 * 13065 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY: 13066 * u8 attribute. Indicate whether MAC acknowledgements are required for 13067 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements. 13068 * Possible values are defined in enum qca_wlan_tspec_ack_policy. 13069 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13070 * 13071 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE: 13072 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs 13073 * belonging to this TS. 13074 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13075 * 13076 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE: 13077 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs 13078 * belonging to this TS. 13079 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13080 * 13081 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL: 13082 * u32 attribute. Specify the minimum interval in microseconds between the 13083 * start of two successive SPs. 13084 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13085 * 13086 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL: 13087 * u32 attribute. Specify the maximum interval in microseconds between the 13088 * start of two successive SPs. 13089 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13090 * 13091 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL: 13092 * u32 attribute. Specify the minimum interval in microseconds that can elapse 13093 * without arrival or transfer of an MPDU belonging to the TS before this TS 13094 * is deleted by the MAC entity at the HC. 13095 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13096 * 13097 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL: 13098 * u32 attribute. Specify the minimum interval in microseconds that can elapse 13099 * without arrival or transfer of an MSDU belonging to the TS before the 13100 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of 13101 * 0xFFFFFFFF disables the suspension interval. The value of the suspension 13102 * interval is always less than or equal to the inactivity interval. 13103 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13104 * 13105 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE: 13106 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC 13107 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the 13108 * bounds of this TSPEC. 13109 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 13110 * 13111 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE: 13112 * u32 attribute. Indicate the average data rate in bps specified at the MAC 13113 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the 13114 * bounds of this TSPEC. 13115 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 13116 * 13117 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE: 13118 * u32 attribute. Indicate the maximum allowable data rate in bps specified at 13119 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within 13120 * the bounds of this TSPEC. 13121 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 13122 * 13123 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE: 13124 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs 13125 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A 13126 * value of 0 indicates that there are no bursts. 13127 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 13128 * 13129 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE: 13130 * u32 attribute. Indicate the minimum PHY rate in bps for transport of 13131 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC. 13132 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 13133 * 13134 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE: 13135 * u16 attribute. Specify the excess allocation of time (and bandwidth) over 13136 * and above the stated application rates required to transport an MSDU/A-MSDU 13137 * belonging to the TS in this TSPEC. 13138 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13139 */ 13140 enum qca_wlan_vendor_attr_config_tspec { 13141 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0, 13142 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1, 13143 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2, 13144 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3, 13145 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4, 13146 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5, 13147 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6, 13148 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7, 13149 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8, 13150 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9, 13151 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10, 13152 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11, 13153 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12, 13154 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13, 13155 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14, 13156 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15, 13157 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16, 13158 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17, 13159 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18, 13160 13161 /* keep last */ 13162 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST, 13163 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX = 13164 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1, 13165 }; 13166 13167 /** 13168 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type 13169 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame 13170 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame 13171 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request 13172 * frame 13173 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation 13174 * Request frame. 13175 */ 13176 enum qca_wlan_vendor_oci_override_frame_type { 13177 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1, 13178 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2, 13179 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3, 13180 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4, 13181 }; 13182 13183 /** 13184 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for 13185 * OCI override request. These attributes are used inside nested attribute 13186 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command 13187 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 13188 * 13189 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8. 13190 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this 13191 * attribute to specify the frame type in which the OCI is to be overridden. 13192 * 13193 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32) 13194 * OCI frequency (in MHz) to override in the specified frame type. 13195 */ 13196 enum qca_wlan_vendor_attr_oci_override { 13197 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0, 13198 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1, 13199 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2, 13200 13201 /* keep last */ 13202 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST, 13203 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX = 13204 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1, 13205 }; 13206 13207 /** 13208 * enum qca_wlan_medium_assess_type - Type of medium assess request 13209 * 13210 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE. 13211 */ 13212 enum qca_wlan_medium_assess_type { 13213 QCA_WLAN_MEDIUM_ASSESS_CCA = 0, 13214 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1, 13215 }; 13216 13217 /** 13218 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by 13219 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command. 13220 * 13221 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE: 13222 * u8 attribute. Mandatory in all kinds of medium assess requests/responses. 13223 * Specify the type of medium assess request and indicate its type in response. 13224 * Possible values are defined in enum qca_wlan_medium_assess_type. 13225 * 13226 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD: 13227 * u32 attribute. Mandatory in CCA request. 13228 * Specify the assessment period in terms of seconds. Assessment result will be 13229 * sent as the response to the CCA request after the assessment period. 13230 * 13231 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT: 13232 * u32 attribute. Mandatory in response to CCA request. 13233 * Total timer tick count of the assessment cycle. 13234 * 13235 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT: 13236 * u32 attribute. Mandatory in response to CCA request. 13237 * Timer tick count of idle time in the assessment cycle. 13238 * 13239 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT: 13240 * u32 attribute. Mandatory in response to CCA request. 13241 * Timer tick count of Intra BSS traffic RX time in the assessment cycle. 13242 * 13243 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT: 13244 * u32 attribute. Mandatory in response to CCA request. 13245 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle. 13246 * 13247 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI: 13248 * s32 attribute. Mandatory in response to CCA request. 13249 * Maximum RSSI of Intra BSS traffic in the assessment cycle. 13250 * 13251 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI: 13252 * s32 attribute. Mandatory in response to CCA request. 13253 * Minimum RSSI of Intra BSS traffic in the assessment cycle. 13254 * 13255 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE: 13256 * u8 attribute. Mandatory in congestion report request. 13257 * 1-enable 0-disable. 13258 * 13259 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD: 13260 * u8 attribute. Mandatory in congestion report enable request and will be 13261 * ignored if present in congestion report disable request. Possible values are 13262 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type 13263 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if 13264 * congestion percentage reaches the configured threshold. 13265 * 13266 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL: 13267 * u8 attribute. Optional in congestion report enable request and will be 13268 * ignored if present in congestion report disable request. 13269 * Specify the interval of congestion report event in terms of seconds. Possible 13270 * values are 1-255. Default value 1 will be used if this attribute is omitted 13271 * or using invalid values. 13272 * 13273 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE: 13274 * u8 attribute. Mandatory in congestion report event. 13275 * Indicate the actual congestion percentage. Possible values are 0-100. 13276 */ 13277 enum qca_wlan_vendor_attr_medium_assess { 13278 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0, 13279 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1, 13280 13281 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2, 13282 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3, 13283 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4, 13284 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5, 13285 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6, 13286 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7, 13287 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8, 13288 13289 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9, 13290 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10, 13291 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11, 13292 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12, 13293 13294 /* keep last */ 13295 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST, 13296 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX = 13297 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1, 13298 }; 13299 13300 /** 13301 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes 13302 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command. 13303 * 13304 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL: 13305 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1 13306 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV, 13307 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events. 13308 * 13309 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT: 13310 * u8 attribute, required. 1 means Tx VDEV up event. 0 means Tx VDEV down event. 13311 * 13312 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID: 13313 * u8 attribute, required. Indicates group id of Tx VDEV. 13314 * 13315 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO: 13316 * Nested attribute. This attribute shall be used by the driver to send 13317 * group information. The attributes defined in enum 13318 * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info 13319 * are nested in this attribute. 13320 */ 13321 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status { 13322 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0, 13323 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1, 13324 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2, 13325 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3, 13326 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4, 13327 13328 /* keep last */ 13329 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST, 13330 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX = 13331 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1, 13332 }; 13333 13334 /** 13335 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used 13336 * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute. 13337 * 13338 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX: 13339 * u32 attribute, required. Contains interface index. 13340 * 13341 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS: 13342 * u8 attribute, required. 0 - means vdev is in down state. 13343 * 1 - means vdev is in up state. 13344 */ 13345 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info { 13346 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0, 13347 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1, 13348 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2, 13349 13350 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST, 13351 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX = 13352 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1, 13353 }; 13354 13355 /** 13356 * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies 13357 * 13358 * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary 13359 * STA interface has to be given while selecting the connection policies 13360 * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface. 13361 * An interface is set as primary through the attribute 13362 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not 13363 * applicable if the primary interface has not been set earlier. 13364 * 13365 * The intention is not to downgrade the primary STA performance, such as: 13366 * - Do not reduce the number of TX/RX chains of primary connection. 13367 * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of 13368 * chains. 13369 * - If using MCC, should set the MCC duty cycle of the primary connection to 13370 * be higher than the secondary connection. 13371 * 13372 * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the 13373 * subsequent STA connection shall be chosen to balance with the existing 13374 * concurrent STA's performance. 13375 * Such as 13376 * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware 13377 * capability. 13378 * - If using MCC, set the MCC duty cycle of the primary connection to be equal 13379 * to the secondary. 13380 * - Prefer BSSID candidates which will help provide the best "overall" 13381 * performance for all the STA connections. 13382 */ 13383 enum qca_wlan_concurrent_sta_policy_config { 13384 QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0, 13385 QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1, 13386 }; 13387 13388 /** 13389 * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies 13390 * 13391 * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP 13392 * interface. 13393 * 13394 * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies 13395 * to meet gaming audio latency requirements. 13396 * This policy is used only when the driver advertises support for 13397 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN. 13398 * 13399 * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface 13400 * concurrencies to meet lossless audio streaming requirements. 13401 * This policy is used only when the driver advertises support for 13402 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN. 13403 * 13404 * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet 13405 * XR (eXtended Reality) requirements. 13406 */ 13407 enum qca_wlan_concurrent_ap_policy_config { 13408 QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0, 13409 QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1, 13410 QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2, 13411 QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3, 13412 }; 13413 13414 /** 13415 * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes 13416 * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command. 13417 * 13418 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG: 13419 * u8 attribute. Configures the concurrent STA policy configuration. 13420 * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config. 13421 13422 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG: 13423 * u8 attribute. Configures the concurrent AP policy configuration. 13424 * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config. 13425 */ 13426 enum qca_wlan_vendor_attr_concurrent_policy { 13427 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0, 13428 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1, 13429 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2, 13430 13431 /* keep last */ 13432 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST, 13433 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX = 13434 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1, 13435 13436 }; 13437 13438 /* Compatibility defines for previously used enum 13439 * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used 13440 * in any new implementation. 13441 */ 13442 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \ 13443 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG 13444 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \ 13445 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX 13446 #define qca_wlan_vendor_attr_concurrent_sta_policy \ 13447 qca_wlan_vendor_attr_concurrent_policy 13448 13449 /** 13450 * enum qca_sta_connect_fail_reason_codes - Defines values carried 13451 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor 13452 * attribute. 13453 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No Probe Response frame received 13454 * for unicast Probe Request frame. 13455 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request. 13456 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for 13457 * auth request. 13458 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not 13459 * received from AP. 13460 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send 13461 * Association Request frame. 13462 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for 13463 * Association Request frame. 13464 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Association Response 13465 * frame is not received from AP. 13466 */ 13467 enum qca_sta_connect_fail_reason_codes { 13468 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1, 13469 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2, 13470 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3, 13471 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4, 13472 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5, 13473 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6, 13474 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7, 13475 }; 13476 13477 /** 13478 * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different 13479 * filters defined in this enum are used in attribute 13480 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK. 13481 * 13482 * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver 13483 * shall filter the channels which are not usable because of coexistence with 13484 * cellular radio. 13485 * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver 13486 * shall filter the channels which are not usable because of existing active 13487 * interfaces in the driver and will result in Multi Channel Concurrency, etc. 13488 * 13489 */ 13490 enum qca_wlan_vendor_usable_channels_filter { 13491 QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0, 13492 QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1, 13493 }; 13494 13495 /** 13496 * enum qca_wlan_vendor_attr_chan_info - Attributes used inside 13497 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute. 13498 * 13499 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ: 13500 * u32 attribute, required. Indicates the center frequency of the primary 13501 * channel in MHz. 13502 * 13503 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ: 13504 * u32 attribute. Indicates the center frequency of the primary segment of the 13505 * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz, 13506 * 160 MHz, and 320 MHz channels. 13507 * 13508 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ: 13509 * u32 attribute. Indicates the center frequency of the secondary segment of 13510 * 80+80 channel in MHz. This attribute is required only when 13511 * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80. 13512 * 13513 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH: 13514 * u32 attribute, required. Indicates the bandwidth of the channel, possible 13515 * values are defined in enum nl80211_chan_width. 13516 * 13517 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK: 13518 * u32 attribute, required. Indicates all the interface types for which this 13519 * channel is usable. This attribute encapsulates bitmasks of interface types 13520 * defined in enum nl80211_iftype. 13521 * 13522 */ 13523 enum qca_wlan_vendor_attr_chan_info { 13524 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0, 13525 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1, 13526 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2, 13527 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3, 13528 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4, 13529 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5, 13530 13531 /* keep last */ 13532 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST, 13533 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX = 13534 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1, 13535 }; 13536 13537 /** 13538 * enum qca_wlan_vendor_attr_usable_channels - Attributes used by 13539 * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command. 13540 * 13541 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK: 13542 * u32 attribute. Indicates the bands from which the channels should be reported 13543 * in response. This attribute encapsulates bit masks of bands defined in enum 13544 * nl80211_band. Optional attribute, if not present in the request the driver 13545 * shall return channels from all supported bands. 13546 * 13547 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK: 13548 * u32 attribute. Indicates all the interface types for which the usable 13549 * channels information is requested. This attribute encapsulates bitmasks of 13550 * interface types defined in enum nl80211_iftype. Optional attribute, if not 13551 * present in the request the driver shall send information of all supported 13552 * interface modes. 13553 * 13554 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK: 13555 * u32 attribute. This attribute carries information of all filters that shall 13556 * be applied while populating usable channels information by the driver. This 13557 * attribute carries bit masks of different filters defined in enum 13558 * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present 13559 * in the request the driver shall send information of channels without applying 13560 * any of the filters that can be configured through this attribute. 13561 * 13562 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO: 13563 * Nested attribute. This attribute shall be used by the driver to send 13564 * usability information of each channel. The attributes defined in enum 13565 * qca_wlan_vendor_attr_chan_info are used inside this attribute. 13566 */ 13567 enum qca_wlan_vendor_attr_usable_channels { 13568 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0, 13569 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1, 13570 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2, 13571 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3, 13572 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4, 13573 13574 /* keep last */ 13575 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST, 13576 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX = 13577 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1, 13578 }; 13579 13580 /** 13581 * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command 13582 * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history. 13583 * 13584 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry 13585 * the list of radar history entries. 13586 * Each entry contains freq, timestamp, and radar signal detect flag. 13587 * The driver shall add an entry when CAC has finished, or radar signal 13588 * has been detected post AP beaconing. The driver shall maintain at least 13589 * 8 entries in order to save CAC result for a 160 MHz channel. 13590 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute. 13591 * Channel frequency in MHz. 13592 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds. 13593 * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC 13594 * or radar detection. 13595 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute. 13596 * This flag indicates radar signal has been detected. 13597 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD: Attribute used for padding for 13598 * 64-bit alignment. 13599 */ 13600 enum qca_wlan_vendor_attr_radar_history { 13601 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0, 13602 13603 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1, 13604 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2, 13605 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3, 13606 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4, 13607 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD = 5, 13608 13609 /* keep last */ 13610 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST, 13611 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX = 13612 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1, 13613 }; 13614 13615 /** 13616 * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type 13617 * 13618 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the 13619 * target exited MCC state and cleared the quota information. In the 13620 * command it clears MCC quota setting and restores adaptive scheduling. 13621 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and 13622 * will not be changed. 13623 * This quota type is present in command/event. 13624 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic 13625 * and the target may change the quota based on the data activity. 13626 * This quota type is only present in event. 13627 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized 13628 * by the target for low latency. 13629 * This quota type is only present in command. 13630 */ 13631 enum qca_wlan_vendor_mcc_quota_type { 13632 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0, 13633 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1, 13634 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2, 13635 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3, 13636 }; 13637 13638 /** 13639 * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event 13640 * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel 13641 * quota information or as a command to set the required MCC quota for an 13642 * interface. 13643 * 13644 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute. 13645 * The type is defined in enum qca_wlan_vendor_mcc_quota_type. 13646 * In a command this specifies the MCC quota type to be set for the interface. 13647 * In an event this provides the current quota type in force. 13648 * This is required in a command and an event. 13649 * 13650 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry 13651 * the list of channel quota entries. 13652 * In an event each entry contains the frequency and respective time quota for 13653 * all the MCC interfaces. 13654 * In a command it specifies the interface index and respective time quota. 13655 * In a command only one entry (ifindex, quota pair) may be specified. 13656 * 13657 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute. 13658 * Channel frequency in MHz. This is present only in an event. 13659 * 13660 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute. 13661 * Channel time quota expressed as percentage. 13662 * This is present in an event and a command. 13663 * In an command, the user shall specify the quota to be allocated for the 13664 * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX. 13665 * In an event this provides the existing quota for the channel. 13666 * 13667 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute. 13668 * Specifies the interface index (netdev) for which the corresponding 13669 * configurations are applied. This is required in a command only. Only one 13670 * interface index may be specified. If not specified, the configuration is 13671 * rejected. 13672 * 13673 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE 13674 * 8-bit unsigned value to enable/disable Multi-Channel Concurrency 13675 * low latency mode. The firmware will do optimization for low 13676 * latency in Multi-Channel concurrency state if enabled. And all existing 13677 * user quota setting will be overwritten by the target. 13678 * 0 - disable(default), 1 - enable. 13679 * It is only present in a command with quota type of 13680 * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY. 13681 */ 13682 enum qca_wlan_vendor_attr_mcc_quota { 13683 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0, 13684 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1, 13685 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2, 13686 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3, 13687 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4, 13688 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5, 13689 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6, 13690 13691 /* keep last */ 13692 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST, 13693 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX = 13694 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1, 13695 }; 13696 13697 /** 13698 * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values 13699 * are used by the attribute 13700 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON. 13701 * 13702 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target 13703 * invoke roam. 13704 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable 13705 * detection failed when the roam trigger. 13706 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space. 13707 */ 13708 13709 enum qca_wlan_roam_stats_invoke_reason { 13710 QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0, 13711 QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1, 13712 QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2, 13713 }; 13714 13715 /** 13716 * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These 13717 * values are used by the attribute 13718 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON. 13719 * 13720 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when 13721 * roam by kickout. 13722 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam 13723 * trigger by kickout. 13724 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when 13725 * roam trigger by kickout. 13726 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when 13727 * roam trigger by kickout. 13728 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has 13729 * disappeared, and all TX is failing when roam trigger by kickout. 13730 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process 13731 * timeout when roam trigger by kickout. 13732 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected 13733 * peer has roamed to a repeater. 13734 */ 13735 enum qca_wlan_roam_stats_tx_failures_reason { 13736 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0, 13737 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1, 13738 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2, 13739 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3, 13740 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4, 13741 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5, 13742 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6, 13743 }; 13744 13745 /** 13746 * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values 13747 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON. 13748 * 13749 * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the 13750 * detailed reason for roam scan being aborted. 13751 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not 13752 * started due to high data RSSI during LOW-RSSI roaming. 13753 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not 13754 * started due to good link speed during LOW-RSSI roaming. 13755 * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started 13756 * due to high data RSSI during background roaming. 13757 * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not 13758 * started due to high beacon RSSI during background roaming 13759 */ 13760 enum qca_wlan_roam_stats_abort_reason { 13761 QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0, 13762 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1, 13763 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2, 13764 QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3, 13765 QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4, 13766 }; 13767 13768 /** 13769 * enum qca_wlan_roam_stats_scan_type - Roam scan type define. 13770 * These values are used by the attribute 13771 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE. 13772 * 13773 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan 13774 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan 13775 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered. 13776 * This is generally used in BTM events to indicate BTM frame exchange logs. 13777 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan 13778 * from 2.4 GHz to 5 GHz or 6 GHz 13779 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from 13780 * 5 GHz to 6 GHz 13781 */ 13782 enum qca_wlan_roam_stats_scan_type { 13783 QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0, 13784 QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1, 13785 QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2, 13786 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3, 13787 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4, 13788 }; 13789 13790 /** 13791 * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type. 13792 * These values are used by the attribute 13793 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE. 13794 * 13795 * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the 13796 * detailed roam scan type. 13797 * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam. 13798 * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam. 13799 */ 13800 enum qca_wlan_roam_stats_scan_dwell_type { 13801 QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0, 13802 QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1, 13803 QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2, 13804 }; 13805 13806 /** 13807 * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside 13808 * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute. 13809 */ 13810 enum qca_wlan_vendor_attr_roam_stats_scan_chan_info { 13811 /* 32-bit unsigned value to indicate center frequency of the primary 13812 * channel in MHz for each roam scan channel. 13813 */ 13814 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1, 13815 /* 8-bit unsigned value to indicate channel scan type for each 13816 * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type. 13817 */ 13818 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2, 13819 /* 32-bit unsigned value to indicate maximum scan time in milliseconds 13820 * for each roam scan channel. 13821 */ 13822 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3, 13823 13824 /* keep last */ 13825 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST, 13826 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX = 13827 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1, 13828 }; 13829 13830 /** 13831 * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values 13832 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE. 13833 * 13834 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP: Authentication Response frame 13835 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP: Reassociation Response frame 13836 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame 13837 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame 13838 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame 13839 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame 13840 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame 13841 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame 13842 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ: Authentication Request frame 13843 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ: Reassociation Request frame 13844 */ 13845 enum qca_wlan_roam_stats_frame_subtype { 13846 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP = 1, 13847 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP = 2, 13848 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3, 13849 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4, 13850 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5, 13851 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6, 13852 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7, 13853 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8, 13854 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ = 9, 13855 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ = 10, 13856 }; 13857 13858 /* Compatibility defines for previously used names. 13859 * These values should not be used in any new implementation. 13860 */ 13861 #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH \ 13862 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP 13863 #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC \ 13864 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP 13865 13866 /** 13867 * enum roam_frame_status - Specifies the valid values the vendor roam frame 13868 * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take. 13869 * 13870 * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was 13871 * sent or received successfully. 13872 * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or 13873 * receiving failed. 13874 */ 13875 enum qca_wlan_roam_stats_frame_status { 13876 QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0, 13877 QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1, 13878 }; 13879 13880 /** 13881 * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the 13882 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute. 13883 */ 13884 enum qca_wlan_vendor_attr_roam_stats_frame_info { 13885 /* 8-bit unsigned value to indicate the frame subtype during 13886 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype. 13887 */ 13888 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1, 13889 /* 8-bit unsigned value to indicate the frame is successful or failed 13890 * during roaming, one of the values in 13891 * qca_wlan_roam_stats_frame_status. 13892 */ 13893 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2, 13894 /* 64-bit unsigned value to indicate the timestamp for frame of 13895 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4 13896 * when sent or received during roaming, timestamp in milliseconds 13897 * from system boot. 13898 */ 13899 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3, 13900 /* Attribute used for padding for 64-bit alignment */ 13901 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_PAD = 4, 13902 /* This attribute indicates a 6-byte MAC address representing 13903 * the BSSID of the AP. 13904 * For non-MLO scenario, it indicates the AP BSSID. 13905 * For MLO scenario, it indicates the AP BSSID which may be the primary 13906 * link BSSID or a nonprimary link BSSID. 13907 */ 13908 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_BSSID = 5, 13909 13910 /* keep last */ 13911 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST, 13912 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX = 13913 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1, 13914 }; 13915 13916 /** 13917 * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute 13918 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO. 13919 */ 13920 enum qca_wlan_vendor_attr_roam_stats_info { 13921 /* 64-bit unsigned value to indicate the timestamp when roam was 13922 * triggered by the firmware, timestamp in milliseconds from system 13923 * boot. 13924 */ 13925 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1, 13926 /* 32-bit unsigned value to indicate the roam trigger reason for the 13927 * last roaming attempted by the firmware. This can be queried either 13928 * in a connected state or disconnected state. The values of this 13929 * attribute represent the roam trigger reason codes, which 13930 * are defined in enum qca_roam_reason. 13931 */ 13932 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2, 13933 /* 8-bit unsigned value to indicate percentage of packets for which 13934 * the RX rate is lower than the RX rate threshold in total RX packets, 13935 * used for roaming trigger by per. 13936 */ 13937 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3, 13938 /* 8-bit unsigned value to indicate percentage of packets for which 13939 * the TX rate is lower than TX rate threshold in total TX packets, 13940 * used for roaming trigger by per. 13941 */ 13942 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4, 13943 /* 32-bit unsigned value to indicate final beacon miss count for 13944 * trigger reason of beacon miss. 13945 */ 13946 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5, 13947 /* 32-bit unsigned value to indicate consecutive beacon miss count 13948 * for trigger reason of beacon miss. 13949 */ 13950 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6, 13951 /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger 13952 * reason of beacon miss, 0 - success, 1 - fail. 13953 * If QOS-NULL TX status is successful, beacon miss final count and 13954 * consecutive beacon miss count will be reset to zero, and roam will 13955 * not be triggered. If QOS-NULL TX status is failed, beacon miss final 13956 * count and consecutive beacon miss count continue to calculate until 13957 * roaming trigger by beacon miss. 13958 */ 13959 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7, 13960 /* 8-bit signed value to indicate connected AP RSSI in dBm 13961 * for trigger reason of poor RSSI. 13962 */ 13963 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8, 13964 /* 8-bit signed value to indicate RSSI threshold value in dBm 13965 * for trigger reason of poor RSSI. 13966 */ 13967 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9, 13968 /* 8-bit unsigned value to indicate RX link speed status 13969 * for trigger reason of poor RSSI, 0 - good link speed, 13970 * 1 - bad link speed. 13971 */ 13972 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10, 13973 /* 8-bit signed value to indicate connected AP RSSI in dBm 13974 * for trigger reason of better RSSI. 13975 */ 13976 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11, 13977 /* 8-bit signed value to indicate RSSI threshold value in dBm 13978 * for trigger reason of better RSSI. 13979 */ 13980 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12, 13981 /* 32-bit unsigned value to indicate RX throughput in bytes per second 13982 * for trigger reason of congestion. 13983 */ 13984 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13, 13985 /* 32-bit unsigned value to indicate TX throughput in bytes per second 13986 * for trigger reason of congestion. 13987 */ 13988 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14, 13989 /* 8-bit unsigned value to indicate roamable AP count 13990 * for trigger reason of congestion. 13991 */ 13992 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15, 13993 /* 8-bit unsigned value to indicate invoke reason, one of the values 13994 * defined in qca_wlan_roam_stats_invoke_reason. 13995 */ 13996 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16, 13997 /* 8-bit unsigned value to indicate request mode for trigger reason 13998 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9. 13999 */ 14000 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17, 14001 /* 32-bit unsigned value to indicate disassociate time in milliseconds 14002 * for trigger reason of BTM. 14003 */ 14004 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18, 14005 /* 32-bit unsigned value to indicate preferred candidate list valid 14006 * interval in milliseconds for trigger reason of BTM. 14007 */ 14008 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19, 14009 /* 8-bit unsigned value to indicate the number of preferred 14010 * candidates for trigger reason of BTM. 14011 */ 14012 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20, 14013 /* 8-bit unsigned value to indicate response status for trigger 14014 * reason of BTM, values are defined in IEEE Std 802.11-2020, 14015 * Table 9-428 (BTM status code definitions). 14016 */ 14017 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21, 14018 /* 32-bit unsigned value to indicate BSS termination timeout value 14019 * in milliseconds for trigger reason of BTM. 14020 */ 14021 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22, 14022 /* 32-bit unsigned value to indicate MBO associate retry timeout 14023 * value in milliseconds for trigger reason of BTM. 14024 */ 14025 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23, 14026 /* 8-bit unsigned value to indicate dialog token number 14027 * for trigger reason of BTM. 14028 */ 14029 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24, 14030 /* 8-bit unsigned value to indicate percentage of connected AP 14031 * channel congestion utilization for trigger reason of BSS load. 14032 */ 14033 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25, 14034 /* 8-bit unsigned value to indicate disconnection type 14035 * for trigger reason of disconnection. 1 - Deauthentication, 14036 * 2 - Disassociation. 14037 */ 14038 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26, 14039 /* 16-bit unsigned value to indicate deauthentication or disassociation 14040 * reason for trigger reason of disconnection, values are defined 14041 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes). 14042 */ 14043 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27, 14044 /* 32-bit unsigned value to indicate milliseconds of roam scan 14045 * periodicity when needing to roam to find a better AP for trigger 14046 * reason of periodic timer. 14047 */ 14048 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28, 14049 /* 8-bit signed value to indicate connected AP RSSI in dBm for 14050 * trigger reason of background scan. 14051 */ 14052 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29, 14053 /* 8-bit signed value to indicate data RSSI in dBm for trigger reason 14054 * of background scan. 14055 */ 14056 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30, 14057 /* 8-bit signed value to indicate data RSSI threshold in dBm 14058 * for trigger reason of background scan. 14059 */ 14060 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31, 14061 /* 32-bit unsigned value to indicate consecutive TX failure threshold 14062 * for trigger reason of TX failures. 14063 */ 14064 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32, 14065 /* 8-bit unsigned value to indicate TX failure reason for trigger 14066 * reason of TX failures, one of the values defined in 14067 * qca_wlan_roam_stats_tx_failures_reason. 14068 */ 14069 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33, 14070 /* 8-bit unsigned value to indicate detail abort reason. One of the 14071 * values in enum qca_wlan_roam_stats_abort_reason. 14072 */ 14073 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34, 14074 /* 8-bit signed value to indicate data RSSI in dBm when aborting the 14075 * roam scan. 14076 */ 14077 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35, 14078 /* 8-bit signed value to indicate data RSSI threshold in dBm when 14079 * aborting the roam scan. 14080 */ 14081 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36, 14082 /* 8-bit unsigned value to indicate data RSSI threshold in RX link 14083 * speed status when aborting the roam scan. 14084 * 0 - good link speed, 1 - bad link speed 14085 */ 14086 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37, 14087 /* 8-bit unsigned value to indicate roaming scan type. 14088 * One of the values in enum qca_wlan_roam_stats_scan_type. 14089 */ 14090 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38, 14091 /* 8-bit unsigned value to indicate roaming result, used in STA mode 14092 * only. 14093 * 0-Roaming is successful, 1-Roaming is failed 14094 */ 14095 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39, 14096 /* 8-bit unsigned value to indicate the roam fail reason for the 14097 * last failed roaming attempt by the firmware. Different roam failure 14098 * reason codes are specified in enum qca_vendor_roam_fail_reasons. 14099 * This can be queried either in connected state or disconnected state. 14100 */ 14101 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40, 14102 /* Nested attribute. Indicate roam scan info for each channel, the 14103 * attributes defined in enum 14104 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside 14105 * this attribute. 14106 */ 14107 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41, 14108 /* 32-bit unsigned value to indicate total scan time during roam scan 14109 * all channels, time in milliseconds. 14110 */ 14111 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42, 14112 /* Nested attribute. This attribute shall be used by the driver to 14113 * send roam information of each subtype. The attributes defined in 14114 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside 14115 * this attribute. 14116 */ 14117 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43, 14118 /* Attribute used for padding for 64-bit alignment */ 14119 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PAD = 44, 14120 /* 6-byte MAC address used by the driver to send roam stats information 14121 * of the original AP BSSID. The original AP is the connected AP before 14122 * roam happens, regardless of the roam resulting in success or failure. 14123 * This attribute is only present when 14124 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of 14125 * 0 (success) or 1 (failure). 14126 * For non-MLO scenario, it indicates the original connected AP BSSID. 14127 * For MLO scenario, it indicates the original BSSID of the link 14128 * for which the reassociation occurred during the roam. 14129 */ 14130 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45, 14131 /* 6-byte MAC address used by the driver to send roam stats information 14132 * of the roam candidate AP BSSID when roam failed. This is only present 14133 * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of 14134 * 1 (failure). If the firmware updates more than one candidate AP BSSID 14135 * to the driver, the driver only fills the last candidate AP BSSID and 14136 * reports it to user space. 14137 * For non-MLO scenario, it indicates the last candidate AP BSSID. 14138 * For MLO scenario, it indicates the AP BSSID which may be the primary 14139 * link BSSID or a nonprimary link BSSID. 14140 */ 14141 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46, 14142 /* 6-byte MAC address used by the driver to send roam stats information 14143 * of the roamed AP BSSID when roam succeeds. This is only present when 14144 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of 14145 * 0 (success). 14146 * For non-MLO scenario, it indicates the new AP BSSID to which has 14147 * been successfully roamed. 14148 * For MLO scenario, it indicates the new AP BSSID of the link on 14149 * which the reassociation occurred during the roam. 14150 */ 14151 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47, 14152 14153 /* keep last */ 14154 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST, 14155 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX = 14156 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1, 14157 }; 14158 14159 /** 14160 * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to 14161 * report cached roam info from the driver to user space, enum values are used 14162 * for netlink attributes sent with the 14163 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command. 14164 */ 14165 enum qca_wlan_vendor_attr_roam_cached_stats { 14166 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0, 14167 /* Nested attribute, this attribute contains nested array roam info 14168 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info. 14169 */ 14170 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1, 14171 14172 /* keep last */ 14173 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST, 14174 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX = 14175 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1, 14176 }; 14177 14178 /** 14179 * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for 14180 * radio configurations present in each radio combination. 14181 * 14182 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates 14183 * the band info in the radio configuration. Uses the enum qca_set_band values. 14184 * 14185 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates 14186 * the number of antennas info in the radio configuration. 14187 */ 14188 enum qca_wlan_vendor_attr_supported_radio_cfg { 14189 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0, 14190 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1, 14191 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2, 14192 14193 /* keep last */ 14194 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST, 14195 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX = 14196 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1, 14197 }; 14198 14199 /** 14200 * enum qca_wlan_vendor_attr_radio_combination - Attributes for 14201 * radio combinations supported by the device. 14202 * 14203 * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute 14204 * provides the radio configurations present in the radio combination. 14205 * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes. 14206 * This attribute provides the values for radio combination matrix. 14207 * For standalone config, the number of config values is one and the config 14208 * carries the band and antenna information for standalone configuration. For 14209 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode 14210 * configuration the number of config values is two and the config carries the 14211 * band and antenna information for each simultaneous radio. 14212 */ 14213 enum qca_wlan_vendor_attr_radio_combination { 14214 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0, 14215 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1, 14216 14217 /* keep last */ 14218 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST, 14219 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX = 14220 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1, 14221 }; 14222 14223 /** 14224 * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by 14225 * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX 14226 * 14227 * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute 14228 * provides the radio combinations supported by the device. 14229 * Uses the enum qca_wlan_vendor_attr_radio_combination attributes. 14230 * For example, in the radio combination matrix for a device which has two 14231 * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is 14232 * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio 14233 * combinations is 5 and the radio combinations are 14234 * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz 14235 * {{5 GHz 2X2}}, //Standalone 5 GHz 14236 * {{6 GHz 2X2}}, //Standalone 6 GHz 14237 * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS 14238 * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS 14239 * The band and antenna info together as nested data provides one radio config. 14240 * Standalone configuration has one config with band and antenna nested data. 14241 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration 14242 * have two nested band and antenna info data. 14243 */ 14244 enum qca_wlan_vendor_attr_radio_combination_matrix { 14245 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0, 14246 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1, 14247 14248 /* keep last */ 14249 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST, 14250 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX = 14251 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1, 14252 }; 14253 14254 /** 14255 * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by 14256 * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command. 14257 * 14258 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag) 14259 * Enable mDNS offload. This attribute is mandatory to enable 14260 * mDNS offload feature. If this attribute is not present, mDNS offload 14261 * is disabled. 14262 * 14263 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing 14264 * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This 14265 * attribute is mandatory when enabling the feature, and not required when 14266 * disabling the feature. 14267 * 14268 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing 14269 * the following attributes: 14270 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN 14271 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT 14272 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD 14273 * 14274 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute. 14275 * It consists of a hostname and ".local" as the domain name. The character 14276 * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes. 14277 * It is used to compare the domain in the "QU" query. Only 1 FQDN is 14278 * supported per vdev. 14279 * For example: myphone.local 14280 * 14281 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required 14282 * u16 attribute. It specifies the total number of resource records present 14283 * in the answer section of the answer payload. This attribute is needed by the 14284 * firmware to populate the mDNS response frame for mDNS queries without having 14285 * to parse the answer payload. 14286 * 14287 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required binary blob 14288 * attribute sent by the mdnsResponder from userspace. It contains resource 14289 * records of various types (e.g., A, AAAA, PTR, TXT) and service list. This 14290 * payload is passed down to the firmware and is transmitted in response to 14291 * mDNS queries. 14292 * The maximum supported size of the answer payload is 512 bytes. 14293 */ 14294 enum qca_wlan_vendor_attr_mdns_offload { 14295 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0, 14296 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1, 14297 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2, 14298 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3, 14299 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4, 14300 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5, 14301 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6, 14302 14303 /* keep last */ 14304 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST, 14305 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX = 14306 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1, 14307 }; 14308 14309 /** 14310 * qca_wlan_vendor_monitor_data_frame_type - Represent the various 14311 * Data frame types to be sent over the monitor interface. 14312 */ 14313 enum qca_wlan_vendor_monitor_data_frame_type { 14314 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0), 14315 /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is not set 14316 */ 14317 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1), 14318 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2), 14319 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3), 14320 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4), 14321 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5), 14322 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6), 14323 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7), 14324 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8), 14325 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9), 14326 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10), 14327 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11), 14328 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12), 14329 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13), 14330 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14), 14331 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15), 14332 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16), 14333 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17), 14334 }; 14335 14336 /** 14337 * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various 14338 * Management frame types to be sent over the monitor interface. 14339 * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the Management Frames. 14340 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the Management frames 14341 * except the Beacon frame. 14342 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected 14343 * BSSID Beacon frames. Valid only in the connected state. 14344 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents 14345 * the Beacon frames obtained during the scan (off channel and connected 14346 * channel), when in connected state. 14347 */ 14348 enum qca_wlan_vendor_monitor_mgmt_frame_type { 14349 QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0), 14350 /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set 14351 */ 14352 QCA_WLAN_VENDOR_MONITOR_MGMT_NO_BEACON = BIT(1), 14353 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2), 14354 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3), 14355 }; 14356 14357 /** 14358 * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various 14359 * Control frame types to be sent over the monitor interface. 14360 * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the Control frames 14361 * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger frame 14362 */ 14363 enum qca_wlan_vendor_monitor_ctrl_frame_type { 14364 QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0), 14365 /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set 14366 */ 14367 QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1), 14368 }; 14369 14370 /** 14371 * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the 14372 * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the 14373 * monitor mode. 14374 * 14375 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute. 14376 * Represents the TX Data frame types to be monitored (u32). These Data frames 14377 * are represented by enum qca_wlan_vendor_monitor_data_frame_type. 14378 * 14379 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute. 14380 * Represents the RX Data frame types to be monitored (u32). These Data frames 14381 * are represented by enum qca_wlan_vendor_monitor_data_frame_type. 14382 * 14383 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute. 14384 * Represents the TX Management frame types to be monitored (u32). These 14385 * Management frames are represented by 14386 * enum qca_wlan_vendor_monitor_mgmt_frame_type. 14387 * 14388 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute. 14389 * Represents the RX Management frame types to be monitored (u32). These 14390 * Management frames are represented by 14391 * enum qca_wlan_vendor_monitor_mgmt_frame_type. 14392 * 14393 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute. 14394 * Represents the TX Control frame types to be monitored (u32). These Control 14395 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type. 14396 * 14397 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute. 14398 * Represents the RX Control frame types to be monitored (u32). These Control 14399 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type. 14400 * 14401 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: u32 14402 * attribute. 14403 * Represents the interval in milliseconds only for the connected Beacon frames, 14404 * expecting the connected BSS's Beacon frames to be sent on the monitor 14405 * interface at this specific interval. 14406 */ 14407 enum qca_wlan_vendor_attr_set_monitor_mode { 14408 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0, 14409 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1, 14410 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2, 14411 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3, 14412 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4, 14413 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5, 14414 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6, 14415 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7, 14416 14417 /* keep last */ 14418 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST, 14419 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX = 14420 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1, 14421 }; 14422 14423 /** 14424 * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags. 14425 * Bits will be set to 1 if the corresponding state is enabled. 14426 * 14427 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start. 14428 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end. 14429 */ 14430 enum qca_wlan_vendor_roam_scan_state { 14431 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0), 14432 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1), 14433 }; 14434 14435 /** 14436 * enum qca_wlan_vendor_roam_event_type - Roam event type flags. 14437 * Bits will be set to 1 if the corresponding event is notified. 14438 * 14439 * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event 14440 * carries the trigger reason. When set, it is expected that the roam event 14441 * carries the respective reason via the attribute 14442 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries 14443 * the BSSID, RSSI, frequency info of the AP to which the roam is attempted. 14444 * 14445 * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event 14446 * carries the roam fail reason. When set, it is expected that the roam event 14447 * carries the respective reason via the attribute 14448 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the 14449 * BSSID, RSSI, frequency info of the AP to which the roam was attempted. 14450 * 14451 * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam 14452 * event carries the roam invoke fail reason. When set, it is expected that 14453 * the roam event carries the respective reason via the attribute 14454 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON. 14455 * 14456 * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event 14457 * carries the roam scan state. When set, it is expected that the roam event 14458 * carries the respective scan state via the attribute 14459 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding 14460 * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST. 14461 */ 14462 enum qca_wlan_vendor_roam_event_type { 14463 QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0), 14464 QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1), 14465 QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2), 14466 QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3), 14467 }; 14468 14469 /** 14470 * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info. 14471 * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO. 14472 * 14473 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address 14474 * representing the BSSID of the AP to which the roam is attempted. 14475 * 14476 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value 14477 * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is 14478 * attempted. 14479 * 14480 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, frequency in MHz 14481 * on which the roam is attempted. 14482 * 14483 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in 14484 * STA mode only. This represents the roam fail reason for the last failed 14485 * roaming attempt by the firmware for the specific BSSID. Different roam 14486 * failure reason codes are specified in enum qca_vendor_roam_fail_reasons. 14487 */ 14488 enum qca_wlan_vendor_attr_roam_events_candidate_info { 14489 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0, 14490 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1, 14491 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2, 14492 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3, 14493 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4, 14494 14495 /* keep last */ 14496 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST, 14497 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX = 14498 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1, 14499 }; 14500 14501 /** 14502 * enum qca_wlan_vendor_attr_roam_events - Used by the 14503 * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the 14504 * roam events to the driver or notify these events from the driver. 14505 * 14506 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the 14507 * driver/firmware to enable/disable the notification of roam events. It's a 14508 * mandatory attribute and used only in the request from the userspace to the 14509 * host driver. 1-Enable, 0-Disable. 14510 * If the roaming is totally offloaded to the firmware, this request when 14511 * enabled shall mandate the firmware to notify all the relevant roam events 14512 * represented by the below attributes. If the host is in the suspend mode, 14513 * the behavior of the firmware to notify these events is guided by 14514 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get 14515 * these events in the suspend state, the firmware is expected to wake up the 14516 * host before the respective events are notified. Please note that such a 14517 * request to get the events in the suspend state will have a definite power 14518 * implication. 14519 * 14520 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents 14521 * that the roam events need to be notified in the suspend state too. By 14522 * default, these roam events are notified in the resume state. With this flag, 14523 * the roam events are notified in both resume and suspend states. 14524 * This attribute is used in the request from the userspace to the host driver. 14525 * 14526 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only. 14527 * Represents the different roam event types, signified by the enum 14528 * qca_wlan_vendor_roam_event_type. 14529 * Each bit of this attribute represents the different roam even types reported 14530 * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14531 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14532 * 14533 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA 14534 * mode only. This represents the roam trigger reason for the last roaming 14535 * attempted by the firmware. Each bit of this attribute represents the 14536 * different roam trigger reason code which are defined in enum 14537 * qca_vendor_roam_triggers. 14538 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14539 * 14540 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in 14541 * STA mode only. This represents the roam invoke fail reason for the last 14542 * failed roam invoke. Different roam invoke failure reason codes 14543 * are specified in enum qca_vendor_roam_invoke_fail_reasons. 14544 * 14545 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info 14546 * for which the roam is attempted. Each entry is a nested attribute defined 14547 * by enum qca_wlan_vendor_attr_roam_events_candidate_info. 14548 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14549 * 14550 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents 14551 * the scan state on which the roam events need to be notified. The values for 14552 * this attribute are referred from enum qca_wlan_vendor_roam_scan_state. 14553 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14554 * 14555 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of 14556 * u32 values. List of frequencies in MHz considered for a roam scan. 14557 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14558 */ 14559 enum qca_wlan_vendor_attr_roam_events { 14560 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0, 14561 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1, 14562 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2, 14563 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3, 14564 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4, 14565 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5, 14566 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6, 14567 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7, 14568 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8, 14569 14570 /* keep last */ 14571 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST, 14572 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX = 14573 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1, 14574 }; 14575 14576 /** 14577 * enum qca_wlan_ratemask_params_type - Rate mask config type 14578 * 14579 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK/OFDM rate mask config 14580 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config 14581 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config 14582 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config 14583 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_EHT: EHT rate mask config 14584 */ 14585 enum qca_wlan_ratemask_params_type { 14586 QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0, 14587 QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1, 14588 QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2, 14589 QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3, 14590 QCA_WLAN_RATEMASK_PARAMS_TYPE_EHT = 4, 14591 }; 14592 14593 /** 14594 * enum qca_wlan_vendor_attr_ratemask_params - Used by the 14595 * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG. 14596 * This is used to set the rate mask value to be used in rate selection. 14597 * 14598 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST: 14599 * Array of nested containing attributes 14600 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and 14601 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP. 14602 * 14603 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents 14604 * the different PHY types to which the rate mask config is to be applied. 14605 * The values for this attribute are referred from enum 14606 * qca_wlan_vendor_ratemask_params_type. 14607 * 14608 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap. 14609 * A bit value of 1 represents rate is enabled and a value of 0 14610 * represents rate is disabled. 14611 * For EHT targets, 14612 * b0-1 => NSS1, MCS 14-15 14613 * b2-15 => NSS1, MCS 0-13 14614 * b16-29 => NSS2, MCS 0-13 14615 * For HE targets, 14 bits correspond to one NSS setting. 14616 * b0-13 => NSS1, MCS 0-13 14617 * b14-27 => NSS2, MCS 0-13 and so on for other NSS. 14618 * For VHT targets, 10 bits correspond to one NSS setting. 14619 * b0-9 => NSS1, MCS 0-9 14620 * b10-19 => NSS2, MCS 0-9 and so on for other NSS. 14621 * For HT targets, 8 bits correspond to one NSS setting. 14622 * b0-7 => NSS1, MCS 0-7 14623 * b8-15 => NSS2, MCS 0-7 and so on for other NSS. 14624 * For OFDM/CCK targets, 8 bits correspond to one NSS setting. 14625 * 14626 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LINK_ID: u8, used to specify the 14627 * MLO link ID of a link to be configured. Optional attribute. 14628 * No need of this attribute in non-MLO cases. If the attribute is 14629 * not provided, ratemask will be applied for setup link. 14630 */ 14631 enum qca_wlan_vendor_attr_ratemask_params { 14632 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_INVALID = 0, 14633 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1, 14634 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2, 14635 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3, 14636 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LINK_ID = 4, 14637 14638 /* keep last */ 14639 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST, 14640 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX = 14641 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1, 14642 }; 14643 14644 /** 14645 * enum qca_wlan_audio_data_path - Defines the data path to be used for audio 14646 * traffic. 14647 * 14648 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR: 14649 * Send audio traffic through the host processor. 14650 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP: 14651 * Send audio traffic using the low power DSP to/from the encoder. 14652 */ 14653 enum qca_wlan_audio_data_path { 14654 QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR = 0, 14655 QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP = 1, 14656 }; 14657 14658 /** 14659 * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys 14660 * for) or drop existing PASN security association for the listed the 14661 * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver 14662 * to userspace. 14663 * 14664 * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer 14665 * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR. 14666 * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from 14667 * the driver to userspace to inform that the existing PASN keys of the 14668 * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are 14669 * not valid anymore. 14670 */ 14671 enum qca_wlan_vendor_pasn_action { 14672 QCA_WLAN_VENDOR_PASN_ACTION_AUTH, 14673 QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT, 14674 }; 14675 14676 /** 14677 * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in 14678 * QCA_WLAN_VENDOR_ATTR_PASN_PEERS. 14679 * 14680 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the 14681 * event from the driver to userspace and represents the local MAC address 14682 * to be used for PASN handshake. When this attribute is present, userspace 14683 * shall use the source address specified in this attribute by the driver 14684 * for PASN handshake with peer device. 14685 * This attribute is required in a command response from userspace to the 14686 * driver and represents the MAC address that was used in PASN handshake 14687 * with the peer device. 14688 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the 14689 * peer device to which PASN handshake is requested in an event from the 14690 * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to 14691 * QCA_WLAN_VENDOR_PASN_ACTION_AUTH. 14692 * Indicates the MAC address of the peer device for which the keys are to 14693 * be invalidated in an event from the driver to userspace when 14694 * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to 14695 * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT. 14696 * Indicates the MAC address of the peer device for which the status is 14697 * being sent in a status report from userspace to the driver. 14698 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used 14699 * in the event from the driver to userspace. When set, userspace is 14700 * required to derive LTF key seed from KDK and set it to the driver. 14701 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This 14702 * attribute is used in the command response from userspace to the driver. 14703 * If present, it indicates the successful PASN handshake with the peer. If 14704 * this flag is not present, it indicates that the PASN handshake with the 14705 * peer device failed. 14706 */ 14707 enum qca_wlan_vendor_attr_pasn_peer { 14708 QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0, 14709 QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1, 14710 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2, 14711 QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3, 14712 QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4, 14713 14714 /* keep last */ 14715 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST, 14716 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX = 14717 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1, 14718 }; 14719 14720 /** 14721 * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the 14722 * QCA_NL80211_VENDOR_SUBCMD_PASN command. 14723 * 14724 * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are 14725 * defined in enum qca_wlan_vendor_pasn_action and used only in an event 14726 * from the driver to userspace. 14727 * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer 14728 * details for each peer and used in both an event and a command response. 14729 * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are 14730 * defined in enum qca_wlan_vendor_attr_pasn_peer. 14731 * @QCA_WLAN_VENDOR_ATTR_PASN_LINK_ID: u8 attribute used to identify a 14732 * specific link affiliated to an MLD. 14733 */ 14734 enum qca_wlan_vendor_attr_pasn { 14735 QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0, 14736 QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1, 14737 QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2, 14738 QCA_WLAN_VENDOR_ATTR_PASN_LINK_ID = 3, 14739 14740 /* keep last */ 14741 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST, 14742 QCA_WLAN_VENDOR_ATTR_PASN_MAX = 14743 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1, 14744 }; 14745 14746 /** 14747 * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete 14748 * the ranging security context derived from PASN for each peer. Used in 14749 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION. 14750 * 14751 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging 14752 * context for the peer. 14753 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging 14754 * context for the peer. 14755 */ 14756 enum qca_wlan_vendor_secure_ranging_ctx_action { 14757 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD, 14758 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE, 14759 }; 14760 14761 /** 14762 * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type 14763 * used for deriving PASN keys to the driver. Used in 14764 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE 14765 * @QCA_WLAN_VENDOR_SHA_256: SHA-256 14766 * @QCA_WLAN_VENDOR_SHA_384: SHA-384 14767 */ 14768 enum qca_wlan_vendor_sha_type { 14769 QCA_WLAN_VENDOR_SHA_256, 14770 QCA_WLAN_VENDOR_SHA_384, 14771 }; 14772 14773 /** 14774 * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used 14775 * to set security context for the PASN peer from userspace to the driver. 14776 * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT. 14777 * 14778 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible 14779 * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action 14780 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that 14781 * was used during the PASN handshake. 14782 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of 14783 * the peer device for which secure ranging context is being configured. 14784 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the 14785 * hash algorithm to be used, possible values are defined in enum 14786 * qca_wlan_vendor_sha_type. 14787 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds 14788 * the temporal key generated from the PASN handshake. The length of this 14789 * attribute is dependent on the value of 14790 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER. 14791 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the 14792 * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites) 14793 * (e.g., 0x000FAC04). 14794 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length 14795 * attribute, holds the LTF keyseed derived from KDK of PASN handshake. 14796 * The length of this attribute is dependent on the value of 14797 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE. 14798 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LINK_ID: This u8 attribute is used 14799 * for secure ranging to identify a specific link affiliated to an AP MLD. 14800 */ 14801 enum qca_wlan_vendor_attr_secure_ranging_ctx { 14802 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0, 14803 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1, 14804 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2, 14805 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3, 14806 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4, 14807 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5, 14808 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6, 14809 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7, 14810 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LINK_ID = 8, 14811 14812 /* keep last */ 14813 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST, 14814 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX = 14815 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1, 14816 }; 14817 14818 /** 14819 * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used 14820 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER 14821 * nested attribute. The packets that match a filter will be replied with 14822 * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY. 14823 * 14824 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4: 14825 * u32 attribute. Destination IPv4 address in network byte order, the 14826 * IPv4 packets with different address will be filtered out. 14827 * This attribute is optional. 14828 * 14829 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC: 14830 * Flag attribute. If it's present, indicates that 14831 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast 14832 * address; while if not, indicates that the address is a unicast/multicast 14833 * address. 14834 * This attribute is optional. 14835 * 14836 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6: 14837 * NLA_BINARY attribute, length is 16 bytes. 14838 * Destination IPv6 address in network byte order, the IPv6 packets 14839 * with different destination address will be filtered out. 14840 * This attribute is optional. 14841 * 14842 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and 14843 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured. 14844 * Packets on both IPv4 and IPv6 will be processed if both are configured. 14845 * 14846 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT: 14847 * u16 attribute. Destination UDP port, the packets with different destination 14848 * UDP port will be filtered out. 14849 * This attribute is mandatory. 14850 * 14851 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET: 14852 * u32 attribute. Represents the offset (in UDP payload) of the data 14853 * to be matched. 14854 * This attribute is mandatory. 14855 * 14856 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA: 14857 * NLA_BINARY attribute, the maximum allowed size is 16 bytes. 14858 * Binary data that is compared bit-by-bit against the data (specified 14859 * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP 14860 * payload, the packets don't match will be filtered out. 14861 * This attribute is mandatory. 14862 */ 14863 enum qca_wlan_vendor_attr_coap_offload_filter { 14864 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0, 14865 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1, 14866 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2, 14867 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3, 14868 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4, 14869 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5, 14870 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6, 14871 14872 /* keep last */ 14873 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST, 14874 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX = 14875 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1, 14876 }; 14877 14878 /** 14879 * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used 14880 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute. 14881 * 14882 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4: 14883 * u32 attribute. Source address (in network byte order) for replying 14884 * the matching broadcast/multicast IPv4 packets. 14885 * This attribute is optional. 14886 * 14887 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6: 14888 * NLA_BINARY attribute, length is 16 bytes. 14889 * Source address (in network byte order) for replying the matching 14890 * multicast IPv6 packets. 14891 * This attribute is optional. 14892 * 14893 * For broadcast/multicast offload reply, one of 14894 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and 14895 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be 14896 * configured according to version of the IP address(es) configured in 14897 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER; 14898 * while for unicast case, firmware will take the destination IP address 14899 * in the received matching packet as the source address for replying. 14900 * 14901 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER: 14902 * Nested attribute. Filter for the received UDP packets, only the matching 14903 * packets will be replied and cached. 14904 * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported 14905 * attributes. 14906 * This attribute is mandatory. 14907 * 14908 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG: 14909 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 14910 * CoAP message (UDP payload) to be sent upon receiving matching packets. 14911 * Firmware is responsible for adding any necessary protocol headers. 14912 * This attribute is mandatory. 14913 * 14914 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME: 14915 * u32 attribute. Expiration time in milliseconds of the cached CoAP messages. 14916 * A cached message will be dropped by firmware if it's expired. 14917 * This attribute is optional. A default value of 40000 will be used in the 14918 * absence of it. 14919 */ 14920 enum qca_wlan_vendor_attr_coap_offload_reply { 14921 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0, 14922 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1, 14923 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2, 14924 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3, 14925 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4, 14926 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5, 14927 14928 /* keep last */ 14929 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST, 14930 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX = 14931 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1, 14932 }; 14933 14934 /** 14935 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for 14936 * CoAP message (UDP) transmitting on IPv4. 14937 * 14938 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR: 14939 * u32 attribute. Source address (in network byte order) for transmitting 14940 * packets on IPv4. 14941 * This attribute is mandatory. 14942 * 14943 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT: 14944 * u16 attribute. Source UDP port. 14945 * This attribute is optional, a random port is taken if it's not present. 14946 * 14947 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR: 14948 * u32 attribute. Destination IPv4 address (in network byte order). 14949 * This attribute is mandatory. 14950 * 14951 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC: 14952 * Flag attribute. If it's present, indicates that 14953 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast 14954 * address; while if not, indicates that the address is unicast/multicast 14955 * address. 14956 * This attribute is optional. 14957 * 14958 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT: 14959 * u16 attribute. Destination UDP port. 14960 * This attribute is mandatory. 14961 */ 14962 enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 { 14963 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0, 14964 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1, 14965 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2, 14966 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3, 14967 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4, 14968 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5, 14969 14970 /* keep last */ 14971 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST, 14972 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX = 14973 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1, 14974 }; 14975 14976 /** 14977 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for 14978 * CoAP message (UDP) transmitting on IPv6. 14979 * 14980 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR: 14981 * NLA_BINARY attribute, length is 16 bytes. 14982 * Source address (in network byte order) for transmitting packets on IPv6. 14983 * This attribute is mandatory. 14984 * 14985 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT: 14986 * u16 attribute. Source UDP port. 14987 * This attribute is optional, a random port is taken if it's not present. 14988 * 14989 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR: 14990 * NLA_BINARY attribute, length is 16 bytes. 14991 * Destination IPv6 address (in network byte order). 14992 * This attribute is mandatory. 14993 * 14994 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT: 14995 * u16 attribute. Destination UDP port. 14996 * This attribute is mandatory. 14997 */ 14998 enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 { 14999 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0, 15000 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1, 15001 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2, 15002 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3, 15003 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4, 15004 15005 /* keep last */ 15006 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST, 15007 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX = 15008 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1, 15009 }; 15010 15011 /** 15012 * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used 15013 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute. 15014 * 15015 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4: 15016 * Nested attribute. The IPv4 source/destination address/port for offload 15017 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list 15018 * of supported attributes. 15019 * This attribute is optional. 15020 * 15021 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6: 15022 * Nested attribute. The IPv6 source/destination address/port for offload 15023 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list 15024 * of supported attributes. 15025 * This attribute is optional. 15026 * 15027 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and 15028 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured. 15029 * Firmware will transmit the packets on both IPv4 and IPv6 if both are 15030 * configured. 15031 * 15032 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD: 15033 * u32 attribute. Period in milliseconds for the periodic transmitting. 15034 * This attribute is mandatory. 15035 * 15036 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG: 15037 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 15038 * CoAP message (UDP payload) to be periodically transmitted. Firmware 15039 * is responsible for adding any necessary protocol headers. 15040 * This attribute is mandatory. 15041 */ 15042 enum qca_wlan_vendor_attr_coap_offload_periodic_tx { 15043 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0, 15044 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1, 15045 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2, 15046 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3, 15047 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4, 15048 15049 /* keep last */ 15050 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST, 15051 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX = 15052 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1, 15053 }; 15054 15055 /** 15056 * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used 15057 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute. 15058 * 15059 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS: 15060 * u64 attribute. Received time (since system booted in microseconds) of 15061 * the cached CoAP message. 15062 * This attribute is mandatory. 15063 * 15064 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4: 15065 * u32 attribute. Source IPv4 address (in network byte order) of the cached 15066 * CoAP message. 15067 * This attribute is optional. 15068 * 15069 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6: 15070 * NLA_BINARY attribute, length is 16 bytes. 15071 * Source IPv6 address (in network byte order) of the cached CoAP message. 15072 * This attribute is optional. 15073 * 15074 * At most and at least one of 15075 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and 15076 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for 15077 * an entry. 15078 * 15079 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG: 15080 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 15081 * The cached CoAP message (UDP payload). If the actual message size is 15082 * greater than the maximum size, it will be truncated and leaving only 15083 * the first 1152 bytes. 15084 * This attribute is mandatory. 15085 * 15086 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD: Attribute used for 15087 * padding for 64-bit alignment 15088 */ 15089 enum qca_wlan_vendor_attr_coap_offload_cache_info { 15090 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0, 15091 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1, 15092 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2, 15093 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3, 15094 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4, 15095 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD = 5, 15096 15097 /* keep last */ 15098 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST, 15099 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX = 15100 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1, 15101 }; 15102 15103 /** 15104 * enum qca_wlan_vendor_coap_offload_action - Actions for 15105 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD. 15106 * 15107 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE: 15108 * Enable CoAP offload reply. 15109 * If it's enabled, firmware will start offload processing on each suspend 15110 * and stop on each resume. 15111 * 15112 * Offload reply on match works as follows: 15113 * Reply the packets that match the filter with the given CoAP 15114 * message (with necessary protocol headers), increase the CoAP message 15115 * ID in the given CoAP message by one for the next use after each successful 15116 * transmission, and try to store the information of the received packet, 15117 * including the received time, source IP address, and CoAP message (UDP 15118 * payload). 15119 * 15120 * Firmware has a limit to the maximum stored entries, it takes the source IP 15121 * address as the key of an entry, and keeps at most one entry for each key. 15122 * A packet won't be stored if no entry for the same key is present and the 15123 * total number of the existing unexpired entries reaches the maximum value. 15124 * 15125 * If any configured item is changed, user space should disable offload reply 15126 * first and then issue a new enable request. 15127 * 15128 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE: 15129 * Disable CoAP offload reply and return information of any cached CoAP 15130 * messages. 15131 * 15132 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE: 15133 * Enable CoAP offload periodic transmitting. 15134 * If it's enabled, firmware will start offload periodic transmitting on 15135 * each suspend and stop on each resume. 15136 * 15137 * Offload periodic transmitting works as follows: 15138 * Send the given CoAP message (with necessary protocol headers) with the given 15139 * source/destination IP address/UDP port periodically based on the given 15140 * period and increase the CoAP message ID in the given CoAP message by one 15141 * for the next use after each successful transmission. 15142 * 15143 * If any configured item is changed, user space should disable offload 15144 * periodic transmitting first and then issue a new enable request. 15145 * 15146 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE: 15147 * Disable CoAP offload periodic transmitting. 15148 * 15149 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET: 15150 * Get information of the CoAP messages cached during offload reply 15151 * processing. The cache is cleared after retrieval. 15152 */ 15153 enum qca_wlan_vendor_coap_offload_action { 15154 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0, 15155 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1, 15156 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2, 15157 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3, 15158 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4, 15159 }; 15160 15161 /** 15162 * enum qca_wlan_vendor_attr_coap_offload - Used by the 15163 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD. 15164 * This is used to set parameters for CoAP offload processing, or get 15165 * cached CoAP messages from firmware. 15166 * 15167 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION: 15168 * u32 attribute. Action to take in this vendor command. 15169 * See enum qca_wlan_vendor_coap_offload_action for supported actions. 15170 * This attribute is mandatory. 15171 * 15172 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID: 15173 * u32 attribute. Represents the Request ID for the CoAP offload 15174 * configuration, which can help to identify the user entity starting 15175 * the CoAP offload processing and accordingly stop the respective 15176 * ones/get the cached CoAP messages with the matching ID. 15177 * This attribute is mandatory. 15178 * 15179 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY: 15180 * Nested attribute. Parameters for offload reply. 15181 * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of 15182 * supported attributes. 15183 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION 15184 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored 15185 * otherwise. 15186 * 15187 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX: 15188 * Nested attribute. Parameters for offload periodic transmitting. 15189 * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of 15190 * supported attributes. 15191 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is 15192 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored 15193 * otherwise. 15194 * 15195 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES: 15196 * Array of nested attributes. Information of the cached CoAP messages, 15197 * where each entry is taken from 15198 * enum qca_wlan_vendor_attr_coap_offload_cache_info. 15199 * This attribute is used for reporting the cached CoAP messages 15200 * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION 15201 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or 15202 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no 15203 * cached item if this attribute is not present. 15204 */ 15205 enum qca_wlan_vendor_attr_coap_offload { 15206 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0, 15207 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1, 15208 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2, 15209 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3, 15210 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4, 15211 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5, 15212 15213 /* keep last */ 15214 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST, 15215 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX = 15216 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1, 15217 }; 15218 15219 /** 15220 * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command 15221 * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification 15222 * Service (SCS) rule. 15223 * 15224 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute. 15225 * Represents the unique id of SCS rule to be configured. 15226 15227 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute. 15228 * Represents the request type: add, remove, or change. 15229 * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request 15230 * Type definitions). 15231 * 15232 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute 15233 * in case of add/change request type. 15234 * Represents the output traffic identifier (TID) to be assigned to the flow 15235 * matching the rule. 15236 * 15237 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8 15238 * attribute in case of add/change request type. 15239 * Represents type of classifier parameters present in SCS rule. 15240 * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type). 15241 * Only classifier types 4 and 10 are supported for SCS. 15242 * 15243 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute 15244 * in case of add/change request type when classifier type is TCLAS4. 15245 * Represents the IP version (4: IPv4, 6: IPv6) of the rule. 15246 * 15247 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional 15248 * attribute in case of add/change request type when classifier type is TCLAS4 15249 * and version attribute is IPv4. 15250 * Represents the source IPv4 address in the rule which is to be compared 15251 * against the source IP address in the IPv4 header. 15252 * 15253 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional 15254 * attribute in case of add/change request type when classifier type is TCLAS4 15255 * and version attribute is IPv4. 15256 * Represents the destination IPv4 address in the rule which is to be compared 15257 * against the destination IP address in the IPv4 header. 15258 * 15259 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional 15260 * attribute in case of add/change request type when classifier type is TCLAS4 15261 * and version attribute is IPv6. 15262 * Represents the source IPv6 address in the rule which is to be compared 15263 * against the source IP address in the IPv6 header. 15264 * 15265 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional 15266 * attribute in case of add/change request type when classifier type is TCLAS4 15267 * and version attribute is IPv6. 15268 * Represents the destination IPv6 address in the rule which is to be compared 15269 * against the destination IP address in the IPv6 header. 15270 * 15271 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute 15272 * in case of add/change request type when classifier type is TCLAS4. 15273 * Represents the source port number in the rule which is to be compared against 15274 * the source port number in the protocol header. 15275 * 15276 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute 15277 * in case of add/change request type when classifier type is TCLAS4. 15278 * Represents the destination port number in the rule which is to be compared 15279 * against the destination port number in the protocol header. 15280 * 15281 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute 15282 * in case of add/change request type when classifier type is TCLAS4. 15283 * Represents the DSCP value in the rule which is to be compared against the 15284 * DSCP field present in the IP header. 15285 * 15286 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8 15287 * attribute in case of add/change request type when classifier type is TCLAS4. 15288 * Represents the protocol/next header in the rule which is to be compared 15289 * against the protocol/next header field present in the IPv4/IPv6 header. 15290 * 15291 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional 15292 * attribute of size 3 bytes present in case of add/change request type 15293 * when classifier type is TCLAS4 and version is IPv6. 15294 * Represents the flow label value in the rule which is to be compared against 15295 * the flow label field present in the IPv6 header. 15296 * 15297 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8 15298 * attribute in case of add/change request type when classifier type is TCLAS10. 15299 * Represents the protocol instance number in the rule. 15300 * 15301 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8 15302 * attribute in case of add/change request type when classifier type is TCLAS10. 15303 * Represents the protocol/next header in the rule which is to be compared 15304 * against the protocol/next header field present in the IPv4/IPv6 header. 15305 * 15306 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional 15307 * attribute of variable length present when request type is add/change and 15308 * classifier type is TCLAS10. 15309 * Represents the mask to be used for masking the header contents of the header 15310 * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER 15311 * attribute. 15312 * 15313 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional 15314 * attribute of variable length present when request type is add/change and 15315 * classifier type is TCLAS10. 15316 * Represents the value to be compared against after masking the header contents 15317 * of the header specified by the 15318 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the 15319 * filter mask specified by the 15320 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute. 15321 * 15322 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16 15323 * attribute. 15324 * Represents the service class id of the configured SCS rule. 15325 * 15326 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes 15327 * MAC address. 15328 * Represents the destination MAC address in the rule. 15329 * 15330 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute 15331 * Represents the netdevice interface index in the rule. 15332 */ 15333 enum qca_wlan_vendor_attr_scs_rule_config { 15334 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0, 15335 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1, 15336 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2, 15337 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3, 15338 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4, 15339 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5, 15340 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6, 15341 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7, 15342 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8, 15343 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9, 15344 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10, 15345 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11, 15346 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12, 15347 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13, 15348 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14, 15349 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15, 15350 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16, 15351 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17, 15352 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18, 15353 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19, 15354 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20, 15355 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21, 15356 15357 /* Keep last */ 15358 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST, 15359 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX = 15360 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1, 15361 }; 15362 15363 /** 15364 * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside 15365 * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS. 15366 * 15367 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link. 15368 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link. 15369 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link. 15370 */ 15371 enum qca_wlan_vendor_attr_mlo_links { 15372 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0, 15373 QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1, 15374 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2, 15375 QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3, 15376 15377 /* Keep last */ 15378 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST, 15379 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX = 15380 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1, 15381 }; 15382 15383 /** 15384 * enum qca_wlan_vendor_sar_version - This describes the current SAR version 15385 * used in the firmware. 15386 * 15387 * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR. 15388 * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits. 15389 * 15390 * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2, 15391 * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for 15392 * each CTL group. So user can select up to 6 SAR indexes from the current CTL 15393 * groups. 15394 * 15395 * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3, 15396 * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each 15397 * CTL group but user can choose up to 3 SAR set index only, as the top half 15398 * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of 15399 * the SAR index (3 to 5) is used for DBS mode. 15400 * 15401 * @QCA_WLAN_VENDOR_SAR_VERSION_4: The firmware supports SAR version 4, 15402 * known as SAR Smart Transmit (STX) mode. STX is time averaging algorithmic 15403 * for power limit computation in collaboration with WWAN. 15404 * In STX mode, firmware has 41 indexes and there is no ctl grouping uses. 15405 * 15406 * @QCA_WLAN_VENDOR_SAR_VERSION_5: The firmware supports SAR version 5, 15407 * known as TAS (Time Averaging SAR) mode. In TAS mode, as name implies 15408 * instead of fixed static SAR power limit firmware uses time averaging 15409 * to adjust the SAR limit dynamically. It is wlan soc standalone mechanism. 15410 * In this mode firmware has up to 43 indexes. 15411 */ 15412 enum qca_wlan_vendor_sar_version { 15413 QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0, 15414 QCA_WLAN_VENDOR_SAR_VERSION_1 = 1, 15415 QCA_WLAN_VENDOR_SAR_VERSION_2 = 2, 15416 QCA_WLAN_VENDOR_SAR_VERSION_3 = 3, 15417 QCA_WLAN_VENDOR_SAR_VERSION_4 = 4, 15418 QCA_WLAN_VENDOR_SAR_VERSION_5 = 5, 15419 }; 15420 15421 /** 15422 * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether 15423 * CTL grouping is enabled or disabled in the firmware. 15424 * 15425 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping 15426 * is enabled in firmware. 15427 * 15428 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping 15429 * is disabled in firmware. 15430 * 15431 */ 15432 enum qca_wlan_vendor_sar_ctl_group_state { 15433 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0, 15434 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1, 15435 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2, 15436 }; 15437 15438 /** 15439 * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command 15440 * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities 15441 * supported by the firmware. 15442 15443 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION: 15444 * u32 attribute. This field describes current SAR version supported by the 15445 * firmware. 15446 * See enum qca_wlan_vendor_sar_version for more information. 15447 * This attribute is mandatory. 15448 15449 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE: 15450 * u32 attribute. This field describes whether CTL groups are enabled 15451 * or disabled in the firmware. 15452 * See enum qca_wlan_vendor_sar_ctl_group_state for more information. 15453 * This attribute is optional. 15454 */ 15455 15456 enum qca_wlan_vendor_attr_sar_capability { 15457 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0, 15458 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1, 15459 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2, 15460 15461 /* Keep last */ 15462 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST, 15463 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX = 15464 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1, 15465 }; 15466 15467 /** 15468 * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics. 15469 * These statistics are sent from the driver in a response when userspace 15470 * queries to get the statistics using the operation 15471 * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset 15472 * by the driver when the SR feature is enabled, when the driver receives 15473 * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected. 15474 * 15475 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute. 15476 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15477 * This represents the number of non-SRG TX opportunities. 15478 * 15479 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute. 15480 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15481 * This represents the number of non-SRG PPDUs tried to transmit. 15482 * 15483 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute. 15484 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15485 * This represents the number of non-SRG PPDUs successfully transmitted. 15486 * 15487 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute. 15488 * Mandatory only when SRG is supported by the AP and optional otherwise. 15489 * This represents the number of SRG TX opportunities. 15490 * 15491 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute. 15492 * Mandatory only when SRG is supported by the AP and optional otherwise. 15493 * This represents the number of SRG PPDUs tried to transmit. 15494 * 15495 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute. 15496 * Mandatory only when SRG is supported by the AP and optional otherwise. 15497 * This represents the number of SRG PPDUs successfully transmitted. 15498 */ 15499 enum qca_wlan_vendor_attr_sr_stats { 15500 QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0, 15501 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1, 15502 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2, 15503 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3, 15504 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4, 15505 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5, 15506 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6, 15507 15508 /* Keep last */ 15509 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST, 15510 QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX = 15511 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1, 15512 }; 15513 15514 /** 15515 * enum qca_wlan_sr_reason_code - Defines the different reason codes used in 15516 * Spatial Reuse feature. 15517 * 15518 * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to 15519 * roaming to an AP that doesn't support/supports SR feature, respectively. 15520 * 15521 * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due 15522 * to change in concurrent interfaces that are supported by the driver. 15523 */ 15524 enum qca_wlan_sr_reason_code { 15525 QCA_WLAN_SR_REASON_CODE_ROAMING = 0, 15526 QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1, 15527 }; 15528 15529 /** 15530 * enum qca_wlan_sr_operation - Defines the different types of SR operations. 15531 * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION. 15532 * 15533 * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the 15534 * driver to enable the Spatial Reuse feature. Attributes 15535 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and 15536 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this 15537 * operation. 15538 * 15539 * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the 15540 * driver to disable the Spatial Reuse feature. 15541 * 15542 * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an 15543 * asynchronous event sent to userspace when the SR feature is disabled. 15544 * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE 15545 * and sent along with the asynchronous event. 15546 * 15547 * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an 15548 * asynchronous event when the SR feature is enabled again after the SR feature 15549 * was suspended by the driver earlier. The enable reason is 15550 * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are 15551 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and 15552 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD. 15553 * 15554 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is 15555 * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial 15556 * reuse transmissions. Userspace sends this operation to the driver. 15557 * The driver/firmware upon receiving this operation shall prohibit PSR-based 15558 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions. 15559 * 15560 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is 15561 * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial 15562 * reuse transmissions. Userspace sends this operation to the driver. 15563 * The driver/firmware upon receiving this operation shall allow PSR-based 15564 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions. 15565 * 15566 * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the 15567 * driver to get the SR statistics and the driver sends a synchronous response 15568 * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the 15569 * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS. 15570 * 15571 * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the 15572 * driver to clear the SR statistics and upon receiving this operation 15573 * the driver/firmware shall clear the SR statistics. 15574 * 15575 * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the 15576 * driver to get the SR parameters and the driver sends the synchronous response 15577 * with the following required attributes: 15578 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET, 15579 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET, 15580 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET, 15581 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE, 15582 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW. 15583 * 15584 * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an 15585 * asynchronous event to userspace to update any changes in SR parameters. 15586 * The following attributes are used with this operation: 15587 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET, 15588 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET, 15589 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET, 15590 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE, 15591 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW. 15592 */ 15593 enum qca_wlan_sr_operation { 15594 QCA_WLAN_SR_OPERATION_SR_ENABLE = 0, 15595 QCA_WLAN_SR_OPERATION_SR_DISABLE = 1, 15596 QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2, 15597 QCA_WLAN_SR_OPERATION_SR_RESUME = 3, 15598 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4, 15599 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5, 15600 QCA_WLAN_SR_OPERATION_GET_STATS = 6, 15601 QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7, 15602 QCA_WLAN_SR_OPERATION_GET_PARAMS = 8, 15603 QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9, 15604 }; 15605 15606 /** 15607 * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration 15608 * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS. 15609 * 15610 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute. 15611 * This attribute is optionally set in response to 15612 * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to 15613 * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std 15614 * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more 15615 * about HESIGA_Spatial_reuse_value15_allowed. 15616 * 15617 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute. 15618 * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS 15619 * operation. This indicates whether non-SRG OBSS PD SR transmissions are 15620 * allowed or not at non-AP STAs that are associated with the AP. If present 15621 * non-SRG OBSS PD SR transmissions are not allowed else are allowed. 15622 * 15623 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8 15624 * attribute. This attribute is used in response to 15625 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD 15626 * Min Offset field which contains an unsigned integer that is added to -82 dBm 15627 * to generate the value of the SRG OBSS PD Min parameter. 15628 * 15629 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8 15630 * attribute. This attribute is used in response to 15631 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD 15632 * Max Offset field which contains an unsigned integer that is added to -82 dBm 15633 * to generate the value of the SRG OBSS PD Max parameter. 15634 * 15635 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8 15636 * attribute. This attribute is used in response to 15637 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS 15638 * PD Max Offset field which contains an unsigned integer that is added to -82 15639 * dBm to generate the value of the Non-SRG OBSS PD Max parameter. 15640 * 15641 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm). 15642 * Userspace optionally sends this attribute with 15643 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the 15644 * preferred SRG PD threshold. The driver shall send this attribute to 15645 * userspace in SR resume event to indicate the PD threshold being used for SR. 15646 * When there is change in SRG PD threshold (for example, due to roaming, etc.) 15647 * the driver shall indicate the userspace the newly configured SRG PD threshold 15648 * using an asynchronous event. 15649 * 15650 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm). 15651 * Userspace optionally sends this attribute with 15652 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the 15653 * preferred non-SRG PD threshold. The driver shall send this attribute to 15654 * userspace in SR resume event to indicate the PD threshold being used for SR. 15655 * When there is change in non-SRG PD threshold (for example, due to roaming, 15656 * etc.) the driver shall indicate the userspace the newly configured non-SRG PD 15657 * threshold using an asynchronous event. 15658 * 15659 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible 15660 * values are defined in enum qca_wlan_sr_reason_code. This 15661 * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and 15662 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations. 15663 */ 15664 enum qca_wlan_vendor_attr_sr_params { 15665 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0, 15666 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1, 15667 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2, 15668 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3, 15669 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4, 15670 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5, 15671 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6, 15672 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7, 15673 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8, 15674 15675 /* keep last */ 15676 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST, 15677 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX = 15678 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1, 15679 }; 15680 15681 /** 15682 * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor 15683 * command QCA_NL80211_VENDOR_SUBCMD_SR. 15684 * 15685 * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests 15686 * from userspace to the driver. Possible values are defined in enum 15687 * qca_wlan_sr_operation. 15688 * 15689 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR 15690 * configuration parameters. The possible attributes inside this attribute are 15691 * defined in enum qca_wlan_vendor_attr_sr_params. 15692 * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to 15693 * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and 15694 * also in response from the driver to userspace when the response is sent for 15695 * %QCA_WLAN_SR_OPERATION_GET_PARAMS. 15696 * The driver uses this attribute in asynchronous events in which the operation 15697 * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME, 15698 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS. 15699 * 15700 * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR 15701 * statistics. These attributes used inside this are defined in enum 15702 * qca_wlan_vendor_attr_sr_stats. 15703 * This attribute is used in response from the driver to a command in which 15704 * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to 15705 * %QCA_WLAN_SR_OPERATION_GET_STATS. 15706 */ 15707 enum qca_wlan_vendor_attr_sr { 15708 QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0, 15709 QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1, 15710 QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2, 15711 QCA_WLAN_VENDOR_ATTR_SR_STATS = 3, 15712 15713 /* Keep last */ 15714 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST, 15715 QCA_WLAN_VENDOR_ATTR_SR_MAX = 15716 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1, 15717 }; 15718 15719 /** 15720 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes 15721 * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand. 15722 * 15723 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address 15724 * used by the peer on the link that corresponds to the link used for sending 15725 * the event notification. 15726 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte 15727 * MLD MAC address of the peer. 15728 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute, 15729 * used to pass ifindex of the primary netdev. 15730 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX: u32 attribute, 15731 * used to pass ifindex of the MLD netdev. 15732 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS: u8 attribute, 15733 * used to indicate the number of links that the non-AP MLD negotiated to be 15734 * used in the ML connection. 15735 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO: Nested 15736 * attribute, contains information regarding links of the non-AP MLD. 15737 * User applications need to know all the links of a non-AP MLD that are 15738 * participating in the ML association. The possible attributes inside this 15739 * attribute are defined in enum qca_wlan_vendor_attr_mlo_link_info. 15740 */ 15741 enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event { 15742 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0, 15743 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1, 15744 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2, 15745 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3, 15746 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX = 4, 15747 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS = 5, 15748 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO = 6, 15749 15750 /* keep last */ 15751 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST, 15752 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX = 15753 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1, 15754 }; 15755 15756 /** 15757 * enum qca_wlan_vendor_attr_mlo_link_info - Defines attributes for 15758 * non-AP MLD link parameters used by the attribute 15759 * %QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO. 15760 * 15761 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX: u32 attribute, used 15762 * to pass the netdev ifindex of the non-AP MLD link. 15763 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR: 6 byte MAC address of 15764 * the non-AP MLD link. 15765 */ 15766 enum qca_wlan_vendor_attr_mlo_link_info { 15767 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_INVALID = 0, 15768 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX = 1, 15769 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR = 2, 15770 15771 /* keep last */ 15772 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST, 15773 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MAX = 15774 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST - 1, 15775 }; 15776 15777 /** 15778 * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with 15779 * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and 15780 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range 15781 * and PSD information. 15782 * 15783 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is 15784 * u32. This attribute is used to indicate the start of the queried frequency 15785 * range in MHz. 15786 * 15787 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32. 15788 * This attribute is used to indicate the end of the queried frequency range 15789 * in MHz. 15790 * 15791 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32. 15792 * This attribute will contain the PSD information for a single range as 15793 * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and 15794 * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes. 15795 * 15796 * The PSD power info (dBm/MHz) from user space should be multiplied 15797 * by a factor of 100 when sending to the driver to preserve granularity 15798 * up to 2 decimal places. 15799 * Example: 15800 * PSD power value: 10.21 dBm/MHz 15801 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021. 15802 * 15803 * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only 15804 * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with 15805 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when 15806 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15807 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE. 15808 * 15809 * The following set of attributes will be used to exchange frequency and 15810 * corresponding PSD information for AFC between the user space and the driver. 15811 */ 15812 enum qca_wlan_vendor_attr_afc_freq_psd_info { 15813 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0, 15814 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1, 15815 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2, 15816 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3, 15817 15818 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST, 15819 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX = 15820 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1, 15821 }; 15822 15823 /** 15824 * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with 15825 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the 15826 * channel list and corresponding EIRP information. 15827 * 15828 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8. 15829 * This attribute is used to indicate queried channel from 15830 * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO. 15831 * 15832 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32. 15833 * This attribute is used to configure the EIRP power info corresponding 15834 * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM. 15835 * The EIRP power info(dBm) from user space should be multiplied 15836 * by a factor of 100 when sending to Driver to preserve granularity up to 15837 * 2 decimal places. 15838 * Example: 15839 * EIRP power value: 34.23 dBm 15840 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423. 15841 * 15842 * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with 15843 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 15844 * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when 15845 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15846 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: 15847 * 15848 * The following set of attributes will be used to exchange Channel and 15849 * corresponding EIRP information for AFC between the user space and Driver. 15850 */ 15851 enum qca_wlan_vendor_attr_afc_chan_eirp_info { 15852 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0, 15853 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1, 15854 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2, 15855 15856 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST, 15857 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX = 15858 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1, 15859 }; 15860 15861 /** 15862 * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested 15863 * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 15864 * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class, 15865 * channel, and EIRP related information. 15866 * 15867 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8. 15868 * This attribute is used to indicate the operating class, as listed under 15869 * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list. 15870 * 15871 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes 15872 * for updating the channel number and EIRP power information. 15873 * It uses the attributes defined in 15874 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. 15875 * 15876 * Operating class information packing format for 15877 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when 15878 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15879 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY. 15880 * 15881 * m - Total number of operating classes. 15882 * n, j - Number of queried channels for the corresponding operating class. 15883 * 15884 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0] 15885 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0] 15886 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 15887 * ..... 15888 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1] 15889 * .... 15890 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m] 15891 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m] 15892 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 15893 * .... 15894 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1] 15895 * 15896 * Operating class information packing format for 15897 * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 15898 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when 15899 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15900 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE. 15901 * 15902 * m - Total number of operating classes. 15903 * n, j - Number of channels for the corresponding operating class. 15904 * 15905 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0] 15906 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0] 15907 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 15908 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0] 15909 * ..... 15910 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1] 15911 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1] 15912 * .... 15913 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m] 15914 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m] 15915 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 15916 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0] 15917 * .... 15918 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1] 15919 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1] 15920 * 15921 * The following set of attributes will be used to exchange operating class 15922 * information for AFC between the user space and the driver. 15923 */ 15924 enum qca_wlan_vendor_attr_afc_opclass_info { 15925 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0, 15926 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1, 15927 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2, 15928 15929 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST, 15930 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX = 15931 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1, 15932 }; 15933 15934 /** 15935 * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type. 15936 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute. 15937 * 15938 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the 15939 * driver to userspace in order to query the new AFC power values. 15940 * 15941 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update 15942 * complete event will be sent from the driver to userspace to indicate 15943 * processing of the AFC response. 15944 * 15945 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event 15946 * will be sent from the driver to userspace to indicate last received 15947 * AFC response data has been cleared on the AP due to invalid data 15948 * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. 15949 * 15950 * The following enum defines the different event types that will be 15951 * used by the driver to help trigger corresponding AFC functionality in user 15952 * space. 15953 */ 15954 enum qca_wlan_vendor_afc_event_type { 15955 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0, 15956 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1, 15957 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2, 15958 }; 15959 15960 /** 15961 * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP 15962 * deployment type. 15963 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute. 15964 * 15965 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment. 15966 * 15967 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment. 15968 * 15969 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment. 15970 * 15971 * The following enum defines different deployment modes that the AP might 15972 * come up in. This information will be essential to retrieve deployment-type 15973 * specific SP power values for AFC operation. 15974 */ 15975 enum qca_wlan_vendor_afc_ap_deployment_type { 15976 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0, 15977 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1, 15978 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2, 15979 }; 15980 15981 /** 15982 * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to 15983 * indicate AFC response status. 15984 * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute. 15985 * 15986 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success 15987 * 15988 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication 15989 * command was not received within the expected time of the AFC expiry event 15990 * being triggered. 15991 * 15992 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data 15993 * parsing error by the driver. 15994 * 15995 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local 15996 * error. 15997 * 15998 * The following enum defines the status codes that the driver will use to 15999 * indicate whether the AFC data is valid or not. 16000 */ 16001 enum qca_wlan_vendor_afc_evt_status_code { 16002 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0, 16003 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1, 16004 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2, 16005 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3, 16006 }; 16007 16008 /** 16009 * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with 16010 * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will 16011 * support sending only a single request to the user space at a time. 16012 * 16013 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute. 16014 * Used with event to notify the type of AFC event received. 16015 * Valid values are defined in enum qca_wlan_vendor_afc_event_type. 16016 * 16017 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when 16018 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, 16019 * otherwise unused. 16020 * 16021 * This attribute is used to indicate the AP deployment type in the AFC request. 16022 * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type. 16023 * 16024 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute. 16025 * Unique request identifier generated by the AFC client for every 16026 * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID. 16027 * The user space application is responsible for ensuring no duplicate values 16028 * are in-flight with the server, e.g., by delaying a request, should the same 16029 * value be received from different radios in parallel. 16030 * 16031 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional. 16032 * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16033 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused. 16034 * 16035 * This attribute indicates the AFC spec version information. This will 16036 * indicate the AFC version AFC client must use to query the AFC data. 16037 * Bits 15:0 - Minor version 16038 * Bits 31:16 - Major version 16039 * 16040 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when 16041 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, 16042 * otherwise unused. 16043 * This attribute indicates the minimum desired power (in dBm) for 16044 * the queried spectrum. 16045 * 16046 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when 16047 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16048 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16049 * 16050 * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code. 16051 * This attribute is used to indicate if there were any errors parsing the 16052 * AFC response. 16053 * 16054 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required 16055 * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16056 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16057 * 16058 * This attribute indicates the AFC response code. The AFC response codes are 16059 * in the following categories: 16060 * -1: General Failure. 16061 * 0: Success. 16062 * 100 - 199: General errors related to protocol. 16063 * 300 - 399: Error events specific to message exchange 16064 * for the Available Spectrum Inquiry. 16065 * 16066 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when 16067 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16068 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16069 * 16070 * This attribute indicates the date until which the current response is 16071 * valid for in UTC format. 16072 * Date format: bits 7:0 - DD (Day 1-31) 16073 * bits 15:8 - MM (Month 1-12) 16074 * bits 31:16 - YYYY (Year) 16075 * 16076 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when 16077 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16078 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16079 * 16080 * This attribute indicates the time until which the current response is 16081 * valid for in UTC format. 16082 * Time format: bits 7:0 - SS (Seconds 0-59) 16083 * bits 15:8 - MM (Minutes 0-59) 16084 * bits 23:16 - HH (Hours 0-23) 16085 * bits 31:24 - Reserved 16086 * 16087 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes 16088 * for updating the list of frequency ranges to be queried. 16089 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16090 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or 16091 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16092 * It uses the attributes defined in 16093 * enum qca_wlan_vendor_attr_afc_freq_psd_info. 16094 * 16095 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes 16096 * for updating the list of operating classes and corresponding channels to be 16097 * queried. 16098 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16099 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or 16100 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16101 * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info. 16102 */ 16103 enum qca_wlan_vendor_attr_afc_event { 16104 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0, 16105 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1, 16106 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2, 16107 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3, 16108 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4, 16109 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5, 16110 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6, 16111 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7, 16112 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8, 16113 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9, 16114 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10, 16115 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11, 16116 16117 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST, 16118 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX = 16119 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1, 16120 }; 16121 16122 /** 16123 * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used 16124 * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes 16125 * will support sending only a single AFC response to the driver at a time. 16126 * 16127 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute. 16128 * This attribute will be used to send a single Spectrum Inquiry response object 16129 * from the 'availableSpectrumInquiryResponses' array object from the response 16130 * JSON. 16131 * 16132 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute. 16133 * 16134 * This attribute indicates the period (in seconds) for which the response 16135 * data received is valid for. 16136 * 16137 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute. 16138 * 16139 * This attribute indicates the request ID for which the corresponding 16140 * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID. 16141 * 16142 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute. 16143 * 16144 * This attribute indicates the date until which the current response is 16145 * valid for in UTC format. 16146 * Date format: bits 7:0 - DD (Day 1-31) 16147 * bits 15:8 - MM (Month 1-12) 16148 * bits 31:16 - YYYY (Year) 16149 * 16150 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute. 16151 * 16152 * This attribute indicates the time until which the current response is 16153 * valid for in UTC format. 16154 * Time format: bits 7:0 - SS (Seconds 0-59) 16155 * bits 15:8 - MM (Minutes 0-59) 16156 * bits 23:16 - HH (Hours 0-23) 16157 * bits 31:24 - Reserved 16158 * 16159 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute. 16160 * 16161 * This attribute indicates the AFC response code. The AFC response codes are 16162 * in the following categories: 16163 * -1: General Failure. 16164 * 0: Success. 16165 * 100 - 199: General errors related to protocol. 16166 * 300 - 399: Error events specific to message exchange 16167 * for the Available Spectrum Inquiry. 16168 * 16169 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes 16170 * for PSD info of all the queried frequency ranges. It uses the attributes 16171 * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute. 16172 * 16173 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested 16174 * attributes for EIRP info of all queried operating class/channels. It uses 16175 * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and 16176 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute. 16177 * 16178 */ 16179 enum qca_wlan_vendor_attr_afc_response { 16180 QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0, 16181 QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1, 16182 QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2, 16183 QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3, 16184 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4, 16185 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5, 16186 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6, 16187 QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7, 16188 QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8, 16189 16190 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST, 16191 QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX = 16192 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1, 16193 }; 16194 16195 /** 16196 * enum qca_wlan_dozed_ap_state - Doze states for AP interface 16197 * 16198 * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface. 16199 * 16200 * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts 16201 * beaconing at higher beacon interval with Rx disabled. 16202 */ 16203 enum qca_wlan_dozed_ap_state { 16204 QCA_WLAN_DOZED_AP_DISABLE = 0, 16205 QCA_WLAN_DOZED_AP_ENABLE = 1, 16206 }; 16207 16208 /** 16209 * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command 16210 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode 16211 * configuration. 16212 * 16213 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute. 16214 * Configures the doze state for an AP interface. Possible values are defined 16215 * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event 16216 * gets triggered asynchronously to provide updated AP interface configuration. 16217 * 16218 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by 16219 * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP 16220 * command, which is used later to maintain synchronization between commands 16221 * and asynchronous events. 16222 * 16223 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute. 16224 * Used in event to indicate the next TBTT TSF timer value after applying the 16225 * doze mode configuration. Next TBTT TSF is the time at which the AP sends 16226 * the first beacon after entering or exiting dozed mode. 16227 * 16228 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute. 16229 * Used with event to inform the periodicity of beacon transmission that would 16230 * be skipped at all TBTTs in between. 16231 * 16232 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD: Attribute used for padding for 64-bit 16233 * alignment. 16234 */ 16235 enum qca_wlan_vendor_attr_dozed_ap { 16236 QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0, 16237 QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1, 16238 QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2, 16239 QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3, 16240 QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4, 16241 QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD = 5, 16242 16243 /* Keep last */ 16244 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST, 16245 QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX = 16246 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1, 16247 }; 16248 16249 /** 16250 * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes 16251 * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE. 16252 * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no 16253 * capture running status. 16254 * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate 16255 * capture running status. 16256 **/ 16257 16258 enum qca_wlan_vendor_monitor_mode_status { 16259 QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0, 16260 QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1, 16261 }; 16262 16263 /** 16264 * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the 16265 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report 16266 * information regarding the local packet capture over the monitor mode. 16267 * 16268 * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute 16269 * represents the status of the start capture commands. The values used with 16270 * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This 16271 * is returned by the driver in the response to the command. 16272 */ 16273 16274 enum qca_wlan_vendor_attr_get_monitor_mode { 16275 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0, 16276 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1, 16277 16278 /* Keep last */ 16279 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST, 16280 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX = 16281 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1, 16282 }; 16283 16284 /** 16285 * enum qca_wlan_vendor_link_state_op_types - Defines different types of 16286 * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used. 16287 * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute. 16288 * 16289 * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information. 16290 * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information. 16291 */ 16292 enum qca_wlan_vendor_link_state_op_types { 16293 QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0, 16294 QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1, 16295 }; 16296 16297 /** 16298 * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO 16299 * links state control modes. This enum is used by 16300 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute. 16301 * 16302 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled 16303 * by the driver. 16304 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by 16305 * user space. 16306 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the 16307 * desired number of MLO links to operate in active state at any given time. 16308 * The driver will choose which MLO links should operate in the active state. 16309 * See enum qca_wlan_vendor_link_state for active state definition. 16310 */ 16311 enum qca_wlan_vendor_link_state_control_modes { 16312 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0, 16313 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1, 16314 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2, 16315 }; 16316 16317 /** 16318 * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO 16319 * links state operation modes. This enum is used by 16320 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute. 16321 * 16322 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation 16323 * mode, the driver selects the operating mode of the links, without any 16324 * guidance from the user space. 16325 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency 16326 * operation mode the driver should select MLO links that will achieve low 16327 * latency. 16328 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high 16329 * throughput operation mode the driver should select MLO links that will 16330 * achieve higher throughput. 16331 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power 16332 * operation mode the driver should select MLO links that will achieve low 16333 * power. 16334 */ 16335 enum qca_wlan_vendor_link_state_operation_modes { 16336 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0, 16337 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1, 16338 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2, 16339 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3, 16340 }; 16341 16342 /** 16343 * enum qca_wlan_vendor_link_state - Represents the possible link states of an 16344 * MLO link. 16345 * 16346 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_INACTIVE: In this state, the link will not 16347 * be used for data transmission but it can have TIDs mapped to it. It will be 16348 * in doze state always and does not monitor the beacons. 16349 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_ACTIVE: In this state, the link will be 16350 * used for data TX/RX and monitors the beacons to check TIM bit indication. 16351 * It may enter doze state and comes out based on the transmit data traffic and 16352 * TIM bit indication in the beacon. 16353 */ 16354 enum qca_wlan_vendor_link_state { 16355 QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0, 16356 QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1, 16357 }; 16358 16359 /** 16360 * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used 16361 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG. 16362 * 16363 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the 16364 * MLO link. 16365 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See 16366 * enum qca_wlan_vendor_link_state for possible MLO link states. 16367 */ 16368 16369 enum qca_wlan_vendor_attr_link_state_config { 16370 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0, 16371 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1, 16372 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2, 16373 16374 /* Keep last */ 16375 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST, 16376 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX = 16377 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1, 16378 }; 16379 16380 /** 16381 * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by 16382 * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command. 16383 * 16384 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type 16385 * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for. 16386 * Required only in a command. Possible values for this attribute are defined in 16387 * enum qca_wlan_vendor_link_state_op_types. 16388 * 16389 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO 16390 * links control mode type. Optional attribute in a command when 16391 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16392 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when 16393 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16394 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 16395 * See enum qca_wlan_vendor_link_state_control_modes for possible control modes. 16396 * 16397 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes. 16398 * Indicates the state of the each MLO link affiliated with the interface. 16399 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE 16400 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and 16401 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to 16402 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a 16403 * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16404 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 16405 * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes. 16406 * 16407 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute. 16408 * Represents the number of active state links. See enum 16409 * qca_wlan_vendor_link_state for active state definition. 16410 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE 16411 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and 16412 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to 16413 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED. 16414 * 16415 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO 16416 * links operation mode type. Optional attribute in a command when 16417 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16418 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when 16419 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16420 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 16421 * See enum qca_wlan_vendor_link_state_operation_modes for possible operation 16422 * modes. 16423 */ 16424 enum qca_wlan_vendor_attr_mlo_link_state { 16425 QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0, 16426 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1, 16427 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2, 16428 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3, 16429 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4, 16430 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5, 16431 16432 /* keep last */ 16433 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST, 16434 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX = 16435 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1, 16436 }; 16437 16438 /** 16439 * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used 16440 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS. 16441 * 16442 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute 16443 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS. 16444 * Indicates the link mapping bitmap of a TID for uplink traffic. It is a 16445 * bitmask of the link IDs in which a bit set means that the TID is mapped with 16446 * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink 16447 * traffic for that link. 16448 * 16449 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute 16450 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS. 16451 * Indicates the link mapping bitmap of a TID for downlink traffic. It is a 16452 * bitmask of the link IDs in which a bit set means that the TID is mapped with 16453 * that link ID in downlink traffic. Otherwise, the TID is not mapped to 16454 * downlink traffic for that link. 16455 */ 16456 enum qca_wlan_vendor_attr_tid_link_map_status { 16457 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0, 16458 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1, 16459 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2, 16460 16461 /* keep last */ 16462 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST, 16463 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX = 16464 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1, 16465 }; 16466 16467 /* 16468 * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with 16469 * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event. 16470 * 16471 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte 16472 * AP MLD address with which this TID-to-link negotiation mapping is 16473 * established/updated. 16474 * 16475 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of 16476 * nested attributes containing TID-to-links mapping information. This will have 16477 * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink 16478 * map information. If this attribute is not present the default TID-to-link 16479 * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and 16480 * downlink traffic. 16481 * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes. 16482 */ 16483 enum qca_wlan_vendor_attr_tid_to_link_map { 16484 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0, 16485 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1, 16486 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2, 16487 16488 /* keep last */ 16489 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST, 16490 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX = 16491 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1, 16492 }; 16493 16494 /** 16495 * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used 16496 * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event. 16497 * 16498 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute. 16499 * 6-byte AP MLD address of the AP which indicated the link reconfiguration. 16500 * 16501 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute. 16502 * A bitmap of the removed setup links link IDs. 16503 */ 16504 enum qca_wlan_vendor_attr_link_reconfig { 16505 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0, 16506 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1, 16507 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2, 16508 16509 /* keep last */ 16510 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST, 16511 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX = 16512 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1 16513 }; 16514 16515 /** 16516 * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by 16517 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command. 16518 * 16519 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute. 16520 * Indicates the MLO link id on which the TDLS discovery response 16521 * frame is to be transmitted. 16522 */ 16523 enum qca_wlan_vendor_attr_tdls_disc_rsp_ext { 16524 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0, 16525 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1, 16526 16527 /* Keep last */ 16528 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST, 16529 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX = 16530 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1, 16531 }; 16532 16533 /** 16534 * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states. 16535 * 16536 * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status 16537 * for all stations. 16538 * 16539 * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to 16540 * establish the session. 16541 * 16542 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is 16543 * established. 16544 * 16545 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS 16546 * session is established using MCC. 16547 * 16548 * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was 16549 * established, but is temporarily dropped currently. 16550 * 16551 * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish. 16552 */ 16553 enum qca_wlan_vendor_tdls_state { 16554 QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1, 16555 QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2, 16556 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3, 16557 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4, 16558 QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5, 16559 QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6, 16560 }; 16561 16562 /** 16563 * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons. 16564 * 16565 * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established. 16566 * 16567 * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason. 16568 * 16569 * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported. 16570 * 16571 * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported. 16572 * 16573 * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better 16574 * than through direct link. 16575 * 16576 * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS 16577 * session anymore. 16578 */ 16579 16580 enum qca_wlan_vendor_tdls_reason { 16581 QCA_WLAN_TDLS_REASON_SUCCESS = 0, 16582 QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1, 16583 QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2, 16584 QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3, 16585 QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4, 16586 QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5, 16587 }; 16588 16589 /** 16590 * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by 16591 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command. 16592 * 16593 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer 16594 * station to enable the TDLS session. Optional attribute. The driver sends the 16595 * TDLS session result as an asynchronous response using the command 16596 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in 16597 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command. 16598 * 16599 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the 16600 * channel on which the TDLS session to be established. Required only when 16601 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present. 16602 * 16603 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute. 16604 * Indicates the global operating class of the TDLS session to be established. 16605 * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present. 16606 * 16607 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates 16608 * the maximum latency of the WLAN packets to be transmitted/received in 16609 * milliseconds on TDLS session. Required only when 16610 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present. 16611 * 16612 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute. 16613 * Indicates the minimum bandwidth to be used to establish the TDLS session 16614 * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is 16615 * present. 16616 */ 16617 enum qca_wlan_vendor_attr_tdls_enable { 16618 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0, 16619 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1, 16620 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2, 16621 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3, 16622 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4, 16623 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5, 16624 16625 /* keep last */ 16626 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST, 16627 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX = 16628 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1, 16629 }; 16630 16631 /** 16632 * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by 16633 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command. 16634 * 16635 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer 16636 * station to disable the TDLS session. Optional attribute. 16637 */ 16638 enum qca_wlan_vendor_attr_tdls_disable { 16639 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0, 16640 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1, 16641 16642 /* keep last */ 16643 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST, 16644 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX = 16645 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1, 16646 }; 16647 16648 /** 16649 * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by 16650 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command. 16651 * 16652 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the 16653 * peer station. Optional attribute. Used in 16654 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response. 16655 * 16656 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the 16657 * TDLS session state with the peer specified in 16658 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from 16659 * enum qca_wlan_vendor_tdls_state. Used in 16660 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 16661 * 16662 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the 16663 * reason for the TDLS session state indicated in 16664 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum 16665 * qca_wlan_vendor_tdls_reason. Used in 16666 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 16667 * 16668 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the 16669 * channel of the TDLS session established with 16670 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in 16671 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 16672 * 16673 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute. 16674 * Indicates the global operating class of the TDLS session established with 16675 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in 16676 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 16677 * 16678 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates 16679 * the current number of active TDLS sessions. This is indicated in the response 16680 * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with 16681 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute. 16682 * 16683 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates 16684 * whether the driver can initiate new TDLS session. This is indicated in the 16685 * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with 16686 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute. 16687 */ 16688 enum qca_wlan_vendor_attr_tdls_get_status { 16689 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0, 16690 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1, 16691 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2, 16692 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3, 16693 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4, 16694 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5, 16695 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6, 16696 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7, 16697 16698 /* keep last */ 16699 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST, 16700 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX = 16701 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1, 16702 }; 16703 16704 /** 16705 * enum qca_wlan_vendor_attr_tdls_state - Attributes used by 16706 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command. 16707 * 16708 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the 16709 * peer station. Required attribute. 16710 * 16711 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates 16712 * the current TDLS state. Required attribute. Uses the values from 16713 * enum qca_wlan_vendor_tdls_state. 16714 * 16715 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the 16716 * reason of the current TDLS session state. Required attribute. Uses the values 16717 * from enum qca_wlan_vendor_tdls_reason. 16718 * 16719 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the 16720 * TDLS session channel. Required attribute. 16721 * 16722 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute. 16723 * Indicates the TDLS session global operating class. Required attribute. 16724 */ 16725 enum qca_wlan_vendor_attr_tdls_state { 16726 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0, 16727 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1, 16728 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2, 16729 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3, 16730 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4, 16731 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5, 16732 16733 /* keep last */ 16734 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST, 16735 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX = 16736 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1, 16737 }; 16738 16739 /* 16740 * enum qca_wlan_vendor_opm_mode - Modes supported by 16741 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute. 16742 * 16743 * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled 16744 * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled 16745 * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user 16746 * to configure power save inactivity timeout and speculative wake up 16747 * interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and 16748 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes. 16749 */ 16750 16751 enum qca_wlan_vendor_opm_mode { 16752 QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0, 16753 QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1, 16754 QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2, 16755 }; 16756 16757 /* 16758 * enum qca_wlan_vendor_tx_latency_type - Represents the possible latency 16759 * types. 16760 * 16761 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER: Per MSDU latency 16762 * from: An MSDU is presented to the driver 16763 * to: the MSDU is queued into TCL SRNG 16764 * 16765 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING: Per MSDU latency 16766 * from: the MSDU is queued into TCL SRNG 16767 * to: the MSDU is released by the driver 16768 * 16769 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW: Per MSDU latency 16770 * from: the MSDU is presented to the hardware 16771 * to: the MSDU is released by the hardware 16772 * 16773 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA: Per PPDU latency 16774 * The time spent on Clear Channel Assessment, the maximum value is 50000 (us) 16775 * from: A PPDU is presented to the hardware LMAC 16776 * to: over-the-air transmission is started for the PPDU 16777 */ 16778 enum qca_wlan_vendor_tx_latency_type { 16779 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER = 0, 16780 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING = 1, 16781 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW = 2, 16782 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA = 3, 16783 }; 16784 16785 /** 16786 * enum qca_wlan_vendor_attr_tx_latency_bucket - Definition of attributes 16787 * used inside nested attributes 16788 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS and 16789 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS. 16790 * 16791 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE: u8 attribute. 16792 * Indicates the latency type. 16793 * See enum qca_wlan_vendor_tx_latency_type for the supported types. 16794 * 16795 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY: u32 attribute. 16796 * Indicates the granularity (in microseconds) of the distribution for the 16797 * type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE), the value 16798 * must be positive. 16799 * If %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE is 16800 * %QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA, the value must be an integer multiple 16801 * of 1000, and the maximum allowed value is 15000 (us). 16802 * 16803 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE: u32 attribute. 16804 * Indicates the average of the latency (in microseconds) for the type 16805 * (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE) within a cycle. 16806 * If there is no transmitted MSDUs/MPDUs during a cycle, this average is 0; 16807 * otherwise, it represents the quotient of <accumulated latency of the 16808 * transmitted MSDUs/MPDUs in a cycle> divided by <the number of the transmitted 16809 * MSDUs/MPDUs in a cycle>. 16810 * 16811 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION: 16812 * Array of u32, 4 elements in total, represents the latency distribution for 16813 * the type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE). 16814 * Each element holds the count of MSDUs/PPDUs (according to the latency type) 16815 * within a range: 16816 * element[0]: latency >= 0 && latency < granularity 16817 * element[1]: latency >= granularity && latency < granularity * 2 16818 * element[2]: latency >= granularity * 2 && latency < granularity * 3 16819 * element[3]: latency >= granularity * 3 16820 */ 16821 enum qca_wlan_vendor_attr_tx_latency_bucket { 16822 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_INVALID = 0, 16823 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE = 1, 16824 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY = 2, 16825 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE = 3, 16826 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION = 4, 16827 16828 /* keep last */ 16829 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST, 16830 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_MAX = 16831 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST - 1, 16832 }; 16833 16834 /** 16835 * enum qca_wlan_vendor_attr_tx_latency_link - Definition of attributes 16836 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS. 16837 * 16838 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE: 6-byte MAC address. 16839 * Indicates link MAC address of the remote peer. For example, when running 16840 * in station mode, it's the BSSID of the link; while when running in AP 16841 * mode, it's the link MAC address of the remote station. 16842 * 16843 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS: 16844 * Array of nested attribute. 16845 * Represents the transmit latency statistics for the link specified by 16846 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE. 16847 * Each entry represents the statistics for one of the types defined in 16848 * enum qca_wlan_vendor_tx_latency_type. 16849 * Each defined type has and must have one entry. 16850 * See enum qca_wlan_vendor_attr_tx_latency_bucket for nested attributes. 16851 */ 16852 enum qca_wlan_vendor_attr_tx_latency_link { 16853 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_INVALID = 0, 16854 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE = 1, 16855 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS = 2, 16856 16857 /* keep last */ 16858 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST, 16859 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAX = 16860 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST - 1, 16861 }; 16862 16863 /** 16864 * enum qca_wlan_vendor_tx_latency_action - Represents the possible actions 16865 * for %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY. 16866 * 16867 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE: 16868 * Disable transmit latency monitoring. 16869 * 16870 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE: 16871 * Enable transmit latency monitoring. 16872 * 16873 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET: 16874 * Get transmit latency statistics of the last cycle (period is specified by 16875 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD). 16876 */ 16877 enum qca_wlan_vendor_tx_latency_action { 16878 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE = 0, 16879 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE = 1, 16880 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET = 2, 16881 }; 16882 16883 /** 16884 * enum qca_wlan_vendor_attr_tx_latency - Definition of attributes used by 16885 * %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY to configure, retrieve, and report 16886 * per-link transmit latency statistics. 16887 * 16888 * There are 6 uses of %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY: 16889 * 1) used as a command to enable the feature 16890 * Precondition(s): 16891 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 16892 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE 16893 * Mandatory attribute(s): 16894 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION, 16895 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD, 16896 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS with nested attributes 16897 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE, 16898 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY. 16899 * Notes: 16900 * The driver will monitor the transmit latency for the active links 16901 * and save the statistics for each cycle (period is set by 16902 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD) when the feature is enabled. 16903 * Set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT if periodical 16904 * report is required. 16905 * 16906 * 2) used as a command to disable the feature 16907 * Precondition(s): 16908 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 16909 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE 16910 * Mandatory attribute(s): 16911 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION 16912 * 16913 * 3) used as a command to retrieve the statistics for all the active links on 16914 * the requested interface 16915 * Precondition(s): 16916 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 16917 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and 16918 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is NOT present. 16919 * Mandatory attribute(s): 16920 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION 16921 * Notes: 16922 * The driver returns failure directly if the feature is not enabled or 16923 * there is no active link. 16924 * The driver returns the statistics of the last cycle in the case of 16925 * success. 16926 * 16927 * 4) used as a command to retrieve the statistics for the specified links 16928 * Precondition(s): 16929 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 16930 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and 16931 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is present. 16932 * Mandatory attribute(s): 16933 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION, 16934 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attribute 16935 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE. 16936 * Notes: 16937 * The driver returns failure directly if the feature is not enabled or 16938 * any of the links (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS) 16939 * does not exist or is not in active state. 16940 * 16941 * 5) used as a command response for #3 or #4 16942 * Precondition(s): 16943 * Userspace issues command #3 or #4, and the driver gets corresponding 16944 * statistics successfully. 16945 * Mandatory attribute(s): 16946 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes 16947 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE, 16948 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested 16949 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE, 16950 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY, 16951 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and 16952 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION. 16953 * 16954 * 6) used as an asynchronous event to report the statistics periodically 16955 * Precondition(s): 16956 * Userspace set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT in 16957 * #1. 16958 * One or more links are in active state. 16959 * Mandatory attribute(s): 16960 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes 16961 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE, 16962 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested 16963 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE, 16964 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY, 16965 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and 16966 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION. 16967 * 16968 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID: Invalid attribute 16969 * 16970 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION: u32 attribute. 16971 * Action to take in this vendor command. 16972 * See enum qca_wlan_vendor_tx_latency_action for supported actions. 16973 * 16974 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT: Flag attribute. 16975 * Enable (flag attribute present) - The driver needs to report transmit latency 16976 * statistics at the end of each statistical period. 16977 * Disable (flag attribute not present) - The driver doesn't need to report 16978 * transmit latency statistics periodically. 16979 * 16980 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD: u32 attribute. 16981 * Indicates statistical period for transmit latency in terms of milliseconds, 16982 * the minimal allowed value is 100 and the maximum allowed value is 60000. 16983 * 16984 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS: Array of nested attribute. 16985 * Each entry represents the latency buckets configuration for one of the types 16986 * defined in enum qca_wlan_vendor_tx_latency_type. 16987 * Each defined type has and must have one entry. 16988 * See enum qca_wlan_vendor_attr_tx_latency_bucket for the list of 16989 * supported attributes. 16990 * 16991 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS: Array of nested attribute. 16992 * Information of the links, each entry represents for one link. 16993 * See enum qca_wlan_vendor_attr_tx_latency_link for the list of 16994 * supported attributes for each entry. 16995 */ 16996 enum qca_wlan_vendor_attr_tx_latency { 16997 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID = 0, 16998 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION = 1, 16999 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT = 2, 17000 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD = 3, 17001 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS = 4, 17002 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS = 5, 17003 17004 /* keep last */ 17005 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST, 17006 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_MAX = 17007 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST - 1, 17008 }; 17009 17010 /** 17011 * enum qca_chan_width_update_type - Represents the possible values for 17012 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE. 17013 * 17014 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX: The maximum allowed bandwidth change is 17015 * applicable for both Tx and Rx paths. The driver shall conduct OMI operation 17016 * as defined in 26.9 (Operating mode indication) or OMN operation as defined in 17017 * 11.40 (Notification of operating mode changes) in IEEE P802.11-REVme/D2.0 17018 * with AP to indicate the change in the maximum allowed operating bandwidth. 17019 * 17020 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_ONLY: Limit the change in maximum allowed 17021 * bandwidth only to Tx path. In this case the driver doesn't need to conduct 17022 * OMI/OMN operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is 17023 * expected to be less than the current connection maximum negotiated bandwidth. 17024 * For example: Negotiated maximum bandwidth is 160 MHz and the new maximum 17025 * bandwidth configured is 80 MHz, now the driver limits the maximum bandwidth 17026 * to 80 MHz only in the Tx path. 17027 * 17028 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX_EXT: This is similar to 17029 * %QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX but the driver doesn't change current 17030 * phymode bandwidth to avoid interoperability issues with APs which don't 17031 * handle the maximum bandwidth change indication correctly. 17032 * For example: Negotiated maximum bandwidth is 40 MHz and the new maximum 17033 * bandwidth configured is 20 MHz, now the driver indicates the change in 17034 * maximum allowed bandwidth to the AP and limits the bandwidth to 20 MHz in the 17035 * Tx path but keeps the phymode bandwidth as 40 MHz. This will avoid 17036 * interoperability issues with APs which still use 40 MHz for sending the 17037 * frames though it received maximum allowed bandwidth indication as 20 MHz 17038 * from the STA. 17039 */ 17040 enum qca_chan_width_update_type { 17041 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX = 0, 17042 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_ONLY = 1, 17043 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX_EXT = 2, 17044 }; 17045 17046 /** 17047 * enum qca_wlan_vendor_attr_tpc_pwr_level - Definition of attributes 17048 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL. 17049 * 17050 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY: u32 channel center 17051 * frequency (MHz): If PSD power, carries one 20 MHz sub-channel center 17052 * frequency. If non PSD power, carries either 20 MHz bandwidth's center 17053 * channel frequency or 40 MHz bandwidth's center channel frequency 17054 * (or 80/160 MHz bandwidth's center channel frequency). 17055 * 17056 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER: s8 transmit power limit (dBm). 17057 * If PSD power, carries PSD power value of the 17058 * QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY mentioned sub-channel. 17059 * If non PSD power, carries EIRP power value of bandwidth mentioned 17060 * by QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY center frequency. 17061 */ 17062 enum qca_wlan_vendor_attr_tpc_pwr_level { 17063 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_INVALID = 0, 17064 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY = 1, 17065 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER = 2, 17066 17067 /* keep last */ 17068 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST, 17069 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_MAX = 17070 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST - 1, 17071 }; 17072 17073 /** 17074 * enum qca_wlan_vendor_tpc - Definition of link attributes 17075 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_LINKS. 17076 * 17077 * @QCA_WLAN_VENDOR_ATTR_TPC_BSSID: 6-bytes AP BSSID. 17078 * For MLO STA, AP BSSID indicates the AP's link address. 17079 * 17080 * @QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER: PSD power flag 17081 * Indicates using PSD power mode if this flag is present. 17082 * 17083 * @QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER: s8 Regulatory EIRP power 17084 * value in dBm 17085 * 17086 * @QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ: u8 power type of 6 GHz 17087 * AP, refer to Table E-12-Regulatory Info subfield encoding in 17088 * IEEE P802.11-REVme/D4.0. Only present if link is connected to 6 GHz AP. 17089 * 17090 * @QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER: u8 Local Power Constraint 17091 * (dBm) advertised by AP in Power Constraint element, refer to 17092 * IEEE Std 802.11-2020, 9.4.2.13 Power Constraint element. 17093 * 17094 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL: A nested attribute containing 17095 * attributes defined by enum qca_wlan_vendor_attr_tpc_pwr_level. 17096 * If PSD power, each power level describes each 20 MHz subchannel PSD 17097 * power value. If non PSD power, each power level describes each supported 17098 * bandwidth's EIRP power value (up to Max bandwidth of AP operating on), 17099 * each level attribute contains corresponding bandwidth's center channel 17100 * frequency and its EIRP power value. 17101 */ 17102 enum qca_wlan_vendor_attr_tpc { 17103 QCA_WLAN_VENDOR_ATTR_TPC_INVALID = 0, 17104 QCA_WLAN_VENDOR_ATTR_TPC_BSSID = 1, 17105 QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER = 2, 17106 QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER = 3, 17107 QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ = 4, 17108 QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER = 5, 17109 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL = 6, 17110 17111 /* keep last */ 17112 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST, 17113 QCA_WLAN_VENDOR_ATTR_TPC_MAX = 17114 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1, 17115 }; 17116 17117 /** 17118 * enum qca_wlan_vendor_attr_tpc_links - Definition of attributes 17119 * for %QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO subcommand 17120 * 17121 * @QCA_WLAN_VENDOR_ATTR_TPC_LINKS: A nested attribute containing 17122 * per-link TPC information of all the active links of MLO STA. 17123 * For non MLO STA, only one link TPC information will be returned 17124 * for connected AP in this nested attribute. 17125 * The attributes used inside this nested attributes are defined 17126 * in enum qca_wlan_vendor_attr_tpc. 17127 */ 17128 enum qca_wlan_vendor_attr_tpc_links { 17129 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_INVALID = 0, 17130 QCA_WLAN_VENDOR_ATTR_TPC_LINKS = 1, 17131 17132 /* keep last */ 17133 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_AFTER_LAST, 17134 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_MAX = 17135 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1, 17136 }; 17137 17138 /** 17139 * enum qca_wlan_vendor_attr_fw_page_fault_report - Used by the vendor 17140 * command %QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT. 17141 * 17142 * @QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA: The binary blob data 17143 * associated with the firmware page fault that is expected to contain the 17144 * required dump to analyze frequent page faults. 17145 * NLA_BINARY attribute, the maximum size is 1024 bytes. 17146 */ 17147 enum qca_wlan_vendor_attr_fw_page_fault_report { 17148 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_INVALID = 0, 17149 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA = 1, 17150 17151 /* keep last */ 17152 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST, 17153 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_MAX = 17154 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST - 1, 17155 }; 17156 17157 /** 17158 * enum qca_wlan_btm_support: BTM support configuration 17159 * 17160 * @QCA_WLAN_BTM_SUPPORT_DEFAULT: Restore default BTM support policy. The driver 17161 * follows the BSS Transition bit in the Extended Capabilities element from the 17162 * connect request IEs with the default BTM support policy. 17163 * 17164 * @QCA_WLAN_BTM_SUPPORT_DISABLE: Disable BTM support for the subsequent 17165 * (re)association attempts. The driver shall restore the default BTM support 17166 * policy during the first disconnection after successful association. When this 17167 * configuration is enabled, the driver shall overwrite the BSS Transition bit 17168 * as zero in the Extended Capabilities element while sending (Re)Association 17169 * Request frames. Also, the driver shall drop the BTM frames from userspace and 17170 * the connected AP when this configuration is enabled. 17171 */ 17172 enum qca_wlan_btm_support { 17173 QCA_WLAN_BTM_SUPPORT_DEFAULT = 0, 17174 QCA_WLAN_BTM_SUPPORT_DISABLE = 1, 17175 }; 17176 17177 /** 17178 * enum qca_wlan_vendor_data_rate_type - Represents the possible values for 17179 * attribute %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE. 17180 * 17181 * @QCA_WLAN_VENDOR_DATA_RATE_TYPE_LEGACY: Data rate type is a legacy rate code 17182 * used in OFDM/CCK. 17183 * 17184 * @QCA_WLAN_VENDOR_DATA_RATE_TYPE_MCS: Data rate type is an MCS index. 17185 * 17186 */ 17187 enum qca_wlan_vendor_data_rate_type { 17188 QCA_WLAN_VENDOR_DATA_RATE_TYPE_LEGACY = 0, 17189 QCA_WLAN_VENDOR_DATA_RATE_TYPE_MCS = 1, 17190 }; 17191 17192 /** 17193 * enum qca_wlan_vendor_attr_adjust_tx_power_rate - Definition 17194 * of data rate related attributes which is used inside nested attribute 17195 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG. 17196 * 17197 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE: u8 data rate type. 17198 * For this attribute, valid values are enumerated in enum 17199 * %qca_wlan_vendor_data_rate_type. 17200 * 17201 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_VALUE: u8 value. 17202 * This attribute value is interpreted according to the value of attribute 17203 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE. For legacy config 17204 * type, this attribute value is defined in the units of 0.5 Mbps. 17205 * For non legacy config type, this attribute carries the MCS index number. 17206 * 17207 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_POWER_VALUE: u8 value in dBm. 17208 * Usually the target computes a final transmit power that is the maximum 17209 * power level that doesn't exceed the limits enforced by various sources 17210 * like chip-specific conformance test limits (CTL), Specific Absorption 17211 * Rate (SAR), Transmit Power Control (TPC), wiphy-specific limits, STA-specific 17212 * limits, channel avoidance limits, Automated Frequency Coordination (AFC), 17213 * and others. In some cases it may be desirable to use a power level that is 17214 * lower than the maximum power level allowed by all of these limits, so this 17215 * attribute provides an additional limit that can be used to reduce the 17216 * transmit power level. 17217 * 17218 */ 17219 enum qca_wlan_vendor_attr_adjust_tx_power_rate { 17220 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_INVALID = 0, 17221 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE = 1, 17222 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_VALUE = 2, 17223 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_POWER_VALUE = 3, 17224 17225 /* keep last */ 17226 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_AFTER_LAST, 17227 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_MAX = 17228 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_AFTER_LAST - 1, 17229 }; 17230 17231 /** 17232 * enum qca_wlan_vendor_attr_adjust_tx_power_chain_config - Definition 17233 * of chain related attributes which is used inside nested attribute 17234 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG. 17235 * 17236 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INDEX: u8 value. 17237 * Represents a particular chain for which transmit power adjustment needed. 17238 * 17239 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG: A nested 17240 * attribute containing data rate related information to adjust transmit 17241 * power. The attributes used inside this nested attributes are defined in 17242 * enum qca_wlan_vendor_attr_adjust_tx_power_rate. 17243 */ 17244 enum qca_wlan_vendor_attr_adjust_tx_power_chain_config { 17245 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INVALID = 0, 17246 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INDEX = 1, 17247 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG = 2, 17248 17249 /* keep last */ 17250 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_AFTER_LAST, 17251 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_MAX = 17252 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_AFTER_LAST - 1, 17253 }; 17254 17255 /** 17256 * enum qca_wlan_vendor_attr_adjust_tx_power_band_config - Definition 17257 * of band related attributes which is used inside nested attribute 17258 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG. 17259 * 17260 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INDEX: u8 value to 17261 * indicate band for which configuration applies. Valid values are enumerated 17262 * in enum %nl80211_band. 17263 * 17264 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG: A nested 17265 * attribute containing per chain related information to adjust transmit 17266 * power. The attributes used inside this nested attribute are defined in 17267 * enum qca_wlan_vendor_attr_adjust_tx_power_chain_config. 17268 * 17269 */ 17270 enum qca_wlan_vendor_attr_adjust_tx_power_band_config { 17271 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INVALID = 0, 17272 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INDEX = 1, 17273 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG = 2, 17274 17275 /* keep last */ 17276 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_AFTER_LAST, 17277 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_MAX = 17278 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_AFTER_LAST - 1, 17279 }; 17280 17281 /** 17282 * enum qca_wlan_vendor_attr_adjust_tx_power - Definition of attributes 17283 * for %QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER subcommand. 17284 * 17285 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG: A nested attribute 17286 * containing per band related information to adjust transmit power. 17287 * The attributes used inside this nested attributes are defined in 17288 * enum qca_wlan_vendor_attr_adjust_tx_power_band_config. 17289 */ 17290 enum qca_wlan_vendor_attr_adjust_tx_power { 17291 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_INVALID = 0, 17292 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG = 1, 17293 17294 /* keep last */ 17295 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_AFTER_LAST, 17296 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_MAX = 17297 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_AFTER_LAST - 1, 17298 }; 17299 17300 /** 17301 * enum qca_wlan_vendor_spectral_data_transport_mode - Attribute 17302 * values for QCA_WLAN_VENDOR_ATTR_SPECTRAL_DATA_TRANSPORT_MODE. 17303 * 17304 * @QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_NETLINK: Use netlink to 17305 * send spectral data to userspace applications. 17306 * @QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_RELAY: Use relay interface 17307 * to send spectral data to userspace applications. 17308 */ 17309 enum qca_wlan_vendor_spectral_data_transport_mode { 17310 QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_NETLINK = 0, 17311 QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_RELAY = 1, 17312 }; 17313 17314 /* enum qca_wlan_vendor_spectral_scan_complete_status - Attribute 17315 * values for QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS to 17316 * indicate the completion status for a spectral scan. 17317 * 17318 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_SUCCESSFUL: 17319 * Indicates a successful completion of the scan. 17320 * 17321 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_TIMEOUT: Indicates 17322 * a timeout has occured while processing the spectral reports. 17323 */ 17324 enum qca_wlan_vendor_spectral_scan_complete_status { 17325 QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_SUCCESSFUL = 0, 17326 QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_TIMEOUT = 1, 17327 }; 17328 17329 /* enum qca_wlan_vendor_attr_spectral_scan_complete - Definition of 17330 * attributes for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE 17331 * to indicate scan status and samples received from hardware. 17332 * 17333 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_INVALID: Invalid attribute 17334 * 17335 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS: u32 attribute. 17336 * Indicates completion status, either the scan is successful or a timeout 17337 * is issued by the driver. 17338 * See enum qca_wlan_vendor_spectral_scan_complete_status. 17339 * 17340 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_RECEIVED_SAMPLES: u32 17341 * attribute. Number of spectral samples received after the scan has started. 17342 */ 17343 enum qca_wlan_vendor_attr_spectral_scan_complete { 17344 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_INVALID = 0, 17345 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS = 1, 17346 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_RECEIVED_SAMPLES = 2, 17347 17348 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_AFTER_LAST, 17349 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_MAX = 17350 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_AFTER_LAST - 1, 17351 }; 17352 17353 /** 17354 * enum qca_wlan_vendor_async_get_station_attr - Attribute values for 17355 * %QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION command. 17356 * 17357 * @QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_CONFIG: 8-bit unsigned value to 17358 * configure the driver to enable/disable reporting 17359 * %QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION events. 1-Enable, 0-Disable. 17360 * This is required in a command. 17361 * 17362 * @QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_RESPONSE: Nested attribute. This is 17363 * required in %QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION event. 17364 * This attribute is nested with the station MAC address in %NL80211_ATTR_MAC 17365 * and the station information in %NL80211_ATTR_STA_INFO nested attribute, see 17366 * enum nl80211_sta_info. 17367 */ 17368 enum qca_wlan_vendor_async_get_station_attr { 17369 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_INVALID = 0, 17370 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_CONFIG = 1, 17371 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_RESPONSE = 2, 17372 17373 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_AFTER_LAST, 17374 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_MAX = 17375 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_AFTER_LAST - 1, 17376 }; 17377 17378 /* enum qca_wlan_vendor_ap_suspend_state - Attribute values for 17379 * QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_STATE. 17380 * 17381 * @QCA_WLAN_VENDOR_AP_SUSPEND_STATE_DISABLE: Disable suspend state. When used 17382 * with a command, the driver resumes AP with the same configuration that was 17383 * applied earlier and starts all TX/RX operations. When used in an event, 17384 * indicates the AP interface resumed. 17385 * 17386 * @QCA_WLAN_VENDOR_AP_SUSPEND_STATE_ENABLE: Enable suspend state. In this 17387 * mode, all associated STAs are disconnected and TX/RX is stopped. While an AP 17388 * is in this state, it allows only %QCA_WLAN_VENDOR_AP_SUSPEND_STATE_DISABLE 17389 * or AP stop/teardown operations. When used in an event, indicates the AP 17390 * interface suspended. 17391 */ 17392 enum qca_wlan_vendor_ap_suspend_state { 17393 QCA_WLAN_VENDOR_AP_SUSPEND_STATE_DISABLE = 0, 17394 QCA_WLAN_VENDOR_AP_SUSPEND_STATE_ENABLE = 1, 17395 }; 17396 17397 /* enum qca_wlan_vendor_attr_ap_suspend - Definition of attributes for 17398 * @QCA_NL80211_VENDOR_SUBCMD_AP_SUSPEND to configure/notify the suspend state. 17399 * 17400 * @QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_STATE: u8 attribute to configure/notify 17401 * suspend state defined in enum qca_wlan_vendor_ap_suspend_state. 17402 */ 17403 enum qca_wlan_vendor_attr_ap_suspend { 17404 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_INVALID = 0, 17405 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_STATE = 1, 17406 17407 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_AFTER_LAST, 17408 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_MAX = 17409 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_AFTER_LAST - 1, 17410 }; 17411 17412 /** 17413 * enum qca_traffic_type - Traffic types into which the flows can be classified. 17414 * @QCA_TRAFFIC_TYPE_STREAMING: Traffic type is streaming 17415 * @QCA_TRAFFIC_TYPE_GAMING: Traffic type is gaming 17416 * @QCA_TRAFFIC_TYPE_VOICE_CALL: Traffic type is a voice call 17417 * @QCA_TRAFFIC_TYPE_VIDEO_CALL: Traffic type is a video call 17418 * @QCA_TRAFFIC_TYPE_SCREEN_SHARE: Traffic type is screen share 17419 * @QCA_TRAFFIC_TYPE_UNKNOWN: Traffic type is unknown 17420 * @QCA_TRAFFIC_TYPE_INVALID: Invalid traffic type 17421 */ 17422 enum qca_traffic_type { 17423 QCA_TRAFFIC_TYPE_STREAMING = 0, 17424 QCA_TRAFFIC_TYPE_GAMING = 1, 17425 QCA_TRAFFIC_TYPE_VOICE_CALL = 2, 17426 QCA_TRAFFIC_TYPE_VIDEO_CALL = 3, 17427 QCA_TRAFFIC_TYPE_SCREEN_SHARE = 4, 17428 QCA_TRAFFIC_TYPE_UNKNOWN = 5, 17429 QCA_TRAFFIC_TYPE_INVALID = 6, 17430 }; 17431 17432 /** 17433 * enum qca_wlan_vendor_flow_tuple_proto - Definition of the values to specify 17434 * the flow tuple protocol in QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_PROTOCOL. 17435 * 17436 * @QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_UDP: UDP flow 17437 * 17438 * @QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_TCP: TCP flow 17439 */ 17440 enum qca_wlan_vendor_flow_tuple_proto { 17441 QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_UDP = 0, 17442 QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_TCP = 1, 17443 }; 17444 17445 /** 17446 * enum qca_wlan_vendor_attr_flow_tuple - Definition of attributes to specify a 17447 * flow tuple. 17448 * 17449 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_SRC_ADDR: Optional u32 attribute 17450 * indicates the source IPv4 address (in network byte order). 17451 * 17452 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_DST_ADDR: Optional u32 attribute 17453 * indicates the destination IPv4 address (in network byte order). 17454 * 17455 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_SRC_ADDR: Optional NLA_BINARY 17456 * attribute of 16 bytes length that indicates the source IPv6 address 17457 * (in network byte order) for a flow. 17458 * 17459 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_DST_ADDR: Optional NLA_BINARY 17460 * attribute of 16 bytes length that indicates the destination IPv6 address 17461 * (in network byte order) for a flow. 17462 * 17463 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_SRC_PORT: Mandatory u16 attribute indicates 17464 * the TCP/UDP source port. 17465 * 17466 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_DST_PORT: Mandatory u16 attribute indicates 17467 * the TCP/UDP destination port. 17468 * 17469 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_PROTOCOL: Mandatory u8 attribute indicates 17470 * the flow protocol. Uses the enum qca_wlan_vendor_flow_tuple_proto. 17471 * 17472 * IPv4 flows have to specify @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_SRC_ADDR 17473 * and @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_DST_ADDR. 17474 * IPv6 flows have to specify @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_SRC_ADDR 17475 * and @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_DST_ADDR. 17476 */ 17477 enum qca_wlan_vendor_attr_flow_tuple { 17478 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_INVALID = 0, 17479 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_SRC_ADDR = 1, 17480 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_DST_ADDR = 2, 17481 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_SRC_ADDR = 3, 17482 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_DST_ADDR = 4, 17483 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_SRC_PORT = 5, 17484 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_DST_PORT = 6, 17485 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_PROTOCOL = 7, 17486 17487 /* keep last */ 17488 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_LAST, 17489 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_MAX = 17490 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_LAST - 1, 17491 }; 17492 17493 /** 17494 * enum qca_wlan_vendor_attr_txrx_stats - Definition of attributes to specify 17495 * TX/RX sample for one window. 17496 * 17497 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_BYTES: Mandatory u64 attribute indicates 17498 * the total number of uplink/downlink bytes within the sampling window. 17499 * 17500 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_PKTS: Mandatory u32 attribute indicates 17501 * the total number of packets (uplink/downlink) within the sampling window. 17502 * 17503 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MIN: Mandatory u32 attribute 17504 * indicates the minimum uplink/downlink packet size (in bytes) during the 17505 * sampling window. 17506 * 17507 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MAX: Mandatory u32 attribute 17508 * indicates the maximum uplink/downlink packet size (in bytes) during the 17509 * sampling window. 17510 * 17511 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MIN: Mandatory u64 attribute 17512 * indicates the minimum uplink/downlink packet IAT (inter-arrival time) 17513 * in microseconds, during the sampling window. 17514 * 17515 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MAX: Mandatory u64 attribute 17516 * indicates the maximum uplink/downlink packet IAT (inter-arrival time) 17517 * in microseconds, during the sampling window. 17518 * 17519 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_SUM: Mandatory u64 attribute 17520 * indicates the sum of all the values of uplink/downlink packet IAT 17521 * (inter-arrival time) in microseconds, during the sampling window. 17522 * This attribute is used to calculate the mean packet (inter-arrival time) 17523 * during the sampling window. 17524 */ 17525 enum qca_wlan_vendor_attr_txrx_stats { 17526 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_INVALID = 0, 17527 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_BYTES = 1, 17528 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_PKTS = 2, 17529 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MIN = 3, 17530 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MAX = 4, 17531 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MIN = 5, 17532 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MAX = 6, 17533 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_SUM = 7, 17534 17535 /* keep last */ 17536 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_LAST, 17537 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_MAX = 17538 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_LAST - 1, 17539 }; 17540 17541 /** 17542 * enum qca_wlan_vendor_attr_txrx_samples_windows - Definition of attributes 17543 * to specify the TX/RX statistics collected in a sampling window. 17544 * 17545 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_WINDOW_SIZE: Mandatory u32 17546 * attribute indicates window size for packet TX/RX sampling (in milliseconds). 17547 * 17548 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_UL_STATS: Mandatory nested 17549 * attribute containing the uplink TX/RX packet statistics for a flow. Uses the 17550 * enum qca_wlan_vendor_attr_txrx_stats. 17551 * 17552 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_DL_STATS: Mandatory nested 17553 * attribute containing the downlink TX/RX packet statistics for a flow. Uses 17554 * the enum qca_wlan_vendor_attr_txrx_stats. 17555 */ 17556 enum qca_wlan_vendor_attr_txrx_samples_windows { 17557 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_INVALID = 0, 17558 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_WINDOW_SIZE = 1, 17559 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_UL_STATS = 2, 17560 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_DL_STATS = 3, 17561 17562 /* keep last */ 17563 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_LAST, 17564 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_MAX = 17565 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_LAST - 1, 17566 }; 17567 17568 /** 17569 * enum qca_wlan_vendor_attr_txrx_samples - Definition of attributes to specify 17570 * a TX/RX sample. 17571 * 17572 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS: Mandatory array of nested 17573 * attributes that indicates the TX/RX samples in multiple overlapping windows. 17574 * This uses the attributes defined by 17575 * enum qca_wlan_vendor_attr_txrx_samples_windows. 17576 */ 17577 enum qca_wlan_vendor_attr_txrx_samples { 17578 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_INVALID = 0, 17579 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS = 1, 17580 17581 /* keep last */ 17582 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_LAST, 17583 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_MAX = 17584 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_LAST - 1, 17585 }; 17586 17587 /** 17588 * enum qca_wlan_vendor_attr_burst_stats - Definition of attribute to specify 17589 * burst statistics. 17590 * 17591 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MIN: Mandatory u32 attribute 17592 * indicates minimum burst duration (in milliseconds) during the sampling 17593 * window. 17594 * 17595 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MAX: Mandatory u32 attribute 17596 * indicates maximum burst duration (in milliseconds) during the sampling 17597 * window. 17598 * 17599 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_SUM: Mandatory u64 attribute 17600 * indicates the sum of all the values of burst duration (in milliseconds) 17601 * during the sampling window. This attribute is used to calculate the mean 17602 * burst duration (in milliseconds) during the sampling window. 17603 * 17604 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MIN: Mandatory u64 attribute 17605 * indicates minimum burst size (in bytes) during the sampling window. 17606 * 17607 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MAX: Mandatory u64 attribute 17608 * indicates maximum burst size (in bytes) during the sampling window. 17609 * 17610 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_SUM: Mandatory u64 attribute 17611 * indicates the sum of all the values of burst size (in bytes) during the 17612 * sampling window. This attribute is used to calculate the mean burst size 17613 * (in bytes) during the sampling window. 17614 * 17615 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_COUNT: Mandatory u32 attribute 17616 * indicates the number of bursts during the sampling window. 17617 */ 17618 enum qca_wlan_vendor_attr_burst_stats { 17619 QCA_WLAN_VENDOR_ATTR_BURST_STATS_INVALID = 0, 17620 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MIN = 1, 17621 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MAX = 2, 17622 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_SUM = 3, 17623 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MIN = 4, 17624 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MAX = 5, 17625 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_SUM = 6, 17626 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_COUNT = 7, 17627 17628 /* keep last */ 17629 QCA_WLAN_VENDOR_ATTR_BURST_STATS_LAST, 17630 QCA_WLAN_VENDOR_ATTR_BURST_STATS_MAX = 17631 QCA_WLAN_VENDOR_ATTR_BURST_STATS_LAST - 1, 17632 }; 17633 17634 /** 17635 * enum qca_wlan_vendor_attr_burst_sample - Definition of attributes to specify 17636 * a burst sample. 17637 * 17638 * @QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_TXRX_STATS: Mandatory nested attribute 17639 * indicates the uplink and downlink packet statistics collected in a 17640 * sampling window, containing attributes defined in 17641 * enum qca_wlan_vendor_attr_txrx_samples_windows. 17642 * 17643 * @QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_UL_BURST_STATS: Optional nested attribute 17644 * indicates the uplink burst stats, containing attributes defined in 17645 * enum qca_wlan_vendor_attr_burst_stats. 17646 * 17647 * @QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_DL_BURST_STATS: Optional nested attribute 17648 * indicates the downlink burst stats, containing attributes defined in 17649 * enum qca_wlan_vendor_attr_burst_stats. 17650 */ 17651 enum qca_wlan_vendor_attr_burst_sample { 17652 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_INVALID = 0, 17653 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_TXRX_STATS = 1, 17654 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_UL_BURST_STATS = 2, 17655 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_DL_BURST_STATS = 3, 17656 17657 /* keep last */ 17658 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_LAST, 17659 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_MAX = 17660 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_LAST - 1, 17661 }; 17662 17663 /** 17664 * enum qca_wlan_vendor_attr_flow_stats - Definition of attribute used by 17665 * %QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT and 17666 * %QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS. 17667 * 17668 * Presence of one of the attributes 17669 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TXRX_SAMPLES and 17670 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_BURST_SAMPLES is mandatory. 17671 * 17672 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_FLOW_TUPLE: Mandatory nested attribute 17673 * containing the flow tuple of the flow for which the statistics are being 17674 * reported. 17675 * Uses the attributes defined by enum qca_wlan_vendor_attr_flow_tuple. 17676 * 17677 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TRAFFIC_TYPE: Optional u8 attribute 17678 * indicates the traffic type classified for this flow tuple. Uses the 17679 * enum qca_traffic_type values. 17680 * This attribute is mandatory for the command 17681 * @QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT. 17682 * 17683 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TXRX_SAMPLES: Optional nested attribute 17684 * containing nested array of TX/RX samples defined in 17685 * enum qca_wlan_vendor_attr_txrx_samples. 17686 * 17687 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_BURST_SAMPLES: Optional nested attribute 17688 * indicates the packet burst statistics for a flow. Uses attributes defined by 17689 * enum qca_wlan_vendor_attr_burst_sample. 17690 */ 17691 enum qca_wlan_vendor_attr_flow_stats { 17692 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_INVALID = 0, 17693 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_FLOW_TUPLE = 1, 17694 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TRAFFIC_TYPE = 2, 17695 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TXRX_SAMPLES = 3, 17696 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_BURST_SAMPLES = 4, 17697 17698 /* keep last */ 17699 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_LAST, 17700 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_MAX = 17701 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_LAST - 1, 17702 }; 17703 17704 /** 17705 * enum qca_wlan_vendor_attr_flow_classify_result - Definition of attributes to 17706 * specify the flow classification result. This enum is used by 17707 * @QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT. 17708 * 17709 * @QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_FLOW_TUPLE: Mandatory nested 17710 * attribute containing attributes defined by 17711 * enum qca_wlan_vendor_attr_flow_tuple. 17712 * 17713 * @QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_TRAFFIC_TYPE: Mandatory u8 17714 * attribute indicates the traffic type learned for this flow tuple. Uses the 17715 * enum qca_traffic_type values. 17716 */ 17717 enum qca_wlan_vendor_attr_flow_classify_result { 17718 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_INVALID = 0, 17719 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_FLOW_TUPLE = 1, 17720 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_TRAFFIC_TYPE = 2, 17721 17722 /* keep last */ 17723 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_LAST, 17724 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_MAX = 17725 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_LAST - 1, 17726 }; 17727 17728 /** 17729 * enum qca_async_stats_sub_module - The statistics type used in async 17730 * statistics policy. 17731 * Used by @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_TYPE. 17732 * 17733 * @QCA_ASYNC_STATS_TYPE_POWERSAVE: Wi-Fi powersave statistics 17734 * 17735 * @QCA_ASYNC_STATS_TYPE_FLOW_STATS: Flow statistics 17736 * 17737 * @QCA_ASYNC_STATS_TYPE_CLASSIFIED_FLOW_STATS: Classified flow statistics 17738 */ 17739 enum qca_async_stats_type { 17740 QCA_ASYNC_STATS_TYPE_POWERSAVE = 0, 17741 QCA_ASYNC_STATS_TYPE_FLOW_STATS = 1, 17742 QCA_ASYNC_STATS_TYPE_CLASSIFIED_FLOW_STATS = 2, 17743 }; 17744 17745 /** 17746 * enum qca_async_stats_action - ASYNC statistics action. Used by 17747 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_ACTION. 17748 * 17749 * @QCA_ASYNC_STATS_ACTION_START: Start indication for async statistics 17750 * collection. 17751 * @QCA_ASYNC_STATS_ACTION_STOP: Stop indication for async statistics 17752 * collection. 17753 */ 17754 enum qca_async_stats_action { 17755 QCA_ASYNC_STATS_ACTION_START = 0, 17756 QCA_ASYNC_STATS_ACTION_STOP = 1, 17757 }; 17758 17759 /** 17760 * enum qca_wlan_vendor_attr_async_stats_policy - Definition of attributes to 17761 * specify the ASYNC statistics policy. This enum is used by 17762 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY. 17763 * 17764 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_TYPE: Mandatory u8 17765 * attribute indicates the statistics type for which the async statistics policy 17766 * needs to be applied by the driver. Uses the enum qca_async_stats_type values. 17767 * 17768 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_ACTION: Mandatory u8 attribute 17769 * indicates the action as part of this policy. 17770 * Uses the enum qca_async_stats_action values. 17771 * 17772 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_PERIODICITY: Optional u32 17773 * attribute indicates the periodicity (in milliseconds) for the statistics to 17774 * be reported. This attribute is mandatory for QCA_ASYNC_STATS_TYPE_POWERSAVE. 17775 */ 17776 enum qca_wlan_vendor_attr_async_stats_policy { 17777 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_INVALID = 0, 17778 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_TYPE = 1, 17779 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_ACTION = 2, 17780 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_PERIODICITY = 3, 17781 17782 /* keep last */ 17783 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_LAST, 17784 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_MAX = 17785 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_LAST - 1, 17786 }; 17787 17788 /** 17789 * enum qca_wlan_vendor_attr_nss_pkt - Attributes used by 17790 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT. 17791 * 17792 * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE: u8 attribute. This 17793 * represents the number of spatial streams. 17794 * 17795 * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_TX_PACKET_COUNT: u64 attribute. This 17796 * represents the number of MSDU packets transmitted with the number of spatial 17797 * streams specified in %QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE. 17798 * 17799 * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_RX_PACKET_COUNT: u64 attribute. This 17800 * represents the number of MSDU packets received with the number of spatial 17801 * streams specified in %QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE. 17802 */ 17803 enum qca_wlan_vendor_attr_nss_pkt { 17804 QCA_WLAN_VENDOR_ATTR_NSS_PKT_INVALID = 0, 17805 QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE = 1, 17806 QCA_WLAN_VENDOR_ATTR_NSS_PKT_TX_PACKET_COUNT = 2, 17807 QCA_WLAN_VENDOR_ATTR_NSS_PKT_RX_PACKET_COUNT = 3, 17808 17809 QCA_WLAN_VENDOR_ATTR_NSS_PKT_AFTER_LAST, 17810 QCA_WLAN_VENDOR_ATTR_NSS_PKT_MAX = 17811 QCA_WLAN_VENDOR_ATTR_NSS_PKT_AFTER_LAST - 1, 17812 }; 17813 17814 /** 17815 * enum qca_wlan_intf_offload_type - Definition of available values for 17816 * QCA_WLAN_VENDOR_ATTR_CONFIG_INTF_OFFLOAD_TYPE to specify the offload path for 17817 * packets handled through a network device. 17818 * 17819 * There are three offload paths possible for handling packet forwarding between 17820 * Ethernet and Wi-Fi network, and which path to use can be configured on a per 17821 * netdevice level based on use case. Userspace can choose different options 17822 * based on use cases like performance requirements, traffic control features 17823 * and limitations provided in each option. 17824 * 17825 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_NONE: No acceleration configured. 17826 * Packets are processed through the Linux kernel networking stack. 17827 * 17828 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_SFE: Packets are processed through 17829 * the shortcut forwarding engine (SFE) to bypass the Linux networking stack 17830 * for improved throughput performance. This option is applicable for AP, STA, 17831 * and Mesh mode and available for all radio designs. From the performance 17832 * aspect, this option consumes more CPU compared to the other two options. 17833 * Linux traffic control can be further applied with this option to have more 17834 * control on the traffic flows. 17835 * 17836 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_ACTIVE_VP: Packets are processed 17837 * through both hardware and software in this case. Packet classification is 17838 * done by the hardware and then the packets are delivered to software along 17839 * with classification results as meta data. Software can choose to do more 17840 * classification/QoS based on use cases. This is applicable for AP, STA, and 17841 * Mesh modes and this is available for all radio designs. From the performance 17842 * aspect, this option consumes relatively less CPU compared to the SFE option 17843 * above. Linux traffic control rules cannot be applied with this option. 17844 * 17845 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_PPE_DS: Packets are processed through 17846 * special hardware (Direct Switch) rings which can directly forward the packets 17847 * between Ethernet hardware and Wi-Fi hardware with very little software 17848 * involvement. This is applicable only for AP and STA modes; not applicable 17849 * for Mesh mode. From the performance aspect, this option consumes very much 17850 * less CPU compared to the other options. Linux traffic control rules cannot be 17851 * applied when this option is used. This option is applicable only for 17852 * specific radio designs. When this option is not available, the default option 17853 * (SFE) would be configured. 17854 */ 17855 enum qca_wlan_intf_offload_type { 17856 QCA_WLAN_INTF_OFFLOAD_TYPE_NONE = 0, 17857 QCA_WLAN_INTF_OFFLOAD_TYPE_SFE = 1, 17858 QCA_WLAN_INTF_OFFLOAD_TYPE_ACTIVE_VP = 2, 17859 QCA_WLAN_INTF_OFFLOAD_TYPE_PPE_DS = 3, 17860 }; 17861 17862 #endif /* QCA_VENDOR_H */ 17863