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 that are encoded in 234 * QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS. 235 * 236 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED: Event used by driver, 237 * which supports DFS offloading, to indicate a channel availability check 238 * start. 239 * 240 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED: Event used by driver, 241 * which supports DFS offloading, to indicate a channel availability check 242 * completion. 243 * 244 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED: Event used by driver, 245 * which supports DFS offloading, to indicate that the channel availability 246 * check aborted, no change to the channel status. 247 * 248 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED: Event used by 249 * driver, which supports DFS offloading, to indicate that the 250 * Non-Occupancy Period for this channel is over, channel becomes usable. 251 * 252 * @QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED: Event used by driver, 253 * which supports DFS offloading, to indicate a radar pattern has been 254 * detected. The channel is now unusable. 255 * 256 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO: Get information from the driver. 257 * Attributes defined in enum qca_wlan_vendor_attr_get_wifi_info. 258 * 259 * @QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION: This command is used to 260 * configure various wiphy or interface level configurations. Attributes 261 * are defined in enum qca_wlan_vendor_attr_config. Userspace can send one 262 * or more configuration attributes with a single command. The driver 263 * accepts the command only if all the configurations are known, otherwise 264 * it rejects the command. The driver returns success only if processing of 265 * all the configurations succeeds. The driver continues to process all the 266 * configurations even if processing of some configurations failed and 267 * returns the last error occurred while processing the failed 268 * configurations. 269 * 270 * @QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION: This command is used to 271 * get the current values of the various wiphy or interface level 272 * configurations. Attributes are defined in enum 273 * qca_wlan_vendor_attr_config. Userspace needs to specify the 274 * configuration attributes for which it wants to get the values in the 275 * command, there is no significance for the value sent in the attribute 276 * unless explicitly specified in the corresponding configuration 277 * attribute documentation. The driver accepts the command only if all the 278 * configurations are known, otherwise it rejects the command. The driver 279 * returns success only if fetching of all configuration values succeeds 280 * and indicates the configuration values in corresponding attributes in 281 * the response. The driver continues to process all the configurations 282 * even if processing of some configurations failed and returns the last 283 * error occurred while processing the failed configurations. 284 * 285 * @QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET: Get the feature bitmap 286 * based on enum wifi_logger_supported_features. Attributes defined in 287 * enum qca_wlan_vendor_attr_get_logger_features. 288 * 289 * @QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA: Get the ring data from a particular 290 * logger ring, QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID is passed as the 291 * attribute for this command. Attributes defined in 292 * enum qca_wlan_vendor_attr_wifi_logger_start. 293 * 294 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES: Get the supported TDLS 295 * capabilities of the driver, parameters includes the attributes defined 296 * in enum qca_wlan_vendor_attr_tdls_get_capabilities. 297 * 298 * @QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS: Vendor command used to offload 299 * sending of certain periodic IP packet to firmware, attributes defined in 300 * enum qca_wlan_vendor_attr_offloaded_packets. 301 * 302 * @QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI: Command used to configure RSSI 303 * monitoring, defines min and max RSSI which are configured for RSSI 304 * monitoring. Also used to notify the RSSI breach and provides the BSSID 305 * and RSSI value that was breached. Attributes defined in 306 * enum qca_wlan_vendor_attr_rssi_monitoring. 307 * 308 * @QCA_NL80211_VENDOR_SUBCMD_NDP: Command used for performing various NAN 309 * Data Path (NDP) related operations, attributes defined in 310 * enum qca_wlan_vendor_attr_ndp_params. 311 * 312 * @QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD: Command used to enable/disable 313 * Neighbour Discovery offload, attributes defined in 314 * enum qca_wlan_vendor_attr_nd_offload. 315 * 316 * @QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER: Used to set/get the various 317 * configuration parameter for BPF packet filter, attributes defined in 318 * enum qca_wlan_vendor_attr_packet_filter. 319 * 320 * @QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE: Gets the driver-firmware 321 * maximum supported size, attributes defined in 322 * enum qca_wlan_vendor_drv_info. 323 * 324 * @QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS: Command to get various 325 * data about wake reasons and datapath IP statistics, attributes defined 326 * in enum qca_wlan_vendor_attr_wake_stats. 327 * 328 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG: Command used to set configuration 329 * for IEEE 802.11 communicating outside the context of a basic service 330 * set, called OCB command. Uses the attributes defines in 331 * enum qca_wlan_vendor_attr_ocb_set_config. 332 * 333 * @QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME: Command used to set OCB 334 * UTC time. Use the attributes defines in 335 * enum qca_wlan_vendor_attr_ocb_set_utc_time. 336 * 337 * @QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT: Command used to start 338 * sending OCB timing advert frames. Uses the attributes defines in 339 * enum qca_wlan_vendor_attr_ocb_start_timing_advert. 340 * 341 * @QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT: Command used to stop 342 * OCB timing advert. Uses the attributes defines in 343 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert. 344 * 345 * @QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER: Command used to get TSF 346 * timer value. Uses the attributes defines in 347 * enum qca_wlan_vendor_attr_ocb_get_tsf_resp. 348 * 349 * @QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES: Command/event to update the 350 * link properties of the respective interface. As an event, is used 351 * to notify the connected station's status. The attributes for this 352 * command are defined in enum qca_wlan_vendor_attr_link_properties. 353 * 354 * @QCA_NL80211_VENDOR_SUBCMD_SETBAND: Command to configure the enabled band(s) 355 * to the driver. This command sets the band(s) through either the 356 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE or 357 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK (or both). 358 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE refers enum qca_set_band as unsigned 359 * integer values and QCA_WLAN_VENDOR_ATTR_SETBAND_MASK refers it as 32 360 * bit unsigned bitmask values. The allowed values for 361 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE are limited to QCA_SETBAND_AUTO, 362 * QCA_SETBAND_5G, and QCA_SETBAND_2G. Other values/bitmasks are valid for 363 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. The attribute 364 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE is deprecated and the recommendation 365 * is to use the QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. If the both attributes 366 * are included for backwards compatibility, the configurations through 367 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK will take the precedence with drivers 368 * that support both attributes. 369 * 370 * @QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY: This command is used to configure 371 * DFS policy and channel hint for ACS operation. This command uses the 372 * attributes defined in enum qca_wlan_vendor_attr_acs_config and 373 * enum qca_acs_dfs_mode. 374 * 375 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START: Command used to 376 * start the P2P Listen offload function in device and pass the listen 377 * channel, period, interval, count, device types, and vendor specific 378 * information elements to the device driver and firmware. 379 * Uses the attributes defines in 380 * enum qca_wlan_vendor_attr_p2p_listen_offload. 381 * 382 * @QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP: Command/event used to 383 * indicate stop request/response of the P2P Listen offload function in 384 * device. As an event, it indicates either the feature stopped after it 385 * was already running or feature has actually failed to start. Uses the 386 * attributes defines in enum qca_wlan_vendor_attr_p2p_listen_offload. 387 * 388 * @QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH: After AP starts 389 * beaconing, this sub command provides the driver, the frequencies on the 390 * 5 GHz band to check for any radar activity. Driver selects one channel 391 * from this priority list provided through 392 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST and starts 393 * to check for radar activity on it. If no radar activity is detected 394 * during the channel availability check period, driver internally switches 395 * to the selected frequency of operation. If the frequency is zero, driver 396 * internally selects a channel. The status of this conditional switch is 397 * indicated through an event using the same sub command through 398 * @QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS. Attributes are 399 * listed in qca_wlan_vendor_attr_sap_conditional_chan_switch. 400 * 401 * @QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND: Set GPIO pins. This uses the 402 * attributes defined in enum qca_wlan_gpio_attr. 403 * 404 * @QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY: Fetch hardware capabilities. 405 * This uses @QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY to indicate which 406 * capabilities are to be fetched and other 407 * enum qca_wlan_vendor_attr_get_hw_capability attributes to return the 408 * requested capabilities. 409 * 410 * @QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT: Link layer statistics extension. 411 * enum qca_wlan_vendor_attr_ll_stats_ext attributes are used with this 412 * command and event. 413 * 414 * @QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA: Get capabilities for 415 * indoor location features. Capabilities are reported in 416 * QCA_WLAN_VENDOR_ATTR_LOC_CAPA. 417 * 418 * @QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION: Start an FTM 419 * (fine timing measurement) session with one or more peers. 420 * Specify Session cookie in QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE and 421 * peer information in QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS. 422 * On success, 0 or more QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT 423 * events will be reported, followed by 424 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE event to indicate 425 * end of session. 426 * Refer to IEEE P802.11-REVmc/D7.0, 11.24.6 427 * 428 * @QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION: Abort a running session. 429 * A QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE will be reported with 430 * status code indicating session was aborted. 431 * 432 * @QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT: Event with measurement 433 * results for one peer. Results are reported in 434 * QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS. 435 * 436 * @QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE: Event triggered when 437 * FTM session is finished, either successfully or aborted by 438 * request. 439 * 440 * @QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER: Configure FTM responder 441 * mode. QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE specifies whether 442 * to enable or disable the responder. LCI/LCR reports can be 443 * configured with QCA_WLAN_VENDOR_ATTR_FTM_LCI and 444 * QCA_WLAN_VENDOR_ATTR_FTM_LCR. Can be called multiple 445 * times to update the LCI/LCR reports. 446 * 447 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS: Perform a standalone AOA (angle of 448 * arrival) measurement with a single peer. Specify peer MAC address in 449 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR and optionally frequency (MHz) in 450 * QCA_WLAN_VENDOR_ATTR_FREQ (if not specified, locate peer in kernel 451 * scan results cache and use the frequency from there). 452 * Also specify measurement type in QCA_WLAN_VENDOR_ATTR_AOA_TYPE. 453 * Measurement result is reported in 454 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT event. 455 * 456 * @QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS: Abort an AOA measurement. Specify 457 * peer MAC address in QCA_WLAN_VENDOR_ATTR_MAC_ADDR. 458 * 459 * @QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT: Event that reports 460 * the AOA measurement result. 461 * Peer MAC address reported in QCA_WLAN_VENDOR_ATTR_MAC_ADDR. 462 * success/failure status is reported in 463 * QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS. 464 * Measurement data is reported in QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT. 465 * The antenna array(s) used in the measurement are reported in 466 * QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK. 467 * 468 * @QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST: Encrypt/decrypt the given 469 * data as per the given parameters. 470 * 471 * @QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI: Get antenna RSSI value for a 472 * specific chain. 473 * 474 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG: Get low level 475 * configuration for a DMG RF sector. Specify sector index in 476 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in 477 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and RF modules 478 * to return sector information for in 479 * QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK. Returns sector configuration 480 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. Also return the 481 * exact time where information was captured in 482 * QCA_WLAN_VENDOR_ATTR_TSF. 483 * 484 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG: Set low level 485 * configuration for a DMG RF sector. Specify sector index in 486 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX, sector type in 487 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and sector configuration 488 * for one or more DMG RF modules in 489 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG. 490 * 491 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR: Get selected 492 * DMG RF sector for a station. This is the sector that the HW 493 * will use to communicate with the station. Specify the MAC address 494 * of associated station/AP/PCP in QCA_WLAN_VENDOR_ATTR_MAC_ADDR (not 495 * needed for unassociated station). Specify sector type to return in 496 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE. Returns the selected 497 * sector index in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX. 498 * Also return the exact time where the information was captured 499 * in QCA_WLAN_VENDOR_ATTR_TSF. 500 * 501 * @QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR: Set the 502 * selected DMG RF sector for a station. This is the sector that 503 * the HW will use to communicate with the station. 504 * Specify the MAC address of associated station/AP/PCP in 505 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR, the sector type to select in 506 * QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE and the sector index 507 * in QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX. 508 * The selected sector will be locked such that it will not be 509 * modified like it normally does (for example when station 510 * moves around). To unlock the selected sector for a station 511 * pass the special value 0xFFFF in the sector index. To unlock 512 * all connected stations also pass a broadcast MAC address. 513 * 514 * @QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS: Configure the TDLS behavior 515 * in the host driver. The different TDLS configurations are defined 516 * by the attributes in enum qca_wlan_vendor_attr_tdls_configuration. 517 * 518 * @QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES: Query device IEEE 802.11ax HE 519 * capabilities. The response uses the attributes defined in 520 * enum qca_wlan_vendor_attr_get_he_capabilities. 521 * 522 * @QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN: Abort an ongoing vendor scan that was 523 * started with QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN. This command 524 * carries the scan cookie of the corresponding scan request. The scan 525 * cookie is represented by QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE. 526 * 527 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS: Set the Specific 528 * Absorption Rate (SAR) power limits. A critical regulation for 529 * FCC compliance, OEMs require methods to set SAR limits on TX 530 * power of WLAN/WWAN. enum qca_vendor_attr_sar_limits 531 * attributes are used with this command. 532 * 533 * @QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS: This command/event is used by the 534 * host driver for offloading the implementation of Auto Channel Selection 535 * (ACS) to an external user space entity. This interface is used as the 536 * event from the host driver to the user space entity and also as the 537 * request from the user space entity to the host driver. The event from 538 * the host driver is used by the user space entity as an indication to 539 * start the ACS functionality. The attributes used by this event are 540 * represented by the enum qca_wlan_vendor_attr_external_acs_event. 541 * User space entity uses the same interface to inform the host driver with 542 * selected channels after the ACS operation using the attributes defined 543 * by enum qca_wlan_vendor_attr_external_acs_channels. 544 * 545 * @QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE: Vendor event carrying the 546 * requisite information leading to a power save failure. The information 547 * carried as part of this event is represented by the 548 * enum qca_attr_chip_power_save_failure attributes. 549 * 550 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET: Start/Stop the NUD statistics 551 * collection. Uses attributes defined in enum qca_attr_nud_stats_set. 552 * 553 * @QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET: Get the NUD statistics. These 554 * statistics are represented by the enum qca_attr_nud_stats_get 555 * attributes. 556 * 557 * @QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS: Sub-command to fetch 558 * the BSS transition status, whether accept or reject, for a list of 559 * candidate BSSIDs provided by the userspace. This uses the vendor 560 * attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and 561 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. The userspace shall specify 562 * the attributes QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON and an 563 * array of QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID nested in 564 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO in the request. In the response 565 * the driver shall specify array of 566 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID and 567 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS pairs nested in 568 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO. 569 * 570 * @QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL: Set the trace level for a 571 * specific QCA module. The trace levels are represented by 572 * enum qca_attr_trace_level attributes. 573 * 574 * @QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT: Set the Beam Refinement 575 * Protocol antenna limit in different modes. See enum 576 * qca_wlan_vendor_attr_brp_ant_limit_mode. 577 * 578 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START: Start spectral scan. The scan 579 * parameters are specified by enum qca_wlan_vendor_attr_spectral_scan. 580 * This returns a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) 581 * identifying the operation in success case. In failure cases an 582 * error code (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE) 583 * describing the reason for the failure is returned. 584 * 585 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP: Stop spectral scan. This uses 586 * a cookie (%QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE) from 587 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START to identify the scan to 588 * be stopped. 589 * 590 * @QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS: Set the active Type Of Service on the 591 * specific interface. This can be used to modify some of the low level 592 * scan parameters (off channel dwell time, home channel time) in the 593 * driver/firmware. These parameters are maintained within the host driver. 594 * This command is valid only when the interface is in the connected state. 595 * These scan parameters shall be reset by the driver/firmware once 596 * disconnected. The attributes used with this command are defined in 597 * enum qca_wlan_vendor_attr_active_tos. 598 * 599 * @QCA_NL80211_VENDOR_SUBCMD_HANG: Event indicating to the user space that the 600 * driver has detected an internal failure. This event carries the 601 * information indicating the reason that triggered this detection. The 602 * attributes for this command are defined in 603 * enum qca_wlan_vendor_attr_hang. 604 * 605 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG: Get the current values 606 * of spectral parameters used. The spectral scan parameters are specified 607 * by enum qca_wlan_vendor_attr_spectral_scan. 608 * 609 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS: Get the debug stats 610 * for spectral scan functionality. The debug stats are specified by 611 * enum qca_wlan_vendor_attr_spectral_diag_stats. 612 * 613 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO: Get spectral 614 * scan system capabilities. The capabilities are specified 615 * by enum qca_wlan_vendor_attr_spectral_cap. 616 * 617 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS: Get the current 618 * status of spectral scan. The status values are specified 619 * by enum qca_wlan_vendor_attr_spectral_scan_status. 620 * 621 * @QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING: Sub-command to flush 622 * peer pending packets. Specify the peer MAC address in 623 * QCA_WLAN_VENDOR_ATTR_PEER_ADDR and the access category of the packets 624 * in QCA_WLAN_VENDOR_ATTR_AC. The attributes are listed 625 * in enum qca_wlan_vendor_attr_flush_pending. 626 * 627 * @QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO: Get vendor specific Representative 628 * RF Operating Parameter (RROP) information. The attributes for this 629 * information are defined in enum qca_wlan_vendor_attr_rrop_info. This is 630 * intended for use by external Auto Channel Selection applications. 631 * 632 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS: Get the Specific Absorption Rate 633 * (SAR) power limits. This is a companion to the command 634 * @QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS and is used to retrieve the 635 * settings currently in use. The attributes returned by this command are 636 * defined by enum qca_vendor_attr_sar_limits. 637 * 638 * @QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO: Provides the current behavior of 639 * the WLAN hardware MAC. Also, provides the WLAN netdev interface 640 * information attached to the respective MAC. 641 * This works both as a query (user space asks the current mode) or event 642 * interface (driver advertising the current mode to the user space). 643 * Driver does not trigger this event for temporary hardware mode changes. 644 * Mode changes w.r.t Wi-Fi connection update (VIZ creation / deletion, 645 * channel change, etc.) are updated with this event. Attributes for this 646 * interface are defined in enum qca_wlan_vendor_attr_mac. 647 * 648 * @QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH: Set MSDU queue depth threshold 649 * per peer per TID. Attributes for this command are define in 650 * enum qca_wlan_set_qdepth_thresh_attr. 651 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD: Provides the thermal shutdown action 652 * guide for WLAN driver. Request to suspend of driver and FW if the 653 * temperature is higher than the suspend threshold; resume action is 654 * requested to driver if the temperature is lower than the resume 655 * threshold. In user poll mode, request temperature data by user. For test 656 * purpose, getting thermal shutdown configuration parameters is needed. 657 * Attributes for this interface are defined in 658 * enum qca_wlan_vendor_attr_thermal_cmd. 659 * @QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT: Thermal events reported from 660 * driver. Thermal temperature and indication of resume completion are 661 * reported as thermal events. The attributes for this command are defined 662 * in enum qca_wlan_vendor_attr_thermal_event. 663 * 664 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION: Sub command to set WiFi 665 * test configuration. Attributes for this command are defined in 666 * enum qca_wlan_vendor_attr_wifi_test_config. 667 * 668 * @QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER: This command is used to configure an 669 * RX filter to receive frames from stations that are active on the 670 * operating channel, but not associated with the local device (e.g., STAs 671 * associated with other APs). Filtering is done based on a list of BSSIDs 672 * and STA MAC addresses added by the user. This command is also used to 673 * fetch the statistics of unassociated stations. The attributes used with 674 * this command are defined in enum qca_wlan_vendor_attr_bss_filter. 675 * 676 * @QCA_NL80211_VENDOR_SUBCMD_NAN_EXT: An extendable version of NAN vendor 677 * command. The earlier command for NAN, QCA_NL80211_VENDOR_SUBCMD_NAN, 678 * carried a payload which was a binary blob of data. The command was not 679 * extendable to send more information. The newer version carries the 680 * legacy blob encapsulated within an attribute and can be extended with 681 * additional vendor attributes that can enhance the NAN command interface. 682 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT: Event to indicate scan triggered 683 * or stopped within driver/firmware in order to initiate roaming. The 684 * attributes used with this event are defined in enum 685 * qca_wlan_vendor_attr_roam_scan. Some drivers may not send these events 686 * in few cases, e.g., if the host processor is sleeping when this event 687 * is generated in firmware. 688 * 689 * @QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG: This command is used to 690 * configure parameters per peer to capture Channel Frequency Response 691 * (CFR) and enable Periodic CFR capture. The attributes for this command 692 * are defined in enum qca_wlan_vendor_peer_cfr_capture_attr. This command 693 * can also be used to send CFR data from the driver to userspace when 694 * netlink events are used to send CFR data. 695 * 696 * @QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT: Event to indicate changes 697 * in throughput dynamically. The driver estimates the throughput based on 698 * number of packets being transmitted/received per second and indicates 699 * the changes in throughput to user space. Userspace tools can use this 700 * information to configure kernel's TCP parameters in order to achieve 701 * peak throughput. Optionally, the driver will also send guidance on 702 * modifications to kernel's TCP parameters which can be referred by 703 * userspace tools. The attributes used with this event are defined in enum 704 * qca_wlan_vendor_attr_throughput_change. 705 * 706 * @QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG: This command is used to set 707 * priorities among different types of traffic during coex scenarios. 708 * Current supported prioritization is among WLAN/BT/ZIGBEE with different 709 * profiles mentioned in enum qca_coex_config_profiles. The associated 710 * attributes used with this command are defined in enum 711 * qca_vendor_attr_coex_config. 712 * 713 * Based on the config provided, FW will boost the weight and prioritize 714 * the traffic for that subsystem (WLAN/BT/Zigbee). 715 * 716 * @QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS: This command is used to query 717 * the supported AKM suite selectorss from the driver. It returns the list 718 * of supported AKMs in the attribute NL80211_ATTR_AKM_SUITES. 719 * @QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE: This command is used to get firmware 720 * state from the driver. It returns the firmware state in the attribute 721 * QCA_WLAN_VENDOR_ATTR_FW_STATE. 722 * @QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH: This vendor subcommand 723 * is used by the driver to flush per-peer cached statistics to user space 724 * application. This interface is used as an event from the driver to 725 * user space application. Attributes for this event are specified in 726 * enum qca_wlan_vendor_attr_peer_stats_cache_params. 727 * QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA attribute is expected to be 728 * sent in the event. 729 * @QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG: This sub command is used to 730 * improve the success rate of Zigbee joining network. 731 * Due to PTA master limitation, Zigbee joining network success rate is 732 * low while WLAN is working. The WLAN driver needs to configure some 733 * parameters including Zigbee state and specific WLAN periods to enhance 734 * PTA master. All these parameters are delivered by the attributes 735 * defined in enum qca_mpta_helper_vendor_attr. 736 * @QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING: This sub command is used to 737 * implement Beacon frame reporting feature. 738 * 739 * Userspace can request the driver/firmware to periodically report 740 * received Beacon frames whose BSSID is same as the current connected 741 * BSS's MAC address. 742 * 743 * In case the STA seamlessly (without sending disconnect indication to 744 * userspace) roams to a different BSS, Beacon frame reporting will be 745 * automatically enabled for the Beacon frames whose BSSID is same as the 746 * MAC address of the new BSS. Beacon reporting will be stopped when the 747 * STA is disconnected (when the disconnect indication is sent to 748 * userspace) and need to be explicitly enabled by userspace for next 749 * connection. 750 * 751 * When a Beacon frame matching configured conditions is received, and if 752 * userspace has requested to send asynchronous beacon reports, the 753 * driver/firmware will encapsulate the details of the Beacon frame in an 754 * event and send it to userspace along with updating the BSS information 755 * in cfg80211 scan cache, otherwise driver will only update the cfg80211 756 * scan cache with the information from the received Beacon frame but will 757 * not send any active report to userspace. 758 * 759 * The userspace can request the driver/firmware to stop reporting Beacon 760 * frames. If the driver/firmware is not able to receive Beacon frames due 761 * to other Wi-Fi operations such as off-channel activities, etc., the 762 * driver/firmware will send a pause event to userspace and stop reporting 763 * Beacon frames. Whether the beacon reporting will be automatically 764 * resumed or not by the driver/firmware later will be reported to 765 * userspace using the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES 766 * flag. The beacon reporting shall be resumed for all the cases except 767 * either when userspace sets 768 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME flag in the command 769 * which triggered the current beacon reporting or during any disconnection 770 * case as indicated by setting 771 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON to 772 * QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED by the 773 * driver. 774 * 775 * After QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_PAUSE event is received 776 * by userspace with QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES 777 * flag not set, the next first 778 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO event from the driver 779 * shall be considered as un-pause event. 780 * 781 * All the attributes used with this command are defined in 782 * enum qca_wlan_vendor_attr_beacon_reporting_params. 783 * @QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP: In practice, some APs have 784 * interop issues with the DUT. This sub command is used to transfer the 785 * AP info between the driver and user space. This works both as a command 786 * and an event. As a command, it configures the stored list of APs from 787 * user space to firmware; as an event, it indicates the AP info detected 788 * by the firmware to user space for persistent storage. The attributes 789 * defined in enum qca_vendor_attr_interop_issues_ap are used to deliver 790 * the parameters. 791 * @QCA_NL80211_VENDOR_SUBCMD_OEM_DATA: This command/event is used to 792 * send/receive OEM data binary blobs to/from application/service to/from 793 * firmware. The attributes defined in enum 794 * qca_wlan_vendor_attr_oem_data_params are used to deliver the 795 * parameters. 796 * @QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT: This command/event is used 797 * to send/receive avoid frequency data using 798 * enum qca_wlan_vendor_attr_avoid_frequency_ext. 799 * This new command is alternative to existing command 800 * QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY since existing command/event 801 * is using stream of bytes instead of structured data using vendor 802 * attributes. User space sends unsafe frequency ranges to the driver using 803 * a nested attribute %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE. On 804 * reception of this command, the driver shall check if an interface is 805 * operating on an unsafe frequency and the driver shall try to move to a 806 * safe channel when needed. If the driver is not able to find a safe 807 * channel the interface can keep operating on an unsafe channel with the 808 * TX power limit derived based on internal configurations like 809 * regulatory/SAR rules. 810 * 811 * @QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE: This vendor subcommand is used to 812 * add the STA node details in driver/firmware. Attributes for this event 813 * are specified in enum qca_wlan_vendor_attr_add_sta_node_params. 814 * @QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE: This command is used to set BT 815 * coex chain mode from application/service. 816 * The attributes defined in enum qca_vendor_attr_btc_chain_mode are used 817 * to deliver the parameters. 818 * 819 * @QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO: This vendor subcommand is used to 820 * get information of a station from driver to userspace. This command can 821 * be used in both STA and AP modes. For STA mode, it provides information 822 * of the current association when in connected state or the last 823 * association when in disconnected state. For AP mode, only information 824 * of the currently connected stations is available. This command uses 825 * attributes defined in enum qca_wlan_vendor_attr_get_sta_info. 826 * 827 * @QCA_NL80211_VENDOR_SUBCMD_REQUEST_SAR_LIMITS_EVENT: This acts as an event. 828 * Host drivers can request the user space entity to set the SAR power 829 * limits with this event. Accordingly, the user space entity is expected 830 * to set the SAR power limits. Host drivers can retry this event to the 831 * user space for the SAR power limits configuration from user space. If 832 * the driver does not get the SAR power limits from user space for all 833 * the retried attempts, it can configure a default SAR power limit. 834 * 835 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO: This acts as a vendor event and 836 * is used to update the information about the station from the driver to 837 * userspace. Uses attributes from enum 838 * qca_wlan_vendor_attr_update_sta_info. 839 * 840 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON: This acts as an event. 841 * The host driver initiates the disconnection for scenarios such as beacon 842 * miss, NUD failure, peer kick out, etc. The disconnection indication 843 * through cfg80211_disconnected() expects the reason codes from enum 844 * ieee80211_reasoncode which does not signify these various reasons why 845 * the driver has triggered the disconnection. This event will be used to 846 * send the driver specific reason codes by the host driver to userspace. 847 * Host drivers should trigger this event and pass the respective reason 848 * code immediately prior to triggering cfg80211_disconnected(). The 849 * attributes used with this event are defined in enum 850 * qca_wlan_vendor_attr_driver_disconnect_reason. 851 * 852 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC: This vendor subcommand is used to 853 * add/delete TSPEC for each AC. One command is for one specific AC only. 854 * This command can only be used in STA mode and the STA must be 855 * associated with an AP when the command is issued. Uses attributes 856 * defined in enum qca_wlan_vendor_attr_config_tspec. 857 * 858 * @QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT: Vendor subcommand to configure TWT. 859 * Uses attributes defined in enum qca_wlan_vendor_attr_config_twt. 860 * 861 * @QCA_NL80211_VENDOR_SUBCMD_GETBAND: Command to get the enabled band(s) from 862 * the driver. The band configurations obtained are referred through 863 * QCA_WLAN_VENDOR_ATTR_SETBAND_MASK. 864 * 865 * @QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS: Vendor subcommand/event for medium 866 * assessment. 867 * Uses attributes defined in enum qca_wlan_vendor_attr_medium_assess. 868 * 869 * @QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID: This acts as a vendor event and is 870 * used to update SSID information in hostapd when it is updated in the 871 * driver. Uses the attribute NL80211_ATTR_SSID. 872 * 873 * @QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS: This vendor subcommand is used by 874 * the driver to send opaque data from the firmware to userspace. The 875 * driver sends an event to userspace whenever such data is received from 876 * the firmware. 877 * 878 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA is used as the attribute to 879 * send this opaque data for this event. 880 * 881 * The format of the opaque data is specific to the particular firmware 882 * version and there is no guarantee of the format remaining same. 883 * 884 * @QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS: This acts as an event. 885 * The host driver selects Tx VDEV, and notifies user. The attributes 886 * used with this event are defined in enum 887 * qca_wlan_vendor_attr_mbssid_tx_vdev_status. 888 * This event contains Tx VDEV group information, other VDEVs 889 * interface index, and status information. 890 * 891 * @QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY: Vendor command to 892 * configure the concurrent session policies when multiple interfaces 893 * are (getting) active. The attributes used by this command are defined 894 * in enum qca_wlan_vendor_attr_concurrent_policy. 895 * 896 * @QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS: Userspace can use this command 897 * to query usable channels for different interface types such as STA, 898 * AP, P2P GO, P2P Client, NAN, etc. The driver shall report all usable 899 * channels in the response based on country code, different static 900 * configurations, concurrency combinations, etc. The attributes used 901 * with this command are defined in 902 * enum qca_wlan_vendor_attr_usable_channels. 903 * 904 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY: This vendor subcommand is used 905 * to get DFS radar history from the driver to userspace. The driver 906 * returns QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES attribute with an 907 * array of nested entries. 908 * 909 * @QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD: Userspace can use this command to 910 * enable/disable mDNS offload to the firmware. The attributes used with 911 * this command are defined in enum qca_wlan_vendor_attr_mdns_offload. 912 * 913 * @QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE: This vendor subcommand is used 914 * to set packet monitor mode that aims to send the specified set of TX and 915 * RX frames on the current client interface to an active monitor 916 * interface. If this monitor mode is set, the driver will send the 917 * configured frames, from the interface on which the command is issued, to 918 * an active monitor interface. The attributes used with this command are 919 * defined in enum qca_wlan_vendor_attr_set_monitor_mode. 920 * 921 * Though the monitor mode is configured for the respective 922 * Data/Management/Control frames, it is up to the respective WLAN 923 * driver/firmware/hardware designs to consider the possibility of sending 924 * these frames over the monitor interface. For example, the Control frames 925 * are handled within the hardware and thus passing such frames over the 926 * monitor interface is left to the respective designs. 927 * 928 * Also, this monitor mode is governed to behave accordingly in 929 * suspend/resume states. If the firmware handles any of such frames in 930 * suspend state without waking up the host and if the monitor mode is 931 * configured to notify all such frames, the firmware is expected to resume 932 * the host and forward the respective frames to the monitor interface. 933 * Please note that such a request to get the frames over the monitor 934 * interface will have a definite power implication. 935 * 936 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS: This vendor subcommand is used both 937 * as a request to set the driver/firmware with the parameters to trigger 938 * the roaming events, and also used by the driver/firmware to pass on the 939 * various roam events to userspace. 940 * Applicable only for the STA mode. The attributes used with this command 941 * are defined in enum qca_wlan_vendor_attr_roam_events. 942 * 943 * @QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG: Subcommand to set or reset the 944 * rate mask config for a list of PHY types. Userspace shall provide an 945 * array of the vendor attributes defined in 946 * enum qca_wlan_vendor_attr_ratemask_params. 947 * 948 * @QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA: Multi-channel Concurrency (MCC) occurs 949 * when two interfaces are active on the same band, using two different 950 * home channels, and only supported by a single radio. In this scenario 951 * the device must split the use of the radio between the two interfaces. 952 * The percentage of time allocated to a given interface is the quota. 953 * Depending on the configuration, the quota can either be fixed or 954 * dynamic. 955 * 956 * When used as an event, the device will report the quota type, and for 957 * all interfaces operating in MCC it will report the current quota. 958 * When used as a command, the device can be configured for a specific 959 * quota type, and in the case of a fixed quota, the quota to apply to one 960 * of the interfaces. 961 * 962 * Applications can use the event to do TX bitrate control based on the 963 * information, and can use the command to explicitly set the quota to 964 * enhance performance in specific scenarios. 965 * 966 * The attributes used with this command are defined in 967 * enum qca_wlan_vendor_attr_mcc_quota. 968 * 969 * @QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX: Vendor command to 970 * get the WLAN radio combinations matrix supported by the device which 971 * provides the device simultaneous radio configurations such as 972 * standalone, dual band simultaneous, and single band simultaneous. 973 * 974 * The attributes used with this command are defined in 975 * enum qca_wlan_vendor_attr_radio_combination_matrix. 976 * 977 * @QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY: Event indicating to the user space 978 * that the driver is ready for operations again after recovering from 979 * internal failures. This occurs following a failure that was indicated by 980 * @QCA_NL80211_VENDOR_SUBCMD_HANG. 981 * 982 * @QCA_NL80211_VENDOR_SUBCMD_PASN: Subcommand used to offload preassociation 983 * security negotiation and key generation to user space. 984 * 985 * When used as an event, the driver requests userspace to trigger the PASN 986 * authentication or dropping of a PTKSA for the indicated peer devices. 987 * When used as a command response, userspace indicates a consolidated 988 * status report for all the peers that were requested for. 989 * 990 * The attributes used with this command are defined in 991 * enum qca_wlan_vendor_attr_pasn. 992 * 993 * @QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT: Subcommand used to set 994 * secure ranging context such as TK and LTF keyseed for each peer 995 * requested by the driver with a @QCA_NL80211_VENDOR_SUBCMD_PASN event. 996 * 997 * The attributes used with this command are defined in 998 * enum qca_wlan_vendor_attr_secure_ranging_ctx. 999 * 1000 * @QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD: This vendor subcommand is used to 1001 * enable/disable offload processing in firmware during system/runtime 1002 * suspend for CoAP messages (see RFC7252: The Constrained Application 1003 * Protocol) and fetch information of the CoAP messages cached during 1004 * offload processing. 1005 * 1006 * The attributes used with this command are defined in 1007 * enum qca_wlan_vendor_attr_coap_offload. 1008 * 1009 * @QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG: Subcommand to configure 1010 * (add, remove, or change) a Stream Classification Service (SCS) rule. 1011 * 1012 * The attributes used with this event are defined in 1013 * enum qca_wlan_vendor_attr_scs_rule_config. 1014 * 1015 * @QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY: Fetch SAR capabilities 1016 * supported by the WLAN firmware. 1017 * 1018 * The attributes used with this command are defined in 1019 * enum qca_wlan_vendor_attr_sar_capability. 1020 * 1021 * @QCA_NL80211_VENDOR_SUBCMD_SR: Subcommand used to implement Spatial Reuse 1022 * (SR) feature. This command is used by userspace to configure SR 1023 * parameters to the driver and to get the SR related parameters and 1024 * statistics with synchronous responses from the driver. 1025 * The driver also uses this command to send asynchronous events to 1026 * userspace to indicate suspend/resume of SR feature and changes 1027 * in SR parameters. 1028 * 1029 * The attributes used with this command are defined in 1030 * enum qca_wlan_vendor_attr_sr. 1031 * 1032 * @QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT: Subcommand used to 1033 * notify application layer about the primary netdev of an MLO connection. 1034 * In some implementations, MLO has multiple netdevs out of which one 1035 * netdev is designated as primary to provide a unified interface to the 1036 * bridge. In those implementations this event is sent on every MLO peer 1037 * connection. User applications on an AP MLD will use this event to get 1038 * info for all the links from non-AP MLD that were negotiated to be used 1039 * for the ML association. 1040 * 1041 * The attributes used with this event are defined in 1042 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event. 1043 * 1044 * @QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT: This vendor command is used by the 1045 * driver to notify different AFC events to userspace. The attributes used 1046 * with this command are defined in enum qca_wlan_vendor_attr_afc_event. 1047 * 1048 * @QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE: This vendor command is used by 1049 * userspace to deliver AFC response data to driver. The attributes used 1050 * with this command are defined in enum qca_wlan_vendor_attr_afc_response. 1051 * 1052 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP: Subcommand to configure AP interface to 1053 * operate in doze mode. 1054 * 1055 * Userspace uses this command to configure the AP interface to enter or 1056 * exit from doze mode. The driver sends this event after it enters or 1057 * exits the doze mode with the updated AP doze mode settings. 1058 * 1059 * The attributes used with this subcommand are defined in 1060 * enum qca_wlan_vendor_attr_dozed_ap. 1061 * 1062 * @QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE: This vendor subcommand is used 1063 * to get the status of local packet capture of monitor mode. The monitor 1064 * mode can be started using QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE 1065 * subcommand. 1066 * 1067 * The attributes used with this command are defined in enum 1068 * qca_wlan_vendor_attr_get_monitor_mode. 1069 * 1070 * @QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS: This vendor command is used to 1071 * get roam information from the driver to user space. It provides the 1072 * latest several instances of roam information cached in the driver. 1073 * The command is only used for STA mode. The attributes used with this 1074 * command are defined in enum qca_wlan_vendor_attr_roam_cached_stats. 1075 * 1076 * @QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE: This vendor subcommand is used to 1077 * configure and fetch the state information of the MLO links affiliated 1078 * with the STA interface. The attributes used with this command are 1079 * defined in enum qca_wlan_vendor_attr_mlo_link_state. 1080 * 1081 * @QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS: Userspace can use this 1082 * vendor subcommand to trigger channel utilization measurement on entire 1083 * channel width of the connected channel(s). For MLO connection, connected 1084 * channel utilization measurement shall be done on all the MLO links. 1085 * The driver may use regular scan or wideband energy detection feature 1086 * based on the hardware capability for connected channel(s) utilization 1087 * measurement. The driver indicates the connected channel(s) utilization 1088 * measurement completion as an asynchronous event with this command ID to 1089 * userspace. Upon receiving this event, userspace can use 1090 * %NL80211_CMD_GET_INTERFACE to determine the channel width of the current 1091 * connected channel(s) and can derive the channel utilization percentage 1092 * (CU) of each 20 MHz sub-channel of the entire connected channel using 1093 * %NL80211_CMD_GET_SURVEY response. 1094 * CU = %NL80211_SURVEY_INFO_TIME_BUSY * 100 / %NL80211_SURVEY_INFO_TIME. 1095 * This command is only used for STA mode. 1096 * 1097 * @QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP: This vendor subcommand is 1098 * used as an event to notify the userspace of TID-to-link map changes 1099 * negotiated by the driver or updated by associated AP MLD with Beacon, 1100 * Probe Response, or Action frames. The attributes used with this command 1101 * are defined in enum qca_wlan_vendor_attr_tid_to_link_map. 1102 * 1103 * Note that the attribute 1104 * %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR may not correspond to 1105 * the current connected AP MLD address. 1106 * 1107 * @QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG: Notify userspace about the removal 1108 * of STA MLD setup links due to the AP MLD removing the corresponding 1109 * affiliated APs with Multi-Link reconfiguration. If all the STA MLD setup 1110 * links are removed during Multi-Link reconfiguration, the driver shall 1111 * use %NL80211_CMD_DISCONNECT instead of this command since it is a 1112 * connection drop. The attributes used with this command are defined in 1113 * enum qca_wlan_vendor_attr_link_reconfig. 1114 * Note that the attribute 1115 * %QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR may not correspond to 1116 * the current connected AP MLD address. 1117 * 1118 * @QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT: Vendor command to configure 1119 * the driver with MLO link id information on which to transmit the TDLS 1120 * discovery response frame on the configured MLO BSS link when the 1121 * local station is connected in MLO mode. This command is sent to the 1122 * driver prior to the TDLS discovery response management transmit 1123 * operation and is followed immediately by the TDLS discovery response 1124 * management frame transmit command. 1125 * 1126 * The driver saves the configured MLO link id information and uses it for 1127 * the following TDLS discovery response frame transmission on the 1128 * configured MLO BSS link and the link id information is cleared in the 1129 * driver after the TDLS discovery response frame is successfully 1130 * transmitted. This behavior is indepent of the TDLS peer STA connection 1131 * mode (MLO or non-MLO). 1132 * 1133 * Uses the attributes defined in 1134 * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext. 1135 * 1136 * @QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH: This vendor subcommand is 1137 * used to configure and indicate the audio transport switch in both 1138 * command and event paths. This is used when two or more audio transports 1139 * (e.g., WLAN and Bluetooth) are available between peers. 1140 * 1141 * If the driver needs to perform operations like scan, connection, 1142 * roaming, RoC, etc. and AP concurrency policy is set to either 1143 * QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO or 1144 * QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING, the driver sends 1145 * audio transport switch event to userspace. Userspace application upon 1146 * receiving the event, can try to switch to the requested audio transport. 1147 * The userspace uses this command to send the status of transport 1148 * switching (either confirm or reject) to the driver using this 1149 * subcommand. The driver continues with the pending operation either upon 1150 * receiving the command from userspace or after waiting for a timeout from 1151 * sending the event to userspace. The driver can request userspace to 1152 * switch to WLAN upon availability of WLAN audio transport once after the 1153 * concurrent operations are completed. 1154 * 1155 * Userspace can also request audio transport switch from non-WLAN to WLAN 1156 * using this subcommand to the driver. The driver can accept or reject 1157 * depending on other concurrent operations in progress. The driver returns 1158 * success if it can allow audio transport when it receives the command or 1159 * appropriate kernel error code otherwise. Userspace indicates the audio 1160 * transport switch from WLAN to non-WLAN using this subcommand and the 1161 * driver can do other concurrent operations without needing to send any 1162 * event to userspace. This subcommand is used by userspace only when the 1163 * driver advertises support for 1164 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN. 1165 * 1166 * The attributes used with this command are defined in enum 1167 * qca_wlan_vendor_attr_audio_transport_switch. 1168 * 1169 * @QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY: This vendor subcommand is used to 1170 * configure, retrieve, and report per-link transmit latency statistics. 1171 * 1172 * The attributes used with this subcommand are defined in 1173 * enum qca_wlan_vendor_attr_tx_latency. 1174 * 1175 * @QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO: Vendor command is used to 1176 * query transmit power information on STA interface from the driver for a 1177 * connected AP. The attributes included in response are defined in 1178 * enum qca_wlan_vendor_attr_tpc_links. In case of MLO STA, multiple links 1179 * TPC info may be returned. The information includes regulatory maximum 1180 * transmit power limit, AP local power constraint advertised from AP's 1181 * Beacon and Probe Response frames. For PSD power mode, the information 1182 * includes PSD power levels for each subchannel of operating bandwidth. 1183 * The information is driver calculated power limits based on the current 1184 * regulatory domain, AP local power constraint, and other IEs. The 1185 * information will be set to target. Target will decide the final TX power 1186 * based on this and chip specific power conformance test limits (CTL), and 1187 * SAR limits. 1188 * 1189 * @QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT: Event indication from the 1190 * driver to user space which is carrying firmware page fault related 1191 * summary report. The attributes for this command are defined in 1192 * enum qca_wlan_vendor_attr_fw_page_fault_report. 1193 * 1194 * @QCA_NL80211_VENDOR_SUBCMD_DISASSOC_PEER: Event indication from the driver 1195 * to user space to disassociate with a peer based on the peer MAC address 1196 * provided. Specify the peer MAC address in 1197 * QCA_WLAN_VENDOR_ATTR_MAC_ADDR. For MLO, MLD MAC address is provided. 1198 * 1199 * @QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER: This vendor command is used to 1200 * adjust transmit power. The attributes used with this subcommand are 1201 * defined in enum qca_wlan_vendor_attr_adjust_tx_power. 1202 * 1203 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE: Event indication from the 1204 * driver to notify user application about the spectral scan completion. 1205 * The attributes used with this subcommand are defined in 1206 * enum qca_wlan_vendor_attr_spectral_scan_complete. 1207 * 1208 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION: Register for receiving 1209 * %NL80211_CMD_GET_STATION responses as unicast events when there are 1210 * %NL80211_CMD_GET_STATION requests from any userspace module on the same 1211 * interface index with which this command is sent. This command is also 1212 * used as the unicast event to indicate the %NL80211_CMD_GET_STATION 1213 * response. The attributes for this command are defined in 1214 * enum qca_wlan_vendor_async_get_station_attr. 1215 * 1216 * The driver will send the unicast events with same netlink port ID which 1217 * is used by userspace application for sending the registration command. 1218 * If multiple registration commands are received with different netlink 1219 * port IDs, the driver will send unicast events with each netlink port ID 1220 * separately. 1221 * 1222 * Userspace applications can deregister the unicast event reporting with 1223 * disable configuration. The registrations will be removed automatically 1224 * by the driver when the corresponding netlink socket is closed. 1225 * 1226 * @QCA_NL80211_VENDOR_SUBCMD_AP_SUSPEND: Vendor command to put an AP interface 1227 * in suspend state. On enabling suspend, AP deauthenticates all associated 1228 * stations and stops TX/RX operations on the interface. The driver 1229 * retains the AP configuration and on resume, starts all TX/RX operations 1230 * with the same AP configuration. 1231 * 1232 * This subcommand is also used as an event to notify userspace about AP 1233 * suspended/resumed state changes. 1234 * 1235 * The attributes used with this command/event are defined in enum 1236 * qca_wlan_vendor_attr_ap_suspend. 1237 * 1238 * @QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS: Event indication from the driver to 1239 * the userspace which contains all the statistics collected for a flow to 1240 * be classified. This event is sent if the userspace enables the 1241 * flow stats reporting via the command 1242 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY and when the driver has 1243 * collected the required flow statistics, as specified by the attributes 1244 * of this event. The attributes for this event are defined in 1245 * enum qca_wlan_vendor_attr_flow_stats. 1246 * @QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT: This vendor command is used 1247 * to indicate the flow classification result based on the flow samples 1248 * received as a part of @QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS. The 1249 * attributes for this command are defined in the 1250 * enum qca_wlan_vendor_attr_flow_classify_result. 1251 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY: This vendor command is used to 1252 * indicate the ASYNC statistics policy from the userspace to the driver 1253 * and it contains the STATS type for which the command is intended. The 1254 * attributes for this command are defined in the 1255 * enum qca_wlan_vendor_attr_async_stats_policy. 1256 * @QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT: Event indication from the 1257 * driver to the userspace containing all the samples of a classified 1258 * flow along with its classification result. This event is sent by the 1259 * driver to userspace when it receives classification result via the 1260 * command @QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT and the 1261 * collection of these statistics has been enabled by the command 1262 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY. The attributes for this 1263 * event are defined in enum qca_wlan_vendor_attr_flow_stats. 1264 * 1265 * @QCA_NL80211_VENDOR_SUBCMD_USD: Vendor subcommand to implement unsynchronized 1266 * service discovery (USD). Based on the type of the USD subcommand the USD 1267 * operation to publish, subscribe, update publish, cancel publish, or 1268 * cancel subscribe is triggered. 1269 * 1270 * When used as an event, the driver notifies the status of an USD command. 1271 * 1272 * The attributes used with this command are defined in 1273 * enum qca_wlan_vendor_attr_usd. 1274 * 1275 * @QCA_NL80211_VENDOR_SUBCMD_CONNECT_EXT: This is an extension to 1276 * %NL80211_CMD_CONNECT command. Userspace can use this to indicate 1277 * additional information to be considered for the subsequent 1278 * (re)association request attempts with %NL80211_CMD_CONNECT. The 1279 * additional information sent with this command is applicable for the 1280 * entire duration of the connection established with %NL80211_CMD_CONNECT, 1281 * including the roams triggered by the driver internally due to other 1282 * vendor interfaces, driver internal logic, and BTM requests from the 1283 * connected AP. 1284 * 1285 * The attributes used with this command are defined in 1286 * enum qca_wlan_vendor_attr_connect_ext. 1287 * 1288 * @QCA_NL80211_VENDOR_SUBCMD_SET_P2P_MODE: Vendor subcommand to configure 1289 * Wi-Fi Direct mode. This command sets the configuration through 1290 * the attributes defined in the enum qca_wlan_vendor_attr_set_p2p_mode. 1291 * It is applicable for P2P Group Owner only. This command is used before 1292 * starting the GO. 1293 * 1294 * @QCA_NL80211_VENDOR_SUBCMD_CHAN_USAGE_REQ: Vendor subcommand to request 1295 * transmission of a channel usage request. It carries channel usage 1296 * information for BSSs that are not infrastructure BSSs or an off channel 1297 * TDLS direct link. 1298 * 1299 * The attributes used with this command are defined in 1300 * enum qca_wlan_vendor_attr_chan_usage_req. 1301 */ 1302 enum qca_nl80211_vendor_subcmds { 1303 QCA_NL80211_VENDOR_SUBCMD_UNSPEC = 0, 1304 QCA_NL80211_VENDOR_SUBCMD_TEST = 1, 1305 /* subcmds 2..8 not yet allocated */ 1306 QCA_NL80211_VENDOR_SUBCMD_ROAMING = 9, 1307 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY = 10, 1308 QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY = 11, 1309 QCA_NL80211_VENDOR_SUBCMD_NAN = 12, 1310 QCA_NL80211_VENDOR_SUBCMD_STATS_EXT = 13, 1311 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_SET = 14, 1312 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET = 15, 1313 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_CLR = 16, 1314 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_RADIO_RESULTS = 17, 1315 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_IFACE_RESULTS = 18, 1316 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_PEERS_RESULTS = 19, 1317 QCA_NL80211_VENDOR_SUBCMD_GSCAN_START = 20, 1318 QCA_NL80211_VENDOR_SUBCMD_GSCAN_STOP = 21, 1319 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS = 22, 1320 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CAPABILITIES = 23, 1321 QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS = 24, 1322 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE = 25, 1323 QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT = 26, 1324 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT = 27, 1325 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND = 28, 1326 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_BSSID_HOTLIST = 29, 1327 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_BSSID_HOTLIST = 30, 1328 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE = 31, 1329 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SIGNIFICANT_CHANGE = 32, 1330 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SIGNIFICANT_CHANGE = 33, 1331 QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE = 34, 1332 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE = 35, 1333 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS = 36, 1334 QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE = 37, 1335 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_FEATURES = 38, 1336 QCA_NL80211_VENDOR_SUBCMD_SCANNING_MAC_OUI = 39, 1337 QCA_NL80211_VENDOR_SUBCMD_NO_DFS_FLAG = 40, 1338 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_LOST = 41, 1339 QCA_NL80211_VENDOR_SUBCMD_GET_CONCURRENCY_MATRIX = 42, 1340 /* 43..49 - reserved for QCA */ 1341 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_SET_KEY = 50, 1342 QCA_NL80211_VENDOR_SUBCMD_KEY_MGMT_ROAM_AUTH = 51, 1343 QCA_NL80211_VENDOR_SUBCMD_APFIND = 52, 1344 /* 53 - reserved - was used by QCA, but not in use anymore */ 1345 QCA_NL80211_VENDOR_SUBCMD_DO_ACS = 54, 1346 QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES = 55, 1347 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_STARTED = 56, 1348 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_FINISHED = 57, 1349 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_ABORTED = 58, 1350 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_CAC_NOP_FINISHED = 59, 1351 QCA_NL80211_VENDOR_SUBCMD_DFS_OFFLOAD_RADAR_DETECTED = 60, 1352 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO = 61, 1353 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START = 62, 1354 QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_MEMORY_DUMP = 63, 1355 QCA_NL80211_VENDOR_SUBCMD_ROAM = 64, 1356 QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST = 65, 1357 QCA_NL80211_VENDOR_SUBCMD_GSCAN_RESET_SSID_HOTLIST = 66, 1358 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_FOUND = 67, 1359 QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_SSID_LOST = 68, 1360 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST = 69, 1361 QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST = 70, 1362 QCA_NL80211_VENDOR_SUBCMD_PNO_RESET_PASSPOINT_LIST = 71, 1363 QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND = 72, 1364 QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND = 73, 1365 /* Wi-Fi configuration subcommands */ 1366 QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION = 74, 1367 QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION = 75, 1368 QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET = 76, 1369 QCA_NL80211_VENDOR_SUBCMD_GET_RING_DATA = 77, 1370 QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES = 78, 1371 QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS = 79, 1372 QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI = 80, 1373 QCA_NL80211_VENDOR_SUBCMD_NDP = 81, 1374 QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD = 82, 1375 QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER = 83, 1376 QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE = 84, 1377 QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS = 85, 1378 /* 86-90 - reserved for QCA */ 1379 QCA_NL80211_VENDOR_SUBCMD_DATA_OFFLOAD = 91, 1380 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_CONFIG = 92, 1381 QCA_NL80211_VENDOR_SUBCMD_OCB_SET_UTC_TIME = 93, 1382 QCA_NL80211_VENDOR_SUBCMD_OCB_START_TIMING_ADVERT = 94, 1383 QCA_NL80211_VENDOR_SUBCMD_OCB_STOP_TIMING_ADVERT = 95, 1384 QCA_NL80211_VENDOR_SUBCMD_OCB_GET_TSF_TIMER = 96, 1385 QCA_NL80211_VENDOR_SUBCMD_DCC_GET_STATS = 97, 1386 QCA_NL80211_VENDOR_SUBCMD_DCC_CLEAR_STATS = 98, 1387 QCA_NL80211_VENDOR_SUBCMD_DCC_UPDATE_NDL = 99, 1388 QCA_NL80211_VENDOR_SUBCMD_DCC_STATS_EVENT = 100, 1389 QCA_NL80211_VENDOR_SUBCMD_LINK_PROPERTIES = 101, 1390 QCA_NL80211_VENDOR_SUBCMD_GW_PARAM_CONFIG = 102, 1391 QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST = 103, 1392 QCA_NL80211_VENDOR_SUBCMD_SET_PROBABLE_OPER_CHANNEL = 104, 1393 QCA_NL80211_VENDOR_SUBCMD_SETBAND = 105, 1394 QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN = 106, 1395 QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE = 107, 1396 QCA_NL80211_VENDOR_SUBCMD_OTA_TEST = 108, 1397 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_SCALE = 109, 1398 /* 110..114 - reserved for QCA */ 1399 QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB = 115, 1400 QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY = 116, 1401 /* 117 - reserved for QCA */ 1402 QCA_NL80211_VENDOR_SUBCMD_SET_SAP_CONFIG = 118, 1403 QCA_NL80211_VENDOR_SUBCMD_TSF = 119, 1404 QCA_NL80211_VENDOR_SUBCMD_WISA = 120, 1405 /* 121 - reserved for QCA */ 1406 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_START = 122, 1407 QCA_NL80211_VENDOR_SUBCMD_P2P_LISTEN_OFFLOAD_STOP = 123, 1408 QCA_NL80211_VENDOR_SUBCMD_SAP_CONDITIONAL_CHAN_SWITCH = 124, 1409 QCA_NL80211_VENDOR_SUBCMD_GPIO_CONFIG_COMMAND = 125, 1410 QCA_NL80211_VENDOR_SUBCMD_GET_HW_CAPABILITY = 126, 1411 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_EXT = 127, 1412 /* FTM/indoor location subcommands */ 1413 QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA = 128, 1414 QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION = 129, 1415 QCA_NL80211_VENDOR_SUBCMD_FTM_ABORT_SESSION = 130, 1416 QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT = 131, 1417 QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE = 132, 1418 QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER = 133, 1419 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS = 134, 1420 QCA_NL80211_VENDOR_SUBCMD_AOA_ABORT_MEAS = 135, 1421 QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT = 136, 1422 QCA_NL80211_VENDOR_SUBCMD_ENCRYPTION_TEST = 137, 1423 QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI = 138, 1424 /* DMG low level RF sector operations */ 1425 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG = 139, 1426 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG = 140, 1427 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SELECTED_SECTOR = 141, 1428 QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR = 142, 1429 QCA_NL80211_VENDOR_SUBCMD_CONFIGURE_TDLS = 143, 1430 QCA_NL80211_VENDOR_SUBCMD_GET_HE_CAPABILITIES = 144, 1431 QCA_NL80211_VENDOR_SUBCMD_ABORT_SCAN = 145, 1432 QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS = 146, 1433 QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS = 147, 1434 QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE = 148, 1435 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET = 149, 1436 QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET = 150, 1437 QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS = 151, 1438 QCA_NL80211_VENDOR_SUBCMD_SET_TRACE_LEVEL = 152, 1439 QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT = 153, 1440 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START = 154, 1441 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP = 155, 1442 QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS = 156, 1443 QCA_NL80211_VENDOR_SUBCMD_HANG = 157, 1444 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CONFIG = 158, 1445 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS = 159, 1446 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO = 160, 1447 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS = 161, 1448 /* Flush peer pending data */ 1449 QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING = 162, 1450 QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO = 163, 1451 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS = 164, 1452 QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO = 165, 1453 QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH = 166, 1454 /* Thermal shutdown commands to protect wifi chip */ 1455 QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD = 167, 1456 QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT = 168, 1457 /* Wi-Fi test configuration subcommand */ 1458 QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION = 169, 1459 /* Frame filter operations for other BSSs/unassociated STAs */ 1460 QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER = 170, 1461 QCA_NL80211_VENDOR_SUBCMD_NAN_EXT = 171, 1462 QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT = 172, 1463 QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG = 173, 1464 QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT = 174, 1465 QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG = 175, 1466 QCA_NL80211_VENDOR_SUBCMD_GET_SUPPORTED_AKMS = 176, 1467 QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE = 177, 1468 QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH = 178, 1469 QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG = 179, 1470 QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING = 180, 1471 QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP = 181, 1472 QCA_NL80211_VENDOR_SUBCMD_OEM_DATA = 182, 1473 QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT = 183, 1474 QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE = 184, 1475 QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE = 185, 1476 QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO = 186, 1477 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS_EVENT = 187, 1478 QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO = 188, 1479 QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON = 189, 1480 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC = 190, 1481 QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT = 191, 1482 QCA_NL80211_VENDOR_SUBCMD_GETBAND = 192, 1483 QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS = 193, 1484 QCA_NL80211_VENDOR_SUBCMD_UPDATE_SSID = 194, 1485 QCA_NL80211_VENDOR_SUBCMD_WIFI_FW_STATS = 195, 1486 QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS = 196, 1487 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY = 197, 1488 QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS = 198, 1489 QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY = 199, 1490 QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD = 200, 1491 /* 201 - reserved for QCA */ 1492 QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE = 202, 1493 QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS = 203, 1494 QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG = 204, 1495 QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA = 205, 1496 /* 206..212 - reserved for QCA */ 1497 QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX = 213, 1498 QCA_NL80211_VENDOR_SUBCMD_DRIVER_READY = 214, 1499 QCA_NL80211_VENDOR_SUBCMD_PASN = 215, 1500 QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT = 216, 1501 QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD = 217, 1502 QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG = 218, 1503 QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY = 219, 1504 QCA_NL80211_VENDOR_SUBCMD_SR = 220, 1505 QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT = 221, 1506 QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT = 222, 1507 QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE = 223, 1508 QCA_NL80211_VENDOR_SUBCMD_DOZED_AP = 224, 1509 QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE = 225, 1510 QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS = 226, 1511 QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE = 227, 1512 QCA_NL80211_VENDOR_SUBCMD_CONNECTED_CHANNEL_STATS = 228, 1513 QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP = 229, 1514 QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG = 230, 1515 QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT = 231, 1516 QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH = 232, 1517 QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY = 233, 1518 /* 234 - reserved for QCA */ 1519 QCA_NL80211_VENDOR_SUBCMD_SDWF_PHY_OPS = 235, 1520 QCA_NL80211_VENDOR_SUBCMD_SDWF_DEV_OPS = 236, 1521 QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO = 237, 1522 QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT = 238, 1523 QCA_NL80211_VENDOR_SUBCMD_FLOW_POLICY = 239, 1524 QCA_NL80211_VENDOR_SUBCMD_DISASSOC_PEER = 240, 1525 QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER = 241, 1526 QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE = 242, 1527 QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION = 243, 1528 QCA_NL80211_VENDOR_SUBCMD_AP_SUSPEND = 244, 1529 QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS = 245, 1530 QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT = 246, 1531 QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY = 247, 1532 QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT = 248, 1533 QCA_NL80211_VENDOR_SUBCMD_USD = 249, 1534 QCA_NL80211_VENDOR_SUBCMD_CONNECT_EXT = 250, 1535 QCA_NL80211_VENDOR_SUBCMD_SET_P2P_MODE = 251, 1536 QCA_NL80211_VENDOR_SUBCMD_CHAN_USAGE_REQ = 252, 1537 }; 1538 1539 /* Compatibility defines for previously used subcmd names. 1540 * These values should not be used in any new implementation. 1541 */ 1542 #define QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_MULTI_STA_POLICY \ 1543 QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY 1544 1545 enum qca_wlan_vendor_attr { 1546 QCA_WLAN_VENDOR_ATTR_INVALID = 0, 1547 /* used by QCA_NL80211_VENDOR_SUBCMD_DFS_CAPABILITY */ 1548 QCA_WLAN_VENDOR_ATTR_DFS = 1, 1549 /* Used only when driver sends vendor events to the userspace under the 1550 * command QCA_NL80211_VENDOR_SUBCMD_NAN. Not used when userspace sends 1551 * commands to the driver. 1552 */ 1553 QCA_WLAN_VENDOR_ATTR_NAN = 2, 1554 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 1555 QCA_WLAN_VENDOR_ATTR_STATS_EXT = 3, 1556 /* used by QCA_NL80211_VENDOR_SUBCMD_STATS_EXT */ 1557 QCA_WLAN_VENDOR_ATTR_IFINDEX = 4, 1558 /* used by QCA_NL80211_VENDOR_SUBCMD_ROAMING, u32 with values defined 1559 * by enum qca_roaming_policy. 1560 */ 1561 QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY = 5, 1562 QCA_WLAN_VENDOR_ATTR_MAC_ADDR = 6, 1563 /* Feature flags contained in a byte array. The feature flags are 1564 * identified by their bit index (see &enum qca_wlan_vendor_features) 1565 * with the first byte being the least significant one and the last one 1566 * being the most significant one. Used by 1567 * QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES. */ 1568 QCA_WLAN_VENDOR_ATTR_FEATURE_FLAGS = 7, 1569 QCA_WLAN_VENDOR_ATTR_TEST = 8, 1570 /* used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES */ 1571 /* Unsigned 32-bit value. */ 1572 QCA_WLAN_VENDOR_ATTR_CONCURRENCY_CAPA = 9, 1573 /* Unsigned 32-bit value */ 1574 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_2_4_BAND = 10, 1575 /* Unsigned 32-bit value */ 1576 QCA_WLAN_VENDOR_ATTR_MAX_CONCURRENT_CHANNELS_5_0_BAND = 11, 1577 /* Unsigned 32-bit value from enum qca_set_band. The allowed values for 1578 * this attribute are limited to QCA_SETBAND_AUTO, QCA_SETBAND_5G, and 1579 * QCA_SETBAND_2G. This attribute is deprecated. Recommendation is to 1580 * use QCA_WLAN_VENDOR_ATTR_SETBAND_MASK instead. 1581 */ 1582 QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE = 12, 1583 /* Attribute used for padding for 64-bit alignment */ 1584 QCA_WLAN_VENDOR_ATTR_PAD = 13, 1585 /* Unique FTM session cookie (Unsigned 64 bit). Specified in 1586 * QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION. Reported in 1587 * the session in QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT and 1588 * QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE. 1589 */ 1590 QCA_WLAN_VENDOR_ATTR_FTM_SESSION_COOKIE = 14, 1591 /* Indoor location capabilities, returned by 1592 * QCA_NL80211_VENDOR_SUBCMD_LOC_GET_CAPA. 1593 * see enum qca_wlan_vendor_attr_loc_capa. 1594 */ 1595 QCA_WLAN_VENDOR_ATTR_LOC_CAPA = 15, 1596 /* Array of nested attributes containing information about each peer 1597 * in FTM measurement session. See enum qca_wlan_vendor_attr_peer_info 1598 * for supported attributes for each peer. 1599 */ 1600 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEERS = 16, 1601 /* Array of nested attributes containing measurement results for 1602 * one or more peers, reported by the 1603 * QCA_NL80211_VENDOR_SUBCMD_FTM_MEAS_RESULT event. 1604 * See enum qca_wlan_vendor_attr_peer_result for list of supported 1605 * attributes. 1606 */ 1607 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PEER_RESULTS = 17, 1608 /* Flag attribute for enabling or disabling responder functionality. */ 1609 QCA_WLAN_VENDOR_ATTR_FTM_RESPONDER_ENABLE = 18, 1610 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 1611 * command to specify the LCI report that will be sent by 1612 * the responder during a measurement exchange. The format is 1613 * defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.10. 1614 */ 1615 QCA_WLAN_VENDOR_ATTR_FTM_LCI = 19, 1616 /* Used in the QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 1617 * command to specify the location civic report that will 1618 * be sent by the responder during a measurement exchange. 1619 * The format is defined in IEEE P802.11-REVmc/D7.0, 9.4.2.22.13. 1620 */ 1621 QCA_WLAN_VENDOR_ATTR_FTM_LCR = 20, 1622 /* Session/measurement completion status code, 1623 * reported in QCA_NL80211_VENDOR_SUBCMD_FTM_SESSION_DONE and 1624 * QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT 1625 * see enum qca_vendor_attr_loc_session_status. 1626 */ 1627 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS = 21, 1628 /* Initial dialog token used by responder (0 if not specified), 1629 * unsigned 8 bit value. 1630 */ 1631 QCA_WLAN_VENDOR_ATTR_FTM_INITIAL_TOKEN = 22, 1632 /* AOA measurement type. Requested in QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS 1633 * and optionally in QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION if 1634 * AOA measurements are needed as part of an FTM session. 1635 * Reported by QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS_RESULT. See 1636 * enum qca_wlan_vendor_attr_aoa_type. 1637 */ 1638 QCA_WLAN_VENDOR_ATTR_AOA_TYPE = 23, 1639 /* A bit mask (unsigned 32 bit value) of antenna arrays used 1640 * by indoor location measurements. Refers to the antenna 1641 * arrays described by QCA_VENDOR_ATTR_LOC_CAPA_ANTENNA_ARRAYS. 1642 */ 1643 QCA_WLAN_VENDOR_ATTR_LOC_ANTENNA_ARRAY_MASK = 24, 1644 /* AOA measurement data. Its contents depends on the AOA measurement 1645 * type and antenna array mask: 1646 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: array of U16 values, 1647 * phase of the strongest CIR path for each antenna in the measured 1648 * array(s). 1649 * QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: array of 2 U16 1650 * values, phase and amplitude of the strongest CIR path for each 1651 * antenna in the measured array(s). 1652 */ 1653 QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT = 25, 1654 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1655 * to specify the chain number (unsigned 32 bit value) to inquire 1656 * the corresponding antenna RSSI value 1657 */ 1658 QCA_WLAN_VENDOR_ATTR_CHAIN_INDEX = 26, 1659 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1660 * to report the specific antenna RSSI value (unsigned 32 bit value) 1661 */ 1662 QCA_WLAN_VENDOR_ATTR_CHAIN_RSSI = 27, 1663 /* Frequency in MHz, various uses. Unsigned 32 bit value */ 1664 QCA_WLAN_VENDOR_ATTR_FREQ = 28, 1665 /* TSF timer value, unsigned 64 bit value. 1666 * May be returned by various commands. 1667 */ 1668 QCA_WLAN_VENDOR_ATTR_TSF = 29, 1669 /* DMG RF sector index, unsigned 16 bit number. Valid values are 1670 * 0..127 for sector indices or 65535 as special value used to 1671 * unlock sector selection in 1672 * QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SELECTED_SECTOR. 1673 */ 1674 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_INDEX = 30, 1675 /* DMG RF sector type, unsigned 8 bit value. One of the values 1676 * in enum qca_wlan_vendor_attr_dmg_rf_sector_type. 1677 */ 1678 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE = 31, 1679 /* Bitmask of DMG RF modules for which information is requested. Each 1680 * bit corresponds to an RF module with the same index as the bit 1681 * number. Unsigned 32 bit number but only low 8 bits can be set since 1682 * all DMG chips currently have up to 8 RF modules. 1683 */ 1684 QCA_WLAN_VENDOR_ATTR_DMG_RF_MODULE_MASK = 32, 1685 /* Array of nested attributes where each entry is DMG RF sector 1686 * configuration for a single RF module. 1687 * Attributes for each entry are taken from enum 1688 * qca_wlan_vendor_attr_dmg_rf_sector_cfg. 1689 * Specified in QCA_NL80211_VENDOR_SUBCMD_DMG_RF_SET_SECTOR_CFG 1690 * and returned by QCA_NL80211_VENDOR_SUBCMD_DMG_RF_GET_SECTOR_CFG. 1691 */ 1692 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG = 33, 1693 /* Used in QCA_NL80211_VENDOR_SUBCMD_STATS_EXT command 1694 * to report frame aggregation statistics to userspace. 1695 */ 1696 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_NUM = 34, 1697 QCA_WLAN_VENDOR_ATTR_RX_AGGREGATION_STATS_HOLES_INFO = 35, 1698 /* Unsigned 8-bit value representing MBO transition reason code as 1699 * provided by the AP used by subcommand 1700 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS. This is 1701 * specified by the userspace in the request to the driver. 1702 */ 1703 QCA_WLAN_VENDOR_ATTR_BTM_MBO_TRANSITION_REASON = 36, 1704 /* Array of nested attributes, BSSID and status code, used by subcommand 1705 * QCA_NL80211_VENDOR_SUBCMD_FETCH_BSS_TRANSITION_STATUS, where each 1706 * entry is taken from enum qca_wlan_vendor_attr_btm_candidate_info. 1707 * The userspace space specifies the list/array of candidate BSSIDs in 1708 * the order of preference in the request. The driver specifies the 1709 * status code, for each BSSID in the list, in the response. The 1710 * acceptable candidates are listed in the order preferred by the 1711 * driver. 1712 */ 1713 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO = 37, 1714 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 1715 * See enum qca_wlan_vendor_attr_brp_ant_limit_mode. 1716 */ 1717 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE = 38, 1718 /* Used in QCA_NL80211_VENDOR_SUBCMD_BRP_SET_ANT_LIMIT command 1719 * to define the number of antennas to use for BRP. 1720 * different purpose in each ANT_LIMIT_MODE: 1721 * DISABLE - ignored 1722 * EFFECTIVE - upper limit to number of antennas to be used 1723 * FORCE - exact number of antennas to be used 1724 * unsigned 8 bit value 1725 */ 1726 QCA_WLAN_VENDOR_ATTR_BRP_ANT_NUM_LIMIT = 39, 1727 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command 1728 * to report the corresponding antenna index to the chain RSSI value 1729 */ 1730 QCA_WLAN_VENDOR_ATTR_ANTENNA_INFO = 40, 1731 /* Used in QCA_NL80211_VENDOR_SUBCMD_GET_CHAIN_RSSI command to report 1732 * the specific antenna EVM value (unsigned 32 bit value). With a 1733 * determinate group of antennas, the driver specifies the EVM value 1734 * for each antenna ID, and application extract them in user space. 1735 */ 1736 QCA_WLAN_VENDOR_ATTR_CHAIN_EVM = 41, 1737 /* 1738 * Used in QCA_NL80211_VENDOR_SUBCMD_GET_FW_STATE command to report 1739 * wlan firmware current state. FW state is an unsigned 8 bit value, 1740 * one of the values in enum qca_wlan_vendor_attr_fw_state. 1741 */ 1742 QCA_WLAN_VENDOR_ATTR_FW_STATE = 42, 1743 1744 /* Unsigned 32-bitmask value from enum qca_set_band. Substitutes the 1745 * attribute QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE for which only a subset 1746 * of single values from enum qca_set_band are valid. This attribute 1747 * uses bitmask combinations to define the respective allowed band 1748 * combinations and this attributes takes precedence over 1749 * QCA_WLAN_VENDOR_ATTR_SETBAND_VALUE if both attributes are included. 1750 */ 1751 QCA_WLAN_VENDOR_ATTR_SETBAND_MASK = 43, 1752 1753 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES. 1754 * This field describes the maximum number of links supported by the 1755 * chip for MLO association. 1756 * This is an optional attribute. 1757 */ 1758 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_ASSOCIATION_COUNT = 44, 1759 1760 /* Unsigned 8-bit used by QCA_NL80211_VENDOR_SUBCMD_GET_FEATURES. 1761 * This field describes the maximum number of Simultaneous Transmit 1762 * and Receive (STR) links used in Multi-Link Operation. 1763 * The maximum number of STR links used can be different 1764 * from the maximum number of radios supported by the chip. 1765 * This is a static configuration of the chip. 1766 * This is an optional attribute. 1767 */ 1768 QCA_WLAN_VENDOR_ATTR_MLO_CAPABILITY_MAX_STR_LINK_COUNT = 45, 1769 1770 /* keep last */ 1771 QCA_WLAN_VENDOR_ATTR_AFTER_LAST, 1772 QCA_WLAN_VENDOR_ATTR_MAX = QCA_WLAN_VENDOR_ATTR_AFTER_LAST - 1, 1773 }; 1774 1775 /** 1776 * enum qca_roaming_policy - Represents the policies for roaming. Used by 1777 * QCA_WLAN_VENDOR_ATTR_ROAMING_POLICY. 1778 * 1779 * QCA_ROAMING_NOT_ALLOWED: Roaming is not allowed/disabled. 1780 * 1781 * QCA_ROAMING_ALLOWED_WITHIN_ESS: Roaming is allowed with in an ESS with 1782 * default RSSI thresholds. 1783 * 1784 * QCA_ROAMING_MODE_AGGRESSIVE: This mode is an extension of 1785 * QCA_ROAMING_ALLOWED_WITHIN_ESS. The driver/firmware roams on higher RSSI 1786 * thresholds when compared to QCA_ROAMING_ALLOWED_WITHIN_ESS. 1787 */ 1788 enum qca_roaming_policy { 1789 QCA_ROAMING_NOT_ALLOWED, 1790 QCA_ROAMING_ALLOWED_WITHIN_ESS, 1791 QCA_ROAMING_MODE_AGGRESSIVE, 1792 }; 1793 1794 /** 1795 * enum qca_roam_reason - Represents the reason codes for roaming. Used by 1796 * QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON. 1797 * 1798 * @QCA_ROAM_REASON_UNKNOWN: Any reason that do not classify under the below 1799 * reasons. 1800 * 1801 * @QCA_ROAM_REASON_PER: Roam triggered when packet error rates (PER) breached 1802 * the configured threshold. 1803 * 1804 * @QCA_ROAM_REASON_BEACON_MISS: Roam triggered due to the continuous configured 1805 * beacon misses from the then connected AP. 1806 * 1807 * @QCA_ROAM_REASON_POOR_RSSI: Roam triggered due to the poor RSSI reported 1808 * by the connected AP. 1809 * 1810 * @QCA_ROAM_REASON_BETTER_RSSI: Roam triggered for finding a BSS with a better 1811 * RSSI than the connected BSS. Here the RSSI of the current BSS is not poor. 1812 * 1813 * @QCA_ROAM_REASON_CONGESTION: Roam triggered considering the connected channel 1814 * or environment being very noisy or congested. 1815 * 1816 * @QCA_ROAM_REASON_USER_TRIGGER: Roam triggered due to an explicit request 1817 * from the user (user space). 1818 * 1819 * @QCA_ROAM_REASON_BTM: Roam triggered due to BTM Request frame received from 1820 * the connected AP. 1821 * 1822 * @QCA_ROAM_REASON_BSS_LOAD: Roam triggered due to the channel utilization 1823 * breaching out the configured threshold. 1824 * 1825 * @QCA_ROAM_REASON_WTC: Roam triggered due to Wireless to Cellular BSS 1826 * transition request. 1827 * 1828 * @QCA_ROAM_REASON_IDLE: Roam triggered when device is suspended, there is no 1829 * data activity with the AP and the current RSSI falls below a certain 1830 * threshold. 1831 * 1832 * @QCA_ROAM_REASON_DISCONNECTION: Roam triggered due to Deauthentication or 1833 * Disassociation frames received from the connected AP. 1834 * 1835 * @QCA_ROAM_REASON_PERIODIC_TIMER: Roam triggered as part of the periodic scan 1836 * that happens when there is no candidate AP found during the poor RSSI scan 1837 * trigger. 1838 * 1839 * @QCA_ROAM_REASON_BACKGROUND_SCAN: Roam triggered based on the scan results 1840 * obtained from an external scan (not aimed at roaming). 1841 * 1842 * @QCA_ROAM_REASON_BT_ACTIVITY: Roam triggered due to Bluetooth connection is 1843 * established when the station is connected in the 2.4 GHz band. 1844 * 1845 * @QCA_ROAM_REASON_STA_KICKOUT: Roam triggered due to continuous TX Data frame 1846 * failures to the connected AP. 1847 */ 1848 enum qca_roam_reason { 1849 QCA_ROAM_REASON_UNKNOWN, 1850 QCA_ROAM_REASON_PER, 1851 QCA_ROAM_REASON_BEACON_MISS, 1852 QCA_ROAM_REASON_POOR_RSSI, 1853 QCA_ROAM_REASON_BETTER_RSSI, 1854 QCA_ROAM_REASON_CONGESTION, 1855 QCA_ROAM_REASON_USER_TRIGGER, 1856 QCA_ROAM_REASON_BTM, 1857 QCA_ROAM_REASON_BSS_LOAD, 1858 QCA_ROAM_REASON_WTC, 1859 QCA_ROAM_REASON_IDLE, 1860 QCA_ROAM_REASON_DISCONNECTION, 1861 QCA_ROAM_REASON_PERIODIC_TIMER, 1862 QCA_ROAM_REASON_BACKGROUND_SCAN, 1863 QCA_ROAM_REASON_BT_ACTIVITY, 1864 QCA_ROAM_REASON_STA_KICKOUT, 1865 }; 1866 1867 enum qca_wlan_vendor_attr_roam_auth { 1868 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_INVALID = 0, 1869 /* Indicates BSSID of the roamed AP for non-MLO roaming and MLD address 1870 * of the roamed AP for MLO roaming. 1871 */ 1872 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID, 1873 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REQ_IE, 1874 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RESP_IE, 1875 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AUTHORIZED, 1876 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_KEY_REPLAY_CTR, 1877 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KCK, 1878 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PTK_KEK, 1879 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_SUBNET_STATUS, 1880 /* Indicates the status of re-association requested by user space for 1881 * the BSSID specified by QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_BSSID. 1882 * Type u16. 1883 * Represents the status code from AP. Use 1884 * %WLAN_STATUS_UNSPECIFIED_FAILURE if the device cannot give you the 1885 * real status code for failures. 1886 */ 1887 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS, 1888 /* This attribute indicates that the old association was maintained when 1889 * a re-association is requested by user space and that re-association 1890 * attempt fails (i.e., cannot connect to the requested BSS, but can 1891 * remain associated with the BSS with which the association was in 1892 * place when being requested to roam). Used along with 1893 * WLAN_VENDOR_ATTR_ROAM_AUTH_STATUS to indicate the current 1894 * re-association status. Type flag. 1895 * This attribute is applicable only for re-association failure cases. 1896 */ 1897 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_RETAIN_CONNECTION, 1898 /* This attribute specifies the PMK if one was newly generated during 1899 * FILS roaming. This is added to the PMKSA cache and is used in 1900 * subsequent connections with PMKSA caching. 1901 */ 1902 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMK = 11, 1903 /* This attribute specifies the PMKID used/generated for the current 1904 * FILS roam. This is used in subsequent connections with PMKSA caching. 1905 */ 1906 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_PMKID = 12, 1907 /* A 16-bit unsigned value specifying the next sequence number to use 1908 * in ERP message in the currently associated realm. This is used in 1909 * doing subsequent ERP based connections in the same realm. 1910 */ 1911 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_FILS_ERP_NEXT_SEQ_NUM = 13, 1912 /* A 16-bit unsigned value representing the reasons for the roaming. 1913 * Defined by enum qca_roam_reason. 1914 */ 1915 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_REASON = 14, 1916 /* A nested attribute containing per-link information of all the links 1917 * of MLO connection done while roaming. The attributes used inside this 1918 * nested attribute are defined in enum qca_wlan_vendor_attr_mlo_links. 1919 */ 1920 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS = 15, 1921 1922 /* keep last */ 1923 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST, 1924 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MAX = 1925 QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_AFTER_LAST - 1 1926 }; 1927 1928 enum qca_wlan_vendor_attr_p2p_listen_offload { 1929 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INVALID = 0, 1930 /* A 32-bit unsigned value; the P2P listen frequency (MHz); must be one 1931 * of the social channels. 1932 */ 1933 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CHANNEL, 1934 /* A 32-bit unsigned value; the P2P listen offload period (ms). 1935 */ 1936 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_PERIOD, 1937 /* A 32-bit unsigned value; the P2P listen interval duration (ms). 1938 */ 1939 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_INTERVAL, 1940 /* A 32-bit unsigned value; number of interval times the firmware needs 1941 * to run the offloaded P2P listen operation before it stops. 1942 */ 1943 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_COUNT, 1944 /* An array of arbitrary binary data with one or more 8-byte values. 1945 * The device types include both primary and secondary device types. 1946 */ 1947 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_DEVICE_TYPES, 1948 /* An array of unsigned 8-bit characters; vendor information elements. 1949 */ 1950 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_VENDOR_IE, 1951 /* A 32-bit unsigned value; a control flag to indicate whether listen 1952 * results need to be flushed to wpa_supplicant. 1953 */ 1954 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_CTRL_FLAG, 1955 /* A 8-bit unsigned value; reason code for P2P listen offload stop 1956 * event. 1957 */ 1958 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_STOP_REASON, 1959 /* keep last */ 1960 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST, 1961 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_MAX = 1962 QCA_WLAN_VENDOR_ATTR_P2P_LISTEN_OFFLOAD_AFTER_LAST - 1 1963 }; 1964 1965 /** 1966 * enum qca_wlan_vendor_attr_acs_offload - Defines attributes to be used with 1967 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. 1968 * 1969 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL: Required (u8). 1970 * Used with event to notify the primary channel number selected in ACS 1971 * operation. 1972 * Note: If both the driver and user-space application supports the 6 GHz band, 1973 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL is deprecated; use 1974 * QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY instead. 1975 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL 1976 * is still used if either of the driver or user space application doesn't 1977 * support the 6 GHz band. 1978 * 1979 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL: Required (u8). 1980 * Used with event to notify the secondary channel number selected in ACS 1981 * operation. 1982 * Note: If both the driver and user-space application supports the 6 GHz band, 1983 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is deprecated; use 1984 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY instead. 1985 * To maintain backward compatibility, 1986 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL is still used if either of 1987 * the driver or user space application doesn't support 6 GHz band. 1988 * 1989 * @QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE: Required (u8). 1990 * (a) Used with command to configure hw_mode from 1991 * enum qca_wlan_vendor_acs_hw_mode for ACS operation. 1992 * (b) Also used with event to notify the hw_mode of selected primary channel 1993 * in ACS operation. 1994 * 1995 * @QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED: Flag attribute. 1996 * Used with command to configure ACS operation for HT mode. 1997 * Disable (flag attribute not present) - HT disabled and 1998 * Enable (flag attribute present) - HT enabled. 1999 * 2000 * @QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED: Flag attribute. 2001 * Used with command to configure ACS operation for HT40 mode. 2002 * Disable (flag attribute not present) - HT40 disabled and 2003 * Enable (flag attribute present) - HT40 enabled. 2004 * 2005 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED: Flag attribute. 2006 * Used with command to configure ACS operation for VHT mode. 2007 * Disable (flag attribute not present) - VHT disabled and 2008 * Enable (flag attribute present) - VHT enabled. 2009 * 2010 * @QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH: Optional (u16) with command and 2011 * mandatory with event. 2012 * If specified in command path, ACS operation is configured with the given 2013 * channel width (in MHz). 2014 * In event path, specifies the channel width of the primary channel selected. 2015 * 2016 * @QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST: Required and type is NLA_UNSPEC. 2017 * Used with command to configure channel list using an array of 2018 * channel numbers (u8). 2019 * Note: If both the driver and user-space application supports the 6 GHz band, 2020 * the driver mandates use of QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST whereas 2021 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST is optional. 2022 * 2023 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL: Required (u8). 2024 * Used with event to notify the VHT segment 0 center channel number selected in 2025 * ACS operation. The value is the index of the channel center frequency for 2026 * 20 MHz, 40 MHz, and 80 MHz channels. The value is the center frequency index 2027 * of the primary 80 MHz segment for 160 MHz and 80+80 MHz channels. 2028 * Note: If both the driver and user-space application supports the 6 GHz band, 2029 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is deprecated; use 2030 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY instead. 2031 * To maintain backward compatibility, 2032 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL is still used if either of 2033 * the driver or user space application doesn't support the 6 GHz band. 2034 * 2035 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL: Required (u8). 2036 * Used with event to notify the VHT segment 1 center channel number selected in 2037 * ACS operation. The value is zero for 20 MHz, 40 MHz, and 80 MHz channels. 2038 * The value is the index of the channel center frequency for 160 MHz channels 2039 * and the center frequency index of the secondary 80 MHz segment for 80+80 MHz 2040 * channels. 2041 * Note: If both the driver and user-space application supports the 6 GHz band, 2042 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is deprecated; use 2043 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY instead. 2044 * To maintain backward compatibility, 2045 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL is still used if either of 2046 * the driver or user space application doesn't support the 6 GHz band. 2047 * 2048 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST: Required and type is NLA_UNSPEC. 2049 * Used with command to configure the channel list using an array of channel 2050 * center frequencies in MHz (u32). 2051 * Note: If both the driver and user-space application supports the 6 GHz band, 2052 * the driver first parses the frequency list and if it fails to get a frequency 2053 * list, parses the channel list specified using 2054 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST (considers only 2 GHz and 5 GHz channels in 2055 * QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST). 2056 * 2057 * @QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY: Required (u32). 2058 * Used with event to notify the primary channel center frequency (MHz) selected 2059 * in ACS operation. 2060 * Note: If the driver supports the 6 GHz band, the event sent from the driver 2061 * includes this attribute along with QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL. 2062 * 2063 * @QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY: Required (u32). 2064 * Used with event to notify the secondary channel center frequency (MHz) 2065 * selected in ACS operation. 2066 * Note: If the driver supports the 6 GHz band, the event sent from the driver 2067 * includes this attribute along with 2068 * QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL. 2069 * 2070 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY: Required (u32). 2071 * Used with event to notify the VHT segment 0 center channel frequency (MHz) 2072 * selected in ACS operation. 2073 * Note: If the driver supports the 6 GHz band, the event sent from the driver 2074 * includes this attribute along with 2075 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL. 2076 * 2077 * @QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY: Required (u32). 2078 * Used with event to notify the VHT segment 1 center channel frequency (MHz) 2079 * selected in ACS operation. 2080 * Note: If the driver supports the 6 GHz band, the event sent from the driver 2081 * includes this attribute along with 2082 * QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL. 2083 * 2084 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED: Flag attribute. 2085 * Used with command to notify the driver of EDMG request for ACS 2086 * operation. 2087 * 2088 * @QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL: Optional (u8). 2089 * Used with event to notify the EDMG channel number selected in ACS 2090 * operation. 2091 * EDMG primary channel is indicated by QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL 2092 * 2093 * @QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP: Optional (u16). 2094 * Used with event to notify the puncture pattern selected in ACS operation. 2095 * Encoding for this attribute will follow the convention used in the Disabled 2096 * Subchannel Bitmap field of the EHT Operation IE. 2097 * 2098 * @QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED: Flag attribute. 2099 * Used with command to configure ACS operation for EHT mode. 2100 * Disable (flag attribute not present) - EHT disabled and 2101 * Enable (flag attribute present) - EHT enabled. 2102 * 2103 * @QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME: Optional (u32). 2104 * Used with command to configure how older scan can be considered for ACS 2105 * scoring. In case scan was performed on a partial set of channels configured 2106 * with this command within last QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME 2107 * (in ms), scan only the remaining channels. 2108 * 2109 * @QCA_WLAN_VENDOR_ATTR_ACS_LINK_ID: Mandatory on AP MLD (u8). 2110 * Used with command to configure ACS operation for a specific link affiliated 2111 * to an AP MLD. 2112 * 2113 */ 2114 enum qca_wlan_vendor_attr_acs_offload { 2115 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_INVALID = 0, 2116 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_CHANNEL = 1, 2117 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_CHANNEL = 2, 2118 QCA_WLAN_VENDOR_ATTR_ACS_HW_MODE = 3, 2119 QCA_WLAN_VENDOR_ATTR_ACS_HT_ENABLED = 4, 2120 QCA_WLAN_VENDOR_ATTR_ACS_HT40_ENABLED = 5, 2121 QCA_WLAN_VENDOR_ATTR_ACS_VHT_ENABLED = 6, 2122 QCA_WLAN_VENDOR_ATTR_ACS_CHWIDTH = 7, 2123 QCA_WLAN_VENDOR_ATTR_ACS_CH_LIST = 8, 2124 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_CHANNEL = 9, 2125 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_CHANNEL = 10, 2126 QCA_WLAN_VENDOR_ATTR_ACS_FREQ_LIST = 11, 2127 QCA_WLAN_VENDOR_ATTR_ACS_PRIMARY_FREQUENCY = 12, 2128 QCA_WLAN_VENDOR_ATTR_ACS_SECONDARY_FREQUENCY = 13, 2129 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG0_CENTER_FREQUENCY = 14, 2130 QCA_WLAN_VENDOR_ATTR_ACS_VHT_SEG1_CENTER_FREQUENCY = 15, 2131 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_ENABLED = 16, 2132 QCA_WLAN_VENDOR_ATTR_ACS_EDMG_CHANNEL = 17, 2133 QCA_WLAN_VENDOR_ATTR_ACS_PUNCTURE_BITMAP = 18, 2134 QCA_WLAN_VENDOR_ATTR_ACS_EHT_ENABLED = 19, 2135 QCA_WLAN_VENDOR_ATTR_ACS_LAST_SCAN_AGEOUT_TIME = 20, 2136 QCA_WLAN_VENDOR_ATTR_ACS_LINK_ID = 21, 2137 2138 /* keep last */ 2139 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST, 2140 QCA_WLAN_VENDOR_ATTR_ACS_MAX = 2141 QCA_WLAN_VENDOR_ATTR_ACS_AFTER_LAST - 1 2142 }; 2143 2144 /** 2145 * enum qca_wlan_vendor_acs_hw_mode - Defines HW mode to be used with the 2146 * vendor command/event QCA_NL80211_VENDOR_SUBCMD_DO_ACS. 2147 * 2148 * @QCA_ACS_MODE_IEEE80211B: 802.11b mode 2149 * @QCA_ACS_MODE_IEEE80211G: 802.11g mode 2150 * @QCA_ACS_MODE_IEEE80211A: 802.11a mode 2151 * @QCA_ACS_MODE_IEEE80211AD: 802.11ad mode 2152 * @QCA_ACS_MODE_IEEE80211ANY: all modes 2153 * @QCA_ACS_MODE_IEEE80211AX: 802.11ax mode 2154 */ 2155 enum qca_wlan_vendor_acs_hw_mode { 2156 QCA_ACS_MODE_IEEE80211B, 2157 QCA_ACS_MODE_IEEE80211G, 2158 QCA_ACS_MODE_IEEE80211A, 2159 QCA_ACS_MODE_IEEE80211AD, 2160 QCA_ACS_MODE_IEEE80211ANY, 2161 QCA_ACS_MODE_IEEE80211AX, 2162 }; 2163 2164 /** 2165 * enum qca_wlan_vendor_features - Vendor device/driver feature flags 2166 * 2167 * @QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD: Device supports key 2168 * management offload, a mechanism where the station's firmware 2169 * does the exchange with the AP to establish the temporal keys 2170 * after roaming, rather than having the user space wpa_supplicant do it. 2171 * @QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY: Device supports automatic 2172 * band selection based on channel selection results. 2173 * @QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS: Device supports 2174 * simultaneous off-channel operations. 2175 * @QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD: Device supports P2P 2176 * Listen offload; a mechanism where the station's firmware takes care of 2177 * responding to incoming Probe Request frames received from other P2P 2178 * Devices whilst in Listen state, rather than having the user space 2179 * wpa_supplicant do it. Information from received P2P requests are 2180 * forwarded from firmware to host whenever the host processor wakes up. 2181 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA: Device supports all OCE non-AP STA 2182 * specific features. 2183 * @QCA_WLAN_VENDOR_FEATURE_OCE_AP: Device supports all OCE AP specific 2184 * features. 2185 * @QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON: Device supports OCE STA-CFON 2186 * specific features only. If a Device sets this bit but not the 2187 * %QCA_WLAN_VENDOR_FEATURE_OCE_AP, the userspace shall assume that 2188 * this Device may not support all OCE AP functionalities but can support 2189 * only OCE STA-CFON functionalities. 2190 * @QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY: Device supports self 2191 * managed regulatory. 2192 * @QCA_WLAN_VENDOR_FEATURE_TWT: Device supports TWT (Target Wake Time). 2193 * @QCA_WLAN_VENDOR_FEATURE_11AX: Device supports 802.11ax (HE) 2194 * @QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT: Device supports 6 GHz band operation 2195 * @QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG: Device is capable of receiving 2196 * and applying thermal configuration through 2197 * %QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL and 2198 * %QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW attributes from 2199 * userspace. 2200 * @QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R: Device supports Adaptive 11r. 2201 * With Adaptive 11r feature, access points advertise the vendor 2202 * specific IEs and MDE but do not include FT AKM in the RSNE. 2203 * The Adaptive 11r supported stations are expected to identify 2204 * such vendor specific IEs and connect to the AP in FT mode though 2205 * the profile is configured in non-FT mode. 2206 * The driver-based SME cases also need to have this support for 2207 * Adaptive 11r to handle the connection and roaming scenarios. 2208 * This flag indicates the support for the same to the user space. 2209 * @QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS: Device supports 2210 * concurrent network sessions on different Wi-Fi bands. This feature 2211 * capability is attributed to the hardware's capability to support 2212 * the same (e.g., DBS). 2213 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT: Flag indicating whether the 2214 * responses for the respective TWT operations are asynchronous (separate 2215 * event message) from the driver. If not specified, the responses are 2216 * synchronous (in vendor command reply) to the request. Each TWT 2217 * operation is specifically mentioned (against its respective 2218 * documentation) to support either of these or both modes. 2219 * @QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI: Flag indicates 2220 * that the driver requires add/del virtual interface path using the 2221 * generic nl80211 commands for NDP interface create/delete and to 2222 * register/unregister the netdev instead of creating/deleting the NDP 2223 * interface using the vendor commands 2224 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE and 2225 * QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE. With the latest kernel 2226 * (5.12 version onward), interface creation/deletion is not allowed using 2227 * vendor commands as it leads to a deadlock while acquiring the RTNL_LOCK 2228 * during the register/unregister of netdev. Create and delete NDP 2229 * interface using NL80211_CMD_NEW_INTERFACE and NL80211_CMD_DEL_INTERFACE 2230 * commands respectively if the driver advertises this capability set. 2231 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA: Flag indicates that the device in 2232 * station mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is 2233 * set, then QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA will be ignored. 2234 * @QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP: Flag indicates that the device in AP 2235 * mode supports secure LTF. If NL80211_EXT_FEATURE_SECURE_LTF is set, then 2236 * QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP will be ignored. 2237 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA: Flag indicates that the device in 2238 * station mode supports secure RTT measurement exchange. If 2239 * NL80211_EXT_FEATURE_SECURE_RTT is set, 2240 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA will be ignored. 2241 * @QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP: Flag indicates that the device in AP 2242 * mode supports secure RTT measurement exchange. If 2243 * NL80211_EXT_FEATURE_SECURE_RTT is set, 2244 * QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP will be ignored. 2245 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA: Flag indicates that 2246 * the device in station mode supports protection of range negotiation and 2247 * measurement management frames. If 2248 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then 2249 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA will be ignored. 2250 * @QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP: Flag indicates that 2251 * the device in AP mode supports protection of range negotiation and 2252 * measurement management frames. If 2253 * NL80211_EXT_FEATURE_PROT_RANGE_NEGO_AND_MEASURE is set, then 2254 * QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP will be ignored. 2255 * @QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST: Flag indicates that the device 2256 * in AP mode supports configuring allowed frequency list for AP operation 2257 * with %QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST. 2258 * @QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN: Flag indicates 2259 * that the device supports enhanced audio experience over WLAN feature. 2260 * @QCA_WLAN_VENDOR_FEATURE_HT_VHT_TWT_RESPONDER: Flag indicates that the device 2261 * in AP mode supports TWT responder mode in HT and VHT modes. 2262 * 2263 * @QCA_WLAN_VENDOR_FEATURE_RSN_OVERRIDE_STA: Flag indicates that the device 2264 * supports RSNE/RSNXE overriding in STA mode. Supplicant should enable 2265 * RSN overriding elements use only when the driver indicates this feature 2266 * flag. For BSS selection offload to the driver case, the driver shall 2267 * strip/modify the RSN Selection element indicated in connect request 2268 * elements or add that element if none was provided based on the BSS 2269 * selected by the driver. 2270 * 2271 * @QCA_WLAN_VENDOR_FEATURE_NAN_USD_OFFLOAD: Flag indicates that the driver 2272 * supports Unsynchronized Service Discovery to be offloaded to it. 2273 * 2274 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits 2275 */ 2276 enum qca_wlan_vendor_features { 2277 QCA_WLAN_VENDOR_FEATURE_KEY_MGMT_OFFLOAD = 0, 2278 QCA_WLAN_VENDOR_FEATURE_SUPPORT_HW_MODE_ANY = 1, 2279 QCA_WLAN_VENDOR_FEATURE_OFFCHANNEL_SIMULTANEOUS = 2, 2280 QCA_WLAN_VENDOR_FEATURE_P2P_LISTEN_OFFLOAD = 3, 2281 QCA_WLAN_VENDOR_FEATURE_OCE_STA = 4, 2282 QCA_WLAN_VENDOR_FEATURE_OCE_AP = 5, 2283 QCA_WLAN_VENDOR_FEATURE_OCE_STA_CFON = 6, 2284 QCA_WLAN_VENDOR_FEATURE_SELF_MANAGED_REGULATORY = 7, 2285 QCA_WLAN_VENDOR_FEATURE_TWT = 8, 2286 QCA_WLAN_VENDOR_FEATURE_11AX = 9, 2287 QCA_WLAN_VENDOR_FEATURE_6GHZ_SUPPORT = 10, 2288 QCA_WLAN_VENDOR_FEATURE_THERMAL_CONFIG = 11, 2289 QCA_WLAN_VENDOR_FEATURE_ADAPTIVE_11R = 12, 2290 QCA_WLAN_VENDOR_FEATURE_CONCURRENT_BAND_SESSIONS = 13, 2291 QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT = 14, 2292 QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI = 15, 2293 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_STA = 16, 2294 QCA_WLAN_VENDOR_FEATURE_SECURE_LTF_AP = 17, 2295 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_STA = 18, 2296 QCA_WLAN_VENDOR_FEATURE_SECURE_RTT_AP = 19, 2297 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_STA = 20, 2298 QCA_WLAN_VENDOR_FEATURE_PROT_RANGE_NEGO_AND_MEASURE_AP = 21, 2299 QCA_WLAN_VENDOR_FEATURE_AP_ALLOWED_FREQ_LIST = 22, 2300 QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN = 23, 2301 QCA_WLAN_VENDOR_FEATURE_HT_VHT_TWT_RESPONDER = 24, 2302 QCA_WLAN_VENDOR_FEATURE_RSN_OVERRIDE_STA = 25, 2303 QCA_WLAN_VENDOR_FEATURE_NAN_USD_OFFLOAD = 26, 2304 NUM_QCA_WLAN_VENDOR_FEATURES /* keep last */ 2305 }; 2306 2307 /** 2308 * enum qca_wlan_vendor_attr_data_offload_ind - Vendor Data Offload Indication 2309 * 2310 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION: Session corresponding to 2311 * the offloaded data. 2312 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL: Protocol of the offloaded 2313 * data. 2314 * @QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT: Event type for the data offload 2315 * indication. 2316 */ 2317 enum qca_wlan_vendor_attr_data_offload_ind { 2318 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_INVALID = 0, 2319 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_SESSION, 2320 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_PROTOCOL, 2321 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_EVENT, 2322 2323 /* keep last */ 2324 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST, 2325 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_MAX = 2326 QCA_WLAN_VENDOR_ATTR_DATA_OFFLOAD_IND_AFTER_LAST - 1 2327 }; 2328 2329 /** 2330 * enum qca_wlan_vendor_attr_ocb_set_config - Vendor subcmd attributes to set 2331 * OCB config 2332 * 2333 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT: Number of channels in the 2334 * configuration 2335 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE: Size of the schedule 2336 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY: Array of channels 2337 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY: Array of channels to be 2338 * scheduled 2339 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY: Array of NDL channel 2340 * information 2341 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY: Array of NDL 2342 * active state configuration 2343 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS: Configuration flags such as 2344 * OCB_CONFIG_FLAG_80211_FRAME_MODE 2345 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM: Default TX parameters to 2346 * use in the case that a packet is sent without a TX control header 2347 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION: Max duration after the 2348 * last TA received that the local time set by TA is synchronous to other 2349 * communicating OCB STAs. 2350 */ 2351 enum qca_wlan_vendor_attr_ocb_set_config { 2352 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_INVALID = 0, 2353 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_COUNT = 1, 2354 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_SIZE = 2, 2355 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_CHANNEL_ARRAY = 3, 2356 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_SCHEDULE_ARRAY = 4, 2357 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_CHANNEL_ARRAY = 5, 2358 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_NDL_ACTIVE_STATE_ARRAY = 6, 2359 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_FLAGS = 7, 2360 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_DEF_TX_PARAM = 8, 2361 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_TA_MAX_DURATION = 9, 2362 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST, 2363 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_MAX = 2364 QCA_WLAN_VENDOR_ATTR_OCB_SET_CONFIG_AFTER_LAST - 1 2365 }; 2366 2367 /** 2368 * enum qca_wlan_vendor_attr_ocb_set_utc_time - Vendor subcmd attributes to set 2369 * UTC time 2370 * 2371 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE: The UTC time as an array of 2372 * 10 bytes 2373 * @QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR: The time error as an array of 2374 * 5 bytes 2375 */ 2376 enum qca_wlan_vendor_attr_ocb_set_utc_time { 2377 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_INVALID = 0, 2378 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_VALUE = 1, 2379 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_ERROR = 2, 2380 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST, 2381 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_MAX = 2382 QCA_WLAN_VENDOR_ATTR_OCB_SET_UTC_TIME_AFTER_LAST - 1 2383 }; 2384 2385 /** 2386 * enum qca_wlan_vendor_attr_ocb_start_timing_advert - Vendor subcmd attributes 2387 * to start sending timing advert frames 2388 * 2389 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ: Cannel frequency 2390 * on which to send the frames 2391 * @QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE: Number of times 2392 * the frame is sent in 5 seconds 2393 */ 2394 enum qca_wlan_vendor_attr_ocb_start_timing_advert { 2395 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_INVALID = 0, 2396 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_CHANNEL_FREQ = 1, 2397 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_REPEAT_RATE = 2, 2398 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST, 2399 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_MAX = 2400 QCA_WLAN_VENDOR_ATTR_OCB_START_TIMING_ADVERT_AFTER_LAST - 1 2401 }; 2402 2403 /** 2404 * enum qca_wlan_vendor_attr_ocb_stop_timing_advert - Vendor subcmd attributes 2405 * to stop timing advert 2406 * 2407 * @QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ: The channel 2408 * frequency on which to stop the timing advert 2409 */ 2410 enum qca_wlan_vendor_attr_ocb_stop_timing_advert { 2411 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_INVALID = 0, 2412 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_CHANNEL_FREQ = 1, 2413 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST, 2414 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_MAX = 2415 QCA_WLAN_VENDOR_ATTR_OCB_STOP_TIMING_ADVERT_AFTER_LAST - 1 2416 }; 2417 2418 /** 2419 * enum qca_wlan_vendor_attr_ocb_get_tsf_response - Vendor subcmd attributes to 2420 * get TSF timer value 2421 * 2422 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH: Higher 32 bits of the 2423 * timer 2424 * @QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW: Lower 32 bits of the timer 2425 */ 2426 enum qca_wlan_vendor_attr_ocb_get_tsf_resp { 2427 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_INVALID = 0, 2428 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_HIGH = 1, 2429 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_TIMER_LOW = 2, 2430 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST, 2431 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_MAX = 2432 QCA_WLAN_VENDOR_ATTR_OCB_GET_TSF_RESP_AFTER_LAST - 1 2433 }; 2434 2435 enum qca_vendor_attr_get_preferred_freq_list { 2436 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_INVALID, 2437 /* A 32-unsigned value; the interface type/mode for which the preferred 2438 * frequency list is requested (see enum qca_iface_type for possible 2439 * values); used in GET_PREFERRED_FREQ_LIST command from user-space to 2440 * kernel and in the kernel response back to user-space. 2441 */ 2442 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_IFACE_TYPE, 2443 /* An array of 32-unsigned values; values are frequency (MHz); sent 2444 * from kernel space to user space. 2445 */ 2446 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST, 2447 /* An array of nested values as per enum qca_wlan_vendor_attr_pcl 2448 * attribute. Each element contains frequency (MHz), weight, and flag 2449 * bit mask indicating how the frequency should be used in P2P 2450 * negotiation; sent from kernel space to user space. 2451 */ 2452 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_WEIGHED_PCL, 2453 /* keep last */ 2454 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST, 2455 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_MAX = 2456 QCA_WLAN_VENDOR_ATTR_GET_PREFERRED_FREQ_LIST_AFTER_LAST - 1 2457 }; 2458 2459 enum qca_vendor_attr_probable_oper_channel { 2460 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_INVALID, 2461 /* 32-bit unsigned value; indicates the connection/iface type likely to 2462 * come on this channel (see enum qca_iface_type). 2463 */ 2464 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_IFACE_TYPE, 2465 /* 32-bit unsigned value; the frequency (MHz) of the probable channel */ 2466 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_FREQ, 2467 /* keep last */ 2468 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST, 2469 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_MAX = 2470 QCA_WLAN_VENDOR_ATTR_PROBABLE_OPER_CHANNEL_AFTER_LAST - 1 2471 }; 2472 2473 enum qca_iface_type { 2474 QCA_IFACE_TYPE_STA, 2475 QCA_IFACE_TYPE_AP, 2476 QCA_IFACE_TYPE_P2P_CLIENT, 2477 QCA_IFACE_TYPE_P2P_GO, 2478 QCA_IFACE_TYPE_IBSS, 2479 QCA_IFACE_TYPE_TDLS, 2480 }; 2481 2482 enum qca_set_band { 2483 QCA_SETBAND_AUTO = 0, 2484 QCA_SETBAND_5G = BIT(0), 2485 QCA_SETBAND_2G = BIT(1), 2486 QCA_SETBAND_6G = BIT(2), 2487 }; 2488 2489 /** 2490 * enum qca_access_policy - Access control policy 2491 * 2492 * Access control policy is applied on the configured IE 2493 * (QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE). 2494 * To be set with QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY. 2495 * 2496 * @QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED: Deny Wi-Fi connections which match 2497 * the specific configuration (IE) set, i.e., allow all the 2498 * connections which do not match the configuration. 2499 * @QCA_ACCESS_POLICY_DENY_UNLESS_LISTED: Accept Wi-Fi connections which match 2500 * the specific configuration (IE) set, i.e., deny all the 2501 * connections which do not match the configuration. 2502 */ 2503 enum qca_access_policy { 2504 QCA_ACCESS_POLICY_ACCEPT_UNLESS_LISTED, 2505 QCA_ACCESS_POLICY_DENY_UNLESS_LISTED, 2506 }; 2507 2508 /** 2509 * enum qca_vendor_attr_tsf_cmd: Vendor attributes for TSF capture 2510 * @QCA_WLAN_VENDOR_ATTR_TSF_CMD: Required (u32) 2511 * Specify the TSF command. Possible values are defined in 2512 * &enum qca_tsf_cmd. 2513 * @QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE: Optional (u64) 2514 * This attribute contains TSF timer value. This attribute is only available 2515 * in %QCA_TSF_GET, %QCA_TSF_SYNC_GET or %QCA_TSF_SYNC_GET_CSA_TIMESTAMP 2516 * response. 2517 * @QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE: Optional (u64) 2518 * This attribute contains SOC timer value at TSF capture. This attribute is 2519 * only available in %QCA_TSF_GET or %QCA_TSF_SYNC_GET response. 2520 * @QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL: Optional (u32) 2521 * This attribute is used to provide TSF sync interval and only applicable when 2522 * TSF command is %QCA_TSF_SYNC_START. If this attribute is not provided, the 2523 * driver will use the default value. Time unit is in milliseconds. 2524 * @QCA_WLAN_VENDOR_ATTR_TSF_PAD: Attribute used for padding for 64-bit 2525 * alignment. 2526 */ 2527 enum qca_vendor_attr_tsf_cmd { 2528 QCA_WLAN_VENDOR_ATTR_TSF_INVALID = 0, 2529 QCA_WLAN_VENDOR_ATTR_TSF_CMD, 2530 QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE, 2531 QCA_WLAN_VENDOR_ATTR_TSF_SOC_TIMER_VALUE, 2532 QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL, 2533 QCA_WLAN_VENDOR_ATTR_TSF_PAD, 2534 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST, 2535 QCA_WLAN_VENDOR_ATTR_TSF_MAX = 2536 QCA_WLAN_VENDOR_ATTR_TSF_AFTER_LAST - 1 2537 }; 2538 2539 /** 2540 * enum qca_tsf_cmd: TSF driver commands 2541 * @QCA_TSF_CAPTURE: Initiate TSF Capture 2542 * @QCA_TSF_GET: Get TSF capture value 2543 * @QCA_TSF_SYNC_GET: Initiate TSF capture and return with captured value 2544 * @QCA_TSF_AUTO_REPORT_ENABLE: Used in STA mode only. Once set, the target 2545 * will automatically send TSF report to the host. To query 2546 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY or 2547 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER, this operation needs 2548 * to be initiated first. 2549 * @QCA_TSF_AUTO_REPORT_DISABLE: Used in STA mode only. Once set, the target 2550 * will not automatically send TSF report to the host. If 2551 * %QCA_TSF_AUTO_REPORT_ENABLE is initiated and 2552 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY or 2553 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER is not queried 2554 * anymore, this operation needs to be initiated. 2555 * @QCA_TSF_SYNC_START: Start periodic TSF sync feature. The driver periodically 2556 * fetches TSF and host time mapping from the firmware with interval configured 2557 * through the %QCA_WLAN_VENDOR_ATTR_TSF_SYNC_INTERVAL attribute. If the 2558 * interval value is not provided the driver will use the default value. The 2559 * userspace can query the TSF and host time mapping via the %QCA_TSF_GET 2560 * command. 2561 * @QCA_TSF_SYNC_STOP: Stop periodic TSF sync feature. 2562 * @QCA_TSF_SYNC_GET_CSA_TIMESTAMP: Get TSF timestamp when AP will move and 2563 * starts beaconing on a new channel. The driver synchronously responds with the 2564 * TSF value using attribute %QCA_WLAN_VENDOR_ATTR_TSF_TIMER_VALUE. Userspace 2565 * gets the valid CSA TSF after receiving %NL80211_CMD_CH_SWITCH_STARTED_NOTIFY 2566 * on the AP interface. This TSF can be sent via OOB mechanism to connected 2567 * clients. 2568 */ 2569 enum qca_tsf_cmd { 2570 QCA_TSF_CAPTURE, 2571 QCA_TSF_GET, 2572 QCA_TSF_SYNC_GET, 2573 QCA_TSF_AUTO_REPORT_ENABLE, 2574 QCA_TSF_AUTO_REPORT_DISABLE, 2575 QCA_TSF_SYNC_START, 2576 QCA_TSF_SYNC_STOP, 2577 QCA_TSF_SYNC_GET_CSA_TIMESTAMP, 2578 }; 2579 2580 /** 2581 * enum qca_vendor_attr_wisa_cmd 2582 * @QCA_WLAN_VENDOR_ATTR_WISA_MODE: WISA mode value (u32) 2583 * WISA setup vendor commands 2584 */ 2585 enum qca_vendor_attr_wisa_cmd { 2586 QCA_WLAN_VENDOR_ATTR_WISA_INVALID = 0, 2587 QCA_WLAN_VENDOR_ATTR_WISA_MODE, 2588 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST, 2589 QCA_WLAN_VENDOR_ATTR_WISA_MAX = 2590 QCA_WLAN_VENDOR_ATTR_WISA_AFTER_LAST - 1 2591 }; 2592 2593 /* IEEE 802.11 Vendor Specific elements */ 2594 2595 /** 2596 * enum qca_vendor_element_id - QCA Vendor Specific element types 2597 * 2598 * These values are used to identify QCA Vendor Specific elements. The 2599 * payload of the element starts with the three octet OUI (OUI_QCA) and 2600 * is followed by a single octet type which is defined by this enum. 2601 * 2602 * @QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST: P2P preferred channel list. 2603 * This element can be used to specify preference order for supported 2604 * channels. The channels in this list are in preference order (the first 2605 * one has the highest preference) and are described as a pair of 2606 * (global) Operating Class and Channel Number (each one octet) fields. 2607 * 2608 * This extends the standard P2P functionality by providing option to have 2609 * more than one preferred operating channel. When this element is present, 2610 * it replaces the preference indicated in the Operating Channel attribute. 2611 * For supporting other implementations, the Operating Channel attribute is 2612 * expected to be used with the highest preference channel. Similarly, all 2613 * the channels included in this Preferred channel list element are 2614 * expected to be included in the Channel List attribute. 2615 * 2616 * This vendor element may be included in GO Negotiation Request, P2P 2617 * Invitation Request, and Provision Discovery Request frames. 2618 * 2619 * @QCA_VENDOR_ELEM_HE_CAPAB: HE Capabilities element. 2620 * This element can be used for pre-standard publication testing of HE 2621 * before P802.11ax draft assigns the element ID. The payload of this 2622 * vendor specific element is defined by the latest P802.11ax draft. 2623 * Please note that the draft is still work in progress and this element 2624 * payload is subject to change. 2625 * 2626 * @QCA_VENDOR_ELEM_HE_OPER: HE Operation element. 2627 * This element can be used for pre-standard publication testing of HE 2628 * before P802.11ax draft assigns the element ID. The payload of this 2629 * vendor specific element is defined by the latest P802.11ax draft. 2630 * Please note that the draft is still work in progress and this element 2631 * payload is subject to change. 2632 * 2633 * @QCA_VENDOR_ELEM_RAPS: RAPS element (OFDMA-based Random Access Parameter Set 2634 * element). 2635 * This element can be used for pre-standard publication testing of HE 2636 * before P802.11ax draft assigns the element ID extension. The payload of 2637 * this vendor specific element is defined by the latest P802.11ax draft 2638 * (not including the Element ID Extension field). Please note that the 2639 * draft is still work in progress and this element payload is subject to 2640 * change. 2641 * 2642 * @QCA_VENDOR_ELEM_MU_EDCA_PARAMS: MU EDCA Parameter Set element. 2643 * This element can be used for pre-standard publication testing of HE 2644 * before P802.11ax draft assigns the element ID extension. The payload of 2645 * this vendor specific element is defined by the latest P802.11ax draft 2646 * (not including the Element ID Extension field). Please note that the 2647 * draft is still work in progress and this element payload is subject to 2648 * change. 2649 * 2650 * @QCA_VENDOR_ELEM_BSS_COLOR_CHANGE: BSS Color Change Announcement element. 2651 * This element can be used for pre-standard publication testing of HE 2652 * before P802.11ax draft assigns the element ID extension. The payload of 2653 * this vendor specific element is defined by the latest P802.11ax draft 2654 * (not including the Element ID Extension field). Please note that the 2655 * draft is still work in progress and this element payload is subject to 2656 * change. 2657 * 2658 * @QCA_VENDOR_ELEM_ALLPLAY: Allplay element 2659 */ 2660 enum qca_vendor_element_id { 2661 QCA_VENDOR_ELEM_P2P_PREF_CHAN_LIST = 0, 2662 QCA_VENDOR_ELEM_HE_CAPAB = 1, 2663 QCA_VENDOR_ELEM_HE_OPER = 2, 2664 QCA_VENDOR_ELEM_RAPS = 3, 2665 QCA_VENDOR_ELEM_MU_EDCA_PARAMS = 4, 2666 QCA_VENDOR_ELEM_BSS_COLOR_CHANGE = 5, 2667 QCA_VENDOR_ELEM_ALLPLAY = 6, 2668 }; 2669 2670 /** 2671 * enum qca_wlan_vendor_scan_priority - Specifies the valid values that the 2672 * vendor scan attribute QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY can take. 2673 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW: Very low priority 2674 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW: Low priority 2675 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM: Medium priority 2676 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH: High priority 2677 * @QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH: Very high priority 2678 */ 2679 enum qca_wlan_vendor_scan_priority { 2680 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_LOW = 0, 2681 QCA_WLAN_VENDOR_SCAN_PRIORITY_LOW = 1, 2682 QCA_WLAN_VENDOR_SCAN_PRIORITY_MEDIUM = 2, 2683 QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH = 3, 2684 QCA_WLAN_VENDOR_SCAN_PRIORITY_VERY_HIGH = 4, 2685 }; 2686 2687 /** 2688 * enum qca_wlan_vendor_attr_scan - Specifies vendor scan attributes 2689 * 2690 * @QCA_WLAN_VENDOR_ATTR_SCAN_IE: IEs that should be included as part of scan 2691 * @QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES: Nested unsigned 32-bit attributes 2692 * with frequencies to be scanned (in MHz) 2693 * @QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS: Nested attribute with SSIDs to be scanned 2694 * @QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES: Nested array attribute of supported 2695 * rates to be included 2696 * @QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE: flag used to send probe requests 2697 * at non CCK rate in 2GHz band 2698 * @QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS: Unsigned 32-bit scan flags 2699 * @QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE: Unsigned 64-bit cookie provided by the 2700 * driver for the specific scan request 2701 * @QCA_WLAN_VENDOR_ATTR_SCAN_STATUS: Unsigned 8-bit status of the scan 2702 * request decoded as in enum scan_status 2703 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC: 6-byte MAC address to use when randomisation 2704 * scan flag is set 2705 * @QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK: 6-byte MAC address mask to be used with 2706 * randomisation 2707 * @QCA_WLAN_VENDOR_ATTR_SCAN_BSSID: 6-byte MAC address representing the 2708 * specific BSSID to scan for. 2709 * @QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME: Unsigned 64-bit dwell time in 2710 * microseconds. This is a common value which applies across all 2711 * frequencies specified by QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES. 2712 * @QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY: Priority of vendor scan relative to 2713 * other scan requests. It is a u32 attribute and takes values from enum 2714 * qca_wlan_vendor_scan_priority. This is an optional attribute. 2715 * If this attribute is not configured, the driver shall use 2716 * QCA_WLAN_VENDOR_SCAN_PRIORITY_HIGH as the priority of vendor scan. 2717 * @QCA_WLAN_VENDOR_ATTR_SCAN_PAD: Attribute used for padding for 64-bit 2718 * alignment. 2719 * @QCA_WLAN_VENDOR_ATTR_SCAN_LINK_ID: This u8 attribute is used for OBSS scan 2720 * when AP is operating as MLD to specify which link is requesting the 2721 * scan or which link the scan result is for. No need of this attribute 2722 * in other cases. 2723 * @QCA_WLAN_VENDOR_ATTR_SCAN_SKIP_CHANNEL_RECENCY_PERIOD: Optional (u32). Skip 2724 * scanning channels which are scanned recently within configured time 2725 * (in ms). 2726 */ 2727 enum qca_wlan_vendor_attr_scan { 2728 QCA_WLAN_VENDOR_ATTR_SCAN_INVALID_PARAM = 0, 2729 QCA_WLAN_VENDOR_ATTR_SCAN_IE = 1, 2730 QCA_WLAN_VENDOR_ATTR_SCAN_FREQUENCIES = 2, 2731 QCA_WLAN_VENDOR_ATTR_SCAN_SSIDS = 3, 2732 QCA_WLAN_VENDOR_ATTR_SCAN_SUPP_RATES = 4, 2733 QCA_WLAN_VENDOR_ATTR_SCAN_TX_NO_CCK_RATE = 5, 2734 QCA_WLAN_VENDOR_ATTR_SCAN_FLAGS = 6, 2735 QCA_WLAN_VENDOR_ATTR_SCAN_COOKIE = 7, 2736 QCA_WLAN_VENDOR_ATTR_SCAN_STATUS = 8, 2737 QCA_WLAN_VENDOR_ATTR_SCAN_MAC = 9, 2738 QCA_WLAN_VENDOR_ATTR_SCAN_MAC_MASK = 10, 2739 QCA_WLAN_VENDOR_ATTR_SCAN_BSSID = 11, 2740 QCA_WLAN_VENDOR_ATTR_SCAN_DWELL_TIME = 12, 2741 QCA_WLAN_VENDOR_ATTR_SCAN_PRIORITY = 13, 2742 QCA_WLAN_VENDOR_ATTR_SCAN_PAD = 14, 2743 QCA_WLAN_VENDOR_ATTR_SCAN_LINK_ID = 15, 2744 QCA_WLAN_VENDOR_ATTR_SCAN_SKIP_CHANNEL_RECENCY_PERIOD = 16, 2745 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST, 2746 QCA_WLAN_VENDOR_ATTR_SCAN_MAX = 2747 QCA_WLAN_VENDOR_ATTR_SCAN_AFTER_LAST - 1 2748 }; 2749 2750 /** 2751 * enum scan_status - Specifies the valid values the vendor scan attribute 2752 * QCA_WLAN_VENDOR_ATTR_SCAN_STATUS can take 2753 * 2754 * @VENDOR_SCAN_STATUS_NEW_RESULTS: implies the vendor scan is successful with 2755 * new scan results 2756 * @VENDOR_SCAN_STATUS_ABORTED: implies the vendor scan was aborted in-between 2757 */ 2758 enum scan_status { 2759 VENDOR_SCAN_STATUS_NEW_RESULTS, 2760 VENDOR_SCAN_STATUS_ABORTED, 2761 VENDOR_SCAN_STATUS_MAX, 2762 }; 2763 2764 /** 2765 * enum qca_vendor_attr_ota_test - Specifies the values for vendor 2766 * command QCA_NL80211_VENDOR_SUBCMD_OTA_TEST 2767 * @QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE: enable ota test 2768 */ 2769 enum qca_vendor_attr_ota_test { 2770 QCA_WLAN_VENDOR_ATTR_OTA_TEST_INVALID, 2771 /* 8-bit unsigned value to indicate if OTA test is enabled */ 2772 QCA_WLAN_VENDOR_ATTR_OTA_TEST_ENABLE, 2773 /* keep last */ 2774 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST, 2775 QCA_WLAN_VENDOR_ATTR_OTA_TEST_MAX = 2776 QCA_WLAN_VENDOR_ATTR_OTA_TEST_AFTER_LAST - 1 2777 }; 2778 2779 /** 2780 * enum qca_vendor_attr_txpower_scale - vendor sub commands index 2781 * 2782 * @QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE: scaling value 2783 */ 2784 enum qca_vendor_attr_txpower_scale { 2785 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_INVALID, 2786 /* 8-bit unsigned value to indicate the scaling of tx power */ 2787 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE, 2788 /* keep last */ 2789 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST, 2790 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_MAX = 2791 QCA_WLAN_VENDOR_ATTR_TXPOWER_SCALE_AFTER_LAST - 1 2792 }; 2793 2794 /** 2795 * enum qca_vendor_attr_txpower_decr_db - Attributes for TX power decrease 2796 * 2797 * These attributes are used with QCA_NL80211_VENDOR_SUBCMD_SET_TXPOWER_DECR_DB. 2798 */ 2799 enum qca_vendor_attr_txpower_decr_db { 2800 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_INVALID, 2801 /* 8-bit unsigned value to indicate the reduction of TX power in dB for 2802 * a virtual interface. 2803 */ 2804 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB, 2805 /* keep last */ 2806 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST, 2807 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_MAX = 2808 QCA_WLAN_VENDOR_ATTR_TXPOWER_DECR_DB_AFTER_LAST - 1 2809 }; 2810 2811 /* Attributes for data used by 2812 * QCA_NL80211_VENDOR_SUBCMD_SET_WIFI_CONFIGURATION and 2813 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_CONFIGURATION subcommands. 2814 */ 2815 enum qca_wlan_vendor_attr_config { 2816 QCA_WLAN_VENDOR_ATTR_CONFIG_INVALID = 0, 2817 /* Unsigned 32-bit value to set the DTIM period. 2818 * Whether the wifi chipset wakes at every dtim beacon or a multiple of 2819 * the DTIM period. If DTIM is set to 3, the STA shall wake up every 3 2820 * DTIM beacons. 2821 */ 2822 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_DTIM = 1, 2823 /* Unsigned 32-bit value to set the wifi_iface stats averaging factor 2824 * used to calculate statistics like average the TSF offset or average 2825 * number of frame leaked. 2826 * For instance, upon Beacon frame reception: 2827 * current_avg = ((beacon_TSF - TBTT) * factor + 2828 * previous_avg * (0x10000 - factor)) / 0x10000 2829 * For instance, when evaluating leaky APs: 2830 * current_avg = ((num frame received within guard time) * factor + 2831 * previous_avg * (0x10000 - factor)) / 0x10000 2832 */ 2833 QCA_WLAN_VENDOR_ATTR_CONFIG_STATS_AVG_FACTOR = 2, 2834 /* Unsigned 32-bit value to configure guard time, i.e., when 2835 * implementing IEEE power management based on frame control PM bit, how 2836 * long the driver waits before shutting down the radio and after 2837 * receiving an ACK frame for a Data frame with PM bit set. 2838 */ 2839 QCA_WLAN_VENDOR_ATTR_CONFIG_GUARD_TIME = 3, 2840 /* Unsigned 32-bit value to change the FTM capability dynamically */ 2841 QCA_WLAN_VENDOR_ATTR_CONFIG_FINE_TIME_MEASUREMENT = 4, 2842 /* Unsigned 16-bit value to configure maximum TX rate dynamically */ 2843 QCA_WLAN_VENDOR_ATTR_CONF_TX_RATE = 5, 2844 /* Unsigned 32-bit value to configure the number of continuous 2845 * Beacon Miss which shall be used by the firmware to penalize 2846 * the RSSI. 2847 */ 2848 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS = 6, 2849 /* Unsigned 8-bit value to configure the channel avoidance indication 2850 * behavior. Firmware to send only one indication and ignore duplicate 2851 * indications when set to avoid multiple Apps wakeups. 2852 */ 2853 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_AVOIDANCE_IND = 7, 2854 /* 8-bit unsigned value to configure the maximum TX MPDU for 2855 * aggregation. 2856 */ 2857 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MPDU_AGGREGATION = 8, 2858 /* 8-bit unsigned value to configure the maximum RX MPDU for 2859 * aggregation. 2860 */ 2861 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MPDU_AGGREGATION = 9, 2862 /* 8-bit unsigned value to configure the Non aggregrate/11g sw 2863 * retry threshold (0 disable, 31 max). 2864 */ 2865 QCA_WLAN_VENDOR_ATTR_CONFIG_NON_AGG_RETRY = 10, 2866 /* 8-bit unsigned value to configure the aggregrate sw 2867 * retry threshold (0 disable, 31 max). 2868 */ 2869 QCA_WLAN_VENDOR_ATTR_CONFIG_AGG_RETRY = 11, 2870 /* 8-bit unsigned value to configure the MGMT frame 2871 * retry threshold (0 disable, 31 max). 2872 */ 2873 QCA_WLAN_VENDOR_ATTR_CONFIG_MGMT_RETRY = 12, 2874 /* 8-bit unsigned value to configure the CTRL frame 2875 * retry threshold (0 disable, 31 max). 2876 */ 2877 QCA_WLAN_VENDOR_ATTR_CONFIG_CTRL_RETRY = 13, 2878 /* 8-bit unsigned value to configure the propagation delay for 2879 * 2G/5G band (0~63, units in us) 2880 */ 2881 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_DELAY = 14, 2882 /* Unsigned 32-bit value to configure the number of unicast TX fail 2883 * packet count. The peer is disconnected once this threshold is 2884 * reached. 2885 */ 2886 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_FAIL_COUNT = 15, 2887 /* Attribute used to set scan default IEs to the driver. 2888 * 2889 * These IEs can be used by scan operations that will be initiated by 2890 * the driver/firmware. 2891 * 2892 * For further scan requests coming to the driver, these IEs should be 2893 * merged with the IEs received along with scan request coming to the 2894 * driver. If a particular IE is present in the scan default IEs but not 2895 * present in the scan request, then that IE should be added to the IEs 2896 * sent in the Probe Request frames for that scan request. 2897 */ 2898 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_DEFAULT_IES = 16, 2899 /* Unsigned 32-bit attribute for generic commands */ 2900 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_COMMAND = 17, 2901 /* Unsigned 32-bit value attribute for generic commands */ 2902 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_VALUE = 18, 2903 /* Unsigned 32-bit data attribute for generic command response */ 2904 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA = 19, 2905 /* Unsigned 32-bit length attribute for 2906 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 2907 */ 2908 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_LENGTH = 20, 2909 /* Unsigned 32-bit flags attribute for 2910 * QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_DATA 2911 */ 2912 QCA_WLAN_VENDOR_ATTR_CONFIG_GENERIC_FLAGS = 21, 2913 /* Unsigned 32-bit, defining the access policy. 2914 * See enum qca_access_policy. Used with 2915 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST. 2916 */ 2917 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY = 22, 2918 /* Sets the list of full set of IEs for which a specific access policy 2919 * has to be applied. Used along with 2920 * QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY to control the access. 2921 * Zero length payload can be used to clear this access constraint. 2922 */ 2923 QCA_WLAN_VENDOR_ATTR_CONFIG_ACCESS_POLICY_IE_LIST = 23, 2924 /* Unsigned 32-bit, specifies the interface index (netdev) for which the 2925 * corresponding configurations are applied. If the interface index is 2926 * not specified, the configurations are attributed to the respective 2927 * wiphy. 2928 */ 2929 QCA_WLAN_VENDOR_ATTR_CONFIG_IFINDEX = 24, 2930 /* 8-bit unsigned value to trigger QPower: 1-Enable, 0-Disable */ 2931 QCA_WLAN_VENDOR_ATTR_CONFIG_QPOWER = 25, 2932 /* 8-bit unsigned value to configure the driver and below layers to 2933 * ignore the assoc disallowed set by APs while connecting 2934 * 1-Ignore, 0-Don't ignore 2935 */ 2936 QCA_WLAN_VENDOR_ATTR_CONFIG_IGNORE_ASSOC_DISALLOWED = 26, 2937 /* 32-bit unsigned value to trigger antenna diversity features: 2938 * 1-Enable, 0-Disable 2939 */ 2940 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ENA = 27, 2941 /* 32-bit unsigned value to configure specific chain antenna */ 2942 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_CHAIN = 28, 2943 /* 32-bit unsigned value to trigger cycle selftest 2944 * 1-Enable, 0-Disable 2945 */ 2946 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST = 29, 2947 /* 32-bit unsigned to configure the cycle time of selftest 2948 * the unit is micro-second 2949 */ 2950 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SELFTEST_INTVL = 30, 2951 /* 32-bit unsigned value to set reorder timeout for AC_VO */ 2952 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VOICE = 31, 2953 /* 32-bit unsigned value to set reorder timeout for AC_VI */ 2954 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_VIDEO = 32, 2955 /* 32-bit unsigned value to set reorder timeout for AC_BE */ 2956 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BESTEFFORT = 33, 2957 /* 32-bit unsigned value to set reorder timeout for AC_BK */ 2958 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_REORDER_TIMEOUT_BACKGROUND = 34, 2959 /* 6-byte MAC address to point out the specific peer */ 2960 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC = 35, 2961 /* Backward compatibility with the original name */ 2962 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_PEER_MAC = 2963 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC, 2964 /* 32-bit unsigned value to set window size for specific peer */ 2965 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_BLOCKSIZE_WINLIMIT = 36, 2966 /* 8-bit unsigned value to set the beacon miss threshold in 2.4 GHz */ 2967 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_24 = 37, 2968 /* 8-bit unsigned value to set the beacon miss threshold in 5 GHz */ 2969 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_MISS_THRESHOLD_5 = 38, 2970 /* 32-bit unsigned value to configure 5 or 10 MHz channel width for 2971 * station device while in disconnect state. The attribute use the 2972 * value of enum nl80211_chan_width: NL80211_CHAN_WIDTH_5 means 5 MHz, 2973 * NL80211_CHAN_WIDTH_10 means 10 MHz. If set, the device work in 5 or 2974 * 10 MHz channel width, the station will not connect to a BSS using 20 2975 * MHz or higher bandwidth. Set to NL80211_CHAN_WIDTH_20_NOHT to 2976 * clear this constraint. 2977 */ 2978 QCA_WLAN_VENDOR_ATTR_CONFIG_SUB20_CHAN_WIDTH = 39, 2979 /* 32-bit unsigned value to configure the propagation absolute delay 2980 * for 2G/5G band (units in us) 2981 */ 2982 QCA_WLAN_VENDOR_ATTR_CONFIG_PROPAGATION_ABS_DELAY = 40, 2983 /* 32-bit unsigned value to set probe period */ 2984 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_PERIOD = 41, 2985 /* 32-bit unsigned value to set stay period */ 2986 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_STAY_PERIOD = 42, 2987 /* 32-bit unsigned value to set snr diff */ 2988 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_SNR_DIFF = 43, 2989 /* 32-bit unsigned value to set probe dwell time */ 2990 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_PROBE_DWELL_TIME = 44, 2991 /* 32-bit unsigned value to set mgmt snr weight */ 2992 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_MGMT_SNR_WEIGHT = 45, 2993 /* 32-bit unsigned value to set data snr weight */ 2994 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_DATA_SNR_WEIGHT = 46, 2995 /* 32-bit unsigned value to set ack snr weight */ 2996 QCA_WLAN_VENDOR_ATTR_CONFIG_ANT_DIV_ACK_SNR_WEIGHT = 47, 2997 /* 32-bit unsigned value to configure the listen interval. 2998 * This is in units of beacon intervals. This configuration alters 2999 * the negotiated listen interval with the AP during the connection. 3000 * It is highly recommended to configure a value less than or equal to 3001 * the one negotiated during the association. Configuring any greater 3002 * value can have adverse effects (frame loss, AP disassociating STA, 3003 * etc.). 3004 */ 3005 QCA_WLAN_VENDOR_ATTR_CONFIG_LISTEN_INTERVAL = 48, 3006 /* 3007 * 8 bit unsigned value that is set on an AP/GO virtual interface to 3008 * disable operations that would cause the AP/GO to leave its operating 3009 * channel. 3010 * 3011 * This will restrict the scans to the AP/GO operating channel and the 3012 * channels of the other band, if DBS is supported.A STA/CLI interface 3013 * brought up after this setting is enabled, will be restricted to 3014 * connecting to devices only on the AP/GO interface's operating channel 3015 * or on the other band in DBS case. P2P supported channel list is 3016 * modified, to only include AP interface's operating-channel and the 3017 * channels of the other band if DBS is supported. 3018 * 3019 * These restrictions are only applicable as long as the AP/GO interface 3020 * is alive. If the AP/GO interface is brought down then this 3021 * setting/restriction is forgotten. 3022 * 3023 * If this variable is set on an AP/GO interface while a multi-channel 3024 * concurrent session is active, it has no effect on the operation of 3025 * the current interfaces, other than restricting the scan to the AP/GO 3026 * operating channel and the other band channels if DBS is supported. 3027 * However, if the STA is brought down and restarted then the new STA 3028 * connection will either be formed on the AP/GO channel or on the 3029 * other band in a DBS case. This is because of the scan being 3030 * restricted on these channels as mentioned above. 3031 * 3032 * 1-Restrict / 0-Don't restrict offchannel operations. 3033 */ 3034 QCA_WLAN_VENDOR_ATTR_CONFIG_RESTRICT_OFFCHANNEL = 49, 3035 /* 3036 * 8 bit unsigned value to enable/disable LRO (Large Receive Offload) 3037 * on an interface. 3038 * 1 - Enable, 0 - Disable. 3039 */ 3040 QCA_WLAN_VENDOR_ATTR_CONFIG_LRO = 50, 3041 3042 /* 3043 * 8 bit unsigned value to globally enable/disable scan 3044 * 1 - Enable, 0 - Disable. 3045 */ 3046 QCA_WLAN_VENDOR_ATTR_CONFIG_SCAN_ENABLE = 51, 3047 3048 /* 8-bit unsigned value to set the total beacon miss count 3049 * This parameter will set the total beacon miss count. 3050 */ 3051 QCA_WLAN_VENDOR_ATTR_CONFIG_TOTAL_BEACON_MISS_COUNT = 52, 3052 3053 /* Unsigned 32-bit value to configure the number of continuous 3054 * Beacon Miss which shall be used by the firmware to penalize 3055 * the RSSI for BTC. 3056 */ 3057 QCA_WLAN_VENDOR_ATTR_CONFIG_PENALIZE_AFTER_NCONS_BEACON_MISS_BTC = 53, 3058 3059 /* 8-bit unsigned value to configure the driver and below layers to 3060 * enable/disable all FILS features. 3061 * 0-enable, 1-disable 3062 */ 3063 QCA_WLAN_VENDOR_ATTR_CONFIG_DISABLE_FILS = 54, 3064 3065 /* 16-bit unsigned value to configure the level of WLAN latency 3066 * module. See enum qca_wlan_vendor_attr_config_latency_level. 3067 */ 3068 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL = 55, 3069 3070 /* 8-bit unsigned value indicating the driver to use the RSNE as-is from 3071 * the connect interface. Exclusively used for the scenarios where the 3072 * device is used as a test bed device with special functionality and 3073 * not recommended for production. This helps driver to not validate the 3074 * RSNE passed from user space and thus allow arbitrary IE data to be 3075 * used for testing purposes. 3076 * 1-enable, 0-disable. 3077 * Applications set/reset this configuration. If not reset, this 3078 * parameter remains in use until the driver is unloaded. 3079 */ 3080 QCA_WLAN_VENDOR_ATTR_CONFIG_RSN_IE = 56, 3081 3082 /* 8-bit unsigned value to trigger green Tx power saving. 3083 * 1-Enable, 0-Disable 3084 */ 3085 QCA_WLAN_VENDOR_ATTR_CONFIG_GTX = 57, 3086 3087 /* Attribute to configure disconnect IEs to the driver. 3088 * This carries an array of unsigned 8-bit characters. 3089 * 3090 * If this is configured, driver shall fill the IEs in disassoc/deauth 3091 * frame. 3092 * These IEs are expected to be considered only for the next 3093 * immediate disconnection (disassoc/deauth frame) originated by 3094 * the DUT, irrespective of the entity (user space/driver/firmware) 3095 * triggering the disconnection. 3096 * The host drivers are not expected to use the IEs set through 3097 * this interface for further disconnections after the first immediate 3098 * disconnection initiated post the configuration. 3099 * If the IEs are also updated through cfg80211 interface (after the 3100 * enhancement to cfg80211_disconnect), host driver is expected to 3101 * take the union of IEs from both of these interfaces and send in 3102 * further disassoc/deauth frames. 3103 */ 3104 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES = 58, 3105 3106 /* 8-bit unsigned value for ELNA bypass. 3107 * 0 - Disable eLNA bypass. 3108 * 1 - Enable eLNA bypass. 3109 * 2 - Reset eLNA bypass configuration, the driver should 3110 * revert to the default configuration of eLNA bypass. 3111 */ 3112 QCA_WLAN_VENDOR_ATTR_CONFIG_ELNA_BYPASS = 59, 3113 3114 /* 8-bit unsigned value. This attribute enables/disables the host driver 3115 * to send the Beacon Report Response with failure reason for the 3116 * scenarios where STA cannot honor the Beacon Report Request from AP. 3117 * 1-Enable, 0-Disable. 3118 */ 3119 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL = 60, 3120 3121 /* 8-bit unsigned value. This attribute enables/disables the host driver 3122 * to send roam reason information in the Reassociation Request frame to 3123 * the target AP when roaming within the same ESS. 3124 * 1-Enable, 0-Disable. 3125 */ 3126 QCA_WLAN_VENDOR_ATTR_CONFIG_ROAM_REASON = 61, 3127 3128 /* 32-bit unsigned value to configure different PHY modes to the 3129 * driver/firmware. The possible values are defined in 3130 * enum qca_wlan_vendor_phy_mode. The configuration will be reset to 3131 * default value, i.e., QCA_WLAN_VENDOR_PHY_MODE_AUTO upon restarting 3132 * the driver. 3133 */ 3134 QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE = 62, 3135 3136 /* 8-bit unsigned value to configure the maximum supported channel width 3137 * for STA mode. If this value is configured when STA is in connected 3138 * state, it should not exceed the negotiated channel width. If it is 3139 * configured when STA is in disconnected state, the configured value 3140 * will take effect for the next immediate connection. 3141 * This configuration can be sent inside 3142 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum 3143 * supported channel width per-MLO link. 3144 * 3145 * This uses values defined in enum nl80211_chan_width. 3146 */ 3147 QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH = 63, 3148 3149 /* 8-bit unsigned value to enable/disable dynamic bandwidth adjustment. 3150 * This attribute is only applicable for STA mode. When dynamic 3151 * bandwidth adjustment is disabled, STA will use static channel width 3152 * the value of which is negotiated during connection. 3153 * 1-enable (default), 0-disable 3154 */ 3155 QCA_WLAN_VENDOR_ATTR_CONFIG_DYNAMIC_BW = 64, 3156 3157 /* 8-bit unsigned value to configure the maximum number of subframes of 3158 * TX MSDU for aggregation. Possible values are 0-31. When set to 0, 3159 * it is decided by the hardware. 3160 */ 3161 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_MSDU_AGGREGATION = 65, 3162 3163 /* 8-bit unsigned value to configure the maximum number of subframes of 3164 * RX MSDU for aggregation. Possible values are 0-31. When set to 0, 3165 * it is decided by the hardware. 3166 */ 3167 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_MSDU_AGGREGATION = 66, 3168 3169 /* 8-bit unsigned value. This attribute is used to dynamically 3170 * enable/disable the LDPC capability of the device. When configured in 3171 * the disconnected state, the updated configuration will be considered 3172 * for the immediately following connection attempt. If this 3173 * configuration is modified while the device is in the connected state, 3174 * the LDPC TX will be updated with this configuration immediately, 3175 * while the LDPC RX configuration update will take place starting from 3176 * the subsequent association attempt. 3177 * 1-Enable, 0-Disable. 3178 */ 3179 QCA_WLAN_VENDOR_ATTR_CONFIG_LDPC = 67, 3180 3181 /* 8-bit unsigned value. This attribute is used to dynamically 3182 * enable/disable the TX STBC capability of the device. When configured 3183 * in the disconnected state, the updated configuration will be 3184 * considered for the immediately following connection attempt. If the 3185 * connection is formed with TX STBC enabled and if this configuration 3186 * is disabled during that association, the TX will be impacted 3187 * immediately. Further connection attempts will disable TX STBC. 3188 * However, enabling the TX STBC for a connected session with disabled 3189 * capability is not allowed and will fail. 3190 * 1-Enable, 0-Disable. 3191 */ 3192 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_STBC = 68, 3193 3194 /* 8-bit unsigned value. This attribute is used to dynamically 3195 * enable/disable the RX STBC capability of the device. When configured 3196 * in the disconnected state, the updated configuration will be 3197 * considered for the immediately following connection attempt. If the 3198 * configuration is modified in the connected state, there will be no 3199 * impact for the current association, but further connection attempts 3200 * will use the updated configuration. 3201 * 1-Enable, 0-Disable. 3202 */ 3203 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_STBC = 69, 3204 3205 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3206 QCA_WLAN_VENDOR_ATTR_CONFIG_NSS = 70, 3207 3208 /* 8-bit unsigned value to configure Optimized Power Management mode: 3209 * Modes are defined by enum qca_wlan_vendor_opm_mode. 3210 * 3211 * This attribute shall be configured along with 3212 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and 3213 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes 3214 * when its value is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED. 3215 */ 3216 QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT = 71, 3217 3218 /* 8-bit unsigned value. This attribute takes the QoS/access category 3219 * value represented by the enum qca_wlan_ac_type and expects the driver 3220 * to upgrade the UDP frames to this access category. The value of 3221 * QCA_WLAN_AC_ALL is invalid for this attribute. This will override the 3222 * DSCP value configured in the frame with the intention to only upgrade 3223 * the access category. That said, it is not intended to downgrade the 3224 * access category for the frames. 3225 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be 3226 * disabled, as BK is of the lowest priority and an upgrade to it does 3227 * not result in any changes for the frames. 3228 * 3229 * If only UDP frames of BE or BK access category needs to be upgraded 3230 * without changing the access category of VO or VI UDP frames, refer to 3231 * attribute QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK. 3232 * 3233 * This attribute is not recommended to be used as it blindly forces all 3234 * UDP packets to a higher access category which could impact the 3235 * traffic pattern of all apps using UDP and can cause unknown behavior. 3236 */ 3237 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE = 72, 3238 3239 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3240 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS = 73, 3241 3242 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3243 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS = 74, 3244 3245 /* 8-bit unsigned value to configure ANI setting type. 3246 * See &enum qca_wlan_ani_setting for possible values. 3247 */ 3248 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_SETTING = 75, 3249 /* 32-bit signed value to configure ANI level. This is used when 3250 * ANI settings type is &QCA_WLAN_ANI_SETTING_FIXED. 3251 * The set and get of ANI level with &QCA_WLAN_ANI_SETTING_AUTO 3252 * is invalid, the driver will return a failure. 3253 */ 3254 QCA_WLAN_VENDOR_ATTR_CONFIG_ANI_LEVEL = 76, 3255 3256 /* 8-bit unsigned value. This attribute is used to dynamically configure 3257 * the number of spatial streams used for transmitting the data. When 3258 * configured in the disconnected state, the configured value will 3259 * be considered for the following connection attempt. 3260 * If the NSS is updated after the connection, the updated NSS value 3261 * is notified to the peer using the Operating Mode Notification/Spatial 3262 * Multiplexing Power Save frame. 3263 * The TX NSS value configured after the connection shall not be greater 3264 * than the value negotiated during the connection. Any such higher 3265 * value configuration shall be treated as invalid configuration by 3266 * the driver. This attribute shall be configured along with 3267 * QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute to define the symmetric 3268 * configuration (such as 2X2 or 1X1) or the asymmetric 3269 * configuration (such as 1X2). 3270 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along 3271 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute the driver 3272 * will update the TX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS. 3273 */ 3274 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS = 77, 3275 3276 /* 8-bit unsigned value. This attribute is used to dynamically configure 3277 * the number of spatial streams used for receiving the data. When 3278 * configured in the disconnected state, the configured value will 3279 * be considered for the following connection attempt. 3280 * If the NSS is updated after the connection, the updated NSS value 3281 * is notified to the peer using the Operating Mode Notification/Spatial 3282 * Multiplexing Power Save frame. 3283 * The RX NSS value configured after the connection shall not be greater 3284 * than the value negotiated during the connection. Any such higher 3285 * value configuration shall be treated as invalid configuration by 3286 * the driver. This attribute shall be configured along with 3287 * QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS attribute to define the symmetric 3288 * configuration (such as 2X2 or 1X1) or the asymmetric 3289 * configuration (such as 1X2). 3290 * If QCA_WLAN_VENDOR_ATTR_CONFIG_NSS attribute is also provided along 3291 * with this QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS attribute the driver 3292 * will update the RX NSS based on QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS. 3293 */ 3294 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS = 78, 3295 3296 /* 3297 * 8-bit unsigned value. This attribute, when set, indicates whether the 3298 * specified interface is the primary STA interface when there are more 3299 * than one STA interfaces concurrently active. 3300 * 3301 * This configuration helps the firmware/hardware to support certain 3302 * features (e.g., roaming) on this primary interface, if the same 3303 * cannot be supported on the concurrent STA interfaces simultaneously. 3304 * 3305 * This configuration is only applicable for a single STA interface on 3306 * a device and gives the priority for it only over other concurrent STA 3307 * interfaces. 3308 * 3309 * If the device is a multi wiphy/soc, this configuration applies to a 3310 * single STA interface across the wiphys. 3311 * 3312 * 1-Enable (is the primary STA), 0-Disable (is not the primary STA) 3313 */ 3314 QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY = 79, 3315 3316 /* 3317 * 8-bit unsigned value. This attribute can be used to configure the 3318 * driver to enable/disable FT-over-DS feature. Possible values for 3319 * this attribute are 1-Enable and 0-Disable. 3320 */ 3321 QCA_WLAN_VENDOR_ATTR_CONFIG_FT_OVER_DS = 80, 3322 3323 /* 3324 * 8-bit unsigned value. This attribute can be used to configure the 3325 * firmware to enable/disable ARP/NS offload feature. Possible values 3326 * for this attribute are 0-Disable and 1-Enable. 3327 * 3328 * This attribute is only applicable for STA/P2P-Client interface, 3329 * and is optional, default behavior is ARP/NS offload enabled. 3330 * 3331 * This attribute can be set in disconnected and connected state, and 3332 * will restore to the default behavior if the interface is closed. 3333 */ 3334 QCA_WLAN_VENDOR_ATTR_CONFIG_ARP_NS_OFFLOAD = 81, 3335 3336 /* 3337 * 8-bit unsigned value. This attribute can be used to configure the 3338 * data path mode to be followed for audio traffic. Possible values 3339 * are defined in enum qca_wlan_audio_data_path. 3340 * 3341 * This attribute is used only when the driver advertises support for 3342 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN. 3343 */ 3344 QCA_WLAN_VENDOR_ATTR_CONFIG_AUDIO_DATA_PATH = 82, 3345 3346 /* 3347 * 8-bit unsigned value. This attribute can be used to configure the 3348 * Dedicated Bluetooth Antenna Mode (DBAM) feature. Possible values for 3349 * this attribute are defined in the enum qca_wlan_dbam_config. 3350 */ 3351 QCA_WLAN_VENDOR_ATTR_CONFIG_DBAM = 83, 3352 3353 /* 8-bit unsigned value. This attribute takes the QoS/access category 3354 * value represented by the enum qca_wlan_ac_type and expects the driver 3355 * to upgrade the UDP frames of BE or BK access category to this access 3356 * category. This attribute will not modify UDP frames of VO or VI 3357 * access category. The value of QCA_WLAN_AC_ALL is invalid for this 3358 * attribute. 3359 * 3360 * This will override the DSCP value configured in the frame with the 3361 * intention to only upgrade the access category. That said, it is not 3362 * intended to downgrade the access category for the frames. 3363 * Set the value to QCA_WLAN_AC_BK if the QoS upgrade needs to be 3364 * disabled, as BK is of the lowest priority and an upgrade to it does 3365 * not result in any changes for the frames. 3366 * 3367 * This attribute behavior is similar to 3368 * QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE with the difference that 3369 * only UDP frames of BE or BK access category are upgraded and not 3370 * UDP frames of VI or VO access category. 3371 * 3372 * This attribute is not recommended to be used as it blindly forces all 3373 * UDP packets of BE or BK access category to a higher access category 3374 * which could impact the traffic pattern of all apps using UDP and can 3375 * cause unknown behavior. 3376 */ 3377 QCA_WLAN_VENDOR_ATTR_CONFIG_UDP_QOS_UPGRADE_FOR_BE_BK = 84, 3378 3379 /* 8-bit unsigned value to configure the driver to enable/disable the 3380 * periodic sounding for Tx beamformer functionality. The default 3381 * behavior uses algorithm to do sounding based on packet stats. 3382 * 3383 * 0 - Default behavior. 3384 * 1 - Enable the periodic sounding for Tx beamformer. 3385 */ 3386 QCA_WLAN_VENDOR_ATTR_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 85, 3387 3388 /* 8-bit unsigned value, whenever wifi calling (wfc) begins or ends, 3389 * userspace sends this information to the driver/firmware to configure 3390 * wfc state. The driver/firmware uses this information to 3391 * optimize power savings, rate adaption, roaming, etc. 3392 * 3393 * 1 - wfc is on. 3394 * 0 - wfc is off. 3395 */ 3396 QCA_WLAN_VENDOR_ATTR_CONFIG_WFC_STATE = 86, 3397 3398 /* 8-bit unsigned value to configure the driver to enable/disable the 3399 * EHT EML capability in management frame EHT capabilities. 3400 * 1 - Enable, 0 - Disable. 3401 */ 3402 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_EML_CAPABILITY = 87, 3403 3404 /* 8-bit unsigned value to configure the driver with EHT MLO max 3405 * simultaneous links to be used for MLO connection. 3406 * The range of the value is 0 to 14. 3407 */ 3408 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_SIMULTANEOUS_LINKS = 88, 3409 3410 /* 8-bit unsigned value to configure the driver with EHT MLO maximum 3411 * number of links to be used for MLO connection. Value 0 restores the 3412 * default value of the maximum MLO links capability of the device. 3413 * The range of the value is 0 to 15. 3414 * 3415 * 0 - Restore default device limit. 3416 * 1 to 15 - Set the maximum number of links to be used for an MLO 3417 * connection. 3418 */ 3419 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MAX_NUM_LINKS = 89, 3420 3421 /* 8-bit unsigned value to configure the driver with EHT MLO mode. 3422 * Uses enum qca_wlan_eht_mlo_mode values. 3423 */ 3424 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_MODE = 90, 3425 3426 /* Nested attribute with frequencies in u32 attributes to configure a 3427 * list of allowed 20 MHz channel center frequencies in MHz for AP 3428 * operation. Whenever performing a channel selection operation, the 3429 * driver shall generate a new list based on this provided list by 3430 * filtering out channels that cannot be used at that time due to 3431 * regulatory or other constraints. The resulting list is used as the 3432 * list of all allowed channels, i.e., operation on any channel that is 3433 * not included is not allowed, whenever performing operations like ACS 3434 * and DFS. 3435 * 3436 * Userspace shall configure this before starting the AP and the 3437 * configuration is valid only from the next BSS start and until the 3438 * BSS is stopped. The driver shall clear this configuration when the 3439 * AP is stopped and fall back to the default behavior for subsequent 3440 * AP operation. 3441 * 3442 * The default behavior when this configuration is not applicable is the 3443 * driver can choose any of the channels supported by the hardware 3444 * except the channels that cannot be used due to regulatory or other 3445 * constraints. 3446 * 3447 * The driver shall reject this configuration if done after the AP is 3448 * started. This attribute can be used to specify user's choice of 3449 * frequencies and static puncture channel list, etc. 3450 */ 3451 QCA_WLAN_VENDOR_ATTR_CONFIG_AP_ALLOWED_FREQ_LIST = 91, 3452 3453 /* Nested attribute to indicate EHT MLO links to be forced active. 3454 * It contains link MAC address attributes. These nested attributes are 3455 * of the type NL80211_ATTR_MAC and are used to force enabling of the 3456 * MLO links corresponding to the indicated link MAC addresses. 3457 * Subsequently, the links corresponding to the link MAC addresses that 3458 * are not indicated are forced inactive. 3459 */ 3460 QCA_WLAN_VENDOR_ATTR_CONFIG_EHT_MLO_ACTIVE_LINKS = 92, 3461 3462 /* 8-bit unsigned value to configure EMLSR mode entry or exit. 3463 * Uses enum qca_wlan_emlsr_mode values. 3464 */ 3465 QCA_WLAN_VENDOR_ATTR_CONFIG_EMLSR_MODE_SWITCH = 93, 3466 3467 /* 8-bit unsigned value to configure the channel bandwidth 3468 * for CTS frame transmission during the dymamic bandwidth 3469 * signaling CTS procedure referred in IEEE Std 802.11-2020, 3470 * 10.3.2.9 CTS and DMG CTS procedure. 3471 * This configuration is used for testing purposes. 3472 * 3473 * This uses values defined in enum nl80211_chan_width. 3474 */ 3475 QCA_WLAN_VENDOR_ATTR_CONFIG_CTS_CHANNEL_WIDTH = 94, 3476 3477 /* 8-bit unsigned value. This attribute is used to dynamically 3478 * enable/suspend trigger based UL MU transmission. 3479 * This is supported in STA mode and the device sends Operating 3480 * Mode Indication to inform the change as described in 3481 * IEEE Std 802.11ax-2021, 26.9. 3482 * 3483 * This attribute can be configured when the STA is associated 3484 * to an AP and the configuration is maintained until the current 3485 * association terminates. 3486 * 3487 * By default all UL MU transmissions are enabled. 3488 * 3489 * Uses enum qca_ul_mu_config values. 3490 */ 3491 QCA_WLAN_VENDOR_ATTR_CONFIG_UL_MU_CONFIG = 95, 3492 3493 /* 8-bit unsigned value. Optionally specified along with 3494 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH when STA is in connected 3495 * state. This configuration is applicable only for the current 3496 * connection. This configuration not allowed in disconnected state. 3497 * This configuration can be sent inside 3498 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS to specify the maximum 3499 * supported channel width update type per-MLO link. 3500 * 3501 * Uses enum qca_chan_width_update_type values. 3502 */ 3503 QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE = 96, 3504 3505 /* 8-bit unsigned value to set EPCS (Emergency Preparedness 3506 * Communications Service) feature capability 3507 * 1 - Enable, 0 - Disable. 3508 * 3509 * This configuration is used for testing purposes. 3510 */ 3511 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY = 97, 3512 3513 /* 8-bit unsigned value to enable/disable EPCS priority access 3514 * 1 - Enable, 0 - Disable. 3515 * The EPCS priority access shall be enabled only when EPCS feature 3516 * capability is also enabled (see 3517 * QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_CAPABILITY). 3518 * 3519 * This configuration is used for testing purposes. 3520 */ 3521 QCA_WLAN_VENDOR_ATTR_CONFIG_EPCS_FUNCTION = 98, 3522 3523 /* 8-bit unsigned value. Used to specify the MLO link ID of a link 3524 * that is being configured. This attribute must be included in each 3525 * record nested inside %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS, and 3526 * may be included without nesting to indicate the link that is the 3527 * target of other configuration attributes. 3528 */ 3529 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID = 99, 3530 3531 /* Array of nested links each identified by 3532 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID. This uses values defined in 3533 * enum qca_wlan_vendor_attr_config, explicit documentation shall be 3534 * added for the attributes in enum qca_wlan_vendor_attr_config to 3535 * support per-MLO link configuration through 3536 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS. 3537 * 3538 * Userspace can configure a single link or multiple links with this 3539 * attribute by nesting the corresponding configuration attributes and 3540 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link. 3541 * 3542 * Userspace can fetch the configuration attribute values for a single 3543 * link or multiple links with this attribute by nesting the 3544 * corresponding configuration attributes and 3545 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID for each link. 3546 * 3547 * For STA interface, this attribute is applicable only in connected 3548 * state when the current connection is MLO capable. The valid values of 3549 * %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link IDs of the 3550 * connected AP MLD links. 3551 * 3552 * For AP interface, this configuration applicable only after adding 3553 * MLO links to the AP interface with %NL80211_CMD_ADD_LINK and the 3554 * valid values of %QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINK_ID are the link 3555 * IDs specified in %NL80211_CMD_ADD_LINK while adding the MLO links to 3556 * the AP interface. 3557 */ 3558 QCA_WLAN_VENDOR_ATTR_CONFIG_MLO_LINKS = 100, 3559 3560 /* 16-bit unsigned value to configure power save inactivity timeout in 3561 * milliseconds. 3562 * 3563 * STA enters into power save mode (PM=1) after TX/RX inactivity of time 3564 * duration specified by %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO. 3565 * 3566 * This attribute shall be configured along with 3567 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL when 3568 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT 3569 * is set to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode. 3570 */ 3571 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO = 101, 3572 3573 /* 16-bit unsigned value to configure speculative wake interval in 3574 * milliseconds. 3575 * 3576 * STA speculatively wakes up to look for buffered data by AP at 3577 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL interval after 3578 * entering into power save. If configured zero, STA wakes up at 3579 * upcoming DTIM beacon. 3580 * 3581 * This attribute shall be configured along with 3582 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and 3583 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT 3584 * to %QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED mode. 3585 */ 3586 QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL = 102, 3587 3588 /* 3589 * 16-bit unsigned value to configure TX max A-MPDU count. 3590 * 3591 * For STA interface, this attribute is applicable only in connected 3592 * state, peer MAC address is not required to be provided. 3593 * 3594 * For AP interface, this attribute is applicable only in started 3595 * state and one of the associated peer STAs must be specified with 3596 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. If this is for an ML 3597 * association, the peer MAC address provided is the link address of 3598 * the non-AP MLD. 3599 * 3600 * This attribute runtime configures the TX maximum aggregation size. 3601 * The value must be in range of 1 to BA window size for the specific 3602 * peer. 3603 */ 3604 QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_AMPDU_CNT = 103, 3605 3606 /* 3607 * 8-bit unsigned value to configure TID-to-link mapping negotiation 3608 * type. 3609 * Uses enum qca_wlan_ttlm_negotiation_support values. 3610 * 3611 * This value applies to the complete AP/non-AP MLD interface, and the 3612 * MLD advertises it within the Basic Multi-Link element in the 3613 * association frames. If a new value is configured during an active 3614 * connection, it will take effect in the subsequent associations and 3615 * is not reset during disconnection. 3616 * 3617 * This attribute is used for testing purposes. 3618 */ 3619 QCA_WLAN_VENDOR_ATTR_CONFIG_TTLM_NEGOTIATION_SUPPORT = 104, 3620 3621 /* 8-bit unsigned value. 3622 * 3623 * This attribute configures a traffic shaping mode 3624 * applied during coex scenarios. 3625 * By default all coex traffic shaping modes are enabled, 3626 * i.e., shape WLAN traffic based on coex traffic pattern and priority. 3627 * To shape traffic, STA may enter in power save mode 3628 * and AP may send CTS-to-self frame. 3629 * 3630 * Uses enum qca_coex_traffic_shaping_mode values. 3631 */ 3632 QCA_WLAN_VENDOR_ATTR_CONFIG_COEX_TRAFFIC_SHAPING_MODE = 105, 3633 3634 /* 8-bit unsigned value. 3635 * 3636 * This attribute is used to specify whether an associated peer is a QCA 3637 * device. The associated peer is specified with 3638 * QCA_WLAN_VENDOR_ATTR_CONFIG_PEER_MAC. For MLO cases, the MLD MAC 3639 * address of the peer is used. 3640 * 1 - QCA device, 0 - non-QCA device. 3641 */ 3642 QCA_WLAN_VENDOR_ATTR_CONFIG_QCA_PEER = 106, 3643 3644 /* 8-bit unsigned value to configure BTM support. 3645 * 3646 * The attribute is applicable only for STA interface. Uses enum 3647 * qca_wlan_btm_support values. This configuration is not allowed in 3648 * connected state. 3649 */ 3650 QCA_WLAN_VENDOR_ATTR_CONFIG_BTM_SUPPORT = 107, 3651 3652 /* 16-bit unsigned value to configure client's keep-alive interval in 3653 * seconds. The driver will reduce the keep-alive interval to this 3654 * configured value if the AP advertises BSS maximum idle period and if 3655 * that BSS max idle period is larger than this configured value. If the 3656 * AP does not advertise a maximum value, the configured value will be 3657 * used as a keep-alive period for unprotected frames. 3658 * 3659 * This configuration is applicable only during the STA's current 3660 * association. 3661 */ 3662 QCA_WLAN_VENDOR_ATTR_CONFIG_KEEP_ALIVE_INTERVAL = 108, 3663 3664 /* 8-bit unsigned value to configure reduced power scan mode. 3665 * 3666 * This attribute is used to configure the driver to optimize power 3667 * during scan. For example, the driver can switch to 1x1 from 2x2 mode 3668 * for additional power save. 3669 * 3670 * 1 - Enable reduced power scan mode. 3671 * 0 - Disable reduced power scan mode. 3672 */ 3673 QCA_WLAN_VENDOR_ATTR_CONFIG_REDUCED_POWER_SCAN_MODE = 109, 3674 3675 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3676 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS_2GHZ = 110, 3677 3678 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3679 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS_2GHZ = 111, 3680 3681 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3682 QCA_WLAN_VENDOR_ATTR_CONFIG_TX_NSS_5GHZ = 112, 3683 3684 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3685 QCA_WLAN_VENDOR_ATTR_CONFIG_RX_NSS_5GHZ = 113, 3686 3687 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3688 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS_2GHZ = 114, 3689 3690 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3691 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS_2GHZ = 115, 3692 3693 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3694 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_TX_CHAINS_5GHZ = 116, 3695 3696 /* 8-bit unsigned value. Refer to TX/RX NSS and chain configurations */ 3697 QCA_WLAN_VENDOR_ATTR_CONFIG_NUM_RX_CHAINS_5GHZ = 117, 3698 3699 /* 16-bit unsigned value. This attribute is used to dynamically 3700 * configure the time duration of data stall detection. Unit is 3701 * milliseconds. Valid value range is 0 or 10 ms to 10000 ms. If the 3702 * value is 0, the previously configured value is cleared. The driver 3703 * rejects this configuration if the value is out of range. This 3704 * configuration is effective for all connections on the chip. If the 3705 * duration is greater than this configuration and consecutive TX no ack 3706 * count is greater than 3707 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_THRESHOLD, 3708 * data stall event is sent to userspace. 3709 */ 3710 QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_DURATION = 118, 3711 3712 /* 16-bit unsigned value. This attribute is used to dynamically 3713 * configure the threshold of data stall detection. Valid value is 0 or 3714 * greater than 10. if the value is 0, the previously configured value 3715 * is cleared. The driver rejects this configuration if the value is out 3716 * of range. This configuration is effective for all connections on the 3717 * chip. If consecutive TX no ack count is greater than this 3718 * configuration and duration is greater than 3719 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_DURATION, 3720 * data stall event is sent to userspace. 3721 */ 3722 QCA_WLAN_VENDOR_ATTR_CONFIG_CONSECUTIVE_TX_NO_ACK_THRESHOLD = 119, 3723 3724 /* 8-bit unsigned value to configure the interface offload type 3725 * 3726 * This attribute is used to configure the interface offload capability. 3727 * User can configure software based acceleration, hardware based 3728 * acceleration, or a combination of both using this option. More 3729 * details on each option is described under the enum definition below. 3730 * Uses enum qca_wlan_intf_offload_type for values. 3731 */ 3732 QCA_WLAN_VENDOR_ATTR_CONFIG_INTF_OFFLOAD_TYPE = 120, 3733 3734 /* 8-bit unsigned integer to configure the driver to follow AP's 3735 * preference values to select a roam candidate from BTM request. 3736 * 3737 * This attribute is used to configure the driver to select the roam 3738 * candidate based on AP advertised preference values. If not set, 3739 * the driver uses its internal scoring algorithm to do the same. 3740 * 3741 * 1 - STA follows AP's preference values to select a roam candidate 3742 * 0 - STA uses internal scoring algorithm to select a roam candidate 3743 */ 3744 QCA_WLAN_VENDOR_ATTR_CONFIG_FOLLOW_AP_PREFERENCE_FOR_CNDS_SELECT = 121, 3745 3746 /* 16-bit unsigned value to configure P2P GO beacon interval in TUs. 3747 * This attribute is used to update the P2P GO beacon interval 3748 * dynamically. 3749 * 3750 * Updating the beacon interval while the GO continues operating the BSS 3751 * will likely interoperability issues and is not recommended to be 3752 * used. All the values should be multiples of the minimum used value to 3753 * minimize risk of issues. 3754 */ 3755 QCA_WLAN_VENDOR_ATTR_CONFIG_P2P_GO_BEACON_INTERVAL = 122, 3756 3757 /* keep last */ 3758 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST, 3759 QCA_WLAN_VENDOR_ATTR_CONFIG_MAX = 3760 QCA_WLAN_VENDOR_ATTR_CONFIG_AFTER_LAST - 1, 3761 }; 3762 3763 /* Compatibility defines for previously used incorrect enum 3764 * qca_wlan_vendor_attr_config names. These values should not be used in any 3765 * new implementation. */ 3766 #define QCA_WLAN_VENDOR_ATTR_DISCONNECT_IES \ 3767 QCA_WLAN_VENDOR_ATTR_CONFIG_DISCONNECT_IES 3768 #define QCA_WLAN_VENDOR_ATTR_BEACON_REPORT_FAIL \ 3769 QCA_WLAN_VENDOR_ATTR_CONFIG_BEACON_REPORT_FAIL 3770 3771 /** 3772 * enum qca_ul_mu_config - UL MU configuration 3773 * @QCA_UL_MU_SUSPEND - All trigger based UL MU transmission is suspended 3774 * @QCA_UL_MU_ENABLE - All trigger based UL MU transmission is enabled 3775 */ 3776 enum qca_ul_mu_config { 3777 QCA_UL_MU_SUSPEND = 0, 3778 QCA_UL_MU_ENABLE = 1, 3779 }; 3780 3781 /** 3782 * enum qca_dbam_config - Specifies DBAM config mode 3783 * @QCA_DBAM_DISABLE: Firmware disables DBAM 3784 * @QCA_DBAM_ENABLE: Firmware enables DBAM opportunistically when 3785 * internal criteria are met. 3786 * @QCA_DBAM_FORCE_ENABLE: Firmware enables DBAM forcefully. 3787 */ 3788 enum qca_dbam_config { 3789 QCA_DBAM_DISABLE = 0, 3790 QCA_DBAM_ENABLE = 1, 3791 QCA_DBAM_FORCE_ENABLE = 2, 3792 }; 3793 3794 /** 3795 * enum qca_wlan_ani_setting - ANI setting type 3796 * @QCA_WLAN_ANI_SETTING_AUTO: Automatically determine ANI level 3797 * @QCA_WLAN_ANI_SETTING_FIXED: Fix ANI level to the dBm parameter 3798 */ 3799 enum qca_wlan_ani_setting { 3800 QCA_WLAN_ANI_SETTING_AUTO = 0, 3801 QCA_WLAN_ANI_SETTING_FIXED = 1, 3802 }; 3803 3804 /** 3805 * enum qca_wlan_vendor_attr_sap_config - Parameters for AP configuration 3806 * 3807 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL: Optional (u8) 3808 * Channel number on which Access Point should restart. 3809 * Note: If both the driver and user space application supports the 6 GHz band, 3810 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY 3811 * should be used. 3812 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL 3813 * is still used if either of the driver or user space application doesn't 3814 * support the 6 GHz band. 3815 * 3816 * @QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY: Optional (u32) 3817 * Channel center frequency (MHz) on which the access point should restart. 3818 */ 3819 enum qca_wlan_vendor_attr_sap_config { 3820 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_INVALID = 0, 3821 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_CHANNEL = 1, 3822 3823 /* List of frequencies on which AP is expected to operate. 3824 * This is irrespective of ACS configuration. This list is a priority 3825 * based one and is looked for before the AP is created to ensure the 3826 * best concurrency sessions (avoid MCC and use DBS/SCC) co-exist in 3827 * the system. 3828 */ 3829 QCA_WLAN_VENDOR_ATTR_SAP_MANDATORY_FREQUENCY_LIST = 2, 3830 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_FREQUENCY = 3, 3831 3832 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST, 3833 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_MAX = 3834 QCA_WLAN_VENDOR_ATTR_SAP_CONFIG_AFTER_LAST - 1, 3835 }; 3836 3837 /** 3838 * enum qca_wlan_vendor_attr_sap_conditional_chan_switch - Parameters for AP 3839 * conditional channel switch 3840 */ 3841 enum qca_wlan_vendor_attr_sap_conditional_chan_switch { 3842 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_INVALID = 0, 3843 /* Priority based frequency list (an array of u32 values in host byte 3844 * order) 3845 */ 3846 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_FREQ_LIST = 1, 3847 /* Status of the conditional switch (u32). 3848 * 0: Success, Non-zero: Failure 3849 */ 3850 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_STATUS = 2, 3851 3852 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST, 3853 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_MAX = 3854 QCA_WLAN_VENDOR_ATTR_SAP_CONDITIONAL_CHAN_SWITCH_AFTER_LAST - 1, 3855 }; 3856 3857 /** 3858 * enum qca_wlan_gpio_attr - Parameters for GPIO configuration 3859 * 3860 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND: Required (u32) 3861 * value to specify the GPIO command. Please refer to enum qca_gpio_cmd_type 3862 * for the available values. 3863 * 3864 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM: Required (u32) 3865 * value to specify the GPIO number. 3866 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3867 * %QCA_WLAN_VENDOR_GPIO_CONFIG or %QCA_WLAN_VENDOR_GPIO_OUTPUT. 3868 * 3869 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE: Required (u32) 3870 * value to specify the GPIO output level. Please refer to enum qca_gpio_value 3871 * for the available values. 3872 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3873 * %QCA_WLAN_VENDOR_GPIO_OUTPUT. 3874 * 3875 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE: Optional (u32) 3876 * value to specify the GPIO pull type. Please refer to enum qca_gpio_pull_type 3877 * for the available values. 3878 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3879 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 3880 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 3881 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 3882 * attribute is present. 3883 * 3884 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE: Optional (u32) 3885 * value to specify the GPIO interrupt mode. Please refer to enum 3886 * qca_gpio_interrupt_mode for the available values. 3887 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3888 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 3889 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 3890 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 3891 * attribute is present. 3892 * 3893 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR: Optional (u32) 3894 * value to specify the GPIO direction. Please refer to enum qca_gpio_direction 3895 * for the available values. 3896 * This is required, when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3897 * %QCA_WLAN_VENDOR_GPIO_CONFIG and 3898 * %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG attribute is not present. 3899 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG 3900 * attribute is present. 3901 * 3902 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG: Optional (u32) 3903 * Value to specify the mux config. Meaning of a given value is dependent 3904 * on the target chipset and GPIO pin. Must be of the range 0-15. 3905 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3906 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to 0. 3907 * 3908 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE: Optional (u32) 3909 * Value to specify the drive, refer to enum qca_gpio_drive. 3910 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3911 * %QCA_WLAN_VENDOR_GPIO_CONFIG. Defaults to QCA_WLAN_GPIO_DRIVE_2MA(0). 3912 * 3913 * @QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG: Optional (flag) 3914 * Optional when %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND is 3915 * %QCA_WLAN_VENDOR_GPIO_CONFIG. When present this attribute signals that all 3916 * other parameters for the given GPIO will be obtained from internal 3917 * configuration. Only %QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM must be 3918 * specified to indicate the GPIO pin being configured. 3919 */ 3920 enum qca_wlan_gpio_attr { 3921 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INVALID = 0, 3922 /* Unsigned 32-bit attribute for GPIO command */ 3923 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_COMMAND = 1, 3924 /* Unsigned 32-bit attribute for GPIO PIN number to configure */ 3925 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PINNUM = 2, 3926 /* Unsigned 32-bit attribute for GPIO value to configure */ 3927 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_VALUE = 3, 3928 /* Unsigned 32-bit attribute for GPIO pull type */ 3929 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_PULL_TYPE = 4, 3930 /* Unsigned 32-bit attribute for GPIO interrupt mode */ 3931 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTR_MODE = 5, 3932 /* Unsigned 32-bit attribute for GPIO direction to configure */ 3933 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DIR = 6, 3934 /* Unsigned 32-bit attribute for GPIO mux config */ 3935 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MUX_CONFIG = 7, 3936 /* Unsigned 32-bit attribute for GPIO drive */ 3937 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_DRIVE = 8, 3938 /* Flag attribute for using internal GPIO configuration */ 3939 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_INTERNAL_CONFIG = 9, 3940 3941 /* keep last */ 3942 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST, 3943 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_MAX = 3944 QCA_WLAN_VENDOR_ATTR_GPIO_PARAM_LAST - 1 3945 }; 3946 3947 /** 3948 * enum gpio_cmd_type - GPIO configuration command type 3949 * @QCA_WLAN_VENDOR_GPIO_CONFIG: Set GPIO configuration info 3950 * @QCA_WLAN_VENDOR_GPIO_OUTPUT: Set GPIO output level 3951 */ 3952 enum qca_gpio_cmd_type { 3953 QCA_WLAN_VENDOR_GPIO_CONFIG = 0, 3954 QCA_WLAN_VENDOR_GPIO_OUTPUT = 1, 3955 }; 3956 3957 /** 3958 * enum qca_gpio_pull_type - GPIO pull type 3959 * @QCA_WLAN_GPIO_PULL_NONE: Set GPIO pull type to none 3960 * @QCA_WLAN_GPIO_PULL_UP: Set GPIO pull up 3961 * @QCA_WLAN_GPIO_PULL_DOWN: Set GPIO pull down 3962 */ 3963 enum qca_gpio_pull_type { 3964 QCA_WLAN_GPIO_PULL_NONE = 0, 3965 QCA_WLAN_GPIO_PULL_UP = 1, 3966 QCA_WLAN_GPIO_PULL_DOWN = 2, 3967 QCA_WLAN_GPIO_PULL_MAX, 3968 }; 3969 3970 /** 3971 * enum qca_gpio_direction - GPIO direction 3972 * @QCA_WLAN_GPIO_INPUT: Set GPIO as input mode 3973 * @QCA_WLAN_GPIO_OUTPUT: Set GPIO as output mode 3974 * @QCA_WLAN_GPIO_VALUE_MAX: Invalid value 3975 */ 3976 enum qca_gpio_direction { 3977 QCA_WLAN_GPIO_INPUT = 0, 3978 QCA_WLAN_GPIO_OUTPUT = 1, 3979 QCA_WLAN_GPIO_DIR_MAX, 3980 }; 3981 3982 /** 3983 * enum qca_gpio_value - GPIO Value 3984 * @QCA_WLAN_GPIO_LEVEL_LOW: set gpio output level to low 3985 * @QCA_WLAN_GPIO_LEVEL_HIGH: set gpio output level to high 3986 * @QCA_WLAN_GPIO_LEVEL_MAX: Invalid value 3987 */ 3988 enum qca_gpio_value { 3989 QCA_WLAN_GPIO_LEVEL_LOW = 0, 3990 QCA_WLAN_GPIO_LEVEL_HIGH = 1, 3991 QCA_WLAN_GPIO_LEVEL_MAX, 3992 }; 3993 3994 /** 3995 * enum gpio_interrupt_mode - GPIO interrupt mode 3996 * @QCA_WLAN_GPIO_INTMODE_DISABLE: Disable interrupt trigger 3997 * @QCA_WLAN_GPIO_INTMODE_RISING_EDGE: Interrupt with GPIO rising edge trigger 3998 * @QCA_WLAN_GPIO_INTMODE_FALLING_EDGE: Interrupt with GPIO falling edge trigger 3999 * @QCA_WLAN_GPIO_INTMODE_BOTH_EDGE: Interrupt with GPIO both edge trigger 4000 * @QCA_WLAN_GPIO_INTMODE_LEVEL_LOW: Interrupt with GPIO level low trigger 4001 * @QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH: Interrupt with GPIO level high trigger 4002 * @QCA_WLAN_GPIO_INTMODE_MAX: Invalid value 4003 */ 4004 enum qca_gpio_interrupt_mode { 4005 QCA_WLAN_GPIO_INTMODE_DISABLE = 0, 4006 QCA_WLAN_GPIO_INTMODE_RISING_EDGE = 1, 4007 QCA_WLAN_GPIO_INTMODE_FALLING_EDGE = 2, 4008 QCA_WLAN_GPIO_INTMODE_BOTH_EDGE = 3, 4009 QCA_WLAN_GPIO_INTMODE_LEVEL_LOW = 4, 4010 QCA_WLAN_GPIO_INTMODE_LEVEL_HIGH = 5, 4011 QCA_WLAN_GPIO_INTMODE_MAX, 4012 }; 4013 4014 /** 4015 * enum qca_gpio_drive - GPIO drive 4016 * @QCA_WLAN_GPIO_DRIVE_2MA: drive 2MA 4017 * @QCA_WLAN_GPIO_DRIVE_4MA: drive 4MA 4018 * @QCA_WLAN_GPIO_DRIVE_6MA: drive 6MA 4019 * @QCA_WLAN_GPIO_DRIVE_8MA: drive 8MA 4020 * @QCA_WLAN_GPIO_DRIVE_10MA: drive 10MA 4021 * @QCA_WLAN_GPIO_DRIVE_12MA: drive 12MA 4022 * @QCA_WLAN_GPIO_DRIVE_14MA: drive 14MA 4023 * @QCA_WLAN_GPIO_DRIVE_16MA: drive 16MA 4024 * @QCA_WLAN_GPIO_DRIVE_MAX: invalid GPIO drive 4025 */ 4026 enum qca_gpio_drive { 4027 QCA_WLAN_GPIO_DRIVE_2MA = 0, 4028 QCA_WLAN_GPIO_DRIVE_4MA = 1, 4029 QCA_WLAN_GPIO_DRIVE_6MA = 2, 4030 QCA_WLAN_GPIO_DRIVE_8MA = 3, 4031 QCA_WLAN_GPIO_DRIVE_10MA = 4, 4032 QCA_WLAN_GPIO_DRIVE_12MA = 5, 4033 QCA_WLAN_GPIO_DRIVE_14MA = 6, 4034 QCA_WLAN_GPIO_DRIVE_16MA = 7, 4035 QCA_WLAN_GPIO_DRIVE_MAX, 4036 }; 4037 4038 /** 4039 * qca_wlan_set_qdepth_thresh_attr - Parameters for setting 4040 * MSDUQ depth threshold per peer per tid in the target 4041 * 4042 * Associated Vendor Command: 4043 * QCA_NL80211_VENDOR_SUBCMD_SET_QDEPTH_THRESH 4044 */ 4045 enum qca_wlan_set_qdepth_thresh_attr { 4046 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_INVALID = 0, 4047 /* 6-byte MAC address */ 4048 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAC_ADDR, 4049 /* Unsigned 32-bit attribute for holding the TID */ 4050 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_TID, 4051 /* Unsigned 32-bit attribute for holding the update mask 4052 * bit 0 - Update high priority msdu qdepth threshold 4053 * bit 1 - Update low priority msdu qdepth threshold 4054 * bit 2 - Update UDP msdu qdepth threshold 4055 * bit 3 - Update Non UDP msdu qdepth threshold 4056 * rest of bits are reserved 4057 */ 4058 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_UPDATE_MASK, 4059 /* Unsigned 32-bit attribute for holding the threshold value */ 4060 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_VALUE, 4061 4062 /* keep last */ 4063 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST, 4064 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_MAX = 4065 QCA_WLAN_VENDOR_ATTR_QDEPTH_THRESH_LAST - 1, 4066 }; 4067 4068 /** 4069 * enum qca_acs_dfs_mode - Defines different types of DFS channel 4070 * configurations for ACS operation. 4071 * 4072 * @QCA_ACS_DFS_MODE_NONE: Refer to invalid DFS mode 4073 * @QCA_ACS_DFS_MODE_ENABLE: Consider DFS channels in ACS operation 4074 * @QCA_ACS_DFS_MODE_DISABLE: Do not consider DFS channels in ACS operation 4075 * @QCA_ACS_DFS_MODE_DEPRIORITIZE: Deprioritize DFS channels in ACS operation 4076 */ 4077 enum qca_acs_dfs_mode { 4078 QCA_ACS_DFS_MODE_NONE = 0, 4079 QCA_ACS_DFS_MODE_ENABLE = 1, 4080 QCA_ACS_DFS_MODE_DISABLE = 2, 4081 QCA_ACS_DFS_MODE_DEPRIORITIZE = 3, 4082 }; 4083 4084 /** 4085 * enum qca_wlan_vendor_attr_acs_config - Defines Configuration attributes 4086 * used by the vendor command QCA_NL80211_VENDOR_SUBCMD_ACS_POLICY. 4087 * 4088 * @QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE: Required (u8) 4089 * DFS mode for ACS operation from enum qca_acs_dfs_mode. 4090 * 4091 * @QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT: Required (u8) 4092 * channel number hint for ACS operation, if valid channel is specified then 4093 * ACS operation gives priority to this channel. 4094 * Note: If both the driver and user space application supports the 6 GHz band, 4095 * this attribute is deprecated and QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT 4096 * should be used. 4097 * To maintain backward compatibility, QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT 4098 * is still used if either of the driver or user space application doesn't 4099 * support the 6 GHz band. 4100 * 4101 * @QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT: Required (u32). 4102 * Channel center frequency (MHz) hint for ACS operation, if a valid center 4103 * frequency is specified, ACS operation gives priority to this channel. 4104 */ 4105 enum qca_wlan_vendor_attr_acs_config { 4106 QCA_WLAN_VENDOR_ATTR_ACS_MODE_INVALID = 0, 4107 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MODE = 1, 4108 QCA_WLAN_VENDOR_ATTR_ACS_CHANNEL_HINT = 2, 4109 QCA_WLAN_VENDOR_ATTR_ACS_FREQUENCY_HINT = 3, 4110 4111 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST, 4112 QCA_WLAN_VENDOR_ATTR_ACS_DFS_MAX = 4113 QCA_WLAN_VENDOR_ATTR_ACS_DFS_AFTER_LAST - 1, 4114 }; 4115 4116 /** 4117 * enum qca_wlan_vendor_attr_get_hw_capability - Wi-Fi hardware capability 4118 */ 4119 enum qca_wlan_vendor_attr_get_hw_capability { 4120 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_INVALID, 4121 /* Antenna isolation 4122 * An attribute used in the response. 4123 * The content of this attribute is encoded in a byte array. Each byte 4124 * value is an antenna isolation value. The array length is the number 4125 * of antennas. 4126 */ 4127 QCA_WLAN_VENDOR_ATTR_ANTENNA_ISOLATION, 4128 /* Request HW capability 4129 * An attribute used in the request. 4130 * The content of this attribute is a u32 array for one or more of 4131 * hardware capabilities (attribute IDs) that are being requested. Each 4132 * u32 value has a value from this 4133 * enum qca_wlan_vendor_attr_get_hw_capability 4134 * identifying which capabilities are requested. 4135 */ 4136 QCA_WLAN_VENDOR_ATTR_GET_HW_CAPABILITY, 4137 4138 /* keep last */ 4139 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST, 4140 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_MAX = 4141 QCA_WLAN_VENDOR_ATTR_HW_CAPABILITY_AFTER_LAST - 1, 4142 }; 4143 4144 /** 4145 * enum qca_wlan_vendor_attr_ll_stats_ext - Attributes for MAC layer monitoring 4146 * offload which is an extension for LL_STATS. 4147 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD: Monitoring period. Unit in ms. 4148 * If MAC counters do not exceed the threshold, FW will report monitored 4149 * link layer counters periodically as this setting. The first report is 4150 * always triggered by this timer. 4151 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD: It is a percentage (1-99). 4152 * For each MAC layer counter, FW holds two copies. One is the current value. 4153 * The other is the last report. Once a current counter's increment is larger 4154 * than the threshold, FW will indicate that counter to host even if the 4155 * monitoring timer does not expire. 4156 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG: Peer STA power state change 4157 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID: TID of MSDU 4158 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU: Count of MSDU with the same 4159 * failure code. 4160 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS: TX failure code 4161 * 1: TX packet discarded 4162 * 2: No ACK 4163 * 3: Postpone 4164 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS: peer MAC address 4165 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE: Peer STA current state 4166 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL: Global threshold. 4167 * Threshold for all monitored parameters. If per counter dedicated threshold 4168 * is not enabled, this threshold will take effect. 4169 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE: Indicate what triggers this 4170 * event, PERORID_TIMEOUT == 1, THRESH_EXCEED == 0. 4171 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID: interface ID 4172 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID: peer ID 4173 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP: bitmap for TX counters 4174 * Bit0: TX counter unit in MSDU 4175 * Bit1: TX counter unit in MPDU 4176 * Bit2: TX counter unit in PPDU 4177 * Bit3: TX counter unit in byte 4178 * Bit4: Dropped MSDUs 4179 * Bit5: Dropped Bytes 4180 * Bit6: MPDU retry counter 4181 * Bit7: MPDU failure counter 4182 * Bit8: PPDU failure counter 4183 * Bit9: MPDU aggregation counter 4184 * Bit10: MCS counter for ACKed MPDUs 4185 * Bit11: MCS counter for Failed MPDUs 4186 * Bit12: TX Delay counter 4187 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP: bitmap for RX counters 4188 * Bit0: MAC RX counter unit in MPDU 4189 * Bit1: MAC RX counter unit in byte 4190 * Bit2: PHY RX counter unit in PPDU 4191 * Bit3: PHY RX counter unit in byte 4192 * Bit4: Disorder counter 4193 * Bit5: Retry counter 4194 * Bit6: Duplication counter 4195 * Bit7: Discard counter 4196 * Bit8: MPDU aggregation size counter 4197 * Bit9: MCS counter 4198 * Bit10: Peer STA power state change (wake to sleep) counter 4199 * Bit11: Peer STA power save counter, total time in PS mode 4200 * Bit12: Probe request counter 4201 * Bit13: Other management frames counter 4202 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP: bitmap for CCA 4203 * Bit0: Idle time 4204 * Bit1: TX time 4205 * Bit2: time RX in current bss 4206 * Bit3: Out of current bss time 4207 * Bit4: Wireless medium busy time 4208 * Bit5: RX in bad condition time 4209 * Bit6: TX in bad condition time 4210 * Bit7: time wlan card not available 4211 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP: bitmap for signal 4212 * Bit0: Per channel SNR counter 4213 * Bit1: Per channel noise floor counter 4214 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM: number of peers 4215 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM: number of channels 4216 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_AC_RX_NUM: number of RX stats 4217 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS: per channel BSS CCA stats 4218 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER: container for per PEER stats 4219 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU: Number of total TX MSDUs 4220 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU: Number of total TX MPDUs 4221 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU: Number of total TX PPDUs 4222 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES: bytes of TX data 4223 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP: Number of dropped TX packets 4224 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES: Bytes dropped 4225 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY: waiting time without an ACK 4226 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK: number of MPDU not-ACKed 4227 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK: number of PPDU not-ACKed 4228 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM: 4229 * aggregation stats buffer length 4230 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM: length of mcs stats 4231 * buffer for ACKed MPDUs. 4232 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM: length of mcs stats 4233 * buffer for failed MPDUs. 4234 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE: 4235 * length of delay stats array. 4236 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR: TX aggregation stats 4237 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS: MCS stats for ACKed MPDUs 4238 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS: MCS stats for failed MPDUs 4239 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY: tx delay stats 4240 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU: MPDUs received 4241 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES: bytes received 4242 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU: PPDU received 4243 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES: PPDU bytes received 4244 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST: packets lost 4245 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY: number of RX packets 4246 * flagged as retransmissions 4247 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP: number of RX packets 4248 * flagged as duplicated 4249 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD: number of RX 4250 * packets discarded 4251 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM: length of RX aggregation 4252 * stats buffer. 4253 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM: length of RX mcs 4254 * stats buffer. 4255 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS: RX mcs stats buffer 4256 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR: aggregation stats buffer 4257 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES: times STAs go to sleep 4258 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION: STAs' total sleep time 4259 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ: number of probe 4260 * requests received 4261 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT: number of other mgmt 4262 * frames received 4263 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME: Percentage of idle time 4264 * there is no TX, nor RX, nor interference. 4265 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME: percentage of time 4266 * transmitting packets. 4267 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME: percentage of time 4268 * for receiving. 4269 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY: percentage of time 4270 * interference detected. 4271 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD: percentage of time 4272 * receiving packets with errors. 4273 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD: percentage of time 4274 * TX no-ACK. 4275 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL: percentage of time 4276 * the chip is unable to work in normal conditions. 4277 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME: percentage of time 4278 * receiving packets in current BSS. 4279 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME: percentage of time 4280 * receiving packets not in current BSS. 4281 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM: number of antennas 4282 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL: 4283 * This is a container for per antenna signal stats. 4284 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR: per antenna SNR value 4285 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF: per antenna NF value 4286 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON: RSSI of beacon 4287 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON: SNR of beacon 4288 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME: u64 4289 * Absolute timestamp from 1970/1/1, unit in ms. After receiving the 4290 * message, user layer APP could call gettimeofday to get another 4291 * timestamp and calculate transfer delay for the message. 4292 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME: u32 4293 * Real period for this measurement, unit in us. 4294 * @QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD: Attribute used for padding for 4295 * 64-bit alignment. 4296 */ 4297 enum qca_wlan_vendor_attr_ll_stats_ext { 4298 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_INVALID = 0, 4299 4300 /* Attributes for configurations */ 4301 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_PERIOD, 4302 QCA_WLAN_VENDOR_ATTR_LL_STATS_CFG_THRESHOLD, 4303 4304 /* Peer STA power state change */ 4305 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_CHG, 4306 4307 /* TX failure event */ 4308 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TID, 4309 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NUM_MSDU, 4310 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_STATUS, 4311 4312 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_STATE, 4313 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_MAC_ADDRESS, 4314 4315 /* MAC counters */ 4316 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_GLOBAL, 4317 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_EVENT_MODE, 4318 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_ID, 4319 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ID, 4320 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BITMAP, 4321 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BITMAP, 4322 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS_BITMAP, 4323 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_SIGNAL_BITMAP, 4324 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_NUM, 4325 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CHANNEL_NUM, 4326 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_CCA_BSS, 4327 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER, 4328 4329 /* Sub-attributes for PEER_AC_TX */ 4330 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MSDU, 4331 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_MPDU, 4332 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_PPDU, 4333 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BYTES, 4334 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP, 4335 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DROP_BYTES, 4336 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_RETRY, 4337 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_ACK, 4338 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_NO_BACK, 4339 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR_NUM, 4340 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS_NUM, 4341 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS_NUM, 4342 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_AGGR, 4343 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_SUCC_MCS, 4344 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_FAIL_MCS, 4345 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_DELAY_ARRAY_SIZE, 4346 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_DELAY, 4347 4348 /* Sub-attributes for PEER_AC_RX */ 4349 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU, 4350 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_BYTES, 4351 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU, 4352 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PPDU_BYTES, 4353 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_LOST, 4354 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_RETRY, 4355 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DUP, 4356 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MPDU_DISCARD, 4357 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR_NUM, 4358 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS_NUM, 4359 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MCS, 4360 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_AGGR, 4361 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_TIMES, 4362 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_PS_DURATION, 4363 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_PROBE_REQ, 4364 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_MGMT, 4365 4366 /* Sub-attributes for CCA_BSS */ 4367 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IDLE_TIME, 4368 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_TIME, 4369 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_TIME, 4370 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BUSY, 4371 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_RX_BAD, 4372 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_TX_BAD, 4373 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_NO_AVAIL, 4374 4375 /* sub-attribute for BSS_RX_TIME */ 4376 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IN_BSS_TIME, 4377 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_OUT_BSS_TIME, 4378 4379 /* Sub-attributes for PEER_SIGNAL */ 4380 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_ANT_NUM, 4381 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PEER_SIGNAL, 4382 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_SNR, 4383 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_ANT_NF, 4384 4385 /* Sub-attributes for IFACE_BSS */ 4386 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_RSSI_BEACON, 4387 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_IFACE_SNR_BEACON, 4388 4389 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_REPORT_TIME, 4390 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MEASUREMENT_TIME, 4391 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_PAD, 4392 4393 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST, 4394 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_MAX = 4395 QCA_WLAN_VENDOR_ATTR_LL_STATS_EXT_LAST - 1 4396 }; 4397 4398 /* Attributes for FTM commands and events */ 4399 4400 /** 4401 * enum qca_wlan_vendor_attr_loc_capa - Indoor location capabilities 4402 * 4403 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS: Various flags. See 4404 * enum qca_wlan_vendor_attr_loc_capa_flags. 4405 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS: Maximum number 4406 * of measurement sessions that can run concurrently. 4407 * Default is one session (no session concurrency). 4408 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS: The total number of unique 4409 * peers that are supported in running sessions. For example, 4410 * if the value is 8 and maximum number of sessions is 2, you can 4411 * have one session with 8 unique peers, or 2 sessions with 4 unique 4412 * peers each, and so on. 4413 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP: Maximum number 4414 * of bursts per peer, as an exponent (2^value). Default is 0, 4415 * meaning no multi-burst support. 4416 * @QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST: Maximum number 4417 * of measurement exchanges allowed in a single burst. 4418 * @QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES: Supported AOA measurement 4419 * types. A bit mask (unsigned 32 bit value), each bit corresponds 4420 * to an AOA type as defined by enum qca_vendor_attr_aoa_type. 4421 */ 4422 enum qca_wlan_vendor_attr_loc_capa { 4423 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_INVALID, 4424 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAGS, 4425 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_SESSIONS, 4426 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_PEERS, 4427 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_NUM_BURSTS_EXP, 4428 QCA_WLAN_VENDOR_ATTR_FTM_CAPA_MAX_MEAS_PER_BURST, 4429 QCA_WLAN_VENDOR_ATTR_AOA_CAPA_SUPPORTED_TYPES, 4430 /* keep last */ 4431 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST, 4432 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_MAX = 4433 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_AFTER_LAST - 1, 4434 }; 4435 4436 /** 4437 * enum qca_wlan_vendor_attr_loc_capa_flags: Indoor location capability flags 4438 * 4439 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER: Set if driver 4440 * can be configured as an FTM responder (for example, an AP that 4441 * services FTM requests). QCA_NL80211_VENDOR_SUBCMD_FTM_CFG_RESPONDER 4442 * will be supported if set. 4443 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR: Set if driver 4444 * can run FTM sessions. QCA_NL80211_VENDOR_SUBCMD_FTM_START_SESSION 4445 * will be supported if set. 4446 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP: Set if FTM responder 4447 * supports immediate (ASAP) response. 4448 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA: Set if driver supports standalone 4449 * AOA measurement using QCA_NL80211_VENDOR_SUBCMD_AOA_MEAS. 4450 * @QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM: Set if driver supports 4451 * requesting AOA measurements as part of an FTM session. 4452 */ 4453 enum qca_wlan_vendor_attr_loc_capa_flags { 4454 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_RESPONDER = 1 << 0, 4455 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_FTM_INITIATOR = 1 << 1, 4456 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_ASAP = 1 << 2, 4457 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA = 1 << 3, 4458 QCA_WLAN_VENDOR_ATTR_LOC_CAPA_FLAG_AOA_IN_FTM = 1 << 4, 4459 }; 4460 4461 /** 4462 * enum qca_wlan_vendor_attr_ftm_peer_info: Information about 4463 * a single peer in a measurement session. 4464 * 4465 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR: The MAC address of the peer. 4466 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS: Various flags related 4467 * to measurement. See enum qca_wlan_vendor_attr_ftm_peer_meas_flags. 4468 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS: Nested attribute of 4469 * FTM measurement parameters, as specified by IEEE P802.11-REVmc/D7.0 4470 * 9.4.2.167. See enum qca_wlan_vendor_attr_ftm_meas_param for 4471 * list of supported attributes. 4472 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID: Initial token ID for 4473 * secure measurement. 4474 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD: Request AOA 4475 * measurement every <value> bursts. If 0 or not specified, 4476 * AOA measurements will be disabled for this peer. 4477 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ: Frequency in MHz where 4478 * the measurement frames are exchanged. Optional; if not 4479 * specified, try to locate the peer in the kernel scan 4480 * results cache and use frequency from there. 4481 */ 4482 enum qca_wlan_vendor_attr_ftm_peer_info { 4483 QCA_WLAN_VENDOR_ATTR_FTM_PEER_INVALID, 4484 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAC_ADDR, 4485 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAGS, 4486 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_PARAMS, 4487 QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID, 4488 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AOA_BURST_PERIOD, 4489 QCA_WLAN_VENDOR_ATTR_FTM_PEER_FREQ, 4490 /* keep last */ 4491 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST, 4492 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MAX = 4493 QCA_WLAN_VENDOR_ATTR_FTM_PEER_AFTER_LAST - 1, 4494 }; 4495 4496 /** 4497 * enum qca_wlan_vendor_attr_ftm_peer_meas_flags: Measurement request flags, 4498 * per-peer 4499 * 4500 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP: If set, request 4501 * immediate (ASAP) response from peer. 4502 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI: If set, request 4503 * LCI report from peer. The LCI report includes the absolute 4504 * location of the peer in "official" coordinates (similar to GPS). 4505 * See IEEE P802.11-REVmc/D7.0, 11.24.6.7 for more information. 4506 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR: If set, request 4507 * Location civic report from peer. The LCR includes the location 4508 * of the peer in free-form format. See IEEE P802.11-REVmc/D7.0, 4509 * 11.24.6.7 for more information. 4510 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE: If set, 4511 * request a secure measurement. 4512 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_SECURE_TOKEN_ID must also be provided. 4513 */ 4514 enum qca_wlan_vendor_attr_ftm_peer_meas_flags { 4515 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_ASAP = 1 << 0, 4516 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCI = 1 << 1, 4517 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_LCR = 1 << 2, 4518 QCA_WLAN_VENDOR_ATTR_FTM_PEER_MEAS_FLAG_SECURE = 1 << 3, 4519 }; 4520 4521 /** 4522 * enum qca_wlan_vendor_attr_ftm_meas_param: Measurement parameters 4523 * 4524 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST: Number of measurements 4525 * to perform in a single burst. 4526 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP: Number of bursts to 4527 * perform, specified as an exponent (2^value). 4528 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION: Duration of burst 4529 * instance, as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. 4530 * @QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD: Time between bursts, 4531 * as specified in IEEE P802.11-REVmc/D7.0, 9.4.2.167. Must 4532 * be larger than QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION. 4533 */ 4534 enum qca_wlan_vendor_attr_ftm_meas_param { 4535 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_INVALID, 4536 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MEAS_PER_BURST, 4537 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_NUM_BURSTS_EXP, 4538 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_DURATION, 4539 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_BURST_PERIOD, 4540 /* keep last */ 4541 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST, 4542 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_MAX = 4543 QCA_WLAN_VENDOR_ATTR_FTM_PARAM_AFTER_LAST - 1, 4544 }; 4545 4546 /** 4547 * enum qca_wlan_vendor_attr_ftm_peer_result: Per-peer results 4548 * 4549 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR: MAC address of the reported 4550 * peer. 4551 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS: Status of measurement 4552 * request for this peer. 4553 * See enum qca_wlan_vendor_attr_ftm_peer_result_status. 4554 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS: Various flags related 4555 * to measurement results for this peer. 4556 * See enum qca_wlan_vendor_attr_ftm_peer_result_flags. 4557 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS: Specified when 4558 * request failed and peer requested not to send an additional request 4559 * for this number of seconds. 4560 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI: LCI report when received 4561 * from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 4562 * 9.4.2.22.10. 4563 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR: Location civic report when 4564 * received from peer. In the format specified by IEEE P802.11-REVmc/D7.0, 4565 * 9.4.2.22.13. 4566 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS: Reported when peer 4567 * overridden some measurement request parameters. See 4568 * enum qca_wlan_vendor_attr_ftm_meas_param. 4569 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS: AOA measurement 4570 * for this peer. Same contents as @QCA_WLAN_VENDOR_ATTR_AOA_MEAS_RESULT. 4571 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS: Array of measurement 4572 * results. Each entry is a nested attribute defined 4573 * by enum qca_wlan_vendor_attr_ftm_meas. 4574 */ 4575 enum qca_wlan_vendor_attr_ftm_peer_result { 4576 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_INVALID, 4577 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAC_ADDR, 4578 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS, 4579 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAGS, 4580 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS, 4581 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCI, 4582 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_LCR, 4583 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAMS, 4584 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AOA_MEAS, 4585 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS, 4586 /* keep last */ 4587 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST, 4588 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MAX = 4589 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_AFTER_LAST - 1, 4590 }; 4591 4592 /** 4593 * enum qca_wlan_vendor_attr_ftm_peer_result_status 4594 * 4595 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK: Request sent ok and results 4596 * will be provided. Peer may have overridden some measurement parameters, 4597 * in which case overridden parameters will be report by 4598 * QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_MEAS_PARAM attribute. 4599 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE: Peer is incapable 4600 * of performing the measurement request. No more results will be sent 4601 * for this peer in this session. 4602 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED: Peer reported request 4603 * failed, and requested not to send an additional request for number 4604 * of seconds specified by QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_VALUE_SECONDS 4605 * attribute. 4606 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID: Request validation 4607 * failed. Request was not sent over the air. 4608 */ 4609 enum qca_wlan_vendor_attr_ftm_peer_result_status { 4610 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_OK, 4611 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INCAPABLE, 4612 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_FAILED, 4613 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_STATUS_INVALID, 4614 }; 4615 4616 /** 4617 * enum qca_wlan_vendor_attr_ftm_peer_result_flags: Various flags 4618 * for measurement result, per-peer 4619 * 4620 * @QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE: If set, 4621 * measurement completed for this peer. No more results will be reported 4622 * for this peer in this session. 4623 */ 4624 enum qca_wlan_vendor_attr_ftm_peer_result_flags { 4625 QCA_WLAN_VENDOR_ATTR_FTM_PEER_RES_FLAG_DONE = 1 << 0, 4626 }; 4627 4628 /** 4629 * enum qca_vendor_attr_loc_session_status: Session completion status code 4630 * 4631 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK: Session completed 4632 * successfully. 4633 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED: Session aborted 4634 * by request. 4635 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID: Session request 4636 * was invalid and was not started. 4637 * @QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED: Session had an error 4638 * and did not complete normally (for example out of resources). 4639 */ 4640 enum qca_vendor_attr_loc_session_status { 4641 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_OK, 4642 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_ABORTED, 4643 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_INVALID, 4644 QCA_WLAN_VENDOR_ATTR_LOC_SESSION_STATUS_FAILED, 4645 }; 4646 4647 /** 4648 * enum qca_wlan_vendor_attr_ftm_meas: Single measurement data 4649 * 4650 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1: Time of departure (TOD) of FTM packet as 4651 * recorded by responder, in picoseconds. 4652 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 4653 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2: Time of arrival (TOA) of FTM packet at 4654 * initiator, in picoseconds. 4655 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 4656 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3: TOD of ACK packet as recorded by 4657 * initiator, in picoseconds. 4658 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 4659 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4: TOA of ACK packet at 4660 * responder, in picoseconds. 4661 * See IEEE P802.11-REVmc/D7.0, 11.24.6.4 for more information. 4662 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI: RSSI (signal level) as recorded 4663 * during this measurement exchange. Optional and will be provided if 4664 * the hardware can measure it. 4665 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR: TOD error reported by 4666 * responder. Not always provided. 4667 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 4668 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR: TOA error reported by 4669 * responder. Not always provided. 4670 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 4671 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR: TOD error measured by 4672 * initiator. Not always provided. 4673 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 4674 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR: TOA error measured by 4675 * initiator. Not always provided. 4676 * See IEEE P802.11-REVmc/D7.0, 9.6.8.33 for more information. 4677 * @QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD: Attribute used for padding for 64-bit 4678 * alignment. 4679 */ 4680 enum qca_wlan_vendor_attr_ftm_meas { 4681 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INVALID, 4682 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T1, 4683 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T2, 4684 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T3, 4685 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_T4, 4686 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_RSSI, 4687 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOD_ERR, 4688 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_TOA_ERR, 4689 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOD_ERR, 4690 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_INITIATOR_TOA_ERR, 4691 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_PAD, 4692 /* keep last */ 4693 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST, 4694 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_MAX = 4695 QCA_WLAN_VENDOR_ATTR_FTM_MEAS_AFTER_LAST - 1, 4696 }; 4697 4698 /** 4699 * enum qca_wlan_vendor_attr_aoa_type - AOA measurement type 4700 * 4701 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE: Phase of the strongest 4702 * CIR (channel impulse response) path for each antenna. 4703 * @QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP: Phase and amplitude 4704 * of the strongest CIR path for each antenna. 4705 */ 4706 enum qca_wlan_vendor_attr_aoa_type { 4707 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE, 4708 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_TOP_CIR_PHASE_AMP, 4709 QCA_WLAN_VENDOR_ATTR_AOA_TYPE_MAX 4710 }; 4711 4712 /** 4713 * enum qca_wlan_vendor_attr_encryption_test - Attributes to 4714 * validate encryption engine 4715 * 4716 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION: Flag attribute. 4717 * This will be included if the request is for decryption; if not included, 4718 * the request is treated as a request for encryption by default. 4719 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER: Unsigned 32-bit value 4720 * indicating the key cipher suite. Takes same values as 4721 * NL80211_ATTR_KEY_CIPHER. 4722 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID: Unsigned 8-bit value 4723 * Key Id to be used for encryption 4724 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK: Array of 8-bit values. 4725 * Key (TK) to be used for encryption/decryption 4726 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN: Array of 8-bit values. 4727 * Packet number to be specified for encryption/decryption 4728 * 6 bytes for TKIP/CCMP/GCMP. 4729 * @QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA: Array of 8-bit values 4730 * representing the 802.11 packet (header + payload + FCS) that 4731 * needs to be encrypted/decrypted. 4732 * Encrypted/decrypted response from the driver will also be sent 4733 * to userspace with the same attribute. 4734 */ 4735 enum qca_wlan_vendor_attr_encryption_test { 4736 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_INVALID = 0, 4737 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_NEEDS_DECRYPTION, 4738 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_CIPHER, 4739 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_KEYID, 4740 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_TK, 4741 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_PN, 4742 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_DATA, 4743 4744 /* keep last */ 4745 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST, 4746 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_MAX = 4747 QCA_WLAN_VENDOR_ATTR_ENCRYPTION_TEST_AFTER_LAST - 1 4748 }; 4749 4750 /** 4751 * enum qca_wlan_vendor_attr_dmg_rf_sector_type - Type of 4752 * sector for DMG RF sector operations. 4753 * 4754 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX: RX sector 4755 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX: TX sector 4756 */ 4757 enum qca_wlan_vendor_attr_dmg_rf_sector_type { 4758 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_RX, 4759 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_TX, 4760 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_TYPE_MAX 4761 }; 4762 4763 /** 4764 * enum qca_wlan_vendor_attr_fw_state - State of firmware 4765 * 4766 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR: FW is in bad state 4767 * @QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE: FW is active 4768 */ 4769 enum qca_wlan_vendor_attr_fw_state { 4770 QCA_WLAN_VENDOR_ATTR_FW_STATE_ERROR, 4771 QCA_WLAN_VENDOR_ATTR_FW_STATE_ACTIVE, 4772 QCA_WLAN_VENDOR_ATTR_FW_STATE_MAX 4773 }; 4774 4775 /** 4776 * BRP antenna limit mode 4777 * 4778 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE: Disable BRP force 4779 * antenna limit, BRP will be performed as usual. 4780 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE: Define maximal 4781 * antennas limit. the hardware may use less antennas than the 4782 * maximum limit. 4783 * @QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE: The hardware will 4784 * use exactly the specified number of antennas for BRP. 4785 */ 4786 enum qca_wlan_vendor_attr_brp_ant_limit_mode { 4787 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_DISABLE, 4788 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_EFFECTIVE, 4789 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_FORCE, 4790 QCA_WLAN_VENDOR_ATTR_BRP_ANT_LIMIT_MODE_MAX 4791 }; 4792 4793 /** 4794 * enum qca_wlan_vendor_attr_dmg_rf_sector_cfg - Attributes for 4795 * DMG RF sector configuration for a single RF module. 4796 * The values are defined in a compact way which closely matches 4797 * the way it is stored in HW registers. 4798 * The configuration provides values for 32 antennas and 8 distribution 4799 * amplifiers, and together describes the characteristics of the RF 4800 * sector - such as a beam in some direction with some gain. 4801 * 4802 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX: Index 4803 * of RF module for this configuration. 4804 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0: Bit 0 of edge 4805 * amplifier gain index. Unsigned 32 bit number containing 4806 * bits for all 32 antennas. 4807 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1: Bit 1 of edge 4808 * amplifier gain index. Unsigned 32 bit number containing 4809 * bits for all 32 antennas. 4810 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2: Bit 2 of edge 4811 * amplifier gain index. Unsigned 32 bit number containing 4812 * bits for all 32 antennas. 4813 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI: Phase values 4814 * for first 16 antennas, 2 bits per antenna. 4815 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO: Phase values 4816 * for last 16 antennas, 2 bits per antenna. 4817 * @QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16: Contains 4818 * DTYPE values (3 bits) for each distribution amplifier, followed 4819 * by X16 switch bits for each distribution amplifier. There are 4820 * total of 8 distribution amplifiers. 4821 */ 4822 enum qca_wlan_vendor_attr_dmg_rf_sector_cfg { 4823 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_INVALID = 0, 4824 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MODULE_INDEX = 1, 4825 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE0 = 2, 4826 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE1 = 3, 4827 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_ETYPE2 = 4, 4828 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_HI = 5, 4829 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_PSH_LO = 6, 4830 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_DTYPE_X16 = 7, 4831 4832 /* keep last */ 4833 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST, 4834 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_MAX = 4835 QCA_WLAN_VENDOR_ATTR_DMG_RF_SECTOR_CFG_AFTER_LAST - 1 4836 }; 4837 4838 enum qca_wlan_vendor_attr_ll_stats_set { 4839 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_INVALID = 0, 4840 /* Unsigned 32-bit value */ 4841 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_MPDU_SIZE_THRESHOLD = 1, 4842 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_CONFIG_AGGRESSIVE_STATS_GATHERING = 2, 4843 /* keep last */ 4844 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST, 4845 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_MAX = 4846 QCA_WLAN_VENDOR_ATTR_LL_STATS_SET_AFTER_LAST - 1, 4847 }; 4848 4849 /** 4850 * qca_wlan_ll_stats_clr_req_bitmap - Represents the bitmap to clear LL STATS 4851 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK. 4852 * 4853 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO: Clear all radio statistics. 4854 * 4855 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA: Clear cca_busy_time within 4856 * radio statistics. 4857 * 4858 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNEL: Clear all channel 4859 * statistics within radio statistics. 4860 * 4861 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_SCAN: Clear all scan statistics within 4862 * radio statistics. 4863 * 4864 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE: Clear all interface statistics. 4865 * 4866 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE: Clear all TX rate statistics 4867 * within interface statistics. 4868 * 4869 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC: Clear all AC statistics within 4870 * interface statistics. 4871 * 4872 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION: Clear all contention 4873 * (min, max, avg) statistics within AC statistics. 4874 * 4875 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER: Clear all peer statistics 4876 * on this interface. 4877 * 4878 * @QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER: Clear particular peer 4879 * statistics depending on the peer_mac. 4880 */ 4881 enum qca_wlan_ll_stats_clr_req_bitmap { 4882 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO = BIT(0), 4883 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CCA = BIT(1), 4884 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_CHANNELS = BIT(2), 4885 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_RADIO_SCAN = BIT(3), 4886 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE = BIT(4), 4887 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_TXRATE = BIT(5), 4888 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_AC = BIT(6), 4889 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_CONTENTION = BIT(7), 4890 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_ALL_PEER = BIT(8), 4891 QCA_WLAN_LL_STATS_CLR_REQ_BITMAP_IFACE_PER_PEER = BIT(9), 4892 }; 4893 4894 enum qca_wlan_vendor_attr_ll_stats_clr { 4895 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_INVALID = 0, 4896 /* Unsigned 32bit bitmap for clearing statistics, specified 4897 * in the enum qca_wlan_ll_stats_clr_req_bitmap. 4898 */ 4899 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_REQ_MASK = 1, 4900 /* Unsigned 8 bit value: Request to stop statistics collection */ 4901 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_REQ = 2, 4902 4903 /* Unsigned 32 bit bitmap: Response from the driver 4904 * for the cleared statistics 4905 */ 4906 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_RSP_MASK = 3, 4907 /* Unsigned 8 bit value: Response from driver/firmware 4908 * for the stop request 4909 */ 4910 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_CONFIG_STOP_RSP = 4, 4911 /* keep last */ 4912 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST, 4913 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_MAX = 4914 QCA_WLAN_VENDOR_ATTR_LL_STATS_CLR_AFTER_LAST - 1, 4915 }; 4916 4917 /** 4918 * qca_wlan_ll_stats_get_req_bitmap - Represents the bitmap to request LL STATS 4919 * values for %QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK. 4920 * 4921 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO: Request all radio statistics. 4922 * 4923 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE: Request interface statistics. 4924 * 4925 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER: Request all peer statistics. 4926 * 4927 * @QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER: Request per peer statistics. 4928 */ 4929 enum qca_wlan_ll_stats_get_req_bitmap { 4930 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_RADIO = BIT(0), 4931 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_IFACE = BIT(1), 4932 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_ALL_PEER = BIT(2), 4933 QCA_WLAN_LL_STATS_GET_REQ_BITMAP_PER_PEER = BIT(3), 4934 }; 4935 4936 enum qca_wlan_vendor_attr_ll_stats_get { 4937 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_INVALID = 0, 4938 /* Unsigned 32 bit value provided by the caller issuing the GET stats 4939 * command. When reporting the stats results, the driver uses the same 4940 * value to indicate which GET request the results correspond to. 4941 */ 4942 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_ID = 1, 4943 /* Unsigned 32 bit value - bit mask to identify what statistics are 4944 * requested for retrieval specified in the enum 4945 * qca_wlan_ll_stats_get_req_bitmap 4946 */ 4947 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_CONFIG_REQ_MASK = 2, 4948 /* keep last */ 4949 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST, 4950 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_MAX = 4951 QCA_WLAN_VENDOR_ATTR_LL_STATS_GET_AFTER_LAST - 1, 4952 }; 4953 4954 enum qca_wlan_vendor_attr_ll_stats_results { 4955 QCA_WLAN_VENDOR_ATTR_LL_STATS_INVALID = 0, 4956 4957 /* 4958 * For Multi Link Operation (MLO) connection, per-link statistics will 4959 * be sent inside of %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and 4960 * cumulative statistics will be sent outside of 4961 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to maintain backward 4962 * compatibility with legacy user space. Attributes which don't have 4963 * explicit documentation for MLO will be sent only outside of 4964 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK, such attributes values 4965 * don't depend on whether the connection is MLO capable or not, e.g., 4966 * radio and channel specific attributes. 4967 */ 4968 4969 /* Unsigned 32bit value. Used by the driver; must match the request id 4970 * provided with the QCA_NL80211_VENDOR_SUBCMD_LL_STATS_GET command. 4971 */ 4972 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_REQ_ID = 1, 4973 4974 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4975 * the link with the best RSSI outside 4976 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4977 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4978 */ 4979 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_BEACON_RX = 2, 4980 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4981 * the link with the best RSSI outside 4982 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4983 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4984 */ 4985 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_RX = 3, 4986 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4987 * the link with the best RSSI outside 4988 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4989 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4990 */ 4991 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_RX = 4, 4992 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4993 * the link with the best RSSI outside 4994 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 4995 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 4996 */ 4997 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_MGMT_ACTION_TX = 5, 4998 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 4999 * the link with the best RSSI outside 5000 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5001 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5002 */ 5003 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_MGMT = 6, 5004 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 5005 * the link with the best RSSI outside 5006 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5007 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5008 */ 5009 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_DATA = 7, 5010 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 5011 * the link with the best RSSI outside 5012 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5013 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5014 */ 5015 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RSSI_ACK = 8, 5016 5017 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_* are 5018 * nested within the interface stats. 5019 */ 5020 5021 /* Interface mode, e.g., STA, SOFTAP, IBSS, etc. 5022 * Type = enum wifi_interface_mode. 5023 */ 5024 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MODE = 9, 5025 /* Interface MAC address. An array of 6 Unsigned int8 */ 5026 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_MAC_ADDR = 10, 5027 /* Type = enum wifi_connection_state, e.g., DISCONNECTED, 5028 * AUTHENTICATING, etc. valid for STA, CLI only. 5029 */ 5030 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_STATE = 11, 5031 /* Type = enum wifi_roam_state. Roaming state, e.g., IDLE or ACTIVE 5032 */ 5033 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_ROAMING = 12, 5034 /* Unsigned 32 bit value. WIFI_CAPABILITY_XXX */ 5035 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_CAPABILITIES = 13, 5036 /* NULL terminated SSID. An array of 33 Unsigned 8bit values */ 5037 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_SSID = 14, 5038 /* For non-MLO connection, BSSID of the AP. For MLO connection, MLD 5039 * address of the AP. An array of 6 unsigned 8 bit values */ 5040 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_BSSID = 15, 5041 /* Country string advertised by AP. An array of 3 unsigned 8 bit 5042 * values. 5043 */ 5044 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_AP_COUNTRY_STR = 16, 5045 /* Country string for this association. An array of 3 unsigned 8 bit 5046 * values. 5047 */ 5048 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_COUNTRY_STR = 17, 5049 5050 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* could 5051 * be nested within the interface stats. 5052 * For an MLO connection, all %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* 5053 * attributes except %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* 5054 * indicate the aggregate of all links outside 5055 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5056 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_* attributes 5057 * indicate value of the MLO link with the best RSSI outside 5058 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5059 * These attributes indicate the link specific value inside 5060 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5061 */ 5062 5063 /* Type = enum wifi_traffic_ac, e.g., V0, VI, BE and BK */ 5064 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_AC = 18, 5065 /* Unsigned int 32 value corresponding to respective AC */ 5066 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MPDU = 19, 5067 /* Unsigned int 32 value corresponding to respective AC */ 5068 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MPDU = 20, 5069 /* Unsigned int 32 value corresponding to respective AC */ 5070 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_MCAST = 21, 5071 /* Unsigned int 32 value corresponding to respective AC */ 5072 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_MCAST = 22, 5073 /* Unsigned int 32 value corresponding to respective AC */ 5074 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RX_AMPDU = 23, 5075 /* Unsigned int 32 value corresponding to respective AC */ 5076 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_TX_AMPDU = 24, 5077 /* Unsigned int 32 value corresponding to respective AC */ 5078 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_MPDU_LOST = 25, 5079 /* Unsigned int 32 value corresponding to respective AC */ 5080 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES = 26, 5081 /* Unsigned int 32 value corresponding to respective AC */ 5082 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_SHORT = 27, 5083 /* Unsigned int 32 values corresponding to respective AC */ 5084 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_RETRIES_LONG = 28, 5085 /* Unsigned int 32 values corresponding to respective AC */ 5086 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MIN = 29, 5087 /* Unsigned int 32 values corresponding to respective AC */ 5088 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_MAX = 30, 5089 /* Unsigned int 32 values corresponding to respective AC */ 5090 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_TIME_AVG = 31, 5091 /* Unsigned int 32 values corresponding to respective AC */ 5092 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_CONTENTION_NUM_SAMPLES = 32, 5093 /* Unsigned 32 bit value. Number of peers */ 5094 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NUM_PEERS = 33, 5095 5096 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_* are 5097 * nested within the interface stats. 5098 */ 5099 5100 /* Type = enum wifi_peer_type. Peer type, e.g., STA, AP, P2P GO etc. */ 5101 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_TYPE = 34, 5102 /* MAC addr corresponding to respective peer. An array of 6 unsigned 5103 * 8 bit values. 5104 */ 5105 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_MAC_ADDRESS = 35, 5106 /* Unsigned int 32 bit value representing capabilities corresponding 5107 * to respective peer. 5108 */ 5109 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_CAPABILITIES = 36, 5110 /* Unsigned 32 bit value. Number of rates */ 5111 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_NUM_RATES = 37, 5112 5113 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 5114 * are nested within the rate stat. 5115 */ 5116 5117 /* Wi-Fi Rate - separate attributes defined for individual fields */ 5118 5119 /* Unsigned int 8 bit value; 0: OFDM, 1:CCK, 2:HT 3:VHT 4..7 reserved */ 5120 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_PREAMBLE = 38, 5121 /* Unsigned int 8 bit value; 0:1x1, 1:2x2, 3:3x3, 4:4x4 */ 5122 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_NSS = 39, 5123 /* Unsigned int 8 bit value; 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz */ 5124 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BW = 40, 5125 /* Unsigned int 8 bit value; OFDM/CCK rate code would be as per IEEE Std 5126 * in the units of 0.5 Mbps HT/VHT it would be MCS index 5127 */ 5128 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MCS_INDEX = 41, 5129 5130 /* Unsigned 32 bit value. Bit rate in units of 100 kbps */ 5131 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_BIT_RATE = 42, 5132 5133 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_STAT_* could be 5134 * nested within the peer info stats. 5135 */ 5136 5137 /* Unsigned int 32 bit value. Number of successfully transmitted data 5138 * packets, i.e., with ACK received corresponding to the respective 5139 * rate. 5140 */ 5141 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_TX_MPDU = 43, 5142 /* Unsigned int 32 bit value. Number of received data packets 5143 * corresponding to the respective rate. 5144 */ 5145 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RX_MPDU = 44, 5146 /* Unsigned int 32 bit value. Number of data packet losses, i.e., no ACK 5147 * received corresponding to the respective rate. 5148 */ 5149 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_MPDU_LOST = 45, 5150 /* Unsigned int 32 bit value. Total number of data packet retries for 5151 * the respective rate. 5152 */ 5153 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES = 46, 5154 /* Unsigned int 32 bit value. Total number of short data packet retries 5155 * for the respective rate. 5156 */ 5157 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_SHORT = 47, 5158 /* Unsigned int 32 bit value. Total number of long data packet retries 5159 * for the respective rate. 5160 */ 5161 QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_RETRIES_LONG = 48, 5162 5163 /* Unsigned 32 bit value. This is used to indicate radio ID of the radio 5164 * statistics when %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is 5165 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used 5166 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate radio ID 5167 * of the MLO link. 5168 */ 5169 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ID = 49, 5170 /* Unsigned 32 bit value. Total number of msecs the radio is awake 5171 * accruing over time. 5172 */ 5173 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME = 50, 5174 /* Unsigned 32 bit value. Total number of msecs the radio is 5175 * transmitting accruing over time. 5176 */ 5177 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME = 51, 5178 /* Unsigned 32 bit value. Total number of msecs the radio is in active 5179 * receive accruing over time. 5180 */ 5181 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_RX_TIME = 52, 5182 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 5183 * to all scan accruing over time. 5184 */ 5185 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_SCAN = 53, 5186 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 5187 * to NAN accruing over time. 5188 */ 5189 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_NBD = 54, 5190 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 5191 * to GSCAN accruing over time. 5192 */ 5193 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_GSCAN = 55, 5194 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 5195 * to roam scan accruing over time. 5196 */ 5197 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_ROAM_SCAN = 56, 5198 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 5199 * to PNO scan accruing over time. 5200 */ 5201 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_PNO_SCAN = 57, 5202 /* Unsigned 32 bit value. Total number of msecs the radio is awake due 5203 * to Hotspot 2.0 scans and GAS exchange accruing over time. 5204 */ 5205 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_ON_TIME_HS20 = 58, 5206 /* Unsigned 32 bit value. Number of channels. */ 5207 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_CHANNELS = 59, 5208 5209 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_* could 5210 * be nested within the channel stats. 5211 */ 5212 5213 /* Type = enum wifi_channel_width. Channel width, e.g., 20, 40, 80 */ 5214 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_WIDTH = 60, 5215 /* Unsigned 32 bit value. Primary 20 MHz channel. This is used to 5216 * indicate the primary frequency of the channel when 5217 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE is 5218 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE_RADIO. This is also used inside 5219 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to indicate the frequency 5220 * on which the MLO link is operating. 5221 */ 5222 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ = 61, 5223 /* Unsigned 32 bit value. Center frequency (MHz) first segment. */ 5224 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ0 = 62, 5225 /* Unsigned 32 bit value. Center frequency (MHz) second segment. */ 5226 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_INFO_CENTER_FREQ1 = 63, 5227 5228 /* Attributes of type QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* could be 5229 * nested within the radio stats. 5230 */ 5231 5232 /* Unsigned int 32 bit value representing total number of msecs the 5233 * radio is awake on that channel accruing over time, corresponding to 5234 * the respective channel. 5235 */ 5236 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_ON_TIME = 64, 5237 /* Unsigned int 32 bit value representing total number of msecs the CCA 5238 * register is busy accruing over time corresponding to the respective 5239 * channel. 5240 */ 5241 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_CCA_BUSY_TIME = 65, 5242 5243 QCA_WLAN_VENDOR_ATTR_LL_STATS_NUM_RADIOS = 66, 5244 5245 /* Signifies the nested list of channel attributes 5246 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_* 5247 */ 5248 QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO = 67, 5249 5250 /* Signifies the nested list of peer info attributes 5251 * QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_*. For MLO connection, 5252 * this also contains %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID to 5253 * indicate on which link the peer is connected. 5254 */ 5255 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO = 68, 5256 5257 /* Signifies the nested list of rate info attributes 5258 * QCA_WLAN_VENDOR_ATTR_LL_STATS_RATE_* 5259 */ 5260 QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO_RATE_INFO = 69, 5261 5262 /* Signifies the nested list of wmm info attributes 5263 * QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_* 5264 */ 5265 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_INFO = 70, 5266 5267 /* Unsigned 8 bit value. Used by the driver; if set to 1, it indicates 5268 * that more stats, e.g., peers or radio, are to follow in the next 5269 * QCA_NL80211_VENDOR_SUBCMD_LL_STATS_*_RESULTS event. 5270 * Otherwise, it is set to 0. 5271 */ 5272 QCA_WLAN_VENDOR_ATTR_LL_STATS_RESULTS_MORE_DATA = 71, 5273 5274 /* Unsigned 64 bit value. For an MLO connection, indicates the value of 5275 * the link with the best RSSI outside 5276 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5277 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5278 */ 5279 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_AVERAGE_TSF_OFFSET = 72, 5280 5281 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 5282 * the link with the best RSSI outside 5283 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5284 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5285 */ 5286 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_DETECTED = 73, 5287 5288 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 5289 * the link with the best RSSI outside 5290 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5291 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5292 */ 5293 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_AVG_NUM_FRAMES_LEAKED = 74, 5294 5295 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 5296 * the link with the best RSSI outside 5297 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5298 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5299 */ 5300 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_LEAKY_AP_GUARD_TIME = 75, 5301 5302 /* Unsigned 32 bit value */ 5303 QCA_WLAN_VENDOR_ATTR_LL_STATS_TYPE = 76, 5304 5305 /* Unsigned 32 bit value */ 5306 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_NUM_TX_LEVELS = 77, 5307 5308 /* Number of msecs the radio spent in transmitting for each power level 5309 */ 5310 QCA_WLAN_VENDOR_ATTR_LL_STATS_RADIO_TX_TIME_PER_LEVEL = 78, 5311 5312 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 5313 * the link with the best RSSI outside 5314 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5315 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5316 */ 5317 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_SUCC_CNT = 79, 5318 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 5319 * the link with the best RSSI outside 5320 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5321 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5322 */ 5323 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_RTS_FAIL_CNT = 80, 5324 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 5325 * the link with the best RSSI outside 5326 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5327 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5328 */ 5329 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_SUCC_CNT = 81, 5330 /* Unsigned 32 bit value. For an MLO connection, indicates the value of 5331 * the link with the best RSSI outside 5332 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5333 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5334 */ 5335 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_PPDU_FAIL_CNT = 82, 5336 5337 /* Unsigned int 32 value. 5338 * Pending MSDUs corresponding to respective AC. 5339 */ 5340 QCA_WLAN_VENDOR_ATTR_LL_STATS_WMM_AC_PENDING_MSDU = 83, 5341 5342 /* u32 value representing total time in milliseconds for which the radio 5343 * is transmitting on this channel. This attribute will be nested 5344 * within QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO. 5345 */ 5346 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_TX_TIME = 84, 5347 /* u32 value representing total time in milliseconds for which the radio 5348 * is receiving all 802.11 frames intended for this device on this 5349 * channel. This attribute will be nested within 5350 * QCA_WLAN_VENDOR_ATTR_LL_STATS_CH_INFO. 5351 */ 5352 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_RX_TIME = 85, 5353 /* u8 value representing the channel load percentage. Possible values 5354 * are 0-100. 5355 */ 5356 QCA_WLAN_VENDOR_ATTR_LL_STATS_CHANNEL_LOAD_PERCENTAGE = 86, 5357 /* u8 value representing the time slicing duty cycle percentage. 5358 * Possible values are 0-100. For an MLO connection, indicates the value 5359 * of the link with the best RSSI outside 5360 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5361 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5362 */ 5363 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_INFO_TS_DUTY_CYCLE = 87, 5364 /* Unsigned 32 bit value. The number of Beacon frames which are received 5365 * from the associated AP and indicate buffered unicast frame(s) for us 5366 * in the TIM element. For an MLO connection, indicates the value of the 5367 * link with the best RSSI outside 5368 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5369 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5370 */ 5371 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON = 88, 5372 /* Unsigned 32 bit value. The total number of Beacon frames received 5373 * from the associated AP that have wrongly indicated buffered unicast 5374 * traffic in the TIM element for us. 5375 * Below scenarios will be considered as wrong TIM element beacon: 5376 * 1) The related TIM element is set in the beacon for STA but STA 5377 * doesn’t receive any unicast data after this beacon. 5378 * 2) The related TIM element is still set in the beacon for STA 5379 * after STA has indicated power save exit by QoS Null Data frame. 5380 * For an MLO connection, indicates the value of the link with the best 5381 * RSSI outside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link 5382 * specific value inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5383 */ 5384 QCA_WLAN_VENDOR_ATTR_LL_STATS_TIM_BEACON_ERR = 89, 5385 5386 /* Signed 32 bit value. It represents the noise floor calibration value. 5387 * Possible values are -120~-50 dBm. For an MLO connection, indicates 5388 * the value of the link with the best RSSI outside 5389 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK and the link specific value 5390 * inside %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK. 5391 */ 5392 QCA_WLAN_VENDOR_ATTR_LL_STATS_IFACE_NF_CAL_VAL = 90, 5393 5394 /* Attribute used for padding for 64-bit alignment */ 5395 QCA_WLAN_VENDOR_ATTR_LL_STATS_PAD = 91, 5396 5397 /* Unsigned u8 value, link ID of an MLO link. Used inside nested 5398 * attribute %QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK to represent the 5399 * link ID of the MLO link for which the statistics are embedded in the 5400 * nested attribute. Used inside nested attribute 5401 * %QCA_WLAN_VENDOR_ATTR_LL_STATS_PEER_INFO to represent the connected 5402 * link ID of the peer. 5403 */ 5404 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK_ID = 92, 5405 5406 /* A nested array of attributes for each MLO link, each containing 5407 * per-link statistics of a multi link connection. The attributes used 5408 * inside this nested attribute are defined in enum 5409 * qca_wlan_vendor_attr_ll_stats_results. 5410 * 5411 * For non-MLO connection, this attribute is not present and the 5412 * statistics will be sent outside this attribute (without nesting). 5413 * 5414 * For MLO connection, this attribute is present and also cumulative 5415 * statistics of all the links will be sent outside of this attribute 5416 * to be compatible with legacy user space. 5417 */ 5418 QCA_WLAN_VENDOR_ATTR_LL_STATS_MLO_LINK = 93, 5419 5420 /* keep last */ 5421 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST, 5422 QCA_WLAN_VENDOR_ATTR_LL_STATS_MAX = 5423 QCA_WLAN_VENDOR_ATTR_LL_STATS_AFTER_LAST - 1, 5424 }; 5425 5426 enum qca_wlan_vendor_attr_ll_stats_type { 5427 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_INVALID = 0, 5428 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_RADIO = 1, 5429 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_IFACE = 2, 5430 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_PEERS = 3, 5431 5432 /* keep last */ 5433 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST, 5434 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_MAX = 5435 QCA_NL80211_VENDOR_SUBCMD_LL_STATS_TYPE_AFTER_LAST - 1, 5436 }; 5437 5438 /** 5439 * enum qca_wlan_vendor_attr_tdls_configuration - Attributes for 5440 * TDLS configuration to the host driver. 5441 * 5442 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE: Configure the TDLS trigger 5443 * mode in the host driver. enum qca_wlan_vendor_tdls_trigger_mode 5444 * represents the different TDLS trigger modes. 5445 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD: Duration (u32) within 5446 * which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD number 5447 * of packets shall meet the criteria for implicit TDLS setup. 5448 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD: Number (u32) of Tx/Rx packets 5449 * within a duration QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD 5450 * to initiate a TDLS setup. 5451 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD: Time (u32) to initiate 5452 * a TDLS Discovery to the peer. 5453 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT: Max number (u32) of 5454 * discovery attempts to know the TDLS capability of the peer. A peer is 5455 * marked as TDLS not capable if there is no response for all the attempts. 5456 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT: Represents a duration (u32) 5457 * within which QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD 5458 * number of TX / RX frames meet the criteria for TDLS teardown. 5459 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD: Minimum number (u32) 5460 * of Tx/Rx packets within a duration 5461 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT to tear down a TDLS link. 5462 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD: Threshold 5463 * corresponding to the RSSI of the peer below which a TDLS setup is 5464 * triggered. 5465 * @QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD: Threshold 5466 * corresponding to the RSSI of the peer above which a TDLS teardown is 5467 * triggered. 5468 */ 5469 enum qca_wlan_vendor_attr_tdls_configuration { 5470 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_INVALID = 0, 5471 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE = 1, 5472 5473 /* Attributes configuring the TDLS Implicit Trigger */ 5474 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_STATS_PERIOD = 2, 5475 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TX_THRESHOLD = 3, 5476 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_DISCOVERY_PERIOD = 4, 5477 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX_DISCOVERY_ATTEMPT = 5, 5478 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_TIMEOUT = 6, 5479 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IDLE_PACKET_THRESHOLD = 7, 5480 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_SETUP_RSSI_THRESHOLD = 8, 5481 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TEARDOWN_RSSI_THRESHOLD = 9, 5482 5483 /* keep last */ 5484 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST, 5485 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_MAX = 5486 QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_AFTER_LAST - 1 5487 }; 5488 5489 /** 5490 * enum qca_wlan_vendor_tdls_trigger_mode: Represents the TDLS trigger mode in 5491 * the driver 5492 * 5493 * The following are the different values for 5494 * QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_TRIGGER_MODE. 5495 * 5496 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT: The trigger to initiate/teardown 5497 * the TDLS connection to a respective peer comes from the user space. 5498 * wpa_supplicant provides the commands TDLS_SETUP, TDLS_TEARDOWN, 5499 * TDLS_DISCOVER to do this. 5500 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT: Host driver triggers this TDLS 5501 * setup/teardown to the eligible peer once the configured criteria 5502 * (such as TX/RX threshold, RSSI) is met. The attributes 5503 * in QCA_WLAN_VENDOR_ATTR_TDLS_CONFIG_IMPLICIT_PARAMS correspond to 5504 * the different configuration criteria for the TDLS trigger from the 5505 * host driver. 5506 * @QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL: Enables the driver to trigger 5507 * the TDLS setup / teardown through the implicit mode only to the 5508 * configured MAC addresses (wpa_supplicant, with tdls_external_control=1, 5509 * configures the MAC address through TDLS_SETUP / TDLS_TEARDOWN commands). 5510 * External mode works on top of the implicit mode. Thus the host driver 5511 * is expected to configure in TDLS Implicit mode too to operate in 5512 * External mode. 5513 * Configuring External mode alone without Implicit mode is invalid. 5514 * 5515 * All the above implementations work as expected only when the host driver 5516 * advertises the capability WPA_DRIVER_FLAGS_TDLS_EXTERNAL_SETUP - representing 5517 * that the TDLS message exchange is not internal to the host driver, but 5518 * depends on wpa_supplicant to do the message exchange. 5519 */ 5520 enum qca_wlan_vendor_tdls_trigger_mode { 5521 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXPLICIT = 1 << 0, 5522 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_IMPLICIT = 1 << 1, 5523 QCA_WLAN_VENDOR_TDLS_TRIGGER_MODE_EXTERNAL = 1 << 2, 5524 }; 5525 5526 /** 5527 * enum qca_vendor_attr_sar_limits_selections - Source of SAR power limits 5528 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0: Select SAR profile #0 5529 * that is hard-coded in the Board Data File (BDF). 5530 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1: Select SAR profile #1 5531 * that is hard-coded in the Board Data File (BDF). 5532 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2: Select SAR profile #2 5533 * that is hard-coded in the Board Data File (BDF). 5534 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3: Select SAR profile #3 5535 * that is hard-coded in the Board Data File (BDF). 5536 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4: Select SAR profile #4 5537 * that is hard-coded in the Board Data File (BDF). 5538 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE: Do not select any 5539 * source of SAR power limits, thereby disabling the SAR power 5540 * limit feature. 5541 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER: Select the SAR power 5542 * limits configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 5543 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0: Select the SAR power 5544 * limits version 2.0 configured by %QCA_NL80211_VENDOR_SUBCMD_SET_SAR. 5545 * 5546 * This enumerates the valid set of values that may be supplied for 5547 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT in an instance of 5548 * the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor command or in 5549 * the response to an instance of the 5550 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 5551 */ 5552 enum qca_vendor_attr_sar_limits_selections { 5553 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF0 = 0, 5554 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF1 = 1, 5555 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF2 = 2, 5556 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF3 = 3, 5557 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_BDF4 = 4, 5558 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_NONE = 5, 5559 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER = 6, 5560 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0 = 7, 5561 }; 5562 5563 /** 5564 * enum qca_vendor_attr_sar_limits_spec_modulations - 5565 * SAR limits specification modulation 5566 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK - 5567 * CCK modulation 5568 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM - 5569 * OFDM modulation 5570 * 5571 * This enumerates the valid set of values that may be supplied for 5572 * attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION in an 5573 * instance of attribute %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC in an 5574 * instance of the %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS vendor 5575 * command or in the response to an instance of the 5576 * %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS vendor command. 5577 */ 5578 enum qca_vendor_attr_sar_limits_spec_modulations { 5579 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_CCK = 0, 5580 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION_OFDM = 1, 5581 }; 5582 5583 /** 5584 * enum qca_vendor_attr_sar_limits - Attributes for SAR power limits 5585 * 5586 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE: Optional (u32) value to 5587 * select which SAR power limit table should be used. Valid 5588 * values are enumerated in enum 5589 * %qca_vendor_attr_sar_limits_selections. The existing SAR 5590 * power limit selection is unchanged if this attribute is not 5591 * present. 5592 * 5593 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS: Optional (u32) value 5594 * which specifies the number of SAR power limit specifications 5595 * which will follow. 5596 * 5597 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC: Nested array of SAR power 5598 * limit specifications. The number of specifications is 5599 * specified by @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS. Each 5600 * specification contains a set of 5601 * QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_* attributes. A 5602 * specification is uniquely identified by the attributes 5603 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND, 5604 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN, and 5605 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION and always 5606 * contains as a payload the attribute 5607 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT, 5608 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX. 5609 * Either %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT or 5610 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX is 5611 * needed based upon the value of 5612 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE. 5613 * 5614 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND: Optional (u32) value to 5615 * indicate for which band this specification applies. Valid 5616 * values are enumerated in enum %nl80211_band (although not all 5617 * bands may be supported by a given device). If the attribute is 5618 * not supplied then the specification will be applied to all 5619 * supported bands. 5620 * 5621 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN: Optional (u32) value 5622 * to indicate for which antenna chain this specification 5623 * applies, i.e. 1 for chain 1, 2 for chain 2, etc. If the 5624 * attribute is not supplied then the specification will be 5625 * applied to all chains. 5626 * 5627 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION: Optional (u32) 5628 * value to indicate for which modulation scheme this 5629 * specification applies. Valid values are enumerated in enum 5630 * %qca_vendor_attr_sar_limits_spec_modulations. If the attribute 5631 * is not supplied then the specification will be applied to all 5632 * modulation schemes. 5633 * 5634 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT: Required (u32) 5635 * value to specify the actual power limit value in units of 0.5 5636 * dBm (i.e., a value of 11 represents 5.5 dBm). 5637 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 5638 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_USER. 5639 * 5640 * @QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX: Required (u32) 5641 * value to indicate SAR V2 indices (0 - 11) to select SAR V2 profiles. 5642 * This is required, when %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT is 5643 * %QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SELECT_V2_0. 5644 * 5645 * These attributes are used with %QCA_NL80211_VENDOR_SUBCMD_SET_SAR_LIMITS 5646 * and %QCA_NL80211_VENDOR_SUBCMD_GET_SAR_LIMITS. 5647 */ 5648 enum qca_vendor_attr_sar_limits { 5649 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_INVALID = 0, 5650 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SAR_ENABLE = 1, 5651 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_NUM_SPECS = 2, 5652 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC = 3, 5653 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_BAND = 4, 5654 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_CHAIN = 5, 5655 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_MODULATION = 6, 5656 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT = 7, 5657 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_SPEC_POWER_LIMIT_INDEX = 8, 5658 5659 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST, 5660 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_MAX = 5661 QCA_WLAN_VENDOR_ATTR_SAR_LIMITS_AFTER_LAST - 1 5662 }; 5663 5664 /** 5665 * enum qca_wlan_vendor_attr_get_wifi_info: Attributes for data used by 5666 * QCA_NL80211_VENDOR_SUBCMD_GET_WIFI_INFO sub command. 5667 * 5668 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION: In a request this attribute 5669 * should be set to any U8 value to indicate that the driver version 5670 * should be returned. When enabled in this manner, in a response this 5671 * attribute will contain a string representation of the driver version. 5672 * 5673 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION: In a request this attribute 5674 * should be set to any U8 value to indicate that the firmware version 5675 * should be returned. When enabled in this manner, in a response this 5676 * attribute will contain a string representation of the firmware version. 5677 * 5678 * @QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX: In a request this attribute 5679 * should be set to any U32 value to indicate that the current radio 5680 * index should be returned. When enabled in this manner, in a response 5681 * this attribute will contain a U32 radio index value. 5682 * 5683 */ 5684 enum qca_wlan_vendor_attr_get_wifi_info { 5685 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_INVALID = 0, 5686 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_DRIVER_VERSION = 1, 5687 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_FIRMWARE_VERSION = 2, 5688 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_RADIO_INDEX = 3, 5689 5690 /* keep last */ 5691 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST, 5692 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_MAX = 5693 QCA_WLAN_VENDOR_ATTR_WIFI_INFO_GET_AFTER_LAST - 1, 5694 }; 5695 5696 /* 5697 * enum qca_wlan_vendor_attr_wifi_logger_start: Attributes for data used by 5698 * QCA_NL80211_VENDOR_SUBCMD_WIFI_LOGGER_START sub command. 5699 */ 5700 enum qca_wlan_vendor_attr_wifi_logger_start { 5701 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_INVALID = 0, 5702 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_RING_ID = 1, 5703 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_VERBOSE_LEVEL = 2, 5704 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_FLAGS = 3, 5705 5706 /* keep last */ 5707 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST, 5708 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_GET_MAX = 5709 QCA_WLAN_VENDOR_ATTR_WIFI_LOGGER_START_AFTER_LAST - 1, 5710 }; 5711 5712 enum qca_wlan_vendor_attr_logger_results { 5713 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_INVALID = 0, 5714 5715 /* Unsigned 32-bit value; must match the request Id supplied by 5716 * Wi-Fi HAL in the corresponding subcmd NL msg. 5717 */ 5718 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_REQUEST_ID = 1, 5719 5720 /* Unsigned 32-bit value; used to indicate the size of memory 5721 * dump to be allocated. 5722 */ 5723 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MEMDUMP_SIZE = 2, 5724 5725 /* keep last */ 5726 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST, 5727 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_MAX = 5728 QCA_WLAN_VENDOR_ATTR_LOGGER_RESULTS_AFTER_LAST - 1, 5729 }; 5730 5731 /** 5732 * enum qca_scan_freq_list_type: Frequency list types 5733 * 5734 * @QCA_PREFERRED_SCAN_FREQ_LIST: The driver shall use the scan frequency list 5735 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as 5736 * a preferred frequency list for roaming. 5737 * 5738 * @QCA_SPECIFIC_SCAN_FREQ_LIST: The driver shall use the frequency list 5739 * specified with attribute QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST as 5740 * a specific frequency list for roaming. 5741 */ 5742 enum qca_scan_freq_list_type { 5743 QCA_PREFERRED_SCAN_FREQ_LIST = 1, 5744 QCA_SPECIFIC_SCAN_FREQ_LIST = 2, 5745 }; 5746 5747 /** 5748 * enum qca_vendor_attr_scan_freq_list_scheme: Frequency list scheme 5749 * 5750 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST: Nested attribute of u32 values 5751 * List of frequencies in MHz to be considered for a roam scan. 5752 * 5753 * @QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE: Unsigned 32-bit value. 5754 * Type of frequency list scheme being configured/gotten as defined by the 5755 * enum qca_scan_freq_list_type. 5756 */ 5757 enum qca_vendor_attr_scan_freq_list_scheme { 5758 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST = 1, 5759 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_TYPE = 2, 5760 5761 /* keep last */ 5762 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST, 5763 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_MAX = 5764 QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST_SCHEME_AFTER_LAST - 1, 5765 }; 5766 5767 /** 5768 * enum qca_roam_scan_scheme: Scan scheme 5769 * 5770 * @QCA_ROAM_SCAN_SCHEME_NO_SCAN: No frequencies specified to scan. 5771 * Indicates the driver to not scan on a Roam Trigger scenario, but 5772 * disconnect. E.g., on a BTM request from the AP the driver/firmware shall 5773 * disconnect from the current connected AP by notifying a failure 5774 * code in the BTM response. 5775 * 5776 * @QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN: Indicates the driver/firmware to 5777 * trigger partial frequency scans. These frequencies are the ones learned 5778 * or maintained by the driver based on the probability of finding the 5779 * BSSIDs in the ESS for which the roaming is triggered. 5780 * 5781 * @QCA_ROAM_SCAN_SCHEME_FULL_SCAN: Indicates the driver/firmware to 5782 * trigger the scan on all the valid frequencies to find better 5783 * candidates to roam. 5784 */ 5785 enum qca_roam_scan_scheme { 5786 QCA_ROAM_SCAN_SCHEME_NO_SCAN = 0, 5787 QCA_ROAM_SCAN_SCHEME_PARTIAL_SCAN = 1, 5788 QCA_ROAM_SCAN_SCHEME_FULL_SCAN = 2, 5789 }; 5790 5791 /* 5792 * enum qca_vendor_roam_triggers: Bitmap of roaming triggers 5793 * 5794 * @QCA_ROAM_TRIGGER_REASON_PER: Set if the roam has to be triggered based on 5795 * a bad packet error rates (PER). 5796 * @QCA_ROAM_TRIGGER_REASON_BEACON_MISS: Set if the roam has to be triggered 5797 * based on beacon misses from the connected AP. 5798 * @QCA_ROAM_TRIGGER_REASON_POOR_RSSI: Set if the roam has to be triggered 5799 * due to poor RSSI of the connected AP. 5800 * @QCA_ROAM_TRIGGER_REASON_BETTER_RSSI: Set if the roam has to be triggered 5801 * upon finding a BSSID with a better RSSI than the connected BSSID. 5802 * Also, set if the roam has to be triggered due to the high RSSI of the 5803 * current connected AP (better than 5804 * QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET). Here the RSSI of 5805 * the current BSSID need not be poor. 5806 * @QCA_ROAM_TRIGGER_REASON_PERIODIC: Set if the roam has to be triggered 5807 * by triggering a periodic scan to find a better AP to roam. 5808 * @QCA_ROAM_TRIGGER_REASON_DENSE: Set if the roam has to be triggered 5809 * when the connected channel environment is too noisy/congested. 5810 * @QCA_ROAM_TRIGGER_REASON_BTM: Set if the roam has to be triggered 5811 * when BTM Request frame is received from the connected AP. 5812 * @QCA_ROAM_TRIGGER_REASON_BSS_LOAD: Set if the roam has to be triggered 5813 * when the channel utilization is goes above the configured threshold. 5814 * @QCA_ROAM_TRIGGER_REASON_USER_TRIGGER: Set if the roam has to be triggered 5815 * based on the request from the user (space). 5816 * @QCA_ROAM_TRIGGER_REASON_DEAUTH: Set if the roam has to be triggered when 5817 * device receives Deauthentication/Disassociation frame from connected AP. 5818 * @QCA_ROAM_TRIGGER_REASON_IDLE: Set if the roam has to be triggered when the 5819 * device is in idle state (no TX/RX) and suspend mode, if the current RSSI 5820 * is determined to be a poor one. 5821 * @QCA_ROAM_TRIGGER_REASON_TX_FAILURES: Set if the roam has to be triggered 5822 * based on continuous TX Data frame failures to the connected AP. 5823 * @QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN: Set if the roam has to be triggered 5824 * based on the scan results obtained from an external scan (not triggered 5825 * to aim roaming). 5826 * 5827 * Set the corresponding roam trigger reason bit to consider it for roam 5828 * trigger. 5829 * Userspace can set multiple bits and send to the driver. The driver shall 5830 * consider all of them to trigger/initiate a roam scan. 5831 */ 5832 enum qca_vendor_roam_triggers { 5833 QCA_ROAM_TRIGGER_REASON_PER = 1 << 0, 5834 QCA_ROAM_TRIGGER_REASON_BEACON_MISS = 1 << 1, 5835 QCA_ROAM_TRIGGER_REASON_POOR_RSSI = 1 << 2, 5836 QCA_ROAM_TRIGGER_REASON_BETTER_RSSI = 1 << 3, 5837 QCA_ROAM_TRIGGER_REASON_PERIODIC = 1 << 4, 5838 QCA_ROAM_TRIGGER_REASON_DENSE = 1 << 5, 5839 QCA_ROAM_TRIGGER_REASON_BTM = 1 << 6, 5840 QCA_ROAM_TRIGGER_REASON_BSS_LOAD = 1 << 7, 5841 QCA_ROAM_TRIGGER_REASON_USER_TRIGGER = 1 << 8, 5842 QCA_ROAM_TRIGGER_REASON_DEAUTH = 1 << 9, 5843 QCA_ROAM_TRIGGER_REASON_IDLE = 1 << 10, 5844 QCA_ROAM_TRIGGER_REASON_TX_FAILURES = 1 << 11, 5845 QCA_ROAM_TRIGGER_REASON_EXTERNAL_SCAN = 1 << 12, 5846 }; 5847 5848 /* 5849 * enum qca_vendor_roam_fail_reasons: Defines the various roam 5850 * fail reasons. This enum value is used in 5851 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON attribute. 5852 * 5853 * @QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED: Roam module in the firmware is not 5854 * able to trigger the scan. 5855 * @QCA_ROAM_FAIL_REASON_NO_AP_FOUND: No roamable APs found during roam scan. 5856 * @QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND: No candidate APs found during roam 5857 * scan. 5858 * @QCA_ROAM_FAIL_REASON_HOST: Roam fail due to disconnect issued from host. 5859 * @QCA_ROAM_FAIL_REASON_AUTH_SEND: Unable to send Authentication frame. 5860 * @QCA_ROAM_FAIL_REASON_AUTH_RECV: Received Authentication frame with error 5861 * status code. 5862 * @QCA_ROAM_FAIL_REASON_NO_AUTH_RESP: Authentication frame not received. 5863 * @QCA_ROAM_FAIL_REASON_REASSOC_SEND: Unable to send Reassociation Request 5864 * frame. 5865 * @QCA_ROAM_FAIL_REASON_REASSOC_RECV: Received Reassociation Response frame 5866 * with error status code. 5867 * @QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP: Reassociation Response frame not 5868 * received. 5869 * @QCA_ROAM_FAIL_REASON_SCAN_FAIL: Scan module not able to start scan. 5870 * @QCA_ROAM_FAIL_REASON_AUTH_NO_ACK: No ACK is received for Authentication 5871 * frame. 5872 * @QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP: Authentication frame is dropped 5873 * internally before transmission. 5874 * @QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK: No ACK is received for Reassociation 5875 * Request frame. 5876 * @QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP: Reassociation Request frame is 5877 * dropped internally. 5878 * @QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT: EAPOL-Key M1 is not received and 5879 * times out. 5880 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND: Unable to send EAPOL-Key M2 frame. 5881 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP: EAPOL-Key M2 frame dropped 5882 * internally. 5883 * @QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK: No ACK is received for EAPOL-Key 5884 * M2 frame. 5885 * @QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT: EAPOL-Key M3 frame is not received. 5886 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND: Unable to send EAPOL-Key M4 frame. 5887 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP: EAPOL-Key M4 frame dropped 5888 * internally. 5889 * @QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK: No ACK is received for EAPOL-Key M4 5890 * frame. 5891 * @QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS: Roam scan is not 5892 * started for final beacon miss case. 5893 * @QCA_ROAM_FAIL_REASON_DISCONNECT: Deauthentication or Disassociation frame 5894 * received from the AP during roaming handoff. 5895 * @QCA_ROAM_FAIL_REASON_RESUME_ABORT: Firmware roams to the AP when the Apps 5896 * or host is suspended and gives the indication of the last roamed AP only 5897 * when the Apps is resumed. If the Apps is resumed while the roaming is in 5898 * progress, this ongoing roaming is aborted and the last roamed AP is 5899 * indicated to host. 5900 * @QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID: WPA3-SAE invalid PMKID. 5901 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT: WPA3-SAE pre-authentication times 5902 * out. 5903 * @QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL: WPA3-SAE pre-authentication fails. 5904 * @QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK: Roam scan did not happen since the 5905 * current network conditions are fine. 5906 */ 5907 enum qca_vendor_roam_fail_reasons { 5908 QCA_ROAM_FAIL_REASON_NONE = 0, 5909 QCA_ROAM_FAIL_REASON_SCAN_NOT_ALLOWED = 1, 5910 QCA_ROAM_FAIL_REASON_NO_AP_FOUND = 2, 5911 QCA_ROAM_FAIL_REASON_NO_CAND_AP_FOUND = 3, 5912 QCA_ROAM_FAIL_REASON_HOST = 4, 5913 QCA_ROAM_FAIL_REASON_AUTH_SEND = 5, 5914 QCA_ROAM_FAIL_REASON_AUTH_RECV = 6, 5915 QCA_ROAM_FAIL_REASON_NO_AUTH_RESP = 7, 5916 QCA_ROAM_FAIL_REASON_REASSOC_SEND = 8, 5917 QCA_ROAM_FAIL_REASON_REASSOC_RECV = 9, 5918 QCA_ROAM_FAIL_REASON_NO_REASSOC_RESP = 10, 5919 QCA_ROAM_FAIL_REASON_SCAN_FAIL = 11, 5920 QCA_ROAM_FAIL_REASON_AUTH_NO_ACK = 12, 5921 QCA_ROAM_FAIL_REASON_AUTH_INTERNAL_DROP = 13, 5922 QCA_ROAM_FAIL_REASON_REASSOC_NO_ACK = 14, 5923 QCA_ROAM_FAIL_REASON_REASSOC_INTERNAL_DROP = 15, 5924 QCA_ROAM_FAIL_REASON_EAPOL_M1_TIMEOUT = 16, 5925 QCA_ROAM_FAIL_REASON_EAPOL_M2_SEND = 17, 5926 QCA_ROAM_FAIL_REASON_EAPOL_M2_INTERNAL_DROP = 18, 5927 QCA_ROAM_FAIL_REASON_EAPOL_M2_NO_ACK = 19, 5928 QCA_ROAM_FAIL_REASON_EAPOL_M3_TIMEOUT = 20, 5929 QCA_ROAM_FAIL_REASON_EAPOL_M4_SEND = 21, 5930 QCA_ROAM_FAIL_REASON_EAPOL_M4_INTERNAL_DROP = 22, 5931 QCA_ROAM_FAIL_REASON_EAPOL_M4_NO_ACK = 23, 5932 QCA_ROAM_FAIL_REASON_NO_SCAN_FOR_FINAL_BEACON_MISS = 24, 5933 QCA_ROAM_FAIL_REASON_DISCONNECT = 25, 5934 QCA_ROAM_FAIL_REASON_RESUME_ABORT = 26, 5935 QCA_ROAM_FAIL_REASON_SAE_INVALID_PMKID = 27, 5936 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_TIMEOUT = 28, 5937 QCA_ROAM_FAIL_REASON_SAE_PREAUTH_FAIL = 29, 5938 QCA_ROAM_FAIL_REASON_CURR_AP_STILL_OK = 30, 5939 }; 5940 5941 /* 5942 * enum qca_vendor_roam_invoke_fail_reasons: Defines the various roam 5943 * invoke fail reasons. This enum value is used in 5944 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON attribute. 5945 * 5946 * @QCA_ROAM_INVOKE_STATUS_IFACE_INVALID: Invalid interface ID is passed 5947 * in roam invoke command. 5948 * @QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE: Roam offload in firmware is not 5949 * enabled. 5950 * @QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID: Connected AP profile SSID 5951 * length is invalid. 5952 * @QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW: Firmware internal roaming is already 5953 * in progress. 5954 * @QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP: Host sends the Beacon/Probe Response 5955 * of the AP in the roam invoke command to firmware. This reason is sent by the 5956 * firmware when the given AP is configured to be ignored or SSID/security 5957 * does not match. 5958 * @QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL: Roam handoff failed because of 5959 * firmware internal reasons. 5960 * @QCA_ROAM_INVOKE_STATUS_DISALLOW: Roam invoke trigger is not enabled. 5961 * @QCA_ROAM_INVOKE_STATUS_SCAN_FAIL: Scan start fail for roam invoke. 5962 * @QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL: Roam handoff start fail. 5963 * @QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS: Roam invoke parameters are invalid. 5964 * @QCA_ROAM_INVOKE_STATUS_NO_CAND_AP: No candidate AP found to roam to. 5965 * @QCA_ROAM_INVOKE_STATUS_ROAM_FAIL: Roam handoff failed. 5966 */ 5967 enum qca_vendor_roam_invoke_fail_reasons { 5968 QCA_ROAM_INVOKE_STATUS_NONE = 0, 5969 QCA_ROAM_INVOKE_STATUS_IFACE_INVALID = 1, 5970 QCA_ROAM_INVOKE_STATUS_OFFLOAD_DISABLE = 2, 5971 QCA_ROAM_INVOKE_STATUS_AP_SSID_LENGTH_INVALID = 3, 5972 QCA_ROAM_INVOKE_STATUS_ROAM_DISALLOW = 4, 5973 QCA_ROAM_INVOKE_STATUS_NON_ROAMABLE_AP = 5, 5974 QCA_ROAM_INVOKE_STATUS_ROAM_INTERNAL_FAIL = 6, 5975 QCA_ROAM_INVOKE_STATUS_DISALLOW = 7, 5976 QCA_ROAM_INVOKE_STATUS_SCAN_FAIL = 8, 5977 QCA_ROAM_INVOKE_STATUS_START_ROAM_FAIL = 9, 5978 QCA_ROAM_INVOKE_STATUS_INVALID_PARAMS = 10, 5979 QCA_ROAM_INVOKE_STATUS_NO_CAND_AP = 11, 5980 QCA_ROAM_INVOKE_STATUS_ROAM_FAIL = 12, 5981 5982 }; 5983 5984 /** 5985 * enum qca_vendor_attr_roam_candidate_selection_criteria: 5986 * 5987 * Each attribute carries a weightage in percentage (%). 5988 * 5989 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI: Unsigned 8-bit value. 5990 * Represents the weightage to be given for the RSSI selection 5991 * criteria among other parameters. 5992 * 5993 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE: Unsigned 8-bit value. 5994 * Represents the weightage to be given for the rate selection 5995 * criteria among other parameters. 5996 * 5997 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW: Unsigned 8-bit value. 5998 * Represents the weightage to be given for the band width selection 5999 * criteria among other parameters. 6000 * 6001 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND: Unsigned 8-bit value. 6002 * Represents the weightage to be given for the band selection 6003 * criteria among other parameters. 6004 * 6005 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS: Unsigned 8-bit value. 6006 * Represents the weightage to be given for the NSS selection 6007 * criteria among other parameters. 6008 * 6009 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION: Unsigned 8-bit value. 6010 * Represents the weightage to be given for the channel congestion 6011 * selection criteria among other parameters. 6012 * 6013 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING: Unsigned 8-bit value. 6014 * Represents the weightage to be given for the beamforming selection 6015 * criteria among other parameters. 6016 * 6017 * @QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN: Unsigned 8-bit value. 6018 * Represents the weightage to be given for the OCE selection 6019 * criteria among other parameters. 6020 */ 6021 enum qca_vendor_attr_roam_candidate_selection_criteria { 6022 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_RSSI = 1, 6023 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE = 2, 6024 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BW = 3, 6025 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BAND = 4, 6026 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_NSS = 5, 6027 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_CHAN_CONGESTION = 6, 6028 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_BEAMFORMING = 7, 6029 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_SCORE_OCE_WAN = 8, 6030 6031 /* keep last */ 6032 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST, 6033 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_MAX = 6034 QCA_ATTR_ROAM_CAND_SEL_CRITERIA_RATE_AFTER_LAST - 1, 6035 }; 6036 6037 /** 6038 * enum qca_vendor_attr_roam_control - Attributes to carry roam configuration 6039 * The following attributes are used to set/get/clear the respective 6040 * configurations to/from the driver. 6041 * For the get, the attribute for the configuration to be queried shall 6042 * carry any of its acceptable values to the driver. In return, the driver 6043 * shall send the configured values within the same attribute to the user 6044 * space. 6045 * 6046 * @QCA_ATTR_ROAM_CONTROL_ENABLE: Unsigned 8-bit value. 6047 * Signifies to enable/disable roam control in driver. 6048 * 1-enable, 0-disable 6049 * Enable: Mandates the driver to do the further roams using the 6050 * configuration parameters set through 6051 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. 6052 * Disable: Disables the driver/firmware roaming triggered through 6053 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET. Further roaming is 6054 * expected to continue with the default configurations. 6055 * 6056 * @QCA_ATTR_ROAM_CONTROL_STATUS: Unsigned 8-bit value. 6057 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET. 6058 * Roam control status is obtained through this attribute. 6059 * 6060 * @QCA_ATTR_ROAM_CONTROL_CLEAR_ALL: Flag attribute to indicate the 6061 * complete config set through QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET 6062 * is to be cleared in the driver. 6063 * This is used along with QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR 6064 * and shall be ignored if used with other sub commands. 6065 * If this attribute is specified along with subcmd 6066 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR, the driver shall ignore 6067 * all other attributes, if there are any. 6068 * If this attribute is not specified when the subcmd 6069 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR is sent, the driver shall 6070 * clear the data corresponding to the attributes specified. 6071 * 6072 * @QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME: Nested attribute to carry the 6073 * list of frequencies and its type, represented by 6074 * enum qca_vendor_attr_scan_freq_list_scheme. 6075 * Frequency list and its type are mandatory for this attribute to set 6076 * the frequencies. 6077 * Frequency type is mandatory for this attribute to get the frequencies 6078 * and the frequency list is obtained through 6079 * QCA_ATTR_ROAM_CONTROL_SCAN_FREQ_LIST. 6080 * Frequency list type is mandatory for this attribute to clear the 6081 * frequencies. 6082 * 6083 * @QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD: Unsigned 32-bit value. 6084 * Carries the value of scan period in seconds to set. 6085 * The value of scan period is obtained with the same attribute for get. 6086 * Clears the scan period in the driver when specified with clear command. 6087 * Scan period is the idle time in seconds between each subsequent 6088 * channel scans. 6089 * 6090 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD: Unsigned 32-bit value. 6091 * Carries the value of full scan period in seconds to set. 6092 * The value of full scan period is obtained with the same attribute for 6093 * get. 6094 * Clears the full scan period in the driver when specified with clear 6095 * command. Full scan period is the idle period in seconds between two 6096 * successive full channel roam scans. 6097 * 6098 * @QCA_ATTR_ROAM_CONTROL_TRIGGERS: Unsigned 32-bit value. 6099 * Carries a bitmap of the roam triggers specified in 6100 * enum qca_vendor_roam_triggers. 6101 * The driver shall enable roaming by enabling corresponding roam triggers 6102 * based on the trigger bits sent with this attribute. 6103 * If this attribute is not configured, the driver shall proceed with 6104 * default behavior. 6105 * The bitmap configured is obtained with the same attribute for get. 6106 * Clears the bitmap configured in driver when specified with clear 6107 * command. 6108 * 6109 * @QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA: Nested attribute signifying the 6110 * weightage in percentage (%) to be given for each selection criteria. 6111 * Different roam candidate selection criteria are represented by 6112 * enum qca_vendor_attr_roam_candidate_selection_criteria. 6113 * The driver shall select the roam candidate based on corresponding 6114 * candidate selection scores sent. 6115 * 6116 * An empty nested attribute is used to indicate that no specific 6117 * preference score/criteria is configured (i.e., to disable this mechanism 6118 * in the set case and to show that the mechanism is disabled in the get 6119 * case). 6120 * 6121 * Userspace can send multiple attributes out of this enum to the driver. 6122 * Since this attribute represents the weight/percentage of preference for 6123 * the respective selection criteria, it is preferred to configure 100% 6124 * total weightage. The value in each attribute or cumulative weight of the 6125 * values in all the nested attributes should not exceed 100%. The driver 6126 * shall reject such configuration. 6127 * 6128 * If the weights configured through this attribute are less than 100%, 6129 * the driver shall honor the weights (x%) passed for the corresponding 6130 * selection criteria and choose/distribute rest of the weight (100-x)% 6131 * for the other selection criteria, based on its internal logic. 6132 * 6133 * The selection criteria configured is obtained with the same 6134 * attribute for get. 6135 * 6136 * Clears the selection criteria configured in the driver when specified 6137 * with clear command. 6138 * 6139 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME: Unsigned 32-bit value. 6140 * Represents value of the scan frequency scheme from enum 6141 * qca_roam_scan_scheme. 6142 * It's an optional attribute. If this attribute is not configured, the 6143 * driver shall proceed with default behavior. 6144 * 6145 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD: Signed 32-bit value in dBm, 6146 * signifying the RSSI threshold of the current connected AP, indicating 6147 * the driver to trigger roam only when the current connected AP's RSSI 6148 * is less than this threshold. The RSSI threshold through this attribute 6149 * is only used by the STA when the connected AP asks it to roam through 6150 * a BTM request. Based on this threshold, the STA can either honor or 6151 * reject the AP's request to roam, and notify the status to the AP in a 6152 * BTM response. 6153 * 6154 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD: Signed 32-bit value in dBm, 6155 * signifying the RSSI threshold of the candidate AP, indicating 6156 * the driver to trigger roam only to the candidate AP with RSSI 6157 * better than this threshold. If RSSI thresholds for candidate APs found 6158 * in the 2.4 GHz, 5 GHz, and 6 GHz bands are configured separately using 6159 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ, 6160 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ, and/or 6161 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ, those values will 6162 * take precedence over the value configured using the 6163 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute. 6164 * 6165 * @QCA_ATTR_ROAM_CONTROL_USER_REASON: Unsigned 32-bit value. Represents the 6166 * user defined reason code to be sent to the AP in response to AP's 6167 * request to trigger the roam if the roaming cannot be triggered. 6168 * Applies to all the scenarios of AP assisted roaming (e.g., BTM). 6169 * 6170 * @QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS: Unsigned 32-bit value. 6171 * Carries a bitmap of the roam triggers specified in 6172 * enum qca_vendor_roam_triggers. 6173 * Represents the roam triggers for which the specific scan scheme from 6174 * enum qca_roam_scan_scheme has to be applied. 6175 * It's an optional attribute. If this attribute is not configured, but 6176 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is specified, the scan scheme 6177 * specified through QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME is applicable for 6178 * all the roams. 6179 * If both QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME and 6180 * QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS are not specified, the 6181 * driver shall proceed with the default behavior. 6182 * 6183 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ: Signed 32-bit value 6184 * in dBm, signifying the RSSI threshold of the candidate AP found in the 6185 * 2.4 GHz band. The driver/firmware shall trigger roaming to the candidate 6186 * AP found in the 2.4 GHz band only if its RSSI value is better than this 6187 * threshold. Optional attribute. If this attribute is not included, the 6188 * threshold value specified by the 6189 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 6190 * 6191 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ: Signed 32-bit value in 6192 * dBm, signifying the RSSI threshold of the candidate AP found in the 5 6193 * GHz band. The driver/firmware shall trigger roaming to the candidate AP 6194 * found in the 5 GHz band only if its RSSI value is better than this 6195 * threshold. Optional attribute. If this attribute is not included, the 6196 * threshold value specified by tge 6197 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 6198 * 6199 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ: Signed 32-bit value in 6200 * dBm, signifying the RSSI threshold of the candidate AP found in the 6 6201 * GHz band. The driver/firmware shall trigger roaming to the candidate AP 6202 * found in the 6 GHz band only if its RSSI value is better than this 6203 * threshold. Optional attribute. If this attribute is not included, the 6204 * threshold value specified by the 6205 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD attribute shall be used. 6206 * 6207 * @QCA_ATTR_ROAM_CONTROL_BAND_MASK: Unsigned 32-bit value. 6208 * Carries bitmask value of bits from &enum qca_set_band and represents 6209 * all the bands in which roaming is allowed. The configuration is valid 6210 * until next disconnection. If this attribute is not present, the 6211 * existing configuration shall be used. By default, roaming is allowed on 6212 * all bands supported by the local device. When the value is set to 6213 * %QCA_SETBAND_AUTO, all supported bands shall be enabled. 6214 * 6215 * @QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME: u16 value in milliseconds. 6216 * Optional parameter. Scan dwell time for active channels in the 2.4/5 GHz 6217 * bands. If this attribute is not configured, the driver shall proceed 6218 * with default behavior. 6219 * 6220 * @QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME: u16 value in milliseconds. 6221 * Optional parameter. Scan dwell time for passive channels in the 5 GHz 6222 * band. If this attribute is not configured, the driver shall proceed with 6223 * default behavior. 6224 * 6225 * @QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME: u16 value in milliseconds. 6226 * Optional parameter. The minimum duration to stay on the connected AP 6227 * channel during the channel scanning. If this attribute is not 6228 * configured, the driver shall proceed with default behavior. 6229 * 6230 * @QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME: u16 value in milliseconds. 6231 * Optional parameter. The maximum duration for which the radio can scan 6232 * foreign channels consecutively without coming back to home channel. If 6233 * this attribute is not configured, the driver shall proceed with default 6234 * behavior. 6235 * 6236 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME: u16 value in milliseconds. 6237 * Optional parameter. Scan dwell time for 6G Preferred Scanning Channels. 6238 * If this attribute is not configured, the driver shall proceed with 6239 * default behavior. 6240 * 6241 * @QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME: u16 value in milliseconds. 6242 * Optional parameter. Scan dwell time for 6G Non Preferred Scanning 6243 * Channels. If this attribute is not configured, the driver shall proceed 6244 * with default behavior. 6245 * 6246 * @QCA_ATTR_ROAM_CONTROL_RX_LINKSPEED_THRESHOLD: u16 value in Mbps. 6247 * Optional parameter. RX link speed threshold to disable roaming. 6248 * If the current RX link speed is above the threshold, roaming is not 6249 * needed. If this attribute is not configured, or if it is set to 0, the 6250 * driver will not consider the RX link speed in the roaming decision. 6251 * 6252 * @QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX: u16 value in milliseconds. 6253 * Optional parameter. This configuration delays hand-off by the 6254 * specified duration to receive pending RX frames from the current BSS. 6255 * 6256 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ: Unsigned 8-bit 6257 * value. 6258 * During the roam scan, if there are no desired APs found in the partial 6259 * frequency list, an immediate full scan on all the supported frequencies 6260 * is initiated as a fallback. This flag controls the frequency list 6261 * creation for the full scan on the following lines. 6262 * 1 - Full scan to exclude the frequencies that were already scanned by 6263 * the previous partial scan. 6264 * 0 - Full scan to include all the supported frequencies irrespective of 6265 * the ones part of the earlier partial scan. 6266 * If this flag is not specified, a full scan shall include all the 6267 * supported frequencies irrespective of the ones part of an earlier 6268 * partial scan. 6269 * 6270 * @QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY: Unsigned 8-bit 6271 * value. 6272 * During the roam scan, if there are no desired APs found in the partial 6273 * frequency list, an immediate full scan on all the supported frequencies 6274 * is initiated as a fallback. This full scan would add the 2.4/5/6 GHz 6275 * frequencies, including all PSC frequencies by default. This attribute 6276 * controls the inclusion of the 6 GHz PSC frequencies for the full scan 6277 * as following. 6278 * 1 - Full scan to include the supported 6 GHz PSC frequencies only on the 6279 * prior discovery of any 6 GHz frequency support in the environment. 6280 * This discovery can happen through a prior RNR, 11k neighbor 6281 * request, 11v BTM request, host scan, etc. 6282 * 0 - Default behavior. Full scan to include all the supported 6 GHz 6283 * PSC frequencies regardless of whether 6 GHz BSSs have been 6284 * discovered. 6285 * The default behavior if this flag is not specified is to include all 6286 * the supported 6 GHz PSC frequencies in the roam full scan. 6287 * 6288 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD: Signed 32-bit value 6289 * in dBm. 6290 * This attribute configures the low RSSI threshold of the connected AP, 6291 * based on which the STA can start looking for the neighbor APs and 6292 * trigger the roam eventually. STA keeps monitoring for the connected 6293 * AP's RSSI and will start scanning for neighboring APs once the RSSI 6294 * falls below this threshold. This attribute differs from 6295 * QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD where the configured 6296 * threshold is used only when the connected AP asks the STA to roam 6297 * through a BTM request. 6298 * 6299 * @QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF: Unsigned 8-bit value. 6300 * This attribute signifies the RSSI difference threshold between the 6301 * connected AP and the new candidate AP. This parameter influences the 6302 * STA to roam to the new candidate only when its RSSI is better than 6303 * the current connected one by this threshold. 6304 * This parameter configures the roam behavior among the 2.4/5/6 GHz bands. 6305 * 6306 * @QCA_ATTR_ROAM_CONTROL_6GHZ_CANDIDATE_ROAM_RSSI_DIFF: Unsigned 8-bit value. 6307 * This attribute signifies the RSSI difference threshold between the 6308 * connected AP in the 2.4/5 GHz bands and the new candidate AP in the 6309 * 6 GHz band. This parameter influences the STA to roam to the new 6 GHz 6310 * candidate only when its RSSI is better than the current connected one 6311 * by this threshold. This threshold overrides 6312 * QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF for the roam from 2.4/5 6313 * GHz to 6 GHz alone with the intention to have a different value to roam 6314 * to the preferred 6 GHz band. 6315 * 6316 * @QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET: Unsigned 8-bit value. 6317 * This attribute signifies the RSSI offset that is added to low RSSI 6318 * threshold (QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD) to imply 6319 * high RSSI threshold. STA is expected to trigger roam if the current 6320 * connected AP's RSSI gets above this high RSSI threshold. STA's roam 6321 * attempt on high RSSI threshold aims to find candidates from other 6322 * better Wi-Fi bands. E.g., STA would initially connect to a 2.4 GHz BSSID 6323 * and would migrate to 5/6 GHz when it comes closer to the AP (high RSSI 6324 * for 2.4 GHz BSS). 6325 */ 6326 enum qca_vendor_attr_roam_control { 6327 QCA_ATTR_ROAM_CONTROL_ENABLE = 1, 6328 QCA_ATTR_ROAM_CONTROL_STATUS = 2, 6329 QCA_ATTR_ROAM_CONTROL_CLEAR_ALL = 3, 6330 QCA_ATTR_ROAM_CONTROL_FREQ_LIST_SCHEME = 4, 6331 QCA_ATTR_ROAM_CONTROL_SCAN_PERIOD = 5, 6332 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_PERIOD = 6, 6333 QCA_ATTR_ROAM_CONTROL_TRIGGERS = 7, 6334 QCA_ATTR_ROAM_CONTROL_SELECTION_CRITERIA = 8, 6335 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME = 9, 6336 QCA_ATTR_ROAM_CONTROL_CONNECTED_RSSI_THRESHOLD = 10, 6337 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD = 11, 6338 QCA_ATTR_ROAM_CONTROL_USER_REASON = 12, 6339 QCA_ATTR_ROAM_CONTROL_SCAN_SCHEME_TRIGGERS = 13, 6340 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_2P4GHZ = 14, 6341 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_5GHZ = 15, 6342 QCA_ATTR_ROAM_CONTROL_CANDIDATE_RSSI_THRESHOLD_6GHZ = 16, 6343 QCA_ATTR_ROAM_CONTROL_BAND_MASK = 17, 6344 QCA_ATTR_ROAM_CONTROL_ACTIVE_CH_DWELL_TIME = 18, 6345 QCA_ATTR_ROAM_CONTROL_PASSIVE_CH_DWELL_TIME = 19, 6346 QCA_ATTR_ROAM_CONTROL_HOME_CHANNEL_TIME = 20, 6347 QCA_ATTR_ROAM_CONTROL_MAXIMUM_AWAY_TIME = 21, 6348 QCA_ATTR_ROAM_CONTROL_SCAN_6G_PSC_DWELL_TIME = 22, 6349 QCA_ATTR_ROAM_CONTROL_SCAN_6G_NON_PSC_DWELL_TIME = 23, 6350 QCA_ATTR_ROAM_CONTROL_LINKSPEED_THRESHOLD = 24, 6351 QCA_ATTR_ROAM_CONTROL_HO_DELAY_FOR_RX = 25, 6352 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_NO_REUSE_PARTIAL_SCAN_FREQ = 26, 6353 QCA_ATTR_ROAM_CONTROL_FULL_SCAN_6GHZ_ONLY_ON_PRIOR_DISCOVERY = 27, 6354 QCA_ATTR_ROAM_CONTROL_CONNECTED_LOW_RSSI_THRESHOLD = 28, 6355 QCA_ATTR_ROAM_CONTROL_CANDIDATE_ROAM_RSSI_DIFF = 29, 6356 QCA_ATTR_ROAM_CONTROL_6GHZ_CANDIDATE_ROAM_RSSI_DIFF = 30, 6357 QCA_ATTR_ROAM_CONTROL_CONNECTED_HIGH_RSSI_OFFSET = 31, 6358 6359 /* keep last */ 6360 QCA_ATTR_ROAM_CONTROL_AFTER_LAST, 6361 QCA_ATTR_ROAM_CONTROL_MAX = 6362 QCA_ATTR_ROAM_CONTROL_AFTER_LAST - 1, 6363 }; 6364 6365 /* 6366 * enum qca_wlan_vendor_attr_roaming_config_params: Attributes for data used by 6367 * QCA_NL80211_VENDOR_SUBCMD_ROAM sub command. 6368 * 6369 * @QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD: Unsigned 32-bit value. 6370 * Represents the different roam sub commands referred by 6371 * enum qca_wlan_vendor_roaming_subcmd. 6372 * 6373 * @QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID: Unsigned 32-bit value. 6374 * Represents the Request ID for the specific set of commands. 6375 * This also helps to map specific set of commands to the respective 6376 * ID / client. e.g., helps to identify the user entity configuring the 6377 * ignored BSSIDs and accordingly clear the respective ones with the 6378 * matching ID. 6379 * 6380 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS: Unsigned 6381 * 32-bit value. Represents the number of allowlist SSIDs configured. 6382 * 6383 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST: Nested attribute 6384 * to carry the list of allowlist SSIDs. 6385 * 6386 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID: SSID (binary attribute, 6387 * 0..32 octets). Represents the allow list SSID. Allowlist SSIDs 6388 * represent the list of SSIDs to which the firmware/driver can consider 6389 * to roam to. 6390 * 6391 * The following PARAM_A_BAND_XX attributes are applied to 5GHz BSSIDs when 6392 * comparing with a 2.4GHz BSSID. They are not applied when comparing two 6393 * 5GHz BSSIDs.The following attributes are set through the Roaming SUBCMD - 6394 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS. 6395 * 6396 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD: Signed 32-bit 6397 * value, RSSI threshold above which 5GHz RSSI is favored. 6398 * 6399 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD: Signed 32-bit 6400 * value, RSSI threshold below which 5GHz RSSI is penalized. 6401 * 6402 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR: Unsigned 32-bit 6403 * value, factor by which 5GHz RSSI is boosted. 6404 * boost=(RSSI_measured-5GHz_boost_threshold)*5GHz_boost_factor 6405 * 6406 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR: Unsigned 32-bit 6407 * value, factor by which 5GHz RSSI is penalized. 6408 * penalty=(5GHz_penalty_threshold-RSSI_measured)*5GHz_penalty_factor 6409 * 6410 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST: Unsigned 32-bit 6411 * value, maximum boost that can be applied to a 5GHz RSSI. 6412 * 6413 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS: Unsigned 32-bit 6414 * value, boost applied to current BSSID to ensure the currently 6415 * associated BSSID is favored so as to prevent ping-pong situations. 6416 * 6417 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER: Signed 32-bit 6418 * value, RSSI below which "Alert" roam is enabled. 6419 * "Alert" mode roaming - firmware is "urgently" hunting for another BSSID 6420 * because the RSSI is low, or because many successive beacons have been 6421 * lost or other bad link conditions. 6422 * 6423 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE: Unsigned 32-bit 6424 * value. 1-Enable, 0-Disable. Represents "Lazy" mode, where 6425 * firmware is hunting for a better BSSID or allow listed SSID even though 6426 * the RSSI of the link is good. The parameters enabling the roaming are 6427 * configured through the PARAM_A_BAND_XX attrbutes. 6428 * 6429 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS: Nested attribute, 6430 * represents the BSSIDs preferred over others while evaluating them 6431 * for the roaming. 6432 * 6433 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID: Unsigned 6434 * 32-bit value. Represents the number of preferred BSSIDs set. 6435 * 6436 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID: 6-byte MAC 6437 * address representing the BSSID to be preferred. 6438 * 6439 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER: Signed 6440 * 32-bit value, representing the modifier to be applied to the RSSI of 6441 * the BSSID for the purpose of comparing it with other roam candidate. 6442 * 6443 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS: Nested attribute, 6444 * represents the BSSIDs to get ignored for roaming. 6445 * 6446 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID: Unsigned 6447 * 32-bit value, represents the number of ignored BSSIDs. 6448 * 6449 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID: 6-byte MAC 6450 * address representing the ignored BSSID. 6451 * 6452 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT: Flag attribute, 6453 * indicates this request to ignore the BSSID as a hint to the driver. The 6454 * driver can select this BSSID in the worst case (when no other BSSIDs are 6455 * better). 6456 * 6457 * @QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL: Nested attribute to 6458 * set/get/clear the roam control config as 6459 * defined @enum qca_vendor_attr_roam_control. 6460 */ 6461 enum qca_wlan_vendor_attr_roaming_config_params { 6462 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_INVALID = 0, 6463 6464 QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD = 1, 6465 QCA_WLAN_VENDOR_ATTR_ROAMING_REQ_ID = 2, 6466 6467 /* Attributes for wifi_set_ssid_allow_list */ 6468 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS = 3, 6469 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST = 4, 6470 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID = 5, 6471 6472 /* Attributes for set_roam_params */ 6473 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_THRESHOLD = 6, 6474 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_THRESHOLD = 7, 6475 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_BOOST_FACTOR = 8, 6476 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_PENALTY_FACTOR = 9, 6477 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_A_BAND_MAX_BOOST = 10, 6478 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_LAZY_ROAM_HISTERESYS = 11, 6479 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALERT_ROAM_RSSI_TRIGGER = 12, 6480 6481 /* Attribute for set_lazy_roam */ 6482 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE = 13, 6483 6484 /* Attribute for set_lazy_roam with preferences */ 6485 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS = 14, 6486 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_NUM_BSSID = 15, 6487 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_BSSID = 16, 6488 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_RSSI_MODIFIER = 17, 6489 6490 /* Attribute for setting ignored BSSID parameters */ 6491 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS = 18, 6492 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID = 19, 6493 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_BSSID = 20, 6494 /* Flag attribute indicates this entry as a hint */ 6495 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_HINT = 21, 6496 6497 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL = 22, 6498 6499 /* keep last */ 6500 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST, 6501 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_MAX = 6502 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_AFTER_LAST - 1, 6503 }; 6504 6505 /* old names for API compatibility */ 6506 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_NUM_NETWORKS \ 6507 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS 6508 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID_LIST \ 6509 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST 6510 #define QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_WHITE_LIST_SSID \ 6511 QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID 6512 6513 /* 6514 * enum qca_wlan_vendor_roaming_subcmd: Referred by 6515 * QCA_WLAN_VENDOR_ATTR_ROAMING_SUBCMD. 6516 * 6517 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST: Sub command to 6518 * configure the allow list SSIDs. These are configured through 6519 * the following attributes. 6520 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_NUM_NETWORKS, 6521 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID_LIST, 6522 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_ALLOW_LIST_SSID 6523 * 6524 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS: Sub command to 6525 * configure the Roam params. These parameters are evaluated on the GScan 6526 * results. Refers the attributes PARAM_A_BAND_XX above to configure the 6527 * params. 6528 * 6529 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM: Sets the Lazy roam. Uses 6530 * the attribute QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_LAZY_ROAM_ENABLE 6531 * to enable/disable Lazy roam. 6532 * 6533 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS: Sets the BSSID 6534 * preference. Contains the attribute 6535 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PREFS to set the BSSID 6536 * preference. 6537 * 6538 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID: Sets the list of BSSIDs 6539 * to ignore in roaming decision. Uses 6540 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS to set the list. 6541 * 6542 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET: Command to set the 6543 * roam control config to the driver with the attribute 6544 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 6545 * 6546 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET: Command to obtain the 6547 * roam control config from driver with the attribute 6548 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 6549 * For the get, the attribute for the configuration to be queried shall 6550 * carry any of its acceptable value to the driver. In return, the driver 6551 * shall send the configured values within the same attribute to the user 6552 * space. 6553 * 6554 * @QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR: Command to clear the 6555 * roam control config in the driver with the attribute 6556 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_CONTROL. 6557 * The driver shall continue with its default roaming behavior when data 6558 * corresponding to an attribute is cleared. 6559 */ 6560 enum qca_wlan_vendor_roaming_subcmd { 6561 QCA_WLAN_VENDOR_ROAMING_SUBCMD_INVALID = 0, 6562 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST = 1, 6563 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_GSCAN_ROAM_PARAMS = 2, 6564 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_LAZY_ROAM = 3, 6565 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PREFS = 4, 6566 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BSSID_PARAMS = 5, 6567 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID = 6, 6568 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_SET = 7, 6569 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_GET = 8, 6570 QCA_WLAN_VENDOR_ROAMING_SUBCMD_CONTROL_CLEAR = 9, 6571 }; 6572 6573 /* old names for API compatibility */ 6574 #define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_WHITE_LIST \ 6575 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SSID_ALLOW_LIST 6576 #define QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_BLACKLIST_BSSID \ 6577 QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID 6578 6579 enum qca_wlan_vendor_attr_gscan_config_params { 6580 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_INVALID = 0, 6581 6582 /* Unsigned 32-bit value */ 6583 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_REQUEST_ID = 1, 6584 6585 /* Attributes for data used by 6586 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_VALID_CHANNELS sub command. 6587 */ 6588 /* Unsigned 32-bit value */ 6589 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_WIFI_BAND 6590 = 2, 6591 /* Unsigned 32-bit value */ 6592 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_VALID_CHANNELS_CONFIG_PARAM_MAX_CHANNELS 6593 = 3, 6594 6595 /* Attributes for input params used by 6596 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_START sub command. 6597 */ 6598 6599 /* Unsigned 32-bit value; channel frequency */ 6600 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CHANNEL = 4, 6601 /* Unsigned 32-bit value; dwell time in ms. */ 6602 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_DWELL_TIME = 5, 6603 /* Unsigned 8-bit value; 0: active; 1: passive; N/A for DFS */ 6604 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_PASSIVE = 6, 6605 /* Unsigned 8-bit value; channel class */ 6606 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_CLASS = 7, 6607 6608 /* Unsigned 8-bit value; bucket index, 0 based */ 6609 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_INDEX = 8, 6610 /* Unsigned 8-bit value; band. */ 6611 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BAND = 9, 6612 /* Unsigned 32-bit value; desired period, in ms. */ 6613 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_PERIOD = 10, 6614 /* Unsigned 8-bit value; report events semantics. */ 6615 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_REPORT_EVENTS = 11, 6616 /* Unsigned 32-bit value. Followed by a nested array of 6617 * GSCAN_CHANNEL_SPEC_* attributes. 6618 */ 6619 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS = 12, 6620 6621 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC_* attributes. 6622 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 6623 */ 6624 QCA_WLAN_VENDOR_ATTR_GSCAN_CHANNEL_SPEC = 13, 6625 6626 /* Unsigned 32-bit value; base timer period in ms. */ 6627 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_BASE_PERIOD = 14, 6628 /* Unsigned 32-bit value; number of APs to store in each scan in the 6629 * BSSID/RSSI history buffer (keep the highest RSSI APs). 6630 */ 6631 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_MAX_AP_PER_SCAN = 15, 6632 /* Unsigned 8-bit value; in %, when scan buffer is this much full, wake 6633 * up AP. 6634 */ 6635 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_PERCENT 6636 = 16, 6637 6638 /* Unsigned 8-bit value; number of scan bucket specs; followed by a 6639 * nested array of_GSCAN_BUCKET_SPEC_* attributes and values. The size 6640 * of the array is determined by NUM_BUCKETS. 6641 */ 6642 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS = 17, 6643 6644 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_* attributes. 6645 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_NUM_BUCKETS 6646 */ 6647 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC = 18, 6648 6649 /* Unsigned 8-bit value */ 6650 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_FLUSH 6651 = 19, 6652 /* Unsigned 32-bit value; maximum number of results to be returned. */ 6653 QCA_WLAN_VENDOR_ATTR_GSCAN_GET_CACHED_SCAN_RESULTS_CONFIG_PARAM_MAX 6654 = 20, 6655 6656 /* An array of 6 x unsigned 8-bit value */ 6657 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_BSSID = 21, 6658 /* Signed 32-bit value */ 6659 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_LOW = 22, 6660 /* Signed 32-bit value */ 6661 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_RSSI_HIGH = 23, 6662 /* Unsigned 32-bit value */ 6663 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_CHANNEL = 24, 6664 6665 /* Number of hotlist APs as unsigned 32-bit value, followed by a nested 6666 * array of AP_THRESHOLD_PARAM attributes and values. The size of the 6667 * array is determined by NUM_AP. 6668 */ 6669 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_NUM_AP = 25, 6670 6671 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM_* attributes. 6672 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_NUM_CHANNEL_SPECS 6673 */ 6674 QCA_WLAN_VENDOR_ATTR_GSCAN_AP_THRESHOLD_PARAM = 26, 6675 6676 /* Unsigned 32-bit value; number of samples for averaging RSSI. */ 6677 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_RSSI_SAMPLE_SIZE 6678 = 27, 6679 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 6680 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_LOST_AP_SAMPLE_SIZE 6681 = 28, 6682 /* Unsigned 32-bit value; number of APs breaching threshold. */ 6683 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_MIN_BREACHING = 29, 6684 /* Unsigned 32-bit value; number of APs. Followed by an array of 6685 * AP_THRESHOLD_PARAM attributes. Size of the array is NUM_AP. 6686 */ 6687 QCA_WLAN_VENDOR_ATTR_GSCAN_SIGNIFICANT_CHANGE_PARAMS_NUM_AP = 30, 6688 /* Unsigned 32-bit value; number of samples to confirm AP loss. */ 6689 QCA_WLAN_VENDOR_ATTR_GSCAN_BSSID_HOTLIST_PARAMS_LOST_AP_SAMPLE_SIZE 6690 = 31, 6691 /* Unsigned 32-bit value. If max_period is non zero or different than 6692 * period, then this bucket is an exponential backoff bucket. 6693 */ 6694 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_MAX_PERIOD = 32, 6695 /* Unsigned 32-bit value. */ 6696 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_BASE = 33, 6697 /* Unsigned 32-bit value. For exponential back off bucket, number of 6698 * scans to perform for a given period. 6699 */ 6700 QCA_WLAN_VENDOR_ATTR_GSCAN_BUCKET_SPEC_STEP_COUNT = 34, 6701 /* Unsigned 8-bit value; in number of scans, wake up AP after these 6702 * many scans. 6703 */ 6704 QCA_WLAN_VENDOR_ATTR_GSCAN_SCAN_CMD_PARAMS_REPORT_THRESHOLD_NUM_SCANS 6705 = 35, 6706 6707 /* Attributes for data used by 6708 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SET_SSID_HOTLIST sub command. 6709 */ 6710 /* Unsigned 3-2bit value; number of samples to confirm SSID loss. */ 6711 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_LOST_SSID_SAMPLE_SIZE 6712 = 36, 6713 /* Number of hotlist SSIDs as unsigned 32-bit value, followed by a 6714 * nested array of SSID_THRESHOLD_PARAM_* attributes and values. The 6715 * size of the array is determined by NUM_SSID. 6716 */ 6717 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID = 37, 6718 /* Array of QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_* 6719 * attributes. 6720 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_HOTLIST_PARAMS_NUM_SSID 6721 */ 6722 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM = 38, 6723 6724 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */ 6725 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_SSID = 39, 6726 /* Unsigned 8-bit value */ 6727 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_BAND = 40, 6728 /* Signed 32-bit value */ 6729 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_LOW = 41, 6730 /* Signed 32-bit value */ 6731 QCA_WLAN_VENDOR_ATTR_GSCAN_SSID_THRESHOLD_PARAM_RSSI_HIGH = 42, 6732 /* Unsigned 32-bit value; a bitmask with additional gscan config flag. 6733 */ 6734 QCA_WLAN_VENDOR_ATTR_GSCAN_CONFIGURATION_FLAGS = 43, 6735 6736 /* keep last */ 6737 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST, 6738 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_MAX = 6739 QCA_WLAN_VENDOR_ATTR_GSCAN_SUBCMD_CONFIG_PARAM_AFTER_LAST - 1, 6740 }; 6741 6742 enum qca_wlan_vendor_attr_gscan_results { 6743 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_INVALID = 0, 6744 6745 /* Unsigned 32-bit value; must match the request Id supplied by 6746 * Wi-Fi HAL in the corresponding subcmd NL msg. 6747 */ 6748 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_REQUEST_ID = 1, 6749 6750 /* Unsigned 32-bit value; used to indicate the status response from 6751 * firmware/driver for the vendor sub-command. 6752 */ 6753 QCA_WLAN_VENDOR_ATTR_GSCAN_STATUS = 2, 6754 6755 /* GSCAN Valid Channels attributes */ 6756 /* Unsigned 32bit value; followed by a nested array of CHANNELS. */ 6757 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_CHANNELS = 3, 6758 /* An array of NUM_CHANNELS x unsigned 32-bit value integers 6759 * representing channel numbers. 6760 */ 6761 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CHANNELS = 4, 6762 6763 /* GSCAN Capabilities attributes */ 6764 /* Unsigned 32-bit value */ 6765 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_CACHE_SIZE = 5, 6766 /* Unsigned 32-bit value */ 6767 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_BUCKETS = 6, 6768 /* Unsigned 32-bit value */ 6769 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_AP_CACHE_PER_SCAN 6770 = 7, 6771 /* Unsigned 32-bit value */ 6772 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_RSSI_SAMPLE_SIZE 6773 = 8, 6774 /* Signed 32-bit value */ 6775 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SCAN_REPORTING_THRESHOLD 6776 = 9, 6777 /* Unsigned 32-bit value */ 6778 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_BSSIDS = 10, 6779 /* Unsigned 32-bit value */ 6780 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_SIGNIFICANT_WIFI_CHANGE_APS 6781 = 11, 6782 /* Unsigned 32-bit value */ 6783 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_BSSID_HISTORY_ENTRIES 6784 = 12, 6785 6786 /* GSCAN Attributes used with 6787 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_RESULTS_AVAILABLE sub-command. 6788 */ 6789 6790 /* Unsigned 32-bit value */ 6791 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE = 13, 6792 6793 /* GSCAN attributes used with 6794 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_FULL_SCAN_RESULT sub-command. 6795 */ 6796 6797 /* An array of NUM_RESULTS_AVAILABLE x 6798 * QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_* 6799 */ 6800 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST = 14, 6801 6802 /* Unsigned 64-bit value; age of sample at the time of retrieval */ 6803 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_TIME_STAMP = 15, 6804 /* 33 x unsigned 8-bit value; NULL terminated SSID */ 6805 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_SSID = 16, 6806 /* An array of 6 x unsigned 8-bit value */ 6807 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BSSID = 17, 6808 /* Unsigned 32-bit value; channel frequency in MHz */ 6809 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CHANNEL = 18, 6810 /* Signed 32-bit value */ 6811 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RSSI = 19, 6812 /* Unsigned 32-bit value */ 6813 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT = 20, 6814 /* Unsigned 32-bit value */ 6815 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_RTT_SD = 21, 6816 /* Unsigned 16-bit value */ 6817 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_BEACON_PERIOD = 22, 6818 /* Unsigned 16-bit value */ 6819 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_CAPABILITY = 23, 6820 /* Unsigned 32-bit value; size of the IE DATA blob */ 6821 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_LENGTH = 24, 6822 /* An array of IE_LENGTH x unsigned 8-bit value; blob of all the 6823 * information elements found in the beacon; this data should be a 6824 * packed list of wifi_information_element objects, one after the 6825 * other. 6826 */ 6827 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_IE_DATA = 25, 6828 6829 /* Unsigned 8-bit value; set by driver to indicate more scan results are 6830 * available. 6831 */ 6832 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_RESULT_MORE_DATA = 26, 6833 6834 /* GSCAN attributes for 6835 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SCAN_EVENT sub-command. 6836 */ 6837 /* Unsigned 8-bit value */ 6838 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_TYPE = 27, 6839 /* Unsigned 32-bit value */ 6840 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SCAN_EVENT_STATUS = 28, 6841 6842 /* GSCAN attributes for 6843 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_HOTLIST_AP_FOUND sub-command. 6844 */ 6845 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE 6846 * to indicate number of results. 6847 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the 6848 * list of results. 6849 */ 6850 6851 /* GSCAN attributes for 6852 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_SIGNIFICANT_CHANGE sub-command. 6853 */ 6854 /* An array of 6 x unsigned 8-bit value */ 6855 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_BSSID = 29, 6856 /* Unsigned 32-bit value */ 6857 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_CHANNEL 6858 = 30, 6859 /* Unsigned 32-bit value. */ 6860 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_NUM_RSSI 6861 = 31, 6862 /* A nested array of signed 32-bit RSSI values. Size of the array is 6863 * determined by (NUM_RSSI of SIGNIFICANT_CHANGE_RESULT_NUM_RSSI. 6864 */ 6865 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_SIGNIFICANT_CHANGE_RESULT_RSSI_LIST 6866 = 32, 6867 6868 /* GSCAN attributes used with 6869 * QCA_NL80211_VENDOR_SUBCMD_GSCAN_GET_CACHED_RESULTS sub-command. 6870 */ 6871 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE 6872 * to indicate number of gscan cached results returned. 6873 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST to indicate 6874 * the list of gscan cached results. 6875 */ 6876 6877 /* An array of NUM_RESULTS_AVAILABLE x 6878 * QCA_NL80211_VENDOR_ATTR_GSCAN_CACHED_RESULTS_* 6879 */ 6880 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_LIST = 33, 6881 /* Unsigned 32-bit value; a unique identifier for the scan unit. */ 6882 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_SCAN_ID = 34, 6883 /* Unsigned 32-bit value; a bitmask w/additional information about scan. 6884 */ 6885 QCA_WLAN_VENDOR_ATTR_GSCAN_CACHED_RESULTS_FLAGS = 35, 6886 /* Use attr QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE 6887 * to indicate number of wifi scan results/bssids retrieved by the scan. 6888 * Also, use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the 6889 * list of wifi scan results returned for each cached result block. 6890 */ 6891 6892 /* GSCAN attributes for 6893 * QCA_NL80211_VENDOR_SUBCMD_PNO_NETWORK_FOUND sub-command. 6894 */ 6895 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE for 6896 * number of results. 6897 * Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested 6898 * list of wifi scan results returned for each 6899 * wifi_passpoint_match_result block. 6900 * Array size: QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_NUM_RESULTS_AVAILABLE. 6901 */ 6902 6903 /* GSCAN attributes for 6904 * QCA_NL80211_VENDOR_SUBCMD_PNO_PASSPOINT_NETWORK_FOUND sub-command. 6905 */ 6906 /* Unsigned 32-bit value */ 6907 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES 6908 = 36, 6909 /* A nested array of 6910 * QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_* 6911 * attributes. Array size = 6912 * *_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_NETWORK_FOUND_NUM_MATCHES. 6913 */ 6914 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_RESULT_LIST = 37, 6915 6916 /* Unsigned 32-bit value; network block id for the matched network */ 6917 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ID = 38, 6918 /* Use QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_LIST to indicate the nested 6919 * list of wifi scan results returned for each 6920 * wifi_passpoint_match_result block. 6921 */ 6922 /* Unsigned 32-bit value */ 6923 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP_LEN = 39, 6924 /* An array size of PASSPOINT_MATCH_ANQP_LEN of unsigned 8-bit values; 6925 * ANQP data in the information_element format. 6926 */ 6927 QCA_WLAN_VENDOR_ATTR_GSCAN_PNO_RESULTS_PASSPOINT_MATCH_ANQP = 40, 6928 6929 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 6930 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_HOTLIST_SSIDS = 41, 6931 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 6932 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS = 42, 6933 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 6934 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_EPNO_NETS_BY_SSID 6935 = 43, 6936 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. */ 6937 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID 6938 = 44, 6939 6940 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_BUCKETS_SCANNED = 45, 6941 6942 /* Unsigned 32-bit value; a GSCAN Capabilities attribute. 6943 * This is used to limit the maximum number of BSSIDs while sending 6944 * the vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM with subcmd 6945 * QCA_WLAN_VENDOR_ROAMING_SUBCMD_SET_DENYLIST_BSSID and attribute 6946 * QCA_WLAN_VENDOR_ATTR_ROAMING_PARAM_SET_BSSID_PARAMS_NUM_BSSID. 6947 */ 6948 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID = 46, 6949 6950 /* Attribute used for padding for 64-bit alignment */ 6951 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_PAD = 47, 6952 6953 /* keep last */ 6954 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST, 6955 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_MAX = 6956 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_AFTER_LAST - 1, 6957 }; 6958 6959 /* old names for API compatibility */ 6960 #define QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_WHITELISTED_SSID \ 6961 QCA_WLAN_VENDOR_ATTR_GSCAN_RESULTS_CAPABILITIES_MAX_NUM_ALLOWLISTED_SSID 6962 #define QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_BLACKLISTED_BSSID \ 6963 QCA_WLAN_VENDOR_ATTR_GSCAN_MAX_NUM_DENYLISTED_BSSID 6964 6965 enum qca_wlan_vendor_attr_pno_config_params { 6966 QCA_WLAN_VENDOR_ATTR_PNO_INVALID = 0, 6967 /* Attributes for data used by 6968 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_PASSPOINT_LIST sub command. 6969 */ 6970 /* Unsigned 32-bit value */ 6971 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM = 1, 6972 /* Array of nested QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_* 6973 * attributes. Array size = 6974 * QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NUM. 6975 */ 6976 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_LIST_PARAM_NETWORK_ARRAY = 2, 6977 6978 /* Unsigned 32-bit value */ 6979 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ID = 3, 6980 /* An array of 256 x unsigned 8-bit value; NULL terminated UTF-8 encoded 6981 * realm, 0 if unspecified. 6982 */ 6983 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_REALM = 4, 6984 /* An array of 16 x unsigned 32-bit value; roaming consortium ids to 6985 * match, 0 if unspecified. 6986 */ 6987 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_CNSRTM_ID = 5, 6988 /* An array of 6 x unsigned 8-bit value; MCC/MNC combination, 0s if 6989 * unspecified. 6990 */ 6991 QCA_WLAN_VENDOR_ATTR_PNO_PASSPOINT_NETWORK_PARAM_ROAM_PLMN = 6, 6992 6993 /* Attributes for data used by 6994 * QCA_NL80211_VENDOR_SUBCMD_PNO_SET_LIST sub command. 6995 */ 6996 /* Unsigned 32-bit value */ 6997 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS = 7, 6998 /* Array of nested 6999 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_* 7000 * attributes. Array size = 7001 * QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_NUM_NETWORKS. 7002 */ 7003 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORKS_LIST = 8, 7004 /* An array of 33 x unsigned 8-bit value; NULL terminated SSID */ 7005 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_SSID = 9, 7006 /* Signed 8-bit value; threshold for considering this SSID as found, 7007 * required granularity for this threshold is 4 dBm to 8 dBm. 7008 */ 7009 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_RSSI_THRESHOLD 7010 = 10, 7011 /* Unsigned 8-bit value; WIFI_PNO_FLAG_XXX */ 7012 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_FLAGS = 11, 7013 /* Unsigned 8-bit value; auth bit field for matching WPA IE */ 7014 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_NETWORK_AUTH_BIT = 12, 7015 /* Unsigned 8-bit to indicate ePNO type; 7016 * It takes values from qca_wlan_epno_type 7017 */ 7018 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_TYPE = 13, 7019 7020 /* Nested attribute to send the channel list */ 7021 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_CHANNEL_LIST = 14, 7022 7023 /* Unsigned 32-bit value; indicates the interval between PNO scan 7024 * cycles in msec. 7025 */ 7026 QCA_WLAN_VENDOR_ATTR_PNO_SET_LIST_PARAM_EPNO_SCAN_INTERVAL = 15, 7027 QCA_WLAN_VENDOR_ATTR_EPNO_MIN5GHZ_RSSI = 16, 7028 QCA_WLAN_VENDOR_ATTR_EPNO_MIN24GHZ_RSSI = 17, 7029 QCA_WLAN_VENDOR_ATTR_EPNO_INITIAL_SCORE_MAX = 18, 7030 QCA_WLAN_VENDOR_ATTR_EPNO_CURRENT_CONNECTION_BONUS = 19, 7031 QCA_WLAN_VENDOR_ATTR_EPNO_SAME_NETWORK_BONUS = 20, 7032 QCA_WLAN_VENDOR_ATTR_EPNO_SECURE_BONUS = 21, 7033 QCA_WLAN_VENDOR_ATTR_EPNO_BAND5GHZ_BONUS = 22, 7034 /* Unsigned 32-bit value, representing the PNO Request ID */ 7035 QCA_WLAN_VENDOR_ATTR_PNO_CONFIG_REQUEST_ID = 23, 7036 7037 /* keep last */ 7038 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST, 7039 QCA_WLAN_VENDOR_ATTR_PNO_MAX = 7040 QCA_WLAN_VENDOR_ATTR_PNO_AFTER_LAST - 1, 7041 }; 7042 7043 /** 7044 * qca_wlan_vendor_acs_select_reason: This represents the different reasons why 7045 * the ACS has to be triggered. These values are used by 7046 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON and 7047 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON 7048 */ 7049 enum qca_wlan_vendor_acs_select_reason { 7050 /* Represents the reason that the ACS triggered during the AP start */ 7051 QCA_WLAN_VENDOR_ACS_SELECT_REASON_INIT, 7052 /* Represents the reason that DFS found with the current channel */ 7053 QCA_WLAN_VENDOR_ACS_SELECT_REASON_DFS, 7054 /* Represents the reason that LTE co-exist in the current band. */ 7055 QCA_WLAN_VENDOR_ACS_SELECT_REASON_LTE_COEX, 7056 /* Represents the reason that generic, uncategorized interference has 7057 * been found in the current channel. 7058 */ 7059 QCA_WLAN_VENDOR_ACS_SELECT_REASON_GENERIC_INTERFERENCE, 7060 /* Represents the reason that excessive 802.11 interference has been 7061 * found in the current channel. 7062 */ 7063 QCA_WLAN_VENDOR_ACS_SELECT_REASON_80211_INTERFERENCE, 7064 /* Represents the reason that generic Continuous Wave (CW) interference 7065 * has been found in the current channel. 7066 */ 7067 QCA_WLAN_VENDOR_ACS_SELECT_REASON_CW_INTERFERENCE, 7068 /* Represents the reason that Microwave Oven (MWO) interference has been 7069 * found in the current channel. 7070 */ 7071 QCA_WLAN_VENDOR_ACS_SELECT_REASON_MWO_INTERFERENCE, 7072 /* Represents the reason that generic Frequency-Hopping Spread Spectrum 7073 * (FHSS) interference has been found in the current channel. This may 7074 * include 802.11 waveforms. 7075 */ 7076 QCA_WLAN_VENDOR_ACS_SELECT_REASON_FHSS_INTERFERENCE, 7077 /* Represents the reason that non-802.11 generic Frequency-Hopping 7078 * Spread Spectrum (FHSS) interference has been found in the current 7079 * channel. 7080 */ 7081 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_FHSS_INTERFERENCE, 7082 /* Represents the reason that generic Wideband (WB) interference has 7083 * been found in the current channel. This may include 802.11 waveforms. 7084 */ 7085 QCA_WLAN_VENDOR_ACS_SELECT_REASON_WB_INTERFERENCE, 7086 /* Represents the reason that non-802.11 generic Wideband (WB) 7087 * interference has been found in the current channel. 7088 */ 7089 QCA_WLAN_VENDOR_ACS_SELECT_REASON_NON_80211_WB_INTERFERENCE, 7090 /* Represents the reason that Jammer interference has been found in the 7091 * current channel. 7092 */ 7093 QCA_WLAN_VENDOR_ACS_SELECT_REASON_JAMMER_INTERFERENCE, 7094 /* Represents the reason that ACS triggered by AFC */ 7095 QCA_WLAN_VENDOR_ACS_SELECT_REASON_AFC_TRIGGER, 7096 }; 7097 7098 /** 7099 * qca_wlan_vendor_attr_external_acs_policy: Attribute values for 7100 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY to the vendor subcmd 7101 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This represents the 7102 * external ACS policies to select the channels w.r.t. the PCL weights. 7103 * (QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL represents the channels and 7104 * their PCL weights.) 7105 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY: Mandatory to 7106 * select a channel with non-zero PCL weight. 7107 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED: Prefer a 7108 * channel with non-zero PCL weight. 7109 * 7110 */ 7111 enum qca_wlan_vendor_attr_external_acs_policy { 7112 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_PREFERRED, 7113 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_POLICY_PCL_MANDATORY, 7114 }; 7115 7116 /** 7117 * qca_wlan_vendor_channel_prop_flags: This represent the flags for a channel. 7118 * This is used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS. 7119 */ 7120 enum qca_wlan_vendor_channel_prop_flags { 7121 /* Bits 0, 1, 2, and 3 are reserved */ 7122 7123 /* Turbo channel */ 7124 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_TURBO = 1 << 4, 7125 /* CCK channel */ 7126 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_CCK = 1 << 5, 7127 /* OFDM channel */ 7128 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_OFDM = 1 << 6, 7129 /* 2.4 GHz spectrum channel. */ 7130 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_2GHZ = 1 << 7, 7131 /* 5 GHz spectrum channel */ 7132 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_5GHZ = 1 << 8, 7133 /* Only passive scan allowed */ 7134 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_PASSIVE = 1 << 9, 7135 /* Dynamic CCK-OFDM channel */ 7136 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_DYN = 1 << 10, 7137 /* GFSK channel (FHSS PHY) */ 7138 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_GFSK = 1 << 11, 7139 /* Radar found on channel */ 7140 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_RADAR = 1 << 12, 7141 /* 11a static turbo channel only */ 7142 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_STURBO = 1 << 13, 7143 /* Half rate channel */ 7144 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HALF = 1 << 14, 7145 /* Quarter rate channel */ 7146 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_QUARTER = 1 << 15, 7147 /* HT 20 channel */ 7148 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT20 = 1 << 16, 7149 /* HT 40 with extension channel above */ 7150 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40PLUS = 1 << 17, 7151 /* HT 40 with extension channel below */ 7152 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40MINUS = 1 << 18, 7153 /* HT 40 intolerant */ 7154 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOL = 1 << 19, 7155 /* VHT 20 channel */ 7156 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT20 = 1 << 20, 7157 /* VHT 40 with extension channel above */ 7158 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40PLUS = 1 << 21, 7159 /* VHT 40 with extension channel below */ 7160 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT40MINUS = 1 << 22, 7161 /* VHT 80 channel */ 7162 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80 = 1 << 23, 7163 /* HT 40 intolerant mark bit for ACS use */ 7164 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HT40INTOLMARK = 1 << 24, 7165 /* Channel temporarily blocked due to noise */ 7166 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_BLOCKED = 1 << 25, 7167 /* VHT 160 channel */ 7168 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT160 = 1 << 26, 7169 /* VHT 80+80 channel */ 7170 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_VHT80_80 = 1 << 27, 7171 /* HE 20 channel */ 7172 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE20 = 1 << 28, 7173 /* HE 40 with extension channel above */ 7174 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40PLUS = 1 << 29, 7175 /* HE 40 with extension channel below */ 7176 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40MINUS = 1 << 30, 7177 /* HE 40 intolerant */ 7178 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOL = 1U << 31, 7179 }; 7180 7181 /** 7182 * qca_wlan_vendor_channel_prop_flags_2: This represents the flags for a 7183 * channel, and is a continuation of qca_wlan_vendor_channel_prop_flags. This is 7184 * used by QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2. 7185 */ 7186 enum qca_wlan_vendor_channel_prop_flags_2 { 7187 /* HE 40 intolerant mark bit for ACS use */ 7188 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE40INTOLMARK = 1 << 0, 7189 /* HE 80 channel */ 7190 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80 = 1 << 1, 7191 /* HE 160 channel */ 7192 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE160 = 1 << 2, 7193 /* HE 80+80 channel */ 7194 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_HE80_80 = 1 << 3, 7195 }; 7196 7197 /** 7198 * qca_wlan_vendor_channel_prop_flags_ext: This represent the extended flags for 7199 * each channel. This is used by 7200 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT. 7201 */ 7202 enum qca_wlan_vendor_channel_prop_flags_ext { 7203 /* Radar found on channel */ 7204 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_RADAR_FOUND = 1 << 0, 7205 /* DFS required on channel */ 7206 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS = 1 << 1, 7207 /* DFS required on channel for 2nd band of 80+80 */ 7208 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CFREQ2 = 1 << 2, 7209 /* If channel has been checked for DFS */ 7210 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DFS_CLEAR = 1 << 3, 7211 /* Excluded in 802.11d */ 7212 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_11D_EXCLUDED = 1 << 4, 7213 /* Channel Switch Announcement received on this channel */ 7214 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CSA_RECEIVED = 1 << 5, 7215 /* Ad-hoc is not allowed */ 7216 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_ADHOC = 1 << 6, 7217 /* Station only channel */ 7218 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_DISALLOW_HOSTAP = 1 << 7, 7219 /* DFS radar history for client device (STA mode) */ 7220 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_HISTORY_RADAR = 1 << 8, 7221 /* DFS CAC valid for client device (STA mode) */ 7222 QCA_WLAN_VENDOR_CHANNEL_PROP_FLAG_EXT_CAC_VALID = 1 << 9, 7223 }; 7224 7225 /** 7226 * qca_wlan_vendor_external_acs_event_chan_info_attr: Represents per channel 7227 * information. These attributes are sent as part of 7228 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO. Each set of the following 7229 * attributes correspond to a single channel. 7230 */ 7231 enum qca_wlan_vendor_external_acs_event_chan_info_attr { 7232 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_INVALID = 0, 7233 7234 /* A bitmask (u32) with flags specified in 7235 * enum qca_wlan_vendor_channel_prop_flags. 7236 */ 7237 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS = 1, 7238 /* A bitmask (u32) with flags specified in 7239 * enum qca_wlan_vendor_channel_prop_flags_ext. 7240 */ 7241 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAG_EXT = 2, 7242 /* frequency in MHz (u32) */ 7243 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ = 3, 7244 /* maximum regulatory transmission power (u32) */ 7245 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_REG_POWER = 4, 7246 /* maximum transmission power (u32) */ 7247 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX_POWER = 5, 7248 /* minimum transmission power (u32) */ 7249 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MIN_POWER = 6, 7250 /* regulatory class id (u8) */ 7251 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_REG_CLASS_ID = 7, 7252 /* maximum antenna gain in (u8) */ 7253 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_ANTENNA_GAIN = 8, 7254 /* VHT segment 0 (u8) */ 7255 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 = 9, 7256 /* VHT segment 1 (u8) */ 7257 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 = 10, 7258 /* A bitmask (u32) with flags specified in 7259 * enum qca_wlan_vendor_channel_prop_flags_2. 7260 */ 7261 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FLAGS_2 = 11, 7262 7263 /* 7264 * Segment 0 in MHz (u32). 7265 * 7266 * For 20/40/80 MHz bandwidth, this indicates the channel center 7267 * frequency index for the 20/40/80 MHz operating channel. 7268 * For 160 MHz bandwidth, this indicates the channel center 7269 * frequency of the primary 80 MHz channel. 7270 * For 320 MHz bandwidth, indicates the channel center frequency 7271 * of the primary 160 MHz channel. 7272 * 7273 * To maintain backward compatibility, 7274 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 7275 * is also maintained. 7276 */ 7277 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 = 12, 7278 /* Legacy alias for the Segment 0 attribute. 7279 * 7280 * VHT segment 0 in MHz (u32) and the attribute is mandatory. 7281 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes 7282 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 7283 * along with 7284 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0. 7285 * 7286 * If both the driver and user-space application supports the 6 GHz 7287 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_0 7288 * is deprecated and 7289 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 7290 * should be used. 7291 * 7292 * To maintain backward compatibility, 7293 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 7294 * is still used if either of the driver or user space application 7295 * doesn't support the 6 GHz band. 7296 */ 7297 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_0 = 7298 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0, 7299 7300 /* 7301 * Segment 1 in MHz (u32). 7302 * 7303 * For 20/40/80 MHz bandwidth, this is set to 0. 7304 * For 160 MHz bandwidth, indicates the channel center frequency of the 7305 * 160 MHz channel. 7306 * For 320 MHz bandwidth, indicates the channel center frequency of the 7307 * 320 MHz channel. 7308 * 7309 * To maintain backward compatibility, 7310 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 7311 * is also maintained. 7312 */ 7313 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 = 13, 7314 /* Legacy alias for the Segment 1 attribute. 7315 * 7316 * VHT segment 1 in MHz (u32) and the attribute is mandatory. 7317 * Note: Event QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS includes 7318 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 7319 * along with 7320 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1. 7321 * 7322 * If both the driver and user-space application supports the 6 GHz 7323 * band, QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_VHT_SEG_1 7324 * is deprecated and 7325 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 7326 * should be considered. 7327 * 7328 * To maintain backward compatibility, 7329 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 7330 * is still used if either of the driver or user space application 7331 * doesn't support the 6 GHz band. 7332 */ 7333 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_VHT_SEG_1 = 7334 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1, 7335 7336 /* 7337 * 16-bit attribute of bits indicating the AP power modes supported by 7338 * the channel (u16). 7339 * Note: Currently, only 3 bits are used in the attribute and each bit 7340 * corresponds to the power mode mentioned in enum 7341 * qca_wlan_vendor_external_acs_chan_power_mode and a given bit is 7342 * set if the associated mode is supported. 7343 */ 7344 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_SUPP_POWER_MODES 7345 = 14, 7346 /* Array of nested attributes for each power mode. It takes attr as 7347 * defined in enum 7348 * qca_wlan_vendor_external_acs_event_chan_power_info_attr. 7349 */ 7350 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR = 15, 7351 /* 7352 * This indicates the overlapping 320 MHz center frequency in MHz 7353 * (u32), if the given primary channel supports more than one 7354 * 320 MHz channel bonding. 7355 * 7356 * Example: 7357 * For 6 GHz, channel frequency 6115 MHz (channel number 33) segment 0 7358 * center frequency (primary 160 MHz) is 6185 MHz and there can be two 7359 * possible segment 2 frequencies for this (320 MHz center 7360 * frequencies): 7361 * 7362 * 1) Center frequency 6105 MHz (channel 31): 320 MHz channel bonding 7363 * from frequency 5945 MHz - 6265 MHz 7364 * 2) Center frequency 6265 MHz (channel 63): 320 MHz channel bonding 7365 * from frequency 6105 MHz - 6425 MHz 7366 * 7367 * In this case, 7368 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_0 will 7369 * return 6185 MHz. 7370 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_SEG_1 will 7371 * return 6105 MHz. 7372 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1 7373 * will return 6265 MHz. 7374 */ 7375 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_FREQ_OVERLAP_SEG_1 7376 = 16, 7377 7378 /* keep last */ 7379 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST, 7380 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_MAX = 7381 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_INFO_ATTR_LAST - 1, 7382 }; 7383 7384 /** 7385 * qca_wlan_vendor_external_acs_chan_power_mode - Specifies the valid 7386 * values that the vendor external ACS channel power attribute 7387 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE can 7388 * take. 7389 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER: Low power/Indoor mode 7390 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER: Standard power mode 7391 * @QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER: Very low power mode 7392 */ 7393 enum qca_wlan_vendor_external_acs_chan_power_level { 7394 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_LOW_POWER = 0, 7395 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_STANDARD_POWER = 1, 7396 QCA_WLAN_VENDOR_EXTERNAL_ACS_CHAN_VERY_LOW_POWER = 2, 7397 }; 7398 7399 /** 7400 * qca_wlan_vendor_external_acs_event_chan_power_info_attr: Represents nested 7401 * attributes for power mode type and power values corresponding to that. 7402 * These attributes are sent as part of 7403 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR. 7404 */ 7405 enum qca_wlan_vendor_external_acs_event_chan_power_info_attr { 7406 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_INVALID = 0, 7407 /* 7408 * Power mode (u8) takes the values defined in enum 7409 * qca_wlan_vendor_external_acs_chan_power_mode 7410 */ 7411 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE 7412 = 1, 7413 /* 7414 * Indicates if power value is a PSD/EIRP value (flag). If flag is 7415 * present, it indicates a PSD value. 7416 */ 7417 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG = 2, 7418 /* 7419 * Power value (u32) PSD/EIRP as indicated by 7420 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_PSD_FLAG, 7421 * for power mode corresponding to the 7422 * QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_MODE. 7423 * Units for PSD - dBm/MHz 7424 * Units for EIRP - dBm 7425 */ 7426 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_POWER_VALUE 7427 = 3, 7428 /* keep last */ 7429 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST, 7430 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_MAX = 7431 QCA_WLAN_VENDOR_EXTERNAL_ACS_EVENT_CHAN_POWER_INFO_ATTR_LAST - 1, 7432 }; 7433 7434 /** 7435 * qca_wlan_vendor_attr_pcl: Represents attributes for 7436 * preferred channel list (PCL). These attributes are sent as part of 7437 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL and 7438 * QCA_NL80211_VENDOR_SUBCMD_GET_PREFERRED_FREQ_LIST. 7439 */ 7440 enum qca_wlan_vendor_attr_pcl { 7441 QCA_WLAN_VENDOR_ATTR_PCL_INVALID = 0, 7442 7443 /* Channel number (u8) */ 7444 QCA_WLAN_VENDOR_ATTR_PCL_CHANNEL = 1, 7445 /* Channel weightage (u8) */ 7446 QCA_WLAN_VENDOR_ATTR_PCL_WEIGHT = 2, 7447 /* Channel frequency (u32) in MHz */ 7448 QCA_WLAN_VENDOR_ATTR_PCL_FREQ = 3, 7449 /* Channel flags (u32) 7450 * bit 0 set: channel to be used for GO role, 7451 * bit 1 set: channel to be used on CLI role, 7452 * bit 2 set: channel must be considered for operating channel 7453 * selection & peer chosen operating channel should be 7454 * one of the channels with this flag set, 7455 * bit 3 set: channel should be excluded in GO negotiation 7456 */ 7457 QCA_WLAN_VENDOR_ATTR_PCL_FLAG = 4, 7458 7459 /* Keep last */ 7460 QCA_WLAN_VENDOR_ATTR_PCL_LAST, 7461 QCA_WLAN_VENDOR_ATTR_PCL_MAX = QCA_WLAN_VENDOR_ATTR_PCL_LAST - 1 7462 }; 7463 7464 /** 7465 * qca_wlan_vendor_attr_external_acs_event: Attribute to vendor sub-command 7466 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This attribute will be sent by 7467 * host driver. 7468 */ 7469 enum qca_wlan_vendor_attr_external_acs_event { 7470 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_INVALID = 0, 7471 7472 /* This reason (u8) refers to enum qca_wlan_vendor_acs_select_reason. 7473 * This helps ACS module to understand why ACS needs to be started. 7474 */ 7475 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_REASON = 1, 7476 /* Flag attribute to indicate if driver supports spectral scanning */ 7477 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_SPECTRAL_SUPPORTED = 2, 7478 /* Flag attribute to indicate if 11ac is offloaded to firmware */ 7479 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_IS_OFFLOAD_ENABLED = 3, 7480 /* Flag attribute to indicate if driver provides additional channel 7481 * capability as part of scan operation 7482 */ 7483 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_ADD_CHAN_STATS_SUPPORT = 4, 7484 /* Flag attribute to indicate interface status is UP */ 7485 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AP_UP = 5, 7486 /* Operating mode (u8) of interface. Takes one of enum nl80211_iftype 7487 * values. 7488 */ 7489 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_SAP_MODE = 6, 7490 /* Channel width (u8). It takes one of enum nl80211_chan_width values. 7491 * This is the upper bound of channel width. ACS logic should try to get 7492 * a channel with the specified width and if not found, look for lower 7493 * values. 7494 */ 7495 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_WIDTH = 7, 7496 /* This (u8) will hold values of one of enum nl80211_bands */ 7497 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_BAND = 8, 7498 /* PHY/HW mode (u8). Takes one of enum qca_wlan_vendor_acs_hw_mode 7499 * values 7500 */ 7501 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PHY_MODE = 9, 7502 /* Array of (u32) supported frequency list among which ACS should choose 7503 * best frequency. 7504 */ 7505 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_FREQ_LIST = 10, 7506 /* Preferred channel list by the driver which will have array of nested 7507 * values as per enum qca_wlan_vendor_attr_pcl attribute. 7508 */ 7509 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_PCL = 11, 7510 /* Array of nested attribute for each channel. It takes attr as defined 7511 * in enum qca_wlan_vendor_external_acs_event_chan_info_attr. 7512 */ 7513 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_CHAN_INFO = 12, 7514 /* External ACS policy such as PCL mandatory, PCL preferred, etc. 7515 * It uses values defined in enum 7516 * qca_wlan_vendor_attr_external_acs_policy. 7517 */ 7518 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_POLICY = 13, 7519 /* Reference RF Operating Parameter (RROP) availability information 7520 * (u16). It uses values defined in enum 7521 * qca_wlan_vendor_attr_rropavail_info. 7522 */ 7523 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_RROPAVAIL_INFO = 14, 7524 /* Flag attribute to indicate if driver supports 6 GHz AFC trigger 7525 * for External ACS 7526 */ 7527 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_AFC_CAPABILITY = 15, 7528 /* Link ID attibute (u8) is used to identify a specific link affiliated 7529 * to an AP MLD. 7530 */ 7531 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LINK_ID = 16, 7532 7533 /* keep last */ 7534 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST, 7535 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_MAX = 7536 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_EVENT_LAST - 1, 7537 }; 7538 7539 /** 7540 * enum qca_wlan_vendor_attr_external_acs_channels: Attributes to vendor subcmd 7541 * QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS. This carries a list of channels 7542 * in priority order as decided after ACS operation in userspace. 7543 * 7544 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON: Required (u8). 7545 * One of reason code from enum qca_wlan_vendor_acs_select_reason. 7546 * 7547 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST: Required 7548 * Array of nested values for each channel with following attributes: 7549 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, 7550 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, 7551 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, 7552 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, 7553 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 7554 * Note: If both the driver and user-space application supports the 6 GHz band, 7555 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST is deprecated and use 7556 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST. 7557 * To maintain backward compatibility, 7558 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST 7559 * is still used if either of the driver or user space application doesn't 7560 * support the 6 GHz band. 7561 * 7562 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY: Required (u8). 7563 * Primary channel number 7564 * Note: If both the driver and user-space application supports the 6 GHz band, 7565 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY is deprecated and use 7566 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY. 7567 * To maintain backward compatibility, 7568 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY 7569 * is still used if either of the driver or user space application doesn't 7570 * support the 6 GHz band. 7571 * 7572 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY: Required (u8). 7573 * Secondary channel number, required only for 160 and 80+80 MHz bandwidths. 7574 * Note: If both the driver and user-space application supports the 6 GHz band, 7575 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY is deprecated and use 7576 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY. 7577 * To maintain backward compatibility, 7578 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY 7579 * is still used if either of the driver or user space application 7580 * doesn't support the 6 GHz band. 7581 * 7582 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0: Required (u8). 7583 * VHT seg0 channel number 7584 * Note: If both the driver and user-space application supports the 6 GHz band, 7585 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 is deprecated and use 7586 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0. 7587 * To maintain backward compatibility, 7588 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 7589 * is still used if either of the driver or user space application 7590 * doesn't support the 6 GHz band. 7591 * 7592 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1: Required (u8). 7593 * VHT seg1 channel number 7594 * Note: If both the driver and user-space application supports the 6 GHz band, 7595 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 is deprecated and use 7596 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1. 7597 * To maintain backward compatibility, 7598 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 7599 * is still used if either of the driver or user space application 7600 * doesn't support the 6 GHz band. 7601 * 7602 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH: Required (u8). 7603 * Takes one of enum nl80211_chan_width values. 7604 * 7605 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST: Required 7606 * Array of nested values for each channel with following attributes: 7607 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY in MHz (u32), 7608 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY in MHz (u32), 7609 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 in MHz (u32), 7610 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 in MHz (u32), 7611 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 7612 * Note: If user-space application has no support of the 6 GHz band, this 7613 * attribute is optional. 7614 * 7615 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY: Required (u32) 7616 * Primary channel frequency in MHz 7617 * Note: If user-space application has no support of the 6 GHz band, this 7618 * attribute is optional. 7619 * 7620 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY: Required (u32) 7621 * Secondary channel frequency in MHz used for HT 40 MHz channels. 7622 * Note: If user-space application has no support of the 6 GHz band, this 7623 * attribute is optional. 7624 * 7625 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0: Required (u32) 7626 * VHT seg0 channel frequency in MHz 7627 * Note: If user-space application has no support of the 6GHz band, this 7628 * attribute is optional. 7629 * 7630 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1: Required (u32) 7631 * VHT seg1 channel frequency in MHz 7632 * Note: If user-space application has no support of the 6 GHz band, this 7633 * attribute is optional. 7634 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP: Required (u16) 7635 * Puncture Bitmap for selected primary channel. Optional if no support 7636 * for EHT (IEEE 802.11be). Encoding for this attribute follows the 7637 * convention used in the Disabled Subchannel Bitmap field of the EHT Operation 7638 * element. 7639 * @QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_LINK_ID: Mandatory on AP MLD (u8). 7640 * Used with command to configure external ACS operation for a specific link 7641 * affiliated to an AP MLD. 7642 */ 7643 enum qca_wlan_vendor_attr_external_acs_channels { 7644 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_INVALID = 0, 7645 7646 /* One of reason code (u8) from enum qca_wlan_vendor_acs_select_reason 7647 */ 7648 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_REASON = 1, 7649 7650 /* Array of nested values for each channel with following attributes: 7651 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND, 7652 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY, 7653 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY, 7654 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0, 7655 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1, 7656 * QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH 7657 */ 7658 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LIST = 2, 7659 /* This (u8) will hold values of one of enum nl80211_bands */ 7660 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_BAND = 3, 7661 /* Primary channel (u8) */ 7662 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_PRIMARY = 4, 7663 /* Secondary channel (u8) used for HT 40 MHz channels */ 7664 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_SECONDARY = 5, 7665 /* VHT seg0 channel (u8) */ 7666 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG0 = 6, 7667 /* VHT seg1 channel (u8) */ 7668 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_CENTER_SEG1 = 7, 7669 /* Channel width (u8). Takes one of enum nl80211_chan_width values. */ 7670 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_WIDTH = 8, 7671 7672 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_LIST = 9, 7673 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_PRIMARY = 10, 7674 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_SECONDARY = 11, 7675 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG0 = 12, 7676 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_FREQUENCY_CENTER_SEG1 = 13, 7677 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_PUNCTURE_BITMAP = 14, 7678 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_LINK_ID = 15, 7679 7680 /* keep last */ 7681 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST, 7682 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_MAX = 7683 QCA_WLAN_VENDOR_ATTR_EXTERNAL_ACS_CHANNEL_LAST - 1 7684 }; 7685 7686 enum qca_chip_power_save_failure_reason { 7687 /* Indicates if the reason for the failure is due to a protocol 7688 * layer/module. 7689 */ 7690 QCA_CHIP_POWER_SAVE_FAILURE_REASON_PROTOCOL = 0, 7691 /* Indicates if the reason for the failure is due to a hardware issue. 7692 */ 7693 QCA_CHIP_POWER_SAVE_FAILURE_REASON_HARDWARE = 1, 7694 }; 7695 7696 /** 7697 * qca_attr_chip_power_save_failure: Attributes to vendor subcmd 7698 * QCA_NL80211_VENDOR_SUBCMD_CHIP_PWRSAVE_FAILURE. This carries the requisite 7699 * information leading to the power save failure. 7700 */ 7701 enum qca_attr_chip_power_save_failure { 7702 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_INVALID = 0, 7703 /* Reason to cause the power save failure. 7704 * These reasons are represented by 7705 * enum qca_chip_power_save_failure_reason. 7706 */ 7707 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_REASON = 1, 7708 7709 /* keep last */ 7710 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST, 7711 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_MAX = 7712 QCA_ATTR_CHIP_POWER_SAVE_FAILURE_LAST - 1, 7713 }; 7714 7715 /** 7716 * qca_wlan_vendor_nud_stats_data_pkt_flags: Flag representing the various 7717 * data types for which the stats have to get collected. 7718 */ 7719 enum qca_wlan_vendor_nud_stats_data_pkt_flags { 7720 QCA_WLAN_VENDOR_NUD_STATS_DATA_ARP = 1 << 0, 7721 QCA_WLAN_VENDOR_NUD_STATS_DATA_DNS = 1 << 1, 7722 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_HANDSHAKE = 1 << 2, 7723 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV4 = 1 << 3, 7724 QCA_WLAN_VENDOR_NUD_STATS_DATA_ICMPV6 = 1 << 4, 7725 /* Used by QCA_ATTR_NUD_STATS_PKT_TYPE only in nud stats get 7726 * to represent the stats of respective data type. 7727 */ 7728 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN = 1 << 5, 7729 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_SYN_ACK = 1 << 6, 7730 QCA_WLAN_VENDOR_NUD_STATS_DATA_TCP_ACK = 1 << 7, 7731 }; 7732 7733 enum qca_wlan_vendor_nud_stats_set_data_pkt_info { 7734 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_INVALID = 0, 7735 /* Represents the data packet type to be monitored (u32). 7736 * Host driver tracks the stats corresponding to each data frame 7737 * represented by these flags. 7738 * These data packets are represented by 7739 * enum qca_wlan_vendor_nud_stats_data_pkt_flags 7740 */ 7741 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_TYPE = 1, 7742 /* Name corresponding to the DNS frame for which the respective DNS 7743 * stats have to get monitored (string). Max string length 255. 7744 */ 7745 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DNS_DOMAIN_NAME = 2, 7746 /* source port on which the respective proto stats have to get 7747 * collected (u32). 7748 */ 7749 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_SRC_PORT = 3, 7750 /* destination port on which the respective proto stats have to get 7751 * collected (u32). 7752 */ 7753 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_PORT = 4, 7754 /* IPv4 address for which the destined data packets have to be 7755 * monitored. (in network byte order), u32. 7756 */ 7757 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV4 = 5, 7758 /* IPv6 address for which the destined data packets have to be 7759 * monitored. (in network byte order), 16 bytes array. 7760 */ 7761 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_DEST_IPV6 = 6, 7762 7763 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST, 7764 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_MAX = 7765 QCA_ATTR_NUD_STATS_DATA_PKT_INFO_LAST - 1, 7766 }; 7767 7768 /** 7769 * qca_wlan_vendor_attr_nud_stats_set: Attributes to vendor subcmd 7770 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_SET. This carries the requisite 7771 * information to start/stop the NUD statistics collection. 7772 */ 7773 enum qca_attr_nud_stats_set { 7774 QCA_ATTR_NUD_STATS_SET_INVALID = 0, 7775 7776 /* Flag to start/stop the NUD statistics collection. 7777 * Start - If included, Stop - If not included 7778 */ 7779 QCA_ATTR_NUD_STATS_SET_START = 1, 7780 /* IPv4 address of the default gateway (in network byte order), u32 */ 7781 QCA_ATTR_NUD_STATS_GW_IPV4 = 2, 7782 /* Represents the list of data packet types to be monitored. 7783 * Host driver tracks the stats corresponding to each data frame 7784 * represented by these flags. 7785 * These data packets are represented by 7786 * enum qca_wlan_vendor_nud_stats_set_data_pkt_info 7787 */ 7788 QCA_ATTR_NUD_STATS_SET_DATA_PKT_INFO = 3, 7789 7790 /* keep last */ 7791 QCA_ATTR_NUD_STATS_SET_LAST, 7792 QCA_ATTR_NUD_STATS_SET_MAX = 7793 QCA_ATTR_NUD_STATS_SET_LAST - 1, 7794 }; 7795 7796 enum qca_attr_nud_data_stats { 7797 QCA_ATTR_NUD_DATA_STATS_INVALID = 0, 7798 /* Data packet type for which the stats are collected (u32). 7799 * Represented by enum qca_wlan_vendor_nud_stats_data_pkt_flags 7800 */ 7801 QCA_ATTR_NUD_STATS_PKT_TYPE = 1, 7802 /* Name corresponding to the DNS frame for which the respective DNS 7803 * stats are monitored (string). Max string length 255. 7804 */ 7805 QCA_ATTR_NUD_STATS_PKT_DNS_DOMAIN_NAME = 2, 7806 /* source port on which the respective proto stats are collected (u32). 7807 */ 7808 QCA_ATTR_NUD_STATS_PKT_SRC_PORT = 3, 7809 /* destination port on which the respective proto stats are collected 7810 * (u32). 7811 */ 7812 QCA_ATTR_NUD_STATS_PKT_DEST_PORT = 4, 7813 /* IPv4 address for which the destined data packets have to be 7814 * monitored. (in network byte order), u32. 7815 */ 7816 QCA_ATTR_NUD_STATS_PKT_DEST_IPV4 = 5, 7817 /* IPv6 address for which the destined data packets have to be 7818 * monitored. (in network byte order), 16 bytes array. 7819 */ 7820 QCA_ATTR_NUD_STATS_PKT_DEST_IPV6 = 6, 7821 /* Data packet Request count received from netdev (u32). */ 7822 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_FROM_NETDEV = 7, 7823 /* Data packet Request count sent to lower MAC from upper MAC (u32). */ 7824 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TO_LOWER_MAC = 8, 7825 /* Data packet Request count received by lower MAC from upper MAC 7826 * (u32) 7827 */ 7828 QCA_ATTR_NUD_STATS_PKT_REQ_RX_COUNT_BY_LOWER_MAC = 9, 7829 /* Data packet Request count successfully transmitted by the device 7830 * (u32) 7831 */ 7832 QCA_ATTR_NUD_STATS_PKT_REQ_COUNT_TX_SUCCESS = 10, 7833 /* Data packet Response count received by lower MAC (u32) */ 7834 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_LOWER_MAC = 11, 7835 /* Data packet Response count received by upper MAC (u32) */ 7836 QCA_ATTR_NUD_STATS_PKT_RSP_RX_COUNT_BY_UPPER_MAC = 12, 7837 /* Data packet Response count delivered to netdev (u32) */ 7838 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_TO_NETDEV = 13, 7839 /* Data Packet Response count that are dropped out of order (u32) */ 7840 QCA_ATTR_NUD_STATS_PKT_RSP_COUNT_OUT_OF_ORDER_DROP = 14, 7841 7842 /* keep last */ 7843 QCA_ATTR_NUD_DATA_STATS_LAST, 7844 QCA_ATTR_NUD_DATA_STATS_MAX = 7845 QCA_ATTR_NUD_DATA_STATS_LAST - 1, 7846 }; 7847 7848 /** 7849 * qca_attr_nud_stats_get: Attributes to vendor subcmd 7850 * QCA_NL80211_VENDOR_SUBCMD_NUD_STATS_GET. This carries the requisite 7851 * NUD statistics collected when queried. 7852 */ 7853 enum qca_attr_nud_stats_get { 7854 QCA_ATTR_NUD_STATS_GET_INVALID = 0, 7855 /* ARP Request count from netdev (u32) */ 7856 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_FROM_NETDEV = 1, 7857 /* ARP Request count sent to lower MAC from upper MAC (u32) */ 7858 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TO_LOWER_MAC = 2, 7859 /* ARP Request count received by lower MAC from upper MAC (u32) */ 7860 QCA_ATTR_NUD_STATS_ARP_REQ_RX_COUNT_BY_LOWER_MAC = 3, 7861 /* ARP Request count successfully transmitted by the device (u32) */ 7862 QCA_ATTR_NUD_STATS_ARP_REQ_COUNT_TX_SUCCESS = 4, 7863 /* ARP Response count received by lower MAC (u32) */ 7864 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_LOWER_MAC = 5, 7865 /* ARP Response count received by upper MAC (u32) */ 7866 QCA_ATTR_NUD_STATS_ARP_RSP_RX_COUNT_BY_UPPER_MAC = 6, 7867 /* ARP Response count delivered to netdev (u32) */ 7868 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_TO_NETDEV = 7, 7869 /* ARP Response count dropped due to out of order reception (u32) */ 7870 QCA_ATTR_NUD_STATS_ARP_RSP_COUNT_OUT_OF_ORDER_DROP = 8, 7871 /* Flag indicating if the station's link to the AP is active. 7872 * Active Link - If included, Inactive link - If not included 7873 */ 7874 QCA_ATTR_NUD_STATS_AP_LINK_ACTIVE = 9, 7875 /* Flag indicating if there is any duplicate address detected (DAD). 7876 * Yes - If detected, No - If not detected. 7877 */ 7878 QCA_ATTR_NUD_STATS_IS_DAD = 10, 7879 /* List of Data packet types for which the stats are requested. 7880 * This list does not carry ARP stats as they are done by the 7881 * above attributes. Represented by enum qca_attr_nud_data_stats. 7882 */ 7883 QCA_ATTR_NUD_STATS_DATA_PKT_STATS = 11, 7884 7885 /* keep last */ 7886 QCA_ATTR_NUD_STATS_GET_LAST, 7887 QCA_ATTR_NUD_STATS_GET_MAX = 7888 QCA_ATTR_NUD_STATS_GET_LAST - 1, 7889 }; 7890 7891 enum qca_wlan_btm_candidate_status { 7892 QCA_STATUS_ACCEPT = 0, 7893 QCA_STATUS_REJECT_EXCESSIVE_FRAME_LOSS_EXPECTED = 1, 7894 QCA_STATUS_REJECT_EXCESSIVE_DELAY_EXPECTED = 2, 7895 QCA_STATUS_REJECT_INSUFFICIENT_QOS_CAPACITY = 3, 7896 QCA_STATUS_REJECT_LOW_RSSI = 4, 7897 QCA_STATUS_REJECT_HIGH_INTERFERENCE = 5, 7898 QCA_STATUS_REJECT_UNKNOWN = 6, 7899 }; 7900 7901 enum qca_wlan_vendor_attr_btm_candidate_info { 7902 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_INVALID = 0, 7903 7904 /* 6-byte MAC address representing the BSSID of transition candidate */ 7905 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID = 1, 7906 /* Unsigned 32-bit value from enum qca_wlan_btm_candidate_status 7907 * returned by the driver. It says whether the BSSID provided in 7908 * QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_BSSID is acceptable by 7909 * the driver, if not it specifies the reason for rejection. 7910 * Note that the user-space can overwrite the transition reject reason 7911 * codes provided by driver based on more information. 7912 */ 7913 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_STATUS = 2, 7914 7915 /* keep last */ 7916 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST, 7917 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_MAX = 7918 QCA_WLAN_VENDOR_ATTR_BTM_CANDIDATE_INFO_AFTER_LAST - 1, 7919 }; 7920 7921 enum qca_attr_trace_level { 7922 QCA_ATTR_TRACE_LEVEL_INVALID = 0, 7923 /* 7924 * Nested array of the following attributes: 7925 * QCA_ATTR_TRACE_LEVEL_MODULE, 7926 * QCA_ATTR_TRACE_LEVEL_MASK. 7927 */ 7928 QCA_ATTR_TRACE_LEVEL_PARAM = 1, 7929 /* 7930 * Specific QCA host driver module. Please refer to the QCA host 7931 * driver implementation to get the specific module ID. 7932 */ 7933 QCA_ATTR_TRACE_LEVEL_MODULE = 2, 7934 /* Different trace level masks represented in the QCA host driver. */ 7935 QCA_ATTR_TRACE_LEVEL_MASK = 3, 7936 7937 /* keep last */ 7938 QCA_ATTR_TRACE_LEVEL_AFTER_LAST, 7939 QCA_ATTR_TRACE_LEVEL_MAX = 7940 QCA_ATTR_TRACE_LEVEL_AFTER_LAST - 1, 7941 }; 7942 7943 /** 7944 * enum qca_wlan_vendor_attr_get_he_capabilities - IEEE 802.11ax HE capabilities 7945 */ 7946 enum qca_wlan_vendor_attr_get_he_capabilities { 7947 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_INVALID = 0, 7948 /* Whether HE capabilities is supported 7949 * (u8 attribute: 0 = not supported, 1 = supported) 7950 */ 7951 QCA_WLAN_VENDOR_ATTR_HE_SUPPORTED = 1, 7952 /* HE PHY capabilities, array of 3 u32 values */ 7953 QCA_WLAN_VENDOR_ATTR_PHY_CAPAB = 2, 7954 /* HE MAC capabilities (u32 attribute) */ 7955 QCA_WLAN_VENDOR_ATTR_MAC_CAPAB = 3, 7956 /* HE MCS map (u32 attribute) */ 7957 QCA_WLAN_VENDOR_ATTR_HE_MCS = 4, 7958 /* Number of SS (u32 attribute) */ 7959 QCA_WLAN_VENDOR_ATTR_NUM_SS = 5, 7960 /* RU count (u32 attribute) */ 7961 QCA_WLAN_VENDOR_ATTR_RU_IDX_MASK = 6, 7962 /* PPE threshold data, array of 8 u32 values */ 7963 QCA_WLAN_VENDOR_ATTR_PPE_THRESHOLD = 7, 7964 7965 /* keep last */ 7966 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST, 7967 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_MAX = 7968 QCA_WLAN_VENDOR_ATTR_HE_CAPABILITIES_AFTER_LAST - 1, 7969 }; 7970 7971 /** 7972 * enum qca_wlan_vendor_attr_spectral_scan - Spectral scan config parameters 7973 */ 7974 enum qca_wlan_vendor_attr_spectral_scan { 7975 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INVALID = 0, 7976 /* Number of times the chip enters spectral scan mode before 7977 * deactivating spectral scans. When set to 0, chip will enter spectral 7978 * scan mode continuously. u32 attribute. 7979 */ 7980 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_COUNT = 1, 7981 /* Spectral scan period. Period increment resolution is 256*Tclk, 7982 * where Tclk = 1/44 MHz (Gmode), 1/40 MHz (Amode). u32 attribute. 7983 */ 7984 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SCAN_PERIOD = 2, 7985 /* Spectral scan priority. u32 attribute. */ 7986 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PRIORITY = 3, 7987 /* Number of FFT data points to compute. u32 attribute. */ 7988 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_SIZE = 4, 7989 /* Enable targeted gain change before starting the spectral scan FFT. 7990 * u32 attribute. 7991 */ 7992 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_GC_ENA = 5, 7993 /* Restart a queued spectral scan. u32 attribute. */ 7994 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RESTART_ENA = 6, 7995 /* Noise floor reference number for the calculation of bin power. 7996 * u32 attribute. 7997 */ 7998 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NOISE_FLOOR_REF = 7, 7999 /* Disallow spectral scan triggers after TX/RX packets by setting 8000 * this delay value to roughly SIFS time period or greater. 8001 * u32 attribute. 8002 */ 8003 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_INIT_DELAY = 8, 8004 /* Number of strong bins (inclusive) per sub-channel, below 8005 * which a signal is declared a narrow band tone. u32 attribute. 8006 */ 8007 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_NB_TONE_THR = 9, 8008 /* Specify the threshold over which a bin is declared strong (for 8009 * scan bandwidth analysis). u32 attribute. 8010 */ 8011 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_STR_BIN_THR = 10, 8012 /* Spectral scan report mode. u32 attribute. */ 8013 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_WB_RPT_MODE = 11, 8014 /* RSSI report mode, if the ADC RSSI is below 8015 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR, 8016 * then FFTs will not trigger, but timestamps and summaries get 8017 * reported. u32 attribute. 8018 */ 8019 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_RPT_MODE = 12, 8020 /* ADC RSSI must be greater than or equal to this threshold (signed dB) 8021 * to ensure spectral scan reporting with normal error code. 8022 * u32 attribute. 8023 */ 8024 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RSSI_THR = 13, 8025 /* Format of frequency bin magnitude for spectral scan triggered FFTs: 8026 * 0: linear magnitude, 1: log magnitude (20*log10(lin_mag)). 8027 * u32 attribute. 8028 */ 8029 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PWR_FORMAT = 14, 8030 /* Format of FFT report to software for spectral scan triggered FFTs. 8031 * 0: No FFT report (only spectral scan summary report) 8032 * 1: 2-dword summary of metrics for each completed FFT + spectral scan 8033 * report 8034 * 2: 2-dword summary of metrics for each completed FFT + 1x-oversampled 8035 * bins (in-band) per FFT + spectral scan summary report 8036 * 3: 2-dword summary of metrics for each completed FFT + 2x-oversampled 8037 * bins (all) per FFT + spectral scan summary report 8038 * u32 attribute. 8039 */ 8040 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_RPT_MODE = 15, 8041 /* Number of LSBs to shift out in order to scale the FFT bins. 8042 * u32 attribute. 8043 */ 8044 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BIN_SCALE = 16, 8045 /* Set to 1 (with spectral_scan_pwr_format=1), to report bin magnitudes 8046 * in dBm power. u32 attribute. 8047 */ 8048 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DBM_ADJ = 17, 8049 /* Per chain enable mask to select input ADC for search FFT. 8050 * u32 attribute. 8051 */ 8052 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_CHN_MASK = 18, 8053 /* An unsigned 64-bit integer provided by host driver to identify the 8054 * spectral scan request. This attribute is included in the scan 8055 * response message for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START 8056 * and used as an attribute in 8057 * @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_STOP to identify the 8058 * specific scan to be stopped. 8059 */ 8060 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COOKIE = 19, 8061 /* Skip interval for FFT reports. u32 attribute */ 8062 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_PERIOD = 20, 8063 /* Set to report only one set of FFT results. 8064 * u32 attribute. 8065 */ 8066 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_SHORT_REPORT = 21, 8067 /* Debug level for spectral module in driver. 8068 * 0 : Verbosity level 0 8069 * 1 : Verbosity level 1 8070 * 2 : Verbosity level 2 8071 * 3 : Matched filterID display 8072 * 4 : One time dump of FFT report 8073 * u32 attribute. 8074 */ 8075 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DEBUG_LEVEL = 22, 8076 /* Type of spectral scan request. u32 attribute. 8077 * It uses values defined in enum 8078 * qca_wlan_vendor_attr_spectral_scan_request_type. 8079 */ 8080 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE = 23, 8081 /* This specifies the frequency span over which spectral 8082 * scan would be carried out. Its value depends on the 8083 * value of QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and 8084 * the relation is as follows. 8085 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL 8086 * Not applicable. Spectral scan would happen in the 8087 * operating span. 8088 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE 8089 * Center frequency (in MHz) of the span of interest or 8090 * for convenience, center frequency (in MHz) of any channel 8091 * in the span of interest. For 80+80 MHz agile spectral scan 8092 * request it represents center frequency (in MHz) of the primary 8093 * 80 MHz span or for convenience, center frequency (in MHz) of any 8094 * channel in the primary 80 MHz span. If agile spectral scan is 8095 * initiated without setting a valid frequency it returns the 8096 * error code 8097 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED). 8098 * u32 attribute. 8099 */ 8100 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY = 24, 8101 /* Spectral scan mode. u32 attribute. 8102 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. 8103 * If this attribute is not present, it is assumed to be 8104 * normal mode (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL). 8105 */ 8106 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE = 25, 8107 /* Spectral scan error code. u32 attribute. 8108 * It uses values defined in enum 8109 * qca_wlan_vendor_spectral_scan_error_code. 8110 * This attribute is included only in failure scenarios. 8111 */ 8112 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE = 26, 8113 /* 8-bit unsigned value to enable/disable debug of the 8114 * Spectral DMA ring. 8115 * 1-enable, 0-disable 8116 */ 8117 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_RING_DEBUG = 27, 8118 /* 8-bit unsigned value to enable/disable debug of the 8119 * Spectral DMA buffers. 8120 * 1-enable, 0-disable 8121 */ 8122 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_DMA_BUFFER_DEBUG = 28, 8123 /* This specifies the frequency span over which spectral scan would be 8124 * carried out. Its value depends on the value of 8125 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE and the relation is as 8126 * follows. 8127 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL 8128 * Not applicable. Spectral scan would happen in the operating span. 8129 * QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE 8130 * This attribute is applicable only for agile spectral scan 8131 * requests in 80+80 MHz mode. It represents center frequency (in 8132 * MHz) of the secondary 80 MHz span or for convenience, center 8133 * frequency (in MHz) of any channel in the secondary 80 MHz span. 8134 * u32 attribute. 8135 */ 8136 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FREQUENCY_2 = 29, 8137 /* This attribute specifies the bandwidth to be used for spectral scan 8138 * operation. This is an u8 attribute and uses the values in enum 8139 * nl80211_chan_width. This is an optional attribute. 8140 * If this attribute is not populated, the driver should configure the 8141 * spectral scan bandwidth to the maximum value supported by the target 8142 * for the current operating bandwidth. 8143 */ 8144 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_BANDWIDTH = 30, 8145 /* Spectral FFT recapture flag attribute, to enable FFT recapture. 8146 * Recapture can only be enabled for scan period greater than 52 us. 8147 * If this attribute is enabled, re-triggers will be enabled when AGC 8148 * gain changes. 8149 */ 8150 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_FFT_RECAPTURE = 31, 8151 /* Attribute used for padding for 64-bit alignment */ 8152 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_PAD = 32, 8153 /* Spectral data transport mode. u32 attribute. It uses values 8154 * defined in enum qca_wlan_vendor_spectral_data_transport_mode. 8155 * This is an optional attribute. If this attribute is not populated, 8156 * the driver should configure the default transport mode to netlink. 8157 */ 8158 QCA_WLAN_VENDOR_ATTR_SPECTRAL_DATA_TRANSPORT_MODE = 33, 8159 /* Spectral scan completion timeout. u32 attribute. This 8160 * attribute is used to configure a timeout value (in us). The 8161 * timeout value would be from the beginning of a spectral 8162 * scan. This is an optional attribute. If this attribute is 8163 * not populated, the driver would internally derive the 8164 * timeout value. 8165 */ 8166 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETION_TIMEOUT = 34, 8167 8168 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST, 8169 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_MAX = 8170 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CONFIG_AFTER_LAST - 1, 8171 }; 8172 8173 /** 8174 * enum qca_wlan_vendor_attr_spectral_diag_stats - Used by the vendor command 8175 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_DIAG_STATS. 8176 */ 8177 enum qca_wlan_vendor_attr_spectral_diag_stats { 8178 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_INVALID = 0, 8179 /* Number of spectral TLV signature mismatches. 8180 * u64 attribute. 8181 */ 8182 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SIG_MISMATCH = 1, 8183 /* Number of spectral phyerror events with insufficient length when 8184 * parsing for secondary 80 search FFT report. u64 attribute. 8185 */ 8186 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_SEC80_SFFT_INSUFFLEN = 2, 8187 /* Number of spectral phyerror events without secondary 80 8188 * search FFT report. u64 attribute. 8189 */ 8190 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_NOSEC80_SFFT = 3, 8191 /* Number of spectral phyerror events with vht operation segment 1 id 8192 * mismatches in search fft report. u64 attribute. 8193 */ 8194 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG1ID_MISMATCH = 4, 8195 /* Number of spectral phyerror events with vht operation segment 2 id 8196 * mismatches in search fft report. u64 attribute. 8197 */ 8198 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_VHTSEG2ID_MISMATCH = 5, 8199 /* Attribute used for padding for 64-bit alignment */ 8200 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_PAD = 6, 8201 8202 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST, 8203 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_MAX = 8204 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_DIAG_AFTER_LAST - 1, 8205 }; 8206 8207 /** 8208 * enum qca_wlan_vendor_attr_spectral_cap - Used by the vendor command 8209 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. 8210 */ 8211 enum qca_wlan_vendor_attr_spectral_cap { 8212 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_INVALID = 0, 8213 /* Flag attribute to indicate phydiag capability */ 8214 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_PHYDIAG = 1, 8215 /* Flag attribute to indicate radar detection capability */ 8216 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RADAR = 2, 8217 /* Flag attribute to indicate spectral capability */ 8218 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_SPECTRAL = 3, 8219 /* Flag attribute to indicate advanced spectral capability */ 8220 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_ADVANCED_SPECTRAL = 4, 8221 /* Spectral hardware generation. u32 attribute. 8222 * It uses values defined in enum 8223 * qca_wlan_vendor_spectral_scan_cap_hw_gen. 8224 */ 8225 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN = 5, 8226 /* Spectral bin scaling formula ID. u16 attribute. 8227 * It uses values defined in enum 8228 * qca_wlan_vendor_spectral_scan_cap_formula_id. 8229 */ 8230 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID = 6, 8231 /* Spectral bin scaling param - low level offset. 8232 * s16 attribute. 8233 */ 8234 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_LOW_LEVEL_OFFSET = 7, 8235 /* Spectral bin scaling param - high level offset. 8236 * s16 attribute. 8237 */ 8238 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HIGH_LEVEL_OFFSET = 8, 8239 /* Spectral bin scaling param - RSSI threshold. 8240 * s16 attribute. 8241 */ 8242 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_RSSI_THR = 9, 8243 /* Spectral bin scaling param - default AGC max gain. 8244 * u8 attribute. 8245 */ 8246 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_DEFAULT_AGC_MAX_GAIN = 10, 8247 /* Flag attribute to indicate agile spectral scan capability 8248 * for 20/40/80 MHz modes. 8249 */ 8250 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL = 11, 8251 /* Flag attribute to indicate agile spectral scan capability 8252 * for 160 MHz mode. 8253 */ 8254 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_160 = 12, 8255 /* Flag attribute to indicate agile spectral scan capability 8256 * for 80+80 MHz mode. 8257 */ 8258 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_80_80 = 13, 8259 /* Number of spectral detectors used for scan in 20 MHz. 8260 * u32 attribute. 8261 */ 8262 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_20_MHZ = 14, 8263 /* Number of spectral detectors used for scan in 40 MHz. 8264 * u32 attribute. 8265 */ 8266 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_40_MHZ = 15, 8267 /* Number of spectral detectors used for scan in 80 MHz. 8268 * u32 attribute. 8269 */ 8270 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80_MHZ = 16, 8271 /* Number of spectral detectors used for scan in 160 MHz. 8272 * u32 attribute. 8273 */ 8274 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_160_MHZ = 17, 8275 /* Number of spectral detectors used for scan in 80+80 MHz. 8276 * u32 attribute. 8277 */ 8278 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_80P80_MHZ = 18, 8279 /* Flag attribute to indicate agile spectral scan capability 8280 * for 320 MHz mode. 8281 */ 8282 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AGILE_SPECTRAL_320 = 19, 8283 /* Number of spectral detectors used for scan in 320 MHz. 8284 * u32 attribute. 8285 */ 8286 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_NUM_DETECTORS_320_MHZ = 20, 8287 8288 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST, 8289 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_MAX = 8290 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_AFTER_LAST - 1, 8291 }; 8292 8293 /** 8294 * enum qca_wlan_vendor_attr_spectral_scan_status - used by the vendor command 8295 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. 8296 */ 8297 enum qca_wlan_vendor_attr_spectral_scan_status { 8298 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_INVALID = 0, 8299 /* Flag attribute to indicate whether spectral scan is enabled */ 8300 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ENABLED = 1, 8301 /* Flag attribute to indicate whether spectral scan is in progress*/ 8302 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_IS_ACTIVE = 2, 8303 /* Spectral scan mode. u32 attribute. 8304 * It uses values defined in enum qca_wlan_vendor_spectral_scan_mode. 8305 * If this attribute is not present, normal mode 8306 * (QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL is assumed to be 8307 * requested. 8308 */ 8309 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE = 3, 8310 8311 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST, 8312 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MAX = 8313 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_AFTER_LAST - 1, 8314 }; 8315 8316 /** 8317 * qca_wlan_vendor_attr_spectral_scan_request_type: Attribute values for 8318 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE to the vendor subcmd 8319 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. This represents the 8320 * spectral scan request types. 8321 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG: Request to 8322 * set the spectral parameters and start scan. 8323 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN: Request to 8324 * only set the spectral parameters. 8325 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG: Request to 8326 * only start the spectral scan. 8327 */ 8328 enum qca_wlan_vendor_attr_spectral_scan_request_type { 8329 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN_AND_CONFIG, 8330 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_SCAN, 8331 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_REQUEST_TYPE_CONFIG, 8332 }; 8333 8334 /** 8335 * qca_wlan_vendor_spectral_scan_mode: Attribute values for 8336 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_MODE in the vendor subcmd 8337 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START and 8338 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_STATUS_MODE in the vendor subcmd 8339 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_STATUS. This represents the 8340 * spectral scan modes. 8341 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL: Normal spectral scan: 8342 * spectral scan in the current operating span. 8343 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE: Agile spectral scan: 8344 * spectral scan in the configured agile span. 8345 */ 8346 enum qca_wlan_vendor_spectral_scan_mode { 8347 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_NORMAL = 0, 8348 QCA_WLAN_VENDOR_SPECTRAL_SCAN_MODE_AGILE = 1, 8349 }; 8350 8351 /** 8352 * qca_wlan_vendor_spectral_scan_error_code: Attribute values for 8353 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_ERROR_CODE in the vendor subcmd 8354 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_START. 8355 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED: Changing the value 8356 * of a parameter is not supported. 8357 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED: Requested spectral scan 8358 * mode is not supported. 8359 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE: A parameter 8360 * has invalid value. 8361 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED: A parameter 8362 * is not initialized. 8363 */ 8364 enum qca_wlan_vendor_spectral_scan_error_code { 8365 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_UNSUPPORTED = 0, 8366 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_MODE_UNSUPPORTED = 1, 8367 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_INVALID_VALUE = 2, 8368 QCA_WLAN_VENDOR_SPECTRAL_SCAN_ERR_PARAM_NOT_INITIALIZED = 3, 8369 }; 8370 8371 /** 8372 * qca_wlan_vendor_spectral_scan_cap_hw_gen: Attribute values for 8373 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_HW_GEN to the vendor subcmd 8374 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the 8375 * spectral hardware generation. 8376 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1: generation 1 8377 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2: generation 2 8378 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3: generation 3 8379 */ 8380 enum qca_wlan_vendor_spectral_scan_cap_hw_gen { 8381 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_1 = 0, 8382 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_2 = 1, 8383 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_HW_GEN_3 = 2, 8384 }; 8385 8386 enum qca_wlan_vendor_tos { 8387 QCA_WLAN_VENDOR_TOS_BK = 0, 8388 QCA_WLAN_VENDOR_TOS_BE = 1, 8389 QCA_WLAN_VENDOR_TOS_VI = 2, 8390 QCA_WLAN_VENDOR_TOS_VO = 3, 8391 }; 8392 8393 /** 8394 * enum qca_wlan_vendor_attr_active_tos - Used by the vendor command 8395 * QCA_NL80211_VENDOR_SUBCMD_ACTIVE_TOS. 8396 */ 8397 enum qca_wlan_vendor_attr_active_tos { 8398 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_INVALID = 0, 8399 /* Type Of Service - Represented by qca_wlan_vendor_tos */ 8400 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS = 1, 8401 /* Flag attribute representing the start (attribute included) or stop 8402 * (attribute not included) of the respective TOS. 8403 */ 8404 QCA_WLAN_VENDOR_ATTR_ACTIVE_TOS_START = 2, 8405 }; 8406 8407 enum qca_wlan_vendor_hang_reason { 8408 /* Unspecified reason */ 8409 QCA_WLAN_HANG_REASON_UNSPECIFIED = 0, 8410 /* No Map for the MAC entry for the received frame */ 8411 QCA_WLAN_HANG_RX_HASH_NO_ENTRY_FOUND = 1, 8412 /* Peer deletion timeout happened */ 8413 QCA_WLAN_HANG_PEER_DELETION_TIMEDOUT = 2, 8414 /* Peer unmap timeout */ 8415 QCA_WLAN_HANG_PEER_UNMAP_TIMEDOUT = 3, 8416 /* Scan request timed out */ 8417 QCA_WLAN_HANG_SCAN_REQ_EXPIRED = 4, 8418 /* Consecutive Scan attempt failures */ 8419 QCA_WLAN_HANG_SCAN_ATTEMPT_FAILURES = 5, 8420 /* Unable to get the message buffer */ 8421 QCA_WLAN_HANG_GET_MSG_BUFF_FAILURE = 6, 8422 /* Current command processing is timedout */ 8423 QCA_WLAN_HANG_ACTIVE_LIST_TIMEOUT = 7, 8424 /* Timeout for an ACK from FW for suspend request */ 8425 QCA_WLAN_HANG_SUSPEND_TIMEOUT = 8, 8426 /* Timeout for an ACK from FW for resume request */ 8427 QCA_WLAN_HANG_RESUME_TIMEOUT = 9, 8428 /* Transmission timeout for consecutive data frames */ 8429 QCA_WLAN_HANG_TRANSMISSIONS_TIMEOUT = 10, 8430 /* Timeout for the TX completion status of data frame */ 8431 QCA_WLAN_HANG_TX_COMPLETE_TIMEOUT = 11, 8432 /* DXE failure for TX/RX, DXE resource unavailability */ 8433 QCA_WLAN_HANG_DXE_FAILURE = 12, 8434 /* WMI pending commands exceed the maximum count */ 8435 QCA_WLAN_HANG_WMI_EXCEED_MAX_PENDING_CMDS = 13, 8436 /* Timeout for peer STA connection accept command's response from the 8437 * FW in AP mode. This command is triggered when a STA (peer) connects 8438 * to AP (DUT). 8439 */ 8440 QCA_WLAN_HANG_AP_STA_CONNECT_REQ_TIMEOUT = 14, 8441 /* Timeout for the AP connection accept command's response from the FW 8442 * in STA mode. This command is triggered when the STA (DUT) connects 8443 * to an AP (peer). 8444 */ 8445 QCA_WLAN_HANG_STA_AP_CONNECT_REQ_TIMEOUT = 15, 8446 /* Timeout waiting for the response to the MAC HW mode change command 8447 * sent to FW as a part of MAC mode switch among DBS (Dual Band 8448 * Simultaneous), SCC (Single Channel Concurrency), and MCC (Multi 8449 * Channel Concurrency) mode. 8450 */ 8451 QCA_WLAN_HANG_MAC_HW_MODE_CHANGE_TIMEOUT = 16, 8452 /* Timeout waiting for the response from FW to configure the MAC HW's 8453 * mode. This operation is to configure the single/two MACs in either 8454 * SCC/MCC/DBS mode. 8455 */ 8456 QCA_WLAN_HANG_MAC_HW_MODE_CONFIG_TIMEOUT = 17, 8457 /* Timeout waiting for response of VDEV start command from the FW */ 8458 QCA_WLAN_HANG_VDEV_START_RESPONSE_TIMED_OUT = 18, 8459 /* Timeout waiting for response of VDEV restart command from the FW */ 8460 QCA_WLAN_HANG_VDEV_RESTART_RESPONSE_TIMED_OUT = 19, 8461 /* Timeout waiting for response of VDEV stop command from the FW */ 8462 QCA_WLAN_HANG_VDEV_STOP_RESPONSE_TIMED_OUT = 20, 8463 /* Timeout waiting for response of VDEV delete command from the FW */ 8464 QCA_WLAN_HANG_VDEV_DELETE_RESPONSE_TIMED_OUT = 21, 8465 /* Timeout waiting for response of peer all delete request command to 8466 * the FW on a specific VDEV. 8467 */ 8468 QCA_WLAN_HANG_VDEV_PEER_DELETE_ALL_RESPONSE_TIMED_OUT = 22, 8469 /* WMI sequence mismatch between WMI command and Tx completion */ 8470 QCA_WLAN_HANG_WMI_BUF_SEQUENCE_MISMATCH = 23, 8471 /* Write to Device HAL register failed */ 8472 QCA_WLAN_HANG_REG_WRITE_FAILURE = 24, 8473 /* No credit left to send the wow_wakeup_from_sleep to firmware */ 8474 QCA_WLAN_HANG_SUSPEND_NO_CREDIT = 25, 8475 /* Bus failure */ 8476 QCA_WLAN_HANG_BUS_FAILURE = 26, 8477 /* tasklet/credit latency found */ 8478 QCA_WLAN_HANG_TASKLET_CREDIT_LATENCY_DETECT = 27, 8479 /* MSDU buffers received in REO error ring, exceeding certain 8480 * threshold 8481 */ 8482 QCA_WLAN_HANG_RX_MSDU_BUF_RCVD_IN_ERR_RING = 28, 8483 /* Vdev SM is out of sync and connect req received 8484 * when already connected 8485 */ 8486 QCA_WLAN_HANG_VDEV_SM_OUT_OF_SYNC = 29, 8487 /* Stats request timeout */ 8488 QCA_WLAN_HANG_STATS_REQ_TIMEOUT = 30, 8489 /* Leak in TX descriptor for a packet */ 8490 QCA_WLAN_HANG_TX_DESC_LEAK = 31, 8491 /* Scheduler watchdog timeout */ 8492 QCA_WLAN_HANG_SCHED_TIMEOUT = 32, 8493 /* Failed to send self peer deletion cmd to firmware */ 8494 QCA_WLAN_HANG_SELF_PEER_DEL_FAIL = 33, 8495 /* Received del self sta without del bss */ 8496 QCA_WLAN_HANG_DEL_SELF_STA_FAIL = 34, 8497 /* Recovery needed when sending flush completion to userspace */ 8498 QCA_WLAN_HANG_FLUSH_LOGS = 35, 8499 /* Host wakeup because of page fault */ 8500 QCA_WLAN_HANG_HOST_WAKEUP_REASON_PAGE_FAULT = 36, 8501 }; 8502 8503 /** 8504 * enum qca_wlan_vendor_attr_hang - Used by the vendor command 8505 * QCA_NL80211_VENDOR_SUBCMD_HANG. 8506 */ 8507 enum qca_wlan_vendor_attr_hang { 8508 QCA_WLAN_VENDOR_ATTR_HANG_INVALID = 0, 8509 /* Reason for the hang - u32 attribute with a value from enum 8510 * qca_wlan_vendor_hang_reason. 8511 */ 8512 QCA_WLAN_VENDOR_ATTR_HANG_REASON = 1, 8513 /* The binary blob data associated with the hang reason specified by 8514 * QCA_WLAN_VENDOR_ATTR_HANG_REASON. This binary data is expected to 8515 * contain the required dump to analyze the reason for the hang. 8516 * NLA_BINARY attribute, the max size is 1024 bytes. 8517 */ 8518 QCA_WLAN_VENDOR_ATTR_HANG_REASON_DATA = 2, 8519 8520 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST, 8521 QCA_WLAN_VENDOR_ATTR_HANG_MAX = 8522 QCA_WLAN_VENDOR_ATTR_HANG_AFTER_LAST - 1, 8523 }; 8524 8525 /** 8526 * enum qca_wlan_vendor_flush_pending_policy: Represents values for 8527 * the policy to flush pending frames, configured via 8528 * %QCA_NL80211_VENDOR_SUBCMD_PEER_FLUSH_PENDING. This enumeration defines the 8529 * valid values for %QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY. 8530 * 8531 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE: This value clears all 8532 * the flush policy configured before. This command basically disables the 8533 * flush config set by the user. 8534 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE: This value configures 8535 * the flush policy to be immediate. All pending packets for the peer/TID are 8536 * flushed when this command/policy is received. 8537 * @QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END: This value configures 8538 * the flush policy to the end of TWT SP. All pending packets for the peer/TID 8539 * are flushed when the end of TWT SP is reached. 8540 */ 8541 enum qca_wlan_vendor_flush_pending_policy { 8542 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_NONE = 0, 8543 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_IMMEDIATE = 1, 8544 QCA_WLAN_VENDOR_FLUSH_PENDING_POLICY_TWT_SP_END = 2, 8545 }; 8546 8547 /** 8548 * enum qca_wlan_vendor_attr_flush_pending - Attributes for 8549 * flushing pending traffic in firmware. 8550 * 8551 * @QCA_WLAN_VENDOR_ATTR_PEER_ADDR: Configure peer MAC address. 8552 * @QCA_WLAN_VENDOR_ATTR_AC: Configure access category of the pending 8553 * packets. It is u8 value with bit 0~3 represent AC_BE, AC_BK, 8554 * AC_VI, AC_VO respectively. Set the corresponding bit to 1 to 8555 * flush packets with access category. This is optional. See below. 8556 * @QCA_WLAN_VENDOR_ATTR_TID_MASK: Configure TID mask of the pending packets. 8557 * It is a u32 value with bit 0-7 representing TID 0-7. Set corresponding 8558 * bit to 1 to act upon the TID. This is optional. Either this attribute or 8559 * %QCA_WLAN_VENDOR_ATTR_AC must be provided. If both are provided, 8560 * %QCA_WLAN_VENDOR_ATTR_TID_MASK takes precedence. If neither are provided 8561 * it is an error. 8562 * @QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY: Policy of flushing the pending 8563 * packets corresponding to the peer/TID provided. It is a u32 value, 8564 * represented by %enum qca_wlan_vendor_flush_pending_policy. This 8565 * value is honored only when TID mask is provided. This is not honored when AC 8566 * mask is provided. 8567 */ 8568 enum qca_wlan_vendor_attr_flush_pending { 8569 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_INVALID = 0, 8570 QCA_WLAN_VENDOR_ATTR_PEER_ADDR = 1, 8571 QCA_WLAN_VENDOR_ATTR_AC = 2, 8572 QCA_WLAN_VENDOR_ATTR_TID_MASK = 3, 8573 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_POLICY = 4, 8574 8575 /* keep last */ 8576 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST, 8577 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_MAX = 8578 QCA_WLAN_VENDOR_ATTR_FLUSH_PENDING_AFTER_LAST - 1, 8579 }; 8580 8581 /** 8582 * qca_wlan_vendor_spectral_scan_cap_formula_id: Attribute values for 8583 * QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_CAP_FORMULA_ID in the vendor subcmd 8584 * QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_GET_CAP_INFO. This represents the 8585 * Spectral bin scaling formula ID. 8586 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING: No scaling 8587 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED: AGC gain 8588 * and RSSI threshold based formula. 8589 */ 8590 enum qca_wlan_vendor_spectral_scan_cap_formula_id { 8591 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_NO_SCALING = 0, 8592 QCA_WLAN_VENDOR_SPECTRAL_SCAN_CAP_AGC_GAIN_RSSI_CORR_BASED = 1, 8593 }; 8594 8595 /** 8596 * enum qca_wlan_vendor_attr_rropavail_info - Specifies whether Representative 8597 * RF Operating Parameter (RROP) information is available, and if so, at which 8598 * point in the application-driver interaction sequence it can be retrieved by 8599 * the application from the driver. This point may vary by architecture and 8600 * other factors. This is a u16 value. 8601 */ 8602 enum qca_wlan_vendor_attr_rropavail_info { 8603 /* RROP information is unavailable. */ 8604 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_UNAVAILABLE, 8605 /* RROP information is available and the application can retrieve the 8606 * information after receiving an QCA_NL80211_VENDOR_SUBCMD_EXTERNAL_ACS 8607 * event from the driver. 8608 */ 8609 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_EXTERNAL_ACS_START, 8610 /* RROP information is available only after a vendor specific scan 8611 * (requested using QCA_NL80211_VENDOR_SUBCMD_TRIGGER_SCAN) has 8612 * successfully completed. The application can retrieve the information 8613 * after receiving the QCA_NL80211_VENDOR_SUBCMD_SCAN_DONE event from 8614 * the driver. 8615 */ 8616 QCA_WLAN_VENDOR_ATTR_RROPAVAIL_INFO_VSCAN_END, 8617 }; 8618 8619 /** 8620 * enum qca_wlan_vendor_attr_rrop_info - Specifies vendor specific 8621 * Representative RF Operating Parameter (RROP) information. It is sent for the 8622 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_RROP_INFO. This information is 8623 * intended for use by external Auto Channel Selection applications. It provides 8624 * guidance values for some RF parameters that are used by the system during 8625 * operation. These values could vary by channel, band, radio, and so on. 8626 */ 8627 enum qca_wlan_vendor_attr_rrop_info { 8628 QCA_WLAN_VENDOR_ATTR_RROP_INFO_INVALID = 0, 8629 8630 /* Representative Tx Power List (RTPL) which has an array of nested 8631 * values as per attributes in enum qca_wlan_vendor_attr_rtplinst. 8632 */ 8633 QCA_WLAN_VENDOR_ATTR_RROP_INFO_RTPL = 1, 8634 8635 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST, 8636 QCA_WLAN_VENDOR_ATTR_RROP_INFO_MAX = 8637 QCA_WLAN_VENDOR_ATTR_RROP_INFO_AFTER_LAST - 1 8638 }; 8639 8640 /** 8641 * enum qca_wlan_vendor_attr_rtplinst - Specifies attributes for individual list 8642 * entry instances in the Representative Tx Power List (RTPL). It provides 8643 * simplified power values intended for helping external Auto channel Selection 8644 * applications compare potential Tx power performance between channels, other 8645 * operating conditions remaining identical. These values are not necessarily 8646 * the actual Tx power values that will be used by the system. They are also not 8647 * necessarily the max or average values that will be used. Instead, they are 8648 * relative, summarized keys for algorithmic use computed by the driver or 8649 * underlying firmware considering a number of vendor specific factors. 8650 */ 8651 enum qca_wlan_vendor_attr_rtplinst { 8652 QCA_WLAN_VENDOR_ATTR_RTPLINST_INVALID = 0, 8653 8654 /* Primary channel number (u8). 8655 * Note: If both the driver and user space application support the 8656 * 6 GHz band, this attribute is deprecated and 8657 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY should be used. To 8658 * maintain backward compatibility, 8659 * QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY is still used if either the 8660 * driver or user space application or both do not support the 6 GHz 8661 * band. 8662 */ 8663 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY = 1, 8664 /* Representative Tx power in dBm (s32) with emphasis on throughput. */ 8665 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_THROUGHPUT = 2, 8666 /* Representative Tx power in dBm (s32) with emphasis on range. */ 8667 QCA_WLAN_VENDOR_ATTR_RTPLINST_TXPOWER_RANGE = 3, 8668 /* Primary channel center frequency (u32) in MHz */ 8669 QCA_WLAN_VENDOR_ATTR_RTPLINST_PRIMARY_FREQUENCY = 4, 8670 8671 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST, 8672 QCA_WLAN_VENDOR_ATTR_RTPLINST_MAX = 8673 QCA_WLAN_VENDOR_ATTR_RTPLINST_AFTER_LAST - 1, 8674 }; 8675 8676 /** 8677 * enum qca_wlan_vendor_attr_config_latency_level - Level for 8678 * wlan latency module. 8679 * 8680 * There will be various of Wi-Fi functionality like scan/roaming/adaptive 8681 * power saving which would causing data exchange out of service, this 8682 * would be a big impact on latency. For latency sensitive applications over 8683 * Wi-Fi are intolerant to such operations and thus would configure them 8684 * to meet their respective needs. It is well understood by such applications 8685 * that altering the default behavior would degrade the Wi-Fi functionality 8686 * w.r.t the above pointed WLAN operations. 8687 * 8688 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL: 8689 * Default WLAN operation level which throughput orientated. 8690 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR: 8691 * Use XR level to benefit XR (extended reality) application to achieve 8692 * latency and power by via constraint scan/roaming/adaptive PS. 8693 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW: 8694 * Use low latency level to benefit application like concurrent 8695 * downloading or video streaming via constraint scan/adaptive PS. 8696 * @QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW: 8697 * Use ultra low latency level to benefit for gaming/voice 8698 * application via constraint scan/roaming/adaptive PS. 8699 */ 8700 enum qca_wlan_vendor_attr_config_latency_level { 8701 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_INVALID = 0, 8702 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_NORMAL = 1, 8703 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR = 2, 8704 /* legacy name */ 8705 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MODERATE = 8706 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_XR, 8707 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_LOW = 3, 8708 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_ULTRALOW = 4, 8709 8710 /* keep last */ 8711 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST, 8712 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_MAX = 8713 QCA_WLAN_VENDOR_ATTR_CONFIG_LATENCY_LEVEL_AFTER_LAST - 1, 8714 }; 8715 8716 /** 8717 * enum qca_wlan_vendor_attr_wlan_mac - Used by the vendor command 8718 * QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 8719 */ 8720 enum qca_wlan_vendor_attr_mac { 8721 QCA_WLAN_VENDOR_ATTR_MAC_INVALID = 0, 8722 8723 /* MAC mode info list which has an array of nested values as 8724 * per attributes in enum qca_wlan_vendor_attr_mac_mode_info. 8725 */ 8726 QCA_WLAN_VENDOR_ATTR_MAC_INFO = 1, 8727 8728 /* keep last */ 8729 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST, 8730 QCA_WLAN_VENDOR_ATTR_MAC_MAX = 8731 QCA_WLAN_VENDOR_ATTR_MAC_AFTER_LAST - 1, 8732 }; 8733 8734 /** 8735 * enum qca_wlan_vendor_attr_mac_iface_info - Information of the connected 8736 * Wi-Fi netdev interface on a respective MAC. 8737 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO. 8738 */ 8739 enum qca_wlan_vendor_attr_mac_iface_info { 8740 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_INVALID = 0, 8741 /* Wi-Fi netdev's interface index (u32) */ 8742 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_IFINDEX = 1, 8743 /* Associated frequency in MHz of the connected Wi-Fi interface (u32) */ 8744 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_FREQ = 2, 8745 8746 /* keep last */ 8747 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST, 8748 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_MAX = 8749 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO_AFTER_LAST - 1, 8750 }; 8751 8752 /** 8753 * enum qca_wlan_vendor_attr_mac_info - Points to MAC the information. 8754 * Used by the attribute QCA_WLAN_VENDOR_ATTR_MAC_INFO of the 8755 * vendor command QCA_NL80211_VENDOR_SUBCMD_WLAN_MAC_INFO. 8756 */ 8757 enum qca_wlan_vendor_attr_mac_info { 8758 QCA_WLAN_VENDOR_ATTR_MAC_INFO_INVALID = 0, 8759 /* Hardware MAC ID associated for the MAC (u32) */ 8760 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAC_ID = 1, 8761 /* Band supported by the MAC at a given point. 8762 * This is a u32 bitmask of BIT(NL80211_BAND_*) as described in %enum 8763 * nl80211_band. 8764 */ 8765 QCA_WLAN_VENDOR_ATTR_MAC_INFO_BAND = 2, 8766 /* Refers to list of WLAN netdev interfaces associated with this MAC. 8767 * Represented by enum qca_wlan_vendor_attr_mac_iface_info. 8768 */ 8769 QCA_WLAN_VENDOR_ATTR_MAC_IFACE_INFO = 3, 8770 8771 /* keep last */ 8772 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST, 8773 QCA_WLAN_VENDOR_ATTR_MAC_INFO_MAX = 8774 QCA_WLAN_VENDOR_ATTR_MAC_INFO_AFTER_LAST - 1, 8775 }; 8776 8777 /** 8778 * enum qca_wlan_vendor_attr_get_logger_features - Used by the vendor command 8779 * QCA_NL80211_VENDOR_SUBCMD_GET_LOGGER_FEATURE_SET. 8780 */ 8781 enum qca_wlan_vendor_attr_get_logger_features { 8782 QCA_WLAN_VENDOR_ATTR_LOGGER_INVALID = 0, 8783 /* Unsigned 32-bit enum value of wifi_logger_supported_features */ 8784 QCA_WLAN_VENDOR_ATTR_LOGGER_SUPPORTED = 1, 8785 /* keep last */ 8786 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST, 8787 QCA_WLAN_VENDOR_ATTR_LOGGER_MAX = 8788 QCA_WLAN_VENDOR_ATTR_LOGGER_AFTER_LAST - 1, 8789 }; 8790 8791 /** 8792 * enum wifi_logger_supported_features - Values for supported logger features 8793 */ 8794 enum wifi_logger_supported_features { 8795 WIFI_LOGGER_MEMORY_DUMP_FEATURE = (1 << (0)), 8796 WIFI_LOGGER_PER_PACKET_TX_RX_STATUS_FEATURE = (1 << (1)), 8797 WIFI_LOGGER_CONNECT_EVENT_FEATURE = (1 << (2)), 8798 WIFI_LOGGER_POWER_EVENT_FEATURE = (1 << (3)), 8799 WIFI_LOGGER_WAKE_LOCK_FEATURE = (1 << (4)), 8800 WIFI_LOGGER_VERBOSE_FEATURE = (1 << (5)), 8801 WIFI_LOGGER_WATCHDOG_TIMER_FEATURE = (1 << (6)), 8802 WIFI_LOGGER_DRIVER_DUMP_FEATURE = (1 << (7)), 8803 WIFI_LOGGER_PACKET_FATE_FEATURE = (1 << (8)), 8804 }; 8805 8806 /** 8807 * enum qca_wlan_tdls_caps_features_supported - Values for TDLS get 8808 * capabilities features 8809 */ 8810 enum qca_wlan_tdls_caps_features_supported { 8811 WIFI_TDLS_SUPPORT = (1 << (0)), 8812 WIFI_TDLS_EXTERNAL_CONTROL_SUPPORT = (1 << (1)), 8813 WIFI_TDLS_OFFCHANNEL_SUPPORT = (1 << (2)), 8814 8815 /* Indicates if the TDLS session can be formed with the peer using 8816 * higher bandwidth than the bandwidth of the AP path. 8817 */ 8818 WIFI_TDLS_WIDER_BW_SUPPORT = (1 << (3)), 8819 }; 8820 8821 /** 8822 * enum qca_wlan_vendor_attr_tdls_get_capabilities - Used by the vendor command 8823 * QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_CAPABILITIES. 8824 */ 8825 enum qca_wlan_vendor_attr_tdls_get_capabilities { 8826 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_INVALID = 0, 8827 /* Indicates the max concurrent sessions */ 8828 /* Unsigned 32-bit value */ 8829 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX_CONC_SESSIONS, 8830 /* Indicates the support for features */ 8831 /* Unsigned 32-bit bitmap qca_wlan_tdls_caps_features_supported 8832 */ 8833 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_FEATURES_SUPPORTED, 8834 8835 /* keep last */ 8836 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST, 8837 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_MAX = 8838 QCA_WLAN_VENDOR_ATTR_TDLS_GET_CAPS_AFTER_LAST - 1, 8839 }; 8840 8841 /** 8842 * enum qca_wlan_offloaded_packets_sending_control - Offload packets control 8843 * command used as value for the attribute 8844 * QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL. 8845 */ 8846 enum qca_wlan_offloaded_packets_sending_control { 8847 QCA_WLAN_OFFLOADED_PACKETS_SENDING_CONTROL_INVALID = 0, 8848 QCA_WLAN_OFFLOADED_PACKETS_SENDING_START, 8849 QCA_WLAN_OFFLOADED_PACKETS_SENDING_STOP 8850 }; 8851 8852 /** 8853 * enum qca_wlan_vendor_attr_offloaded_packets - Used by the vendor command 8854 * QCA_NL80211_VENDOR_SUBCMD_OFFLOADED_PACKETS. 8855 */ 8856 enum qca_wlan_vendor_attr_offloaded_packets { 8857 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_INVALID = 0, 8858 /* Takes valid value from the enum 8859 * qca_wlan_offloaded_packets_sending_control 8860 * Unsigned 32-bit value 8861 */ 8862 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SENDING_CONTROL, 8863 /* Unsigned 32-bit value */ 8864 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_REQUEST_ID, 8865 /* array of u8 len: Max packet size */ 8866 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_IP_PACKET_DATA, 8867 /* 6-byte MAC address used to represent source MAC address */ 8868 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_SRC_MAC_ADDR, 8869 /* 6-byte MAC address used to represent destination MAC address */ 8870 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_DST_MAC_ADDR, 8871 /* Unsigned 32-bit value, in milli seconds */ 8872 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_PERIOD, 8873 /* This optional unsigned 16-bit attribute is used for specifying 8874 * ethernet protocol type. If not specified ethertype defaults to IPv4. 8875 */ 8876 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_ETHER_PROTO_TYPE, 8877 8878 /* keep last */ 8879 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST, 8880 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_MAX = 8881 QCA_WLAN_VENDOR_ATTR_OFFLOADED_PACKETS_AFTER_LAST - 1, 8882 }; 8883 8884 /** 8885 * enum qca_wlan_rssi_monitoring_control - RSSI control commands used as values 8886 * by the attribute QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL. 8887 */ 8888 enum qca_wlan_rssi_monitoring_control { 8889 QCA_WLAN_RSSI_MONITORING_CONTROL_INVALID = 0, 8890 QCA_WLAN_RSSI_MONITORING_START, 8891 QCA_WLAN_RSSI_MONITORING_STOP, 8892 }; 8893 8894 /** 8895 * enum qca_wlan_vendor_attr_rssi_monitoring - Used by the vendor command 8896 * QCA_NL80211_VENDOR_SUBCMD_MONITOR_RSSI. 8897 */ 8898 enum qca_wlan_vendor_attr_rssi_monitoring { 8899 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_INVALID = 0, 8900 /* Takes valid value from the enum 8901 * qca_wlan_rssi_monitoring_control 8902 * Unsigned 32-bit value enum qca_wlan_rssi_monitoring_control 8903 */ 8904 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CONTROL, 8905 /* Unsigned 32-bit value */ 8906 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_REQUEST_ID, 8907 /* Signed 8-bit value in dBm */ 8908 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX_RSSI, 8909 /* Signed 8-bit value in dBm */ 8910 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MIN_RSSI, 8911 /* attributes to be used/received in callback */ 8912 /* 6-byte MAC address used to represent current BSSID MAC address */ 8913 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_BSSID, 8914 /* Signed 8-bit value indicating the current RSSI */ 8915 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_CUR_RSSI, 8916 /* keep last */ 8917 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST, 8918 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_MAX = 8919 QCA_WLAN_VENDOR_ATTR_RSSI_MONITORING_AFTER_LAST - 1, 8920 }; 8921 8922 /** 8923 * enum qca_wlan_vendor_attr_ndp_params - Used by the vendor command 8924 * QCA_NL80211_VENDOR_SUBCMD_NDP. 8925 */ 8926 enum qca_wlan_vendor_attr_ndp_params { 8927 QCA_WLAN_VENDOR_ATTR_NDP_PARAM_INVALID = 0, 8928 /* Unsigned 32-bit value 8929 * enum of sub commands values in qca_wlan_ndp_sub_cmd 8930 */ 8931 QCA_WLAN_VENDOR_ATTR_NDP_SUBCMD, 8932 /* Unsigned 16-bit value */ 8933 QCA_WLAN_VENDOR_ATTR_NDP_TRANSACTION_ID, 8934 /* NL attributes for data used NDP SUB cmds */ 8935 /* Unsigned 32-bit value indicating a service info */ 8936 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_INSTANCE_ID, 8937 /* Unsigned 32-bit value; channel frequency in MHz */ 8938 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL, 8939 /* Interface Discovery MAC address. An array of 6 Unsigned int8 */ 8940 QCA_WLAN_VENDOR_ATTR_NDP_PEER_DISCOVERY_MAC_ADDR, 8941 /* Interface name on which NDP is being created */ 8942 QCA_WLAN_VENDOR_ATTR_NDP_IFACE_STR, 8943 /* Unsigned 32-bit value for security */ 8944 /* CONFIG_SECURITY is deprecated, use NCS_SK_TYPE/PMK/SCID instead */ 8945 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_SECURITY, 8946 /* Unsigned 32-bit value for QoS */ 8947 QCA_WLAN_VENDOR_ATTR_NDP_CONFIG_QOS, 8948 /* Array of u8: len = QCA_WLAN_VENDOR_ATTR_NAN_DP_APP_INFO_LEN */ 8949 QCA_WLAN_VENDOR_ATTR_NDP_APP_INFO, 8950 /* Unsigned 32-bit value for NDP instance Id */ 8951 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID, 8952 /* Array of instance Ids */ 8953 QCA_WLAN_VENDOR_ATTR_NDP_INSTANCE_ID_ARRAY, 8954 /* Unsigned 32-bit value for initiator/responder NDP response code 8955 * accept/reject 8956 */ 8957 QCA_WLAN_VENDOR_ATTR_NDP_RESPONSE_CODE, 8958 /* NDI MAC address. An array of 6 Unsigned int8 */ 8959 QCA_WLAN_VENDOR_ATTR_NDP_NDI_MAC_ADDR, 8960 /* Unsigned 32-bit value errors types returned by driver 8961 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy 8962 * NanStatusType includes these values. 8963 */ 8964 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RESPONSE_STATUS_TYPE, 8965 /* Unsigned 32-bit value error values returned by driver 8966 * The nan_i.h in AOSP project platform/hardware/qcom/wlan 8967 * NanInternalStatusType includes these values. 8968 */ 8969 QCA_WLAN_VENDOR_ATTR_NDP_DRV_RETURN_VALUE, 8970 /* Unsigned 32-bit value for Channel setup configuration 8971 * The wifi_nan.h in AOSP project platform/hardware/libhardware_legacy 8972 * NanDataPathChannelCfg includes these values. 8973 */ 8974 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_CONFIG, 8975 /* Unsigned 32-bit value for Cipher Suite Shared Key Type */ 8976 QCA_WLAN_VENDOR_ATTR_NDP_CSID, 8977 /* Array of u8: len = NAN_PMK_INFO_LEN 32 bytes */ 8978 QCA_WLAN_VENDOR_ATTR_NDP_PMK, 8979 /* Security Context Identifier that contains the PMKID 8980 * Array of u8: len = NAN_SCID_BUF_LEN 1024 bytes 8981 */ 8982 QCA_WLAN_VENDOR_ATTR_NDP_SCID, 8983 /* Array of u8: len = NAN_SECURITY_MAX_PASSPHRASE_LEN 63 bytes */ 8984 QCA_WLAN_VENDOR_ATTR_NDP_PASSPHRASE, 8985 /* Array of u8: len = NAN_MAX_SERVICE_NAME_LEN 255 bytes */ 8986 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_NAME, 8987 /* Unsigned 32-bit bitmap indicating schedule update 8988 * BIT_0: NSS Update 8989 * BIT_1: Channel list update 8990 */ 8991 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_REASON, 8992 /* Unsigned 32-bit value for NSS */ 8993 QCA_WLAN_VENDOR_ATTR_NDP_NSS, 8994 /* Unsigned 32-bit value for NUMBER NDP CHANNEL */ 8995 QCA_WLAN_VENDOR_ATTR_NDP_NUM_CHANNELS, 8996 /* Unsigned 32-bit value for CHANNEL BANDWIDTH 8997 * 0:20 MHz, 1:40 MHz, 2:80 MHz, 3:160 MHz 8998 */ 8999 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_WIDTH, 9000 /* Array of channel/band width */ 9001 QCA_WLAN_VENDOR_ATTR_NDP_CHANNEL_INFO, 9002 /* IPv6 address used by NDP (in network byte order), 16 bytes array. 9003 * This attribute is used and optional for ndp request, ndp response, 9004 * ndp indication, and ndp confirm. 9005 */ 9006 QCA_WLAN_VENDOR_ATTR_NDP_IPV6_ADDR = 27, 9007 /* Unsigned 16-bit value indicating transport port used by NDP. 9008 * This attribute is used and optional for ndp response, ndp indication, 9009 * and ndp confirm. 9010 */ 9011 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PORT = 28, 9012 /* Unsigned 8-bit value indicating protocol used by NDP and assigned by 9013 * the Internet Assigned Numbers Authority (IANA) as per: 9014 * https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml 9015 * This attribute is used and optional for ndp response, ndp indication, 9016 * and ndp confirm. 9017 */ 9018 QCA_WLAN_VENDOR_ATTR_NDP_TRANSPORT_PROTOCOL = 29, 9019 /* Unsigned 8-bit value indicating if NDP remote peer supports NAN NDPE. 9020 * 1:support 0:not support 9021 */ 9022 QCA_WLAN_VENDOR_ATTR_PEER_NDPE_SUPPORT = 30, 9023 /* As per Wi-Fi Aware Specification v3.2 Service Id is the first 9024 * 48 bits of the SHA-256 hash of the Service Name. 9025 * A lower-case representation of the Service Name shall be used to 9026 * calculate the Service ID. 9027 * Array of u8: length is 6 bytes 9028 * This attribute is used and optional for ndp indication. 9029 */ 9030 QCA_WLAN_VENDOR_ATTR_NDP_SERVICE_ID = 31, 9031 /* Unsigned 8-bit value for Cipher Suite capabilities. 9032 * u8 attribute. 9033 * This attribute is used and optional in ndp request, ndp response, 9034 * ndp indication, and ndp confirm. 9035 * This attribute is used to indicate the Capabilities field of Cipher 9036 * Suite Information attribute (CSIA) of NDP frames as defined in 9037 * Wi-Fi Aware Specification v4.0, 9.5.21.2, Table 122. 9038 * Firmware can accept or ignore any of the capability bits. 9039 */ 9040 QCA_WLAN_VENDOR_ATTR_NDP_CSIA_CAPABILITIES = 32, 9041 /* Indicate that GTK protection is required for NDP. 9042 * NLA_FLAG attribute. 9043 * This attribute can be used in ndp request, ndp response, ndp 9044 * indication, and ndp confirm. 9045 * GTK protection required is indicated in the NDPE attribute of NAN 9046 * action frame (NAF) during NDP negotiation as defined in 9047 * Wi-Fi Aware Specification v4.0, 9.5.16.2. 9048 * If the device and peer supports GTKSA and if GTK protection required 9049 * bit is set in NDPE IE, devices will share GTK to each other in SKDA 9050 * of Data Path Security Confirm and Data Path Security Install frames 9051 * of NDP negotiation to send and receive protected group addressed data 9052 * frames from each other. 9053 */ 9054 QCA_WLAN_VENDOR_ATTR_NDP_GTK_REQUIRED = 33, 9055 9056 /* keep last */ 9057 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST, 9058 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_MAX = 9059 QCA_WLAN_VENDOR_ATTR_NDP_PARAMS_AFTER_LAST - 1, 9060 }; 9061 9062 enum qca_wlan_ndp_sub_cmd { 9063 QCA_WLAN_VENDOR_ATTR_NDP_INVALID = 0, 9064 /* Command to create a NAN data path interface. 9065 * This command was initially designed to both create and start a NAN 9066 * data path interface. However, changes to Linux 5.12 no longer allow 9067 * interface creation via vendor commands. When the driver advertises 9068 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI 9069 * userspace must explicitly first create the interface using 9070 * NL80211_CMD_NEW_INTERFACE before subsequently invoking this command 9071 * to start the interface. 9072 */ 9073 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_CREATE = 1, 9074 /* Command to delete a NAN data path interface. 9075 * This command was initially designed to both stop and delete a NAN 9076 * data path interface. However, changes to Linux 5.12 no longer allow 9077 * interface deletion via vendor commands. When the driver advertises 9078 * QCA_WLAN_VENDOR_FEATURE_USE_ADD_DEL_VIRTUAL_INTF_FOR_NDI 9079 * userspace must explicitly delete the interface using 9080 * NL80211_CMD_DEL_INTERFACE after calling this command. 9081 */ 9082 QCA_WLAN_VENDOR_ATTR_NDP_INTERFACE_DELETE = 2, 9083 /* Command to initiate a NAN data path session */ 9084 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_REQUEST = 3, 9085 /* Command to notify if the NAN data path session was sent */ 9086 QCA_WLAN_VENDOR_ATTR_NDP_INITIATOR_RESPONSE = 4, 9087 /* Command to respond to NAN data path session */ 9088 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_REQUEST = 5, 9089 /* Command to notify on the responder about the response */ 9090 QCA_WLAN_VENDOR_ATTR_NDP_RESPONDER_RESPONSE = 6, 9091 /* Command to initiate a NAN data path end */ 9092 QCA_WLAN_VENDOR_ATTR_NDP_END_REQUEST = 7, 9093 /* Command to notify the if end request was sent */ 9094 QCA_WLAN_VENDOR_ATTR_NDP_END_RESPONSE = 8, 9095 /* Command to notify the peer about the end request */ 9096 QCA_WLAN_VENDOR_ATTR_NDP_REQUEST_IND = 9, 9097 /* Command to confirm the NAN data path session is complete */ 9098 QCA_WLAN_VENDOR_ATTR_NDP_CONFIRM_IND = 10, 9099 /* Command to indicate the peer about the end request being received */ 9100 QCA_WLAN_VENDOR_ATTR_NDP_END_IND = 11, 9101 /* Command to indicate the peer of schedule update */ 9102 QCA_WLAN_VENDOR_ATTR_NDP_SCHEDULE_UPDATE_IND = 12 9103 }; 9104 9105 /** 9106 * enum qca_wlan_vendor_attr_nd_offload - Used by the vendor command 9107 * QCA_NL80211_VENDOR_SUBCMD_ND_OFFLOAD. 9108 */ 9109 enum qca_wlan_vendor_attr_nd_offload { 9110 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_INVALID = 0, 9111 /* Flag to set Neighbour Discovery offload */ 9112 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_FLAG, 9113 /* Keep last */ 9114 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST, 9115 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_MAX = 9116 QCA_WLAN_VENDOR_ATTR_ND_OFFLOAD_AFTER_LAST - 1, 9117 }; 9118 9119 /** 9120 * enum packet_filter_sub_cmd - Packet filter sub commands 9121 */ 9122 enum packet_filter_sub_cmd { 9123 /** 9124 * Write packet filter program and/or data. The driver/firmware should 9125 * disable APF before writing into local buffer and re-enable APF after 9126 * writing is done. 9127 */ 9128 QCA_WLAN_SET_PACKET_FILTER = 1, 9129 /* Get packet filter feature capabilities from driver */ 9130 QCA_WLAN_GET_PACKET_FILTER = 2, 9131 /** 9132 * Write packet filter program and/or data. User space will send the 9133 * %QCA_WLAN_DISABLE_PACKET_FILTER command before issuing this command 9134 * and will send the %QCA_WLAN_ENABLE_PACKET_FILTER afterwards. The key 9135 * difference from that %QCA_WLAN_SET_PACKET_FILTER is the control over 9136 * enable/disable is given to user space with this command. Also, 9137 * user space sends the length of program portion in the buffer within 9138 * %QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH. 9139 */ 9140 QCA_WLAN_WRITE_PACKET_FILTER = 3, 9141 /* Read packet filter program and/or data */ 9142 QCA_WLAN_READ_PACKET_FILTER = 4, 9143 /* Enable APF feature */ 9144 QCA_WLAN_ENABLE_PACKET_FILTER = 5, 9145 /* Disable APF feature */ 9146 QCA_WLAN_DISABLE_PACKET_FILTER = 6, 9147 }; 9148 9149 /** 9150 * enum qca_wlan_vendor_attr_packet_filter - BPF control commands used by 9151 * vendor QCA_NL80211_VENDOR_SUBCMD_PACKET_FILTER. 9152 */ 9153 enum qca_wlan_vendor_attr_packet_filter { 9154 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_INVALID = 0, 9155 /* Unsigned 32-bit enum passed using packet_filter_sub_cmd */ 9156 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SUB_CMD, 9157 /* Unsigned 32-bit value indicating the packet filter version */ 9158 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_VERSION, 9159 /* Unsigned 32-bit value indicating the packet filter id */ 9160 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_ID, 9161 /** 9162 * Unsigned 32-bit value indicating the packet filter size including 9163 * program + data. 9164 */ 9165 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_SIZE, 9166 /* Unsigned 32-bit value indicating the packet filter current offset */ 9167 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_CURRENT_OFFSET, 9168 /* Program and/or data in bytes */ 9169 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROGRAM, 9170 /* Unsigned 32-bit value of the length of the program section in packet 9171 * filter buffer. 9172 */ 9173 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_PROG_LENGTH = 7, 9174 9175 /* keep last */ 9176 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST, 9177 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_MAX = 9178 QCA_WLAN_VENDOR_ATTR_PACKET_FILTER_AFTER_LAST - 1, 9179 }; 9180 9181 /** 9182 * enum qca_wlan_vendor_drv_info - WLAN driver info used by vendor command 9183 * QCA_NL80211_VENDOR_SUBCMD_GET_BUS_SIZE. 9184 */ 9185 enum qca_wlan_vendor_drv_info { 9186 QCA_WLAN_VENDOR_ATTR_DRV_INFO_INVALID = 0, 9187 /* Maximum Message size info between firmware & HOST 9188 * Unsigned 32-bit value 9189 */ 9190 QCA_WLAN_VENDOR_ATTR_DRV_INFO_BUS_SIZE, 9191 /* keep last */ 9192 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST, 9193 QCA_WLAN_VENDOR_ATTR_DRV_INFO_MAX = 9194 QCA_WLAN_VENDOR_ATTR_DRV_INFO_AFTER_LAST - 1, 9195 }; 9196 9197 /** 9198 * enum qca_wlan_vendor_attr_wake_stats - Wake lock stats used by vendor 9199 * command QCA_NL80211_VENDOR_SUBCMD_GET_WAKE_REASON_STATS. 9200 */ 9201 enum qca_wlan_vendor_attr_wake_stats { 9202 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_INVALID = 0, 9203 /* Unsigned 32-bit value indicating the total count of wake event */ 9204 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_CMD_EVENT_WAKE, 9205 /* Array of individual wake count, each index representing wake reason 9206 */ 9207 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_PTR, 9208 /* Unsigned 32-bit value representing wake count array */ 9209 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_CMD_EVENT_WAKE_CNT_SZ, 9210 /* Unsigned 32-bit total wake count value of driver/fw */ 9211 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_DRIVER_FW_LOCAL_WAKE, 9212 /* Array of wake stats of driver/fw */ 9213 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_PTR, 9214 /* Unsigned 32-bit total wake count value of driver/fw */ 9215 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_DRIVER_FW_LOCAL_WAKE_CNT_SZ, 9216 /* Unsigned 32-bit total wake count value of packets received */ 9217 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_TOTAL_RX_DATA_WAKE, 9218 /* Unsigned 32-bit wake count value unicast packets received */ 9219 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_UNICAST_CNT, 9220 /* Unsigned 32-bit wake count value multicast packets received */ 9221 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_MULTICAST_CNT, 9222 /* Unsigned 32-bit wake count value broadcast packets received */ 9223 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RX_BROADCAST_CNT, 9224 /* Unsigned 32-bit wake count value of ICMP packets */ 9225 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP_PKT, 9226 /* Unsigned 32-bit wake count value of ICMP6 packets */ 9227 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_PKT, 9228 /* Unsigned 32-bit value ICMP6 router advertisement */ 9229 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RA, 9230 /* Unsigned 32-bit value ICMP6 neighbor advertisement */ 9231 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NA, 9232 /* Unsigned 32-bit value ICMP6 neighbor solicitation */ 9233 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_NS, 9234 /* Unsigned 32-bit wake count value of receive side ICMP4 multicast */ 9235 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP4_RX_MULTICAST_CNT, 9236 /* Unsigned 32-bit wake count value of receive side ICMP6 multicast */ 9237 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_ICMP6_RX_MULTICAST_CNT, 9238 /* Unsigned 32-bit wake count value of receive side multicast */ 9239 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_OTHER_RX_MULTICAST_CNT, 9240 /* Unsigned 32-bit wake count value of a given RSSI breach */ 9241 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_RSSI_BREACH_CNT, 9242 /* Unsigned 32-bit wake count value of low RSSI */ 9243 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_LOW_RSSI_CNT, 9244 /* Unsigned 32-bit value GSCAN count */ 9245 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_GSCAN_CNT, 9246 /* Unsigned 32-bit value PNO complete count */ 9247 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_COMPLETE_CNT, 9248 /* Unsigned 32-bit value PNO match count */ 9249 QCA_WLAN_VENDOR_ATTR_WAKE_STATS_PNO_MATCH_CNT, 9250 /* keep last */ 9251 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST, 9252 QCA_WLAN_VENDOR_GET_WAKE_STATS_MAX = 9253 QCA_WLAN_VENDOR_GET_WAKE_STATS_AFTER_LAST - 1, 9254 }; 9255 9256 /** 9257 * enum qca_wlan_vendor_thermal_level - Defines various thermal levels 9258 * configured by userspace to the driver/firmware. 9259 * The values can be encapsulated in QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL or 9260 * QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL attribute. 9261 * The driver/firmware takes actions requested by userspace such as throttling 9262 * wifi TX etc. in order to mitigate high temperature. 9263 * 9264 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE: Stop/clear all throttling actions. 9265 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT: Throttle TX lightly. 9266 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE: Throttle TX moderately. 9267 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE: Throttle TX severely. 9268 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL: Critical thermal level reached. 9269 * @QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY: Emergency thermal level reached. 9270 */ 9271 enum qca_wlan_vendor_thermal_level { 9272 QCA_WLAN_VENDOR_THERMAL_LEVEL_NONE = 0, 9273 QCA_WLAN_VENDOR_THERMAL_LEVEL_LIGHT = 1, 9274 QCA_WLAN_VENDOR_THERMAL_LEVEL_MODERATE = 2, 9275 QCA_WLAN_VENDOR_THERMAL_LEVEL_SEVERE = 3, 9276 QCA_WLAN_VENDOR_THERMAL_LEVEL_CRITICAL = 4, 9277 QCA_WLAN_VENDOR_THERMAL_LEVEL_EMERGENCY = 5, 9278 }; 9279 9280 /** 9281 * enum qca_wlan_vendor_attr_thermal_cmd - Vendor subcmd attributes to set 9282 * cmd value. Used for NL attributes for data used by 9283 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 9284 */ 9285 enum qca_wlan_vendor_attr_thermal_cmd { 9286 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_INVALID = 0, 9287 /* The value of command, driver will implement different operations 9288 * according to this value. It uses values defined in 9289 * enum qca_wlan_vendor_attr_thermal_cmd_type. 9290 * u32 attribute. 9291 */ 9292 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE = 1, 9293 /* Userspace uses this attribute to configure thermal level to the 9294 * driver/firmware, or get thermal level from the driver/firmware. 9295 * Used in request or response, u32 attribute, 9296 * possible values are defined in enum qca_wlan_vendor_thermal_level. 9297 */ 9298 QCA_WLAN_VENDOR_ATTR_THERMAL_LEVEL = 2, 9299 /* Userspace uses this attribute to configure the time in which the 9300 * driver/firmware should complete applying settings it received from 9301 * userspace with QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL 9302 * command type. Used in request, u32 attribute, value is in 9303 * milliseconds. A value of zero indicates to apply the settings 9304 * immediately. The driver/firmware can delay applying the configured 9305 * thermal settings within the time specified in this attribute if 9306 * there is any critical ongoing operation. 9307 */ 9308 QCA_WLAN_VENDOR_ATTR_THERMAL_COMPLETION_WINDOW = 3, 9309 /* Nested attribute, the driver/firmware uses this attribute to report 9310 * thermal statistics of different thermal levels to userspace when 9311 * requested using the 9312 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS command 9313 * type. This attribute contains a nested array of records of thermal 9314 * statistics of multiple levels. The attributes used inside this nested 9315 * attribute are defined in enum qca_wlan_vendor_attr_thermal_stats. 9316 */ 9317 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS = 4, 9318 9319 /* keep last */ 9320 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST, 9321 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_MAX = 9322 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_AFTER_LAST - 1 9323 }; 9324 9325 /** 9326 * qca_wlan_vendor_attr_thermal_cmd_type: Attribute values for 9327 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_VALUE to the vendor subcmd 9328 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD. This represents the 9329 * thermal command types sent to driver. 9330 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS: Request to 9331 * get thermal shutdown configuration parameters for display. Parameters 9332 * responded from driver are defined in 9333 * enum qca_wlan_vendor_attr_get_thermal_params_rsp. 9334 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE: Request to 9335 * get temperature. Host should respond with a temperature data. It is defined 9336 * in enum qca_wlan_vendor_attr_thermal_get_temperature. 9337 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND: Request to execute thermal 9338 * suspend action. 9339 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME: Request to execute thermal 9340 * resume action. 9341 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL: Configure thermal level to 9342 * the driver/firmware. 9343 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL: Request to get the current 9344 * thermal level from the driver/firmware. The driver should respond with a 9345 * thermal level defined in enum qca_wlan_vendor_thermal_level. 9346 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS: Request to get the 9347 * current thermal statistics from the driver/firmware. The driver should 9348 * respond with statistics of all thermal levels encapsulated in the attribute 9349 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS. 9350 * @QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS: Request to clear 9351 * the current thermal statistics for all thermal levels maintained in the 9352 * driver/firmware and start counting from zero again. 9353 */ 9354 enum qca_wlan_vendor_attr_thermal_cmd_type { 9355 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS, 9356 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE, 9357 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SUSPEND, 9358 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_RESUME, 9359 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_SET_LEVEL, 9360 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_LEVEL, 9361 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_THERMAL_STATS, 9362 QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_CLEAR_THERMAL_STATS, 9363 }; 9364 9365 /** 9366 * enum qca_wlan_vendor_attr_thermal_get_temperature - vendor subcmd attributes 9367 * to get chip temperature by user. 9368 * enum values are used for NL attributes for data used by 9369 * QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_TEMPERATURE command for data used 9370 * by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 9371 */ 9372 enum qca_wlan_vendor_attr_thermal_get_temperature { 9373 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_INVALID = 0, 9374 /* Temperature value (degree Celsius) from driver. 9375 * u32 attribute. 9376 */ 9377 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_DATA, 9378 9379 /* keep last */ 9380 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST, 9381 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_MAX = 9382 QCA_WLAN_VENDOR_ATTR_THERMAL_GET_TEMPERATURE_AFTER_LAST - 1, 9383 }; 9384 9385 /** 9386 * enum qca_wlan_vendor_attr_get_thermal_params_rsp - vendor subcmd attributes 9387 * to get configuration parameters of thermal shutdown feature. Enum values are 9388 * used by QCA_WLAN_VENDOR_ATTR_THERMAL_CMD_TYPE_GET_PARAMS command for data 9389 * used by QCA_NL80211_VENDOR_SUBCMD_THERMAL_CMD sub command. 9390 */ 9391 enum qca_wlan_vendor_attr_get_thermal_params_rsp { 9392 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_INVALID = 0, 9393 /* Indicate if the thermal shutdown feature is enabled. 9394 * NLA_FLAG attribute. 9395 */ 9396 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_EN, 9397 /* Indicate if the auto mode is enabled. 9398 * Enable: Driver triggers the suspend/resume action. 9399 * Disable: User space triggers the suspend/resume action. 9400 * NLA_FLAG attribute. 9401 */ 9402 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SHUTDOWN_AUTO_EN, 9403 /* Thermal resume threshold (degree Celsius). Issue the resume command 9404 * if the temperature value is lower than this threshold. 9405 * u16 attribute. 9406 */ 9407 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_RESUME_THRESH, 9408 /* Thermal warning threshold (degree Celsius). FW reports temperature 9409 * to driver if it's higher than this threshold. 9410 * u16 attribute. 9411 */ 9412 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_WARNING_THRESH, 9413 /* Thermal suspend threshold (degree Celsius). Issue the suspend command 9414 * if the temperature value is higher than this threshold. 9415 * u16 attribute. 9416 */ 9417 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SUSPEND_THRESH, 9418 /* FW reports temperature data periodically at this interval (ms). 9419 * u16 attribute. 9420 */ 9421 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_SAMPLE_RATE, 9422 9423 /* keep last */ 9424 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST, 9425 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_MAX = 9426 QCA_WLAN_VENDOR_ATTR_GET_THERMAL_PARAMS_RSP_AFTER_LAST - 1, 9427 }; 9428 9429 /** 9430 * enum qca_wlan_vendor_attr_thermal_event - vendor subcmd attributes to 9431 * report thermal events from driver to user space. 9432 * enum values are used for NL attributes for data used by 9433 * QCA_NL80211_VENDOR_SUBCMD_THERMAL_EVENT sub command. 9434 */ 9435 enum qca_wlan_vendor_attr_thermal_event { 9436 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_INVALID = 0, 9437 /* Temperature value (degree Celsius) from driver. 9438 * u32 attribute. 9439 */ 9440 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_TEMPERATURE, 9441 /* Indication of resume completion from power save mode. 9442 * NLA_FLAG attribute. 9443 */ 9444 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_RESUME_COMPLETE, 9445 /* Thermal level from the driver. 9446 * u32 attribute. Possible values are defined in 9447 * enum qca_wlan_vendor_thermal_level. 9448 */ 9449 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_LEVEL = 3, 9450 9451 /* keep last */ 9452 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST, 9453 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_MAX = 9454 QCA_WLAN_VENDOR_ATTR_THERMAL_EVENT_AFTER_LAST - 1, 9455 }; 9456 9457 /** 9458 * enum qca_wlan_vendor_attr_thermal_stats - vendor subcmd attributes 9459 * to get thermal status from the driver/firmware. 9460 * enum values are used for NL attributes encapsulated inside the 9461 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS nested attribute. 9462 * 9463 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE: Minimum temperature 9464 * of a thermal level in Celsius. u32 size. 9465 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE: Maximum temperature 9466 * of a thermal level in Celsius. u32 size. 9467 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME: The total time spent on each 9468 * thermal level in milliseconds. u32 size. 9469 * QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER: Indicates the number 9470 * of times the temperature crossed into the temperature range defined by the 9471 * thermal level from both higher and lower directions. u32 size. 9472 */ 9473 enum qca_wlan_vendor_attr_thermal_stats { 9474 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_INVALID = 0, 9475 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MIN_TEMPERATURE, 9476 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX_TEMPERATURE, 9477 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_DWELL_TIME, 9478 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_TEMP_LEVEL_COUNTER, 9479 9480 /* keep last */ 9481 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST, 9482 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_MAX = 9483 QCA_WLAN_VENDOR_ATTR_THERMAL_STATS_AFTER_LAST - 1, 9484 }; 9485 9486 /** 9487 * enum he_fragmentation_val - HE fragmentation support values 9488 * Indicates level of dynamic fragmentation that is supported by 9489 * a STA as a recipient. 9490 * HE fragmentation values are defined in IEEE P802.11ax/D2.0, 9.4.2.237.2 9491 * (HE MAC Capabilities Information field) and are used in HE Capabilities 9492 * element to advertise the support. These values are validated in the driver 9493 * to check the device capability and advertised in the HE Capabilities 9494 * element. These values are used to configure testbed device to allow the 9495 * advertised hardware capabilities to be downgraded for testing purposes. 9496 * 9497 * @HE_FRAG_DISABLE: no support for dynamic fragmentation 9498 * @HE_FRAG_LEVEL1: support for dynamic fragments that are 9499 * contained within an MPDU or S-MPDU, no support for dynamic fragments 9500 * within an A-MPDU that is not an S-MPDU. 9501 * @HE_FRAG_LEVEL2: support for dynamic fragments that are 9502 * contained within an MPDU or S-MPDU and support for up to one dynamic 9503 * fragment for each MSDU, each A-MSDU if supported by the recipient, and 9504 * each MMPDU within an A-MPDU or multi-TID A-MPDU that is not an 9505 * MPDU or S-MPDU. 9506 * @HE_FRAG_LEVEL3: support for dynamic fragments that are 9507 * contained within an MPDU or S-MPDU and support for multiple dynamic 9508 * fragments for each MSDU and for each A-MSDU if supported by the 9509 * recipient within an A-MPDU or multi-TID AMPDU and up to one dynamic 9510 * fragment for each MMPDU in a multi-TID A-MPDU that is not an S-MPDU. 9511 */ 9512 enum he_fragmentation_val { 9513 HE_FRAG_DISABLE, 9514 HE_FRAG_LEVEL1, 9515 HE_FRAG_LEVEL2, 9516 HE_FRAG_LEVEL3, 9517 }; 9518 9519 /** 9520 * enum he_mcs_config - HE MCS support configuration 9521 * 9522 * Configures the HE Tx/Rx MCS map in HE capability IE for given bandwidth. 9523 * These values are used in driver to configure the HE MCS map to advertise 9524 * Tx/Rx MCS map in HE capability and these values are applied for all the 9525 * streams supported by the device. To configure MCS for different bandwidths, 9526 * vendor command needs to be sent using this attribute with appropriate value. 9527 * For example, to configure HE_80_MCS_0_7, send vendor command using HE MCS 9528 * attribute with HE_80_MCS0_7. And to configure HE MCS for HE_160_MCS0_11 9529 * send this command using HE MCS config attribute with value HE_160_MCS0_11. 9530 * These values are used to configure testbed device to allow the advertised 9531 * hardware capabilities to be downgraded for testing purposes. The enum values 9532 * are defined such that BIT[1:0] indicates the MCS map value. Values 3,7 and 9533 * 11 are not used as BIT[1:0] value is 3 which is used to disable MCS map. 9534 * These values are validated in the driver before setting the MCS map and 9535 * driver returns error if the input is other than these enum values. 9536 * 9537 * @HE_80_MCS0_7: support for HE 80/40/20 MHz MCS 0 to 7 9538 * @HE_80_MCS0_9: support for HE 80/40/20 MHz MCS 0 to 9 9539 * @HE_80_MCS0_11: support for HE 80/40/20 MHz MCS 0 to 11 9540 * @HE_160_MCS0_7: support for HE 160 MHz MCS 0 to 7 9541 * @HE_160_MCS0_9: support for HE 160 MHz MCS 0 to 9 9542 * @HE_160_MCS0_11: support for HE 160 MHz MCS 0 to 11 9543 * @HE_80P80_MCS0_7: support for HE 80p80 MHz MCS 0 to 7 9544 * @HE_80P80_MCS0_9: support for HE 80p80 MHz MCS 0 to 9 9545 * @HE_80P80_MCS0_11: support for HE 80p80 MHz MCS 0 to 11 9546 */ 9547 enum he_mcs_config { 9548 HE_80_MCS0_7 = 0, 9549 HE_80_MCS0_9 = 1, 9550 HE_80_MCS0_11 = 2, 9551 HE_160_MCS0_7 = 4, 9552 HE_160_MCS0_9 = 5, 9553 HE_160_MCS0_11 = 6, 9554 HE_80P80_MCS0_7 = 8, 9555 HE_80P80_MCS0_9 = 9, 9556 HE_80P80_MCS0_11 = 10, 9557 }; 9558 9559 /** 9560 * enum qca_wlan_ba_session_config - BA session configuration 9561 * 9562 * Indicates the configuration values for BA session configuration attribute. 9563 * 9564 * @QCA_WLAN_ADD_BA: Establish a new BA session with given configuration. 9565 * @QCA_WLAN_DELETE_BA: Delete the existing BA session for given TID. 9566 */ 9567 enum qca_wlan_ba_session_config { 9568 QCA_WLAN_ADD_BA = 1, 9569 QCA_WLAN_DELETE_BA = 2, 9570 }; 9571 9572 /** 9573 * enum qca_wlan_ac_type - Access category type 9574 * 9575 * Indicates the access category type value. 9576 * 9577 * @QCA_WLAN_AC_BE: BE access category 9578 * @QCA_WLAN_AC_BK: BK access category 9579 * @QCA_WLAN_AC_VI: VI access category 9580 * @QCA_WLAN_AC_VO: VO access category 9581 * @QCA_WLAN_AC_ALL: All ACs 9582 */ 9583 enum qca_wlan_ac_type { 9584 QCA_WLAN_AC_BE = 0, 9585 QCA_WLAN_AC_BK = 1, 9586 QCA_WLAN_AC_VI = 2, 9587 QCA_WLAN_AC_VO = 3, 9588 QCA_WLAN_AC_ALL = 4, 9589 }; 9590 9591 /** 9592 * enum qca_wlan_he_ltf_cfg - HE LTF configuration 9593 * 9594 * Indicates the HE LTF configuration value. 9595 * 9596 * @QCA_WLAN_HE_LTF_AUTO: HE-LTF is automatically set to the mandatory HE-LTF, 9597 * based on the GI setting 9598 * @QCA_WLAN_HE_LTF_1X: 1X HE LTF is 3.2us LTF 9599 * @QCA_WLAN_HE_LTF_2X: 2X HE LTF is 6.4us LTF 9600 * @QCA_WLAN_HE_LTF_4X: 4X HE LTF is 12.8us LTF 9601 */ 9602 enum qca_wlan_he_ltf_cfg { 9603 QCA_WLAN_HE_LTF_AUTO = 0, 9604 QCA_WLAN_HE_LTF_1X = 1, 9605 QCA_WLAN_HE_LTF_2X = 2, 9606 QCA_WLAN_HE_LTF_4X = 3, 9607 }; 9608 9609 /** 9610 * enum qca_wlan_he_mac_padding_dur - HE trigger frame MAC padding duration 9611 * 9612 * Indicates the HE trigger frame MAC padding duration value. 9613 * 9614 * @QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME: no additional time required to 9615 * process the trigger frame. 9616 * @QCA_WLAN_HE_8US_OF_PROCESS_TIME: indicates the 8us of processing time for 9617 * trigger frame. 9618 * @QCA_WLAN_HE_16US_OF_PROCESS_TIME: indicates the 16us of processing time for 9619 * trigger frame. 9620 */ 9621 enum qca_wlan_he_mac_padding_dur { 9622 QCA_WLAN_HE_NO_ADDITIONAL_PROCESS_TIME = 0, 9623 QCA_WLAN_HE_8US_OF_PROCESS_TIME = 1, 9624 QCA_WLAN_HE_16US_OF_PROCESS_TIME = 2, 9625 }; 9626 9627 /** 9628 * enum qca_wlan_he_om_ctrl_ch_bw - HE OM control field BW configuration 9629 * 9630 * Indicates the HE Operating mode control channel width setting value. 9631 * 9632 * @QCA_WLAN_HE_OM_CTRL_BW_20M: Primary 20 MHz 9633 * @QCA_WLAN_HE_OM_CTRL_BW_40M: Primary 40 MHz 9634 * @QCA_WLAN_HE_OM_CTRL_BW_80M: Primary 80 MHz 9635 * @QCA_WLAN_HE_OM_CTRL_BW_160M: 160 MHz and 80+80 MHz 9636 */ 9637 enum qca_wlan_he_om_ctrl_ch_bw { 9638 QCA_WLAN_HE_OM_CTRL_BW_20M = 0, 9639 QCA_WLAN_HE_OM_CTRL_BW_40M = 1, 9640 QCA_WLAN_HE_OM_CTRL_BW_80M = 2, 9641 QCA_WLAN_HE_OM_CTRL_BW_160M = 3, 9642 }; 9643 9644 /** 9645 * enum qca_wlan_keep_alive_data_type - Keep alive data type configuration 9646 * 9647 * Indicates the frame types to use for keep alive data. 9648 * 9649 * @QCA_WLAN_KEEP_ALIVE_DEFAULT: Driver default type used for keep alive. 9650 * @QCA_WLAN_KEEP_ALIVE_DATA: Data frame type for keep alive. 9651 * @QCA_WLAN_KEEP_ALIVE_MGMT: Management frame type for keep alive. 9652 */ 9653 enum qca_wlan_keep_alive_data_type { 9654 QCA_WLAN_KEEP_ALIVE_DEFAULT = 0, 9655 QCA_WLAN_KEEP_ALIVE_DATA = 1, 9656 QCA_WLAN_KEEP_ALIVE_MGMT = 2, 9657 }; 9658 9659 /** 9660 * enum eht_mcs_config - EHT MCS support configuration 9661 * 9662 * Configures the EHT Tx/Rx MCS map in EHT Capability element. 9663 * These values are used in the driver to configure the EHT MCS map to advertise 9664 * Tx/Rx MCS map in EHT capability and these values are applied for all the 9665 * streams supported by the device. 9666 * @EHT_MCS0_7: EHT MCS 0 to 7 support 9667 * @EHT_MCS0_9: EHT MCS 0 to 9 support 9668 * @EHT_MCS0_11: EHT MCS 0 to 11 support 9669 * @EHT_MCS0_13: EHT MCS 0 to 13 support 9670 */ 9671 enum eht_mcs_config { 9672 EHT_MCS0_7 = 0, 9673 EHT_MCS0_9 = 1, 9674 EHT_MCS0_11 = 2, 9675 EHT_MCS0_13 = 3, 9676 }; 9677 9678 /** 9679 * enum qca_wlan_eht_mlo_mode: EHT MLO mode configuration. 9680 * @QCA_WLAN_EHT_MODE_INVALID: Invalid. 9681 * @QCA_WLAN_EHT_MLSR: Multi-link single radio mode 9682 * @QCA_WLAN_EHT_EMLSR: Enhanced multi-link single radio mode. 9683 * @QCA_WLAN_EHT_NON_STR_MLMR: Non simultaneous transmit and receive 9684 * multi-link multi radio mode. 9685 * @QCA_WLAN_EHT_STR_MLMR: Simultaneous transmit and receive 9686 * multi-link multi radio mode. 9687 */ 9688 enum qca_wlan_eht_mlo_mode { 9689 QCA_WLAN_EHT_MODE_INVALID = 0, 9690 QCA_WLAN_EHT_MLSR = 1, 9691 QCA_WLAN_EHT_EMLSR = 2, 9692 QCA_WLAN_EHT_NON_STR_MLMR = 3, 9693 QCA_WLAN_EHT_STR_MLMR = 4, 9694 }; 9695 9696 /** 9697 * enum qca_wlan_emlsr_mode: Enhanced Multi-link Single Radio mode configuration 9698 * @QCA_WLAN_EMLSR_MODE_ENTER: Enter EMLSR mode 9699 * @QCA_WLAN_EMLSR_MODE_EXIT: Exit EMLSR mode 9700 */ 9701 enum qca_wlan_emlsr_mode { 9702 QCA_WLAN_EMLSR_MODE_ENTER = 0, 9703 QCA_WLAN_EMLSR_MODE_EXIT = 1, 9704 }; 9705 9706 /** 9707 * enum qca_wlan_ttlm_negotiation_support: TID-To-Link Mapping Negotiation 9708 * support 9709 * @QCA_WLAN_TTLM_DISABLE: TTLM disabled 9710 * @QCA_WLAN_TTLM_SAME_LINK_SET: Mapping of all TIDs to the same link set, 9711 * both DL and UL 9712 * @QCA_WLAN_TTLM_SAME_DIFF_LINK_SET: Mapping of each TID to the same or 9713 * different link set 9714 */ 9715 enum qca_wlan_ttlm_negotiation_support { 9716 QCA_WLAN_TTLM_DISABLE = 0, 9717 QCA_WLAN_TTLM_SAME_LINK_SET = 1, 9718 QCA_WLAN_TTLM_SAME_DIFF_LINK_SET = 2, 9719 }; 9720 9721 /** 9722 * enum qca_coex_traffic_shaping_mode: Coex traffic shaping mode 9723 * @QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE: Coex policies disabled 9724 * @QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE: All coex policies enabled 9725 */ 9726 enum qca_coex_traffic_shaping_mode { 9727 QCA_COEX_TRAFFIC_SHAPING_MODE_DISABLE = 0, 9728 QCA_COEX_TRAFFIC_SHAPING_MODE_ENABLE = 1, 9729 }; 9730 9731 /** 9732 * enum qca_wlan_vendor_attr_omi_tx: Represents attributes for HE and 9733 * EHT operating mode control transmit request. These attributes are 9734 * sent as part of QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX and 9735 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 9736 * 9737 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS: Mandatory 8-bit unsigned value 9738 * indicates the maximum number of spatial streams, NSS, that the STA 9739 * supports in reception for PPDU bandwidths less than or equal to 80 MHz 9740 * and is set to NSS - 1. 9741 * 9742 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW: Mandatory 8-bit unsigned value 9743 * indicates the operating channel width supported by the STA for both 9744 * reception and transmission. Uses enum qca_wlan_he_om_ctrl_ch_bw values. 9745 * 9746 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE: Mandatory 8-bit unsigned value 9747 * indicates the all trigger based UL MU operations by the STA. 9748 * 0 - UL MU operations are enabled by the STA. 9749 * 1 - All triggered UL MU transmissions are suspended by the STA. 9750 * 9751 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS: Mandatory 8-bit unsigned value 9752 * indicates the maximum number of space-time streams, NSTS, that 9753 * the STA supports in transmission and is set to NSTS - 1. 9754 * 9755 * @QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE: 8-bit unsigned value 9756 * combined with the UL MU Disable subfield and the recipient's setting 9757 * of the OM Control UL MU Data Disable RX Support subfield in the HE MAC 9758 * capabilities to determine which HE TB PPDUs are possible by the 9759 * STA to transmit. 9760 * 0 - UL MU data operations are enabled by the STA. 9761 * 1 - Determine which HE TB PPDU types are allowed by the STA if UL MU disable 9762 * bit is not set, else UL MU Tx is suspended. 9763 * 9764 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN: 8-bit unsigned value in the EHT OM 9765 * Control subfield combined with the Rx NSS subfield in the OM Control subfield 9766 * indicates NSS - 1, where NSS is the maximum number of spatial streams that 9767 * STA supports in reception for PPDU bandwidths less than or equal to 80 MHz. 9768 * 9769 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN: 8-bit unsigned value indicates 9770 * 320 MHz operating channel width supported by the EHT STA for both reception 9771 * and transmission. 9772 * 9773 * @QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN: 8-bit unsigned value in the EHT OM 9774 * Control subfield combined with the Tx NSTS subfield in OM Control subfield 9775 * indicates NSTS - 1, where NSTS is the maximum number of space-time streams 9776 * that the STA supports in transmission for PPDU bandwidths less than or equal 9777 * to 80 MHz. 9778 */ 9779 enum qca_wlan_vendor_attr_omi_tx { 9780 QCA_WLAN_VENDOR_ATTR_HE_OMI_INVALID = 0, 9781 QCA_WLAN_VENDOR_ATTR_HE_OMI_RX_NSS = 1, 9782 QCA_WLAN_VENDOR_ATTR_HE_OMI_CH_BW = 2, 9783 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DISABLE = 3, 9784 QCA_WLAN_VENDOR_ATTR_HE_OMI_TX_NSTS = 4, 9785 QCA_WLAN_VENDOR_ATTR_HE_OMI_ULMU_DATA_DISABLE = 5, 9786 QCA_WLAN_VENDOR_ATTR_EHT_OMI_RX_NSS_EXTN = 6, 9787 QCA_WLAN_VENDOR_ATTR_EHT_OMI_CH_BW_EXTN = 7, 9788 QCA_WLAN_VENDOR_ATTR_EHT_OMI_TX_NSS_EXTN = 8, 9789 9790 /* keep last */ 9791 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST, 9792 QCA_WLAN_VENDOR_ATTR_OMI_MAX = 9793 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST - 1, 9794 }; 9795 9796 /* deprecated legacy names */ 9797 #define QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OMI_TX \ 9798 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX 9799 #define qca_wlan_vendor_attr_he_omi_tx \ 9800 qca_wlan_vendor_attr_omi_tx 9801 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_AFTER_LAST \ 9802 QCA_WLAN_VENDOR_ATTR_OMI_AFTER_LAST 9803 #define QCA_WLAN_VENDOR_ATTR_HE_OMI_MAX \ 9804 QCA_WLAN_VENDOR_ATTR_OMI_MAX 9805 9806 /** 9807 * enum qca_wlan_vendor_phy_mode - Different PHY modes 9808 * These values are used with %QCA_WLAN_VENDOR_ATTR_CONFIG_PHY_MODE. 9809 * 9810 * @QCA_WLAN_VENDOR_PHY_MODE_AUTO: autoselect 9811 * @QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO: 2.4 GHz 802.11b/g/n/ax autoselect 9812 * @QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO: 5 GHz 802.11a/n/ac/ax autoselect 9813 * @QCA_WLAN_VENDOR_PHY_MODE_11A: 5 GHz, OFDM 9814 * @QCA_WLAN_VENDOR_PHY_MODE_11B: 2.4 GHz, CCK 9815 * @QCA_WLAN_VENDOR_PHY_MODE_11G: 2.4 GHz, OFDM 9816 * @QCA_WLAN_VENDOR_PHY_MODE_11AGN: Support 802.11n in both 2.4 GHz and 5 GHz 9817 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20: 2.4 GHz, HT20 9818 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS: 2.4 GHz, HT40 (ext ch +1) 9819 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS: 2.4 GHz, HT40 (ext ch -1) 9820 * @QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40: 2.4 GHz, Auto HT40 9821 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20: 5 GHz, HT20 9822 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS: 5 GHz, HT40 (ext ch +1) 9823 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS: 5 GHz, HT40 (ext ch -1) 9824 * @QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40: 5 GHz, Auto HT40 9825 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20: 5 GHz, VHT20 9826 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS: 5 GHz, VHT40 (Ext ch +1) 9827 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS: 5 GHz VHT40 (Ext ch -1) 9828 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40: 5 GHz, VHT40 9829 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80: 5 GHz, VHT80 9830 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80: 5 GHz, VHT80+80 9831 * @QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160: 5 GHz, VHT160 9832 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20: HE20 9833 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40: HE40 9834 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS: HE40 (ext ch +1) 9835 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS: HE40 (ext ch -1) 9836 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80: HE80 9837 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80: HE 80P80 9838 * @QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160: HE160 9839 */ 9840 enum qca_wlan_vendor_phy_mode { 9841 QCA_WLAN_VENDOR_PHY_MODE_AUTO = 0, 9842 QCA_WLAN_VENDOR_PHY_MODE_2G_AUTO = 1, 9843 QCA_WLAN_VENDOR_PHY_MODE_5G_AUTO = 2, 9844 QCA_WLAN_VENDOR_PHY_MODE_11A = 3, 9845 QCA_WLAN_VENDOR_PHY_MODE_11B = 4, 9846 QCA_WLAN_VENDOR_PHY_MODE_11G = 5, 9847 QCA_WLAN_VENDOR_PHY_MODE_11AGN = 6, 9848 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT20 = 7, 9849 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40PLUS = 8, 9850 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40MINUS = 9, 9851 QCA_WLAN_VENDOR_PHY_MODE_11NG_HT40 = 10, 9852 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT20 = 11, 9853 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40PLUS = 12, 9854 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40MINUS = 13, 9855 QCA_WLAN_VENDOR_PHY_MODE_11NA_HT40 = 14, 9856 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT20 = 15, 9857 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40PLUS = 16, 9858 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40MINUS = 17, 9859 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT40 = 18, 9860 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80 = 19, 9861 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT80P80 = 20, 9862 QCA_WLAN_VENDOR_PHY_MODE_11AC_VHT160 = 21, 9863 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE20 = 22, 9864 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40 = 23, 9865 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40PLUS = 24, 9866 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE40MINUS = 25, 9867 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80 = 26, 9868 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE80P80 = 27, 9869 QCA_WLAN_VENDOR_PHY_MODE_11AX_HE160 = 28, 9870 }; 9871 9872 /* Attributes for data used by 9873 * QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION 9874 */ 9875 enum qca_wlan_vendor_attr_wifi_test_config { 9876 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_INVALID = 0, 9877 /* 8-bit unsigned value to configure the driver to enable/disable 9878 * WMM feature. This attribute is used to configure testbed device. 9879 * 1-enable, 0-disable 9880 */ 9881 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WMM_ENABLE = 1, 9882 9883 /* 8-bit unsigned value to configure the driver to accept/reject 9884 * the addba request from peer. This attribute is used to configure 9885 * the testbed device. 9886 * 1-accept addba, 0-reject addba 9887 */ 9888 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ACCEPT_ADDBA_REQ = 2, 9889 9890 /* 8-bit unsigned value to configure the driver to send or not to 9891 * send the addba request to peer. 9892 * This attribute is used to configure the testbed device. 9893 * 1-send addba, 0-do not send addba 9894 */ 9895 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SEND_ADDBA_REQ = 3, 9896 9897 /* 8-bit unsigned value to indicate the HE fragmentation support. 9898 * Uses enum he_fragmentation_val values. 9899 * This attribute is used to configure the testbed device to 9900 * allow the advertised hardware capabilities to be downgraded 9901 * for testing purposes. 9902 */ 9903 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_FRAGMENTATION = 4, 9904 9905 /* 8-bit unsigned value to indicate the HE MCS support. 9906 * Uses enum he_mcs_config values. 9907 * This attribute is used to configure the testbed device to 9908 * allow the advertised hardware capabilities to be downgraded 9909 * for testing purposes. 9910 */ 9911 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MCS = 5, 9912 9913 /* 8-bit unsigned value to configure the driver to allow or not to 9914 * allow the connection with WEP/TKIP in HT/VHT/HE modes. 9915 * This attribute is used to configure the testbed device. 9916 * 1-allow WEP/TKIP in HT/VHT/HE, 0-do not allow WEP/TKIP. 9917 */ 9918 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_WEP_TKIP_IN_HE = 6, 9919 9920 /* 8-bit unsigned value to configure the driver to add a 9921 * new BA session or delete the existing BA session for 9922 * given TID. ADDBA command uses the buffer size and TID 9923 * configuration if user specifies the values else default 9924 * value for buffer size is used for all TIDs if the TID 9925 * also not specified. For DEL_BA command TID value is 9926 * required to process the command. 9927 * Uses enum qca_wlan_ba_session_config values. 9928 * This attribute is used to configure the testbed device. 9929 */ 9930 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADD_DEL_BA_SESSION = 7, 9931 9932 /* 16-bit unsigned value to configure the buffer size in addba 9933 * request and response frames. 9934 * This attribute is used to configure the testbed device. 9935 * The range of the value is 0 to 256. 9936 */ 9937 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ADDBA_BUFF_SIZE = 8, 9938 9939 /* 8-bit unsigned value to configure the buffer size in addba 9940 * request and response frames. 9941 * This attribute is used to configure the testbed device. 9942 */ 9943 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BA_TID = 9, 9944 9945 /* 8-bit unsigned value to configure the no ack policy. 9946 * To configure no ack policy, access category value is 9947 * required to process the command. 9948 * This attribute is used to configure the testbed device. 9949 * 1 - enable no ack, 0 - disable no ack. 9950 */ 9951 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_NO_ACK = 10, 9952 9953 /* 8-bit unsigned value to configure the AC for no ack policy 9954 * This attribute is used to configure the testbed device. 9955 * Uses the enum qca_wlan_ac_type values. 9956 */ 9957 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_NO_ACK_AC = 11, 9958 9959 /* 8-bit unsigned value to configure the HE LTF 9960 * This attribute is used to configure the testbed device. 9961 * Uses the enum qca_wlan_he_ltf_cfg values. 9962 */ 9963 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_LTF = 12, 9964 9965 /* 8-bit unsigned value to configure the tx beamformee. 9966 * This attribute is used to configure the testbed device. 9967 * 1-enable, 0-disable. 9968 */ 9969 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_TX_BEAMFORMEE = 13, 9970 9971 /* 8-bit unsigned value to configure the tx beamformee number 9972 * of space-time streams. 9973 * This attribute is used to configure the testbed device. 9974 * The range of the value is 0 to 8. 9975 */ 9976 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_BEAMFORMEE_NSTS = 14, 9977 9978 /* 8-bit unsigned value to configure the MU EDCA params for given AC 9979 * This attribute is used to configure the testbed device. 9980 * Uses the enum qca_wlan_ac_type values. 9981 */ 9982 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AC = 15, 9983 9984 /* 8-bit unsigned value to configure the MU EDCA AIFSN for given AC 9985 * To configure MU EDCA AIFSN value, MU EDCA access category value 9986 * is required to process the command. 9987 * This attribute is used to configure the testbed device. 9988 */ 9989 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_AIFSN = 16, 9990 9991 /* 8-bit unsigned value to configure the MU EDCA ECW min value for 9992 * given AC. 9993 * To configure MU EDCA ECW min value, MU EDCA access category value 9994 * is required to process the command. 9995 * This attribute is used to configure the testbed device. 9996 */ 9997 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMIN = 17, 9998 9999 /* 8-bit unsigned value to configure the MU EDCA ECW max value for 10000 * given AC. 10001 * To configure MU EDCA ECW max value, MU EDCA access category value 10002 * is required to process the command. 10003 * This attribute is used to configure the testbed device. 10004 */ 10005 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_ECWMAX = 18, 10006 10007 /* 8-bit unsigned value to configure the MU EDCA timer for given AC 10008 * To configure MU EDCA timer value, MU EDCA access category value 10009 * is required to process the command. 10010 * This attribute is used to configure the testbed device. 10011 */ 10012 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MU_EDCA_TIMER = 19, 10013 10014 /* 8-bit unsigned value to configure the HE trigger frame MAC padding 10015 * duration. 10016 * This attribute is used to configure the testbed device. 10017 * Uses the enum qca_wlan_he_mac_padding_dur values. 10018 */ 10019 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_MAC_PADDING_DUR = 20, 10020 10021 /* 8-bit unsigned value to override the MU EDCA params to defaults 10022 * regardless of the AP beacon MU EDCA params. If it is enabled use 10023 * the default values else use the MU EDCA params from AP beacon. 10024 * This attribute is used to configure the testbed device. 10025 * 1-enable, 0-disable. 10026 */ 10027 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OVERRIDE_MU_EDCA = 21, 10028 10029 /* 8-bit unsigned value to configure the support for receiving 10030 * an MPDU that contains an operating mode control subfield. 10031 * This attribute is used to configure the testbed device. 10032 * 1-enable, 0-disable. 10033 */ 10034 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_SUPP = 22, 10035 10036 /* Nested attribute values required to setup the TWT session. 10037 * enum qca_wlan_vendor_attr_twt_setup provides the necessary 10038 * information to set up the session. It contains broadcast flags, 10039 * set_up flags, trigger value, flow type, flow ID, wake interval 10040 * exponent, protection, target wake time, wake duration, wake interval 10041 * mantissa. These nested attributes are used to setup a host triggered 10042 * TWT session. 10043 */ 10044 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP = 23, 10045 10046 /* This nested attribute is used to terminate the current TWT session. 10047 * It does not currently carry any attributes. 10048 */ 10049 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_TERMINATE = 24, 10050 10051 /* This nested attribute is used to suspend the current TWT session. 10052 * It does not currently carry any attributes. 10053 */ 10054 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SUSPEND = 25, 10055 10056 /* Nested attribute values to indicate the request for resume. 10057 * This attribute is used to resume the TWT session. 10058 * enum qca_wlan_vendor_attr_twt_resume provides the necessary 10059 * parameters required to resume the TWT session. 10060 */ 10061 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME = 26, 10062 10063 /* 8-bit unsigned value to set the HE operating mode control 10064 * (OM CTRL) Channel Width subfield. 10065 * The Channel Width subfield indicates the operating channel width 10066 * supported by the STA for both reception and transmission. 10067 * Uses the enum qca_wlan_he_om_ctrl_ch_bw values. 10068 * This setting is cleared with the 10069 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 10070 * flag attribute to reset defaults. 10071 * This attribute is used to configure the testbed device. 10072 */ 10073 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_BW = 27, 10074 10075 /* 8-bit unsigned value to configure the number of spatial 10076 * streams in HE operating mode control field. 10077 * This setting is cleared with the 10078 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 10079 * flag attribute to reset defaults. 10080 * This attribute is used to configure the testbed device. 10081 */ 10082 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_NSS = 28, 10083 10084 /* Flag attribute to configure the UL MU disable bit in 10085 * HE operating mode control field. 10086 * This setting is cleared with the 10087 * QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG 10088 * flag attribute to reset defaults. 10089 * This attribute is used to configure the testbed device. 10090 */ 10091 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_OM_CTRL_UL_MU_DISABLE = 29, 10092 10093 /* Flag attribute to clear the previously set HE operating mode 10094 * control field configuration. 10095 * This attribute is used to configure the testbed device to reset 10096 * defaults to clear any previously set HE operating mode control 10097 * field configuration. 10098 */ 10099 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_CLEAR_HE_OM_CTRL_CONFIG = 30, 10100 10101 /* 8-bit unsigned value to configure HE single user PPDU 10102 * transmission. By default this setting is disabled and it 10103 * is disabled in the reset defaults of the device configuration. 10104 * This attribute is used to configure the testbed device. 10105 * 1-enable, 0-disable 10106 */ 10107 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TX_SUPPDU = 31, 10108 10109 /* 8-bit unsigned value to configure action frame transmission 10110 * in HE trigger based PPDU transmission. 10111 * By default this setting is disabled and it is disabled in 10112 * the reset defaults of the device configuration. 10113 * This attribute is used to configure the testbed device. 10114 * 1-enable, 0-disable 10115 */ 10116 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_ACTION_TX_TB_PPDU = 32, 10117 10118 /* Nested attribute to indicate HE operating mode control field 10119 * transmission. It contains operating mode control field Nss, 10120 * channel bandwidth, Tx Nsts and UL MU disable attributes. 10121 * These nested attributes are used to send HE operating mode control 10122 * with configured values. 10123 * Uses the enum qca_wlan_vendor_attr_omi_tx attributes. 10124 * This attribute is used to configure the testbed device. 10125 */ 10126 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OMI_TX = 33, 10127 10128 /* 8-bit unsigned value to configure +HTC_HE support to indicate the 10129 * support for the reception of a frame that carries an HE variant 10130 * HT Control field. 10131 * This attribute is used to configure the testbed device. 10132 * 1-enable, 0-disable 10133 */ 10134 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_HTC_HE_SUPP = 34, 10135 10136 /* 8-bit unsigned value to configure VHT support in 2.4G band. 10137 * This attribute is used to configure the testbed device. 10138 * 1-enable, 0-disable 10139 */ 10140 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ENABLE_2G_VHT = 35, 10141 10142 /* 8-bit unsigned value to configure HE testbed defaults. 10143 * This attribute is used to configure the testbed device. 10144 * 1-set the device HE capabilities to testbed defaults. 10145 * 0-reset the device HE capabilities to supported config. 10146 */ 10147 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_HE_TESTBED_DEFAULTS = 36, 10148 10149 /* 8-bit unsigned value to configure TWT request support. 10150 * This attribute is used to configure the testbed device. 10151 * 1-enable, 0-disable. 10152 */ 10153 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_HE_TWT_REQ_SUPPORT = 37, 10154 10155 /* 8-bit unsigned value to configure protection for Management 10156 * frames when PMF is enabled for the association. 10157 * This attribute is used to configure the testbed device. 10158 * 0-use the correct key, 1-use an incorrect key, 2-disable protection. 10159 */ 10160 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PMF_PROTECTION = 38, 10161 10162 /* Flag attribute to inject Disassociation frame to the connected AP. 10163 * This attribute is used to configure the testbed device. 10164 */ 10165 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISASSOC_TX = 39, 10166 10167 /* 8-bit unsigned value to configure an override for the RSNXE Used 10168 * subfield in the MIC control field of the FTE in FT Reassociation 10169 * Request frame. 10170 * 0 - Default behavior, 1 - override with 1, 2 - override with 0. 10171 * This attribute is used to configure the testbed device. 10172 * This attribute can be configured only when STA is in associated state 10173 * and the configuration is valid until the disconnection. 10174 */ 10175 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FT_REASSOCREQ_RSNXE_USED = 40, 10176 10177 /* 8-bit unsigned value to configure the driver to ignore CSA (Channel 10178 * Switch Announcement) when STA is in connected state. 10179 * 0 - Default behavior, 1 - Ignore CSA. 10180 * This attribute is used to configure the testbed device. 10181 * This attribute can be configured only when STA is in associated state 10182 * and the configuration is valid until the disconnection. 10183 */ 10184 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_CSA = 41, 10185 10186 /* Nested attribute values required to configure OCI (Operating Channel 10187 * Information). Attributes defined in enum 10188 * qca_wlan_vendor_attr_oci_override are nested within this attribute. 10189 * This attribute is used to configure the testbed device. 10190 * This attribute can be configured only when STA is in associated state 10191 * and the configuration is valid until the disconnection. 10192 */ 10193 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE = 42, 10194 10195 /* 8-bit unsigned value to configure the driver/firmware to ignore SA 10196 * Query timeout. If this configuration is enabled STA shall not send 10197 * Deauthentication frmae when SA Query times out (mainly, after a 10198 * channel switch when OCV is enabled). 10199 * 0 - Default behavior, 1 - Ignore SA Query timeout. 10200 * This attribute is used to configure the testbed device. 10201 * This attribute can be configured only when STA is in associated state 10202 * and the configuration is valid until the disconnection. 10203 */ 10204 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_SA_QUERY_TIMEOUT = 43, 10205 10206 /* 8-bit unsigned value to configure the driver/firmware to start or 10207 * stop transmitting FILS discovery frames. 10208 * 0 - Stop transmitting FILS discovery frames 10209 * 1 - Start transmitting FILS discovery frames 10210 * This attribute is used to configure the testbed device. 10211 * This attribute can be configured only in AP mode and the 10212 * configuration is valid until AP restart. 10213 */ 10214 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FILS_DISCOVERY_FRAMES_TX = 44, 10215 10216 /* 8-bit unsigned value to configure the driver/firmware to enable or 10217 * disable full bandwidth UL MU-MIMO subfield in the HE PHY capabilities 10218 * information field. 10219 * 0 - Disable full bandwidth UL MU-MIMO subfield 10220 * 1 - Enable full bandwidth UL MU-MIMO subfield 10221 * This attribute is used to configure the testbed device. 10222 */ 10223 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FULL_BW_UL_MU_MIMO = 45, 10224 10225 /* 16-bit unsigned value to configure the driver with a specific BSS 10226 * max idle period to advertise in the BSS Max Idle Period element 10227 * (IEEE Std 802.11-2016, 9.4.2.79) in (Re)Association Request frames. 10228 * This attribute is used to configure the testbed device. 10229 */ 10230 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD = 46, 10231 10232 /* 8-bit unsigned value to configure the driver to use only RU 242 tone 10233 * for data transmission. 10234 * 0 - Default behavior, 1 - Configure RU 242 tone for data Tx. 10235 * This attribute is used to configure the testbed device. 10236 */ 10237 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RU_242_TONE_TX = 47, 10238 10239 /* 8-bit unsigned value to configure the driver to disable data and 10240 * management response frame transmission to test the BSS max idle 10241 * feature. 10242 * 0 - Default behavior, 1 - Disable data and management response Tx. 10243 * This attribute is used to configure the testbed device. 10244 */ 10245 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_DATA_MGMT_RSP_TX = 48, 10246 10247 /* 8-bit unsigned value to configure the driver/firmware to enable or 10248 * disable Punctured Preamble Rx subfield in the HE PHY capabilities 10249 * information field. 10250 * 0 - Disable Punctured Preamble Rx subfield 10251 * 1 - Enable Punctured Preamble Rx subfield 10252 * This attribute is used to configure the testbed device. 10253 */ 10254 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_PUNCTURED_PREAMBLE_RX = 49, 10255 10256 /* 8-bit unsigned value to configure the driver to ignore the SAE H2E 10257 * requirement mismatch for 6 GHz connection. 10258 * 0 - Default behavior, 1 - Ignore SAE H2E requirement mismatch. 10259 * This attribute is used to configure the testbed device. 10260 */ 10261 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_IGNORE_H2E_RSNXE = 50, 10262 10263 /* 8-bit unsigned value to configure the driver to allow 6 GHz 10264 * connection with all security modes. 10265 * 0 - Default behavior, 1 - Allow 6 GHz connection with all security 10266 * modes. 10267 * This attribute is used for testing purposes. 10268 */ 10269 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_6GHZ_SECURITY_TEST_MODE = 51, 10270 10271 /* 8-bit unsigned value to configure the driver to transmit data with 10272 * ER SU PPDU type. 10273 * 10274 * 0 - Default behavior, 1 - Enable ER SU PPDU type TX. 10275 * This attribute is used for testing purposes. 10276 */ 10277 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_ER_SU_PPDU_TYPE = 52, 10278 10279 /* 8-bit unsigned value to configure the driver to use Data or 10280 * Management frame type for keep alive data. 10281 * Uses enum qca_wlan_keep_alive_data_type values. 10282 * 10283 * This attribute is used for testing purposes. 10284 */ 10285 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_KEEP_ALIVE_FRAME_TYPE = 53, 10286 10287 /* 8-bit unsigned value to configure the driver to use scan request 10288 * BSSID value in Probe Request frame RA(A1) during the scan. The 10289 * driver saves this configuration and applies this setting to all user 10290 * space scan requests until the setting is cleared. If this 10291 * configuration is set, the driver uses the BSSID value from the scan 10292 * request to set the RA(A1) in the Probe Request frames during the 10293 * scan. 10294 * 10295 * 0 - Default behavior uses the broadcast RA in Probe Request frames. 10296 * 1 - Uses the scan request BSSID in RA in Probe Request frames. 10297 * This attribute is used for testing purposes. 10298 */ 10299 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_USE_BSSID_IN_PROBE_REQ_RA = 54, 10300 10301 /* 8-bit unsigned value to configure the driver to enable/disable the 10302 * BSS max idle period support. 10303 * 10304 * 0 - Disable the BSS max idle support. 10305 * 1 - Enable the BSS max idle support. 10306 * This attribute is used for testing purposes. 10307 */ 10308 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BSS_MAX_IDLE_PERIOD_ENABLE = 55, 10309 10310 /* 8-bit unsigned value to configure the driver/firmware to enable or 10311 * disable Rx control frame to MultiBSS subfield in the HE MAC 10312 * capabilities information field. 10313 * 0 - Disable Rx control frame to MultiBSS subfield 10314 * 1 - Enable Rx control frame to MultiBSS subfield 10315 * This attribute is used to configure the testbed device. 10316 */ 10317 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RX_CTRL_FRAME_TO_MBSS = 56, 10318 10319 /* 8-bit unsigned value to configure the driver/firmware to enable or 10320 * disable Broadcast TWT support subfield in the HE MAC capabilities 10321 * information field. 10322 * 0 - Disable Broadcast TWT support subfield 10323 * 1 - Enable Broadcast TWT support subfield 10324 * This attribute is used to configure the testbed device. 10325 */ 10326 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BCAST_TWT_SUPPORT = 57, 10327 10328 /* 8-bit unsigned value to configure the driver/firmware to allow eMLSR 10329 * mode for IEEE 802.11be MLO capable devices. If the attribute is set 10330 * to 1, and if the firmware supports this capability too, the STA 10331 * advertises this capability to the AP over Association Request frame. 10332 * This attribute will not have any effect on legacy devices with no 10333 * IEEE 802.11be support. 10334 * 0 - Default behavior 10335 * 1 - Enable eMLSR (Enhanced Multi-link Single-Radio) mode 10336 * This attribute is used to configure the testbed device. 10337 */ 10338 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_11BE_EMLSR_MODE = 58, 10339 10340 /* 8-bit unsigned value to configure the driver to enable/disable the 10341 * periodic sounding for Tx beamformer functionality. The default 10342 * behavior uses algorithm to do sounding based on packet stats. 10343 * 10344 * 0 - Default behavior. 10345 * 1 - Enable the periodic sounding for Tx beamformer. 10346 * This attribute is used for testing purposes. 10347 */ 10348 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_BEAMFORMER_PERIODIC_SOUNDING = 59, 10349 10350 /* 8-bit unsigned value to configure beamformee SS EHT capability 10351 * to indicate the maximum number of spatial streams that the STA 10352 * can receive in an EHT sounding NDP for <= 80 MHz bandwidth. 10353 * The range of the value is 3 to 7. 10354 * This attribute is used to configure the testbed device. 10355 */ 10356 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_80MHZ = 60, 10357 10358 /* 8-bit unsigned value to configure beamformee SS EHT capability 10359 * to indicate the maximum number of spatial streams that the STA 10360 * can receive in an EHT sounding NDP for 160 MHz bandwidth. 10361 * The range of the value is 3 to 7. 10362 * This attribute is used to configure the testbed device. 10363 */ 10364 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_160MHZ = 61, 10365 10366 /* 8-bit unsigned value to configure beamformee SS EHT capability 10367 * to indicate the maximum number of spatial streams that the STA 10368 * can receive in an EHT sounding NDP for 320 MHz bandwidth. 10369 * The range of the value is 3 to 7. 10370 * This attribute is used to configure the testbed device. 10371 */ 10372 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_BEAMFORMEE_SS_320MHZ = 62, 10373 10374 /* 8-bit unsigned value to configure the driver to exclude station 10375 * profile in Probe Request frame Multi-Link element. 10376 * 0 - Default behavior, sends the Probe Request frame with station 10377 * profile data included in the Multi-Link element. 10378 * 1 - Exclude station profile in Probe Request frame Multi-Link 10379 * element. 10380 * This attribute is used to configure the testbed device. 10381 */ 10382 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EXCLUDE_STA_PROF_IN_PROBE_REQ = 63, 10383 10384 /* 8-bit unsigned value to configure EHT testbed defaults. 10385 * This attribute is used to configure the testbed device. 10386 * 1 - Set the device EHT capabilities to testbed defaults. 10387 * 0 - Reset the device EHT capabilities to supported config. 10388 */ 10389 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_SET_EHT_TESTBED_DEFAULTS = 64, 10390 10391 /* 8-bit unsigned value to indicate the EHT MCS support. 10392 * Uses enum eht_mcs_config values. 10393 * This attribute is used to configure the testbed device to 10394 * allow the advertised hardware capabilities to be downgraded 10395 * for testing purposes. 10396 */ 10397 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MCS = 65, 10398 10399 /* 8-bit unsigned value to configure EHT TB Sounding Feedback 10400 * Rate Limit capability. 10401 * This attribute is used to configure the testbed device. 10402 * 0 - Indicates no maximum supported data rate limitation. 10403 * 1 - Indicates the maximum supported data rate is the lower of 10404 * the 1500 Mb/s and the maximum supported data rate. 10405 */ 10406 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_TB_SOUNDING_FB_RL = 66, 10407 10408 /* 8-bit unsigned value to configure the support for receiving an MPDU 10409 * that contains an EHT operating mode control subfield. 10410 * This attribute is used to configure the testbed device. 10411 * 1-enable, 0-disable. 10412 */ 10413 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_OM_CTRL_SUPPORT = 67, 10414 10415 /* 8-bit unsigned value to configure the driver with EMLSR padding delay 10416 * subfield value. 10417 * 10418 * 0 - 0 us 10419 * 1 - 32 us 10420 * 2 - 64 us 10421 * 3 - 128 us 10422 * 4 - 256 us 10423 * 5-255 - Reserved 10424 * 10425 * This attribute is used for testing purposes. 10426 */ 10427 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EMLSR_PADDING_DELAY = 68, 10428 10429 /* 10430 * 8-bit unsigned value to indicate the firmware to force the active MLO 10431 * links to power save mode for the configured number of beacon periods. 10432 * This allows the firmware to suspend STA links for X beacon periods 10433 * and remain asleep even if the AP advertises TIM as opposed to regular 10434 * power save mode where STA links wake up if the AP indicates that it 10435 * has buffered data to send. 10436 * This attribute is used to configure the testbed device. 10437 */ 10438 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_FORCE_MLO_POWER_SAVE_BCN_PERIOD = 69, 10439 10440 /* 10441 * 8-bit unsigned value to indicate the firmware to be in STR MLMR mode 10442 * to enable simultaneous transmission of PPDUs on all active links. 10443 * 0 - Default behavior 10444 * 1 - Enter STR mode for simultaneous data transmission on all links 10445 */ 10446 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_STR_TX = 70, 10447 10448 /* Nested attribute to indicate EHT MLO links on which powersave to be 10449 * enabled. It contains link ID attributes. These nested attributes are 10450 * of the type u8 and are used to enable the powersave on associated 10451 * MLO links corresponding to the link IDs provided in the command. 10452 * This attribute is used to configure the testbed device. 10453 */ 10454 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_MLO_LINK_POWER_SAVE = 71, 10455 10456 /* 8-bit unsigned value to configure the MLD ID of the BSS whose link 10457 * info is requested in the ML Probe Request frame. In the MLO-MBSSID 10458 * testcase, STA can request information of non-Tx BSS through Tx BSS 10459 * by configuring non-Tx BSS MLD ID within the ML probe request that 10460 * is transmitted via host initiated scan request. 10461 * 10462 * This attribute is used for testing purposes. 10463 */ 10464 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MLD_ID_ML_PROBE_REQ = 72, 10465 10466 /* 8-bit unsigned value to configure the SCS traffic description 10467 * support in the EHT capabilities of an Association Request frame. 10468 * 1-enable, 0-disable 10469 * This attribute is used to configure the testbed device. 10470 */ 10471 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_EHT_SCS_TRAFFIC_SUPPORT = 73, 10472 10473 /* 8-bit unsigned value to disable or not disable the channel switch 10474 * initiation in P2P GO mode. 10475 * 0 - Not-disable, 1 - Disable 10476 * 10477 * This attribute is used for testing purposes. 10478 */ 10479 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_DISABLE_CHAN_SWITCH_INITIATION = 74, 10480 10481 /* 8-bit unsigned value. This indicates number of random PMKIDs to be 10482 * added in the RSNE of the (Re)Association request frames. This is 10483 * exclusively used for the scenarios where the device is used as a test 10484 * bed device with special functionality and not recommended for 10485 * production. Default value is zero. If the user space configures a 10486 * non-zero value, that remains in use until the driver is unloaded or 10487 * the user space resets the value to zero. 10488 * 10489 * This attribute is used for testing purposes. 10490 */ 10491 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_RSNE_ADD_RANDOM_PMKIDS = 75, 10492 10493 /* keep last */ 10494 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST, 10495 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_MAX = 10496 QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_AFTER_LAST - 1, 10497 }; 10498 10499 /** 10500 * enum qca_wlan_twt_operation - Operation of the config TWT request 10501 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION. 10502 * The response for the respective operations can be either synchronous or 10503 * asynchronous (wherever specified). If synchronous, the response to this 10504 * operation is obtained in the corresponding vendor command reply to the user 10505 * space. For the asynchronous case the response is obtained as an event with 10506 * the same operation type. 10507 * 10508 * Drivers shall support either of these modes but not both simultaneously. 10509 * This support for asynchronous mode is advertised through the flag 10510 * QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT. If this flag is not advertised, 10511 * the driver shall support synchronous mode. 10512 * 10513 * @QCA_WLAN_TWT_SET: Setup a TWT session. Required parameters are configured 10514 * through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10515 * qca_wlan_vendor_attr_twt_setup. Depending upon the 10516 * @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, this is either a 10517 * synchronous or asynchronous operation. 10518 * 10519 * @QCA_WLAN_TWT_GET: Get the configured TWT parameters. Required parameters are 10520 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10521 * qca_wlan_vendor_attr_twt_setup. This is a synchronous operation. 10522 * 10523 * @QCA_WLAN_TWT_TERMINATE: Terminate the TWT session. Required parameters are 10524 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10525 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup. 10526 * This terminate can either get triggered by the user space or can as well be 10527 * a notification from the firmware if it initiates a terminate. 10528 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, 10529 * the request from user space can either be a synchronous or asynchronous 10530 * operation. 10531 * 10532 * @QCA_WLAN_TWT_SUSPEND: Suspend the TWT session. Required parameters are 10533 * obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10534 * qca_wlan_vendor_attr_twt_setup. Valid only after the TWT session is setup. 10535 * Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT capability, 10536 * this is either a synchronous or asynchronous operation. 10537 * 10538 * @QCA_WLAN_TWT_RESUME: Resume the TWT session. Required parameters are 10539 * configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the enum 10540 * qca_wlan_vendor_attr_twt_resume. Valid only after the TWT session is setup. 10541 * This can as well be a notification from the firmware on a QCA_WLAN_TWT_NUDGE 10542 * request. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT 10543 * capability, this is either a synchronous or asynchronous operation. 10544 * 10545 * @QCA_WLAN_TWT_NUDGE: Suspend and resume the TWT session. TWT nudge is a 10546 * combination of suspend and resume in a single request. Required parameters 10547 * are configured through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refers the 10548 * enum qca_wlan_vendor_attr_twt_nudge. Valid only after the TWT session is 10549 * setup. Depending upon the @QCA_WLAN_VENDOR_FEATURE_TWT_ASYNC_SUPPORT 10550 * capability, this is either a synchronous or asynchronous operation. 10551 * 10552 * @QCA_WLAN_TWT_GET_STATS: Get the TWT session traffic statistics information. 10553 * Refers the enum qca_wlan_vendor_attr_twt_stats. Valid only after the TWT 10554 * session is setup. It's a synchronous operation. 10555 * 10556 * @QCA_WLAN_TWT_CLEAR_STATS: Clear TWT session traffic statistics information. 10557 * Valid only after the TWT session is setup. It's a synchronous operation. 10558 * 10559 * @QCA_WLAN_TWT_GET_CAPABILITIES: Get TWT capabilities of this device and its 10560 * peer. Refers the enum qca_wlan_vendor_attr_twt_capability. It's a synchronous 10561 * operation. 10562 * 10563 * @QCA_WLAN_TWT_SETUP_READY_NOTIFY: Notify userspace that the firmware is 10564 * ready for a new TWT session setup after it issued a TWT teardown. 10565 * 10566 * @QCA_WLAN_TWT_SET_PARAM: Configure TWT related parameters. Required 10567 * parameters are obtained through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. Refer 10568 * the enum qca_wlan_vendor_attr_twt_set_param. 10569 * 10570 * @QCA_WLAN_TWT_NOTIFY: Used to notify userspace about changes in TWT 10571 * related information for example TWT required bit in AP capabilities etc. 10572 * The reason for the notification is sent using 10573 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS. 10574 */ 10575 enum qca_wlan_twt_operation { 10576 QCA_WLAN_TWT_SET = 0, 10577 QCA_WLAN_TWT_GET = 1, 10578 QCA_WLAN_TWT_TERMINATE = 2, 10579 QCA_WLAN_TWT_SUSPEND = 3, 10580 QCA_WLAN_TWT_RESUME = 4, 10581 QCA_WLAN_TWT_NUDGE = 5, 10582 QCA_WLAN_TWT_GET_STATS = 6, 10583 QCA_WLAN_TWT_CLEAR_STATS = 7, 10584 QCA_WLAN_TWT_GET_CAPABILITIES = 8, 10585 QCA_WLAN_TWT_SETUP_READY_NOTIFY = 9, 10586 QCA_WLAN_TWT_SET_PARAM = 10, 10587 QCA_WLAN_TWT_NOTIFY = 11, 10588 }; 10589 10590 /** 10591 * enum qca_wlan_vendor_attr_config_twt: Defines attributes used by 10592 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 10593 * 10594 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION: u8 attribute. Specify the TWT 10595 * operation of this request. Possible values are defined in enum 10596 * qca_wlan_twt_operation. The parameters for the respective operation is 10597 * specified through QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS. 10598 * 10599 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS: Nested attribute representing the 10600 * parameters configured for TWT. These parameters are represented by 10601 * enum qca_wlan_vendor_attr_twt_setup, enum qca_wlan_vendor_attr_twt_resume, 10602 * enum qca_wlan_vendor_attr_twt_set_param, or 10603 * enum qca_wlan_vendor_attr_twt_stats based on the operation. 10604 * 10605 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS: Size is u8, mandatory when 10606 * QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to QCA_WLAN_TWT_NOTIFY. 10607 * The values used by this attribute are defined in 10608 * enum qca_wlan_vendor_twt_status. 10609 */ 10610 enum qca_wlan_vendor_attr_config_twt { 10611 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_INVALID = 0, 10612 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION = 1, 10613 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_PARAMS = 2, 10614 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_NOTIFY_STATUS = 3, 10615 10616 /* keep last */ 10617 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST, 10618 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_MAX = 10619 QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_AFTER_LAST - 1, 10620 }; 10621 10622 /** 10623 * enum qca_wlan_vendor_attr_bss_filter - Used by the vendor command 10624 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 10625 * The user can add/delete the filter by specifying the BSSID/STA MAC address in 10626 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, filter type in 10627 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, add/delete action in 10628 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user can get the 10629 * statistics of an unassociated station by specifying the MAC address in 10630 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR, station type in 10631 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE, GET action in 10632 * QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION in the request. The user also can get 10633 * the statistics of all unassociated stations by specifying the Broadcast MAC 10634 * address (ff:ff:ff:ff:ff:ff) in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR with 10635 * above procedure. In the response, driver shall specify statistics 10636 * information nested in QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS. 10637 */ 10638 enum qca_wlan_vendor_attr_bss_filter { 10639 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_INVALID = 0, 10640 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAC_ADDR = 1, 10641 /* Other BSS filter type, unsigned 8 bit value. One of the values 10642 * in enum qca_wlan_vendor_bss_filter_type. 10643 */ 10644 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_TYPE = 2, 10645 /* Other BSS filter action, unsigned 8 bit value. One of the values 10646 * in enum qca_wlan_vendor_bss_filter_action. 10647 */ 10648 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_ACTION = 3, 10649 /* Array of nested attributes where each entry is the statistics 10650 * information of the specified station that belong to another BSS. 10651 * Attributes for each entry are taken from enum 10652 * qca_wlan_vendor_bss_filter_sta_stats. 10653 * Other BSS station configured in 10654 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER with filter type 10655 * QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA. 10656 * Statistics returned by QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER 10657 * with filter action QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET. 10658 */ 10659 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_STA_STATS = 4, 10660 10661 /* keep last */ 10662 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST, 10663 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_MAX = 10664 QCA_WLAN_VENDOR_ATTR_BSS_FILTER_AFTER_LAST - 1, 10665 }; 10666 10667 /** 10668 * enum qca_wlan_vendor_bss_filter_type - Type of 10669 * filter used in other BSS filter operations. Used by the vendor command 10670 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 10671 * 10672 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID: BSSID filter 10673 * @QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA: Station MAC address filter 10674 */ 10675 enum qca_wlan_vendor_bss_filter_type { 10676 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_BSSID, 10677 QCA_WLAN_VENDOR_BSS_FILTER_TYPE_STA, 10678 }; 10679 10680 /** 10681 * enum qca_wlan_vendor_bss_filter_action - Type of 10682 * action in other BSS filter operations. Used by the vendor command 10683 * QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 10684 * 10685 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD: Add filter 10686 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL: Delete filter 10687 * @QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET: Get the statistics 10688 */ 10689 enum qca_wlan_vendor_bss_filter_action { 10690 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_ADD, 10691 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_DEL, 10692 QCA_WLAN_VENDOR_BSS_FILTER_ACTION_GET, 10693 }; 10694 10695 /** 10696 * enum qca_wlan_vendor_bss_filter_sta_stats - Attributes for 10697 * the statistics of a specific unassociated station belonging to another BSS. 10698 * The statistics provides information of the unassociated station 10699 * filtered by other BSS operation - such as MAC, signal value. 10700 * Used by the vendor command QCA_NL80211_VENDOR_SUBCMD_BSS_FILTER. 10701 * 10702 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC: MAC address of the station. 10703 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI: Last received signal strength 10704 * of the station. Unsigned 8 bit number containing RSSI. 10705 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS: Time stamp of the host 10706 * driver for the last received RSSI. Unsigned 64 bit number containing 10707 * nanoseconds from the boottime. 10708 * @QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD: Attribute used for padding for 10709 * 64-bit alignment. 10710 */ 10711 enum qca_wlan_vendor_bss_filter_sta_stats { 10712 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_INVALID = 0, 10713 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAC = 1, 10714 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI = 2, 10715 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_RSSI_TS = 3, 10716 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_PAD = 4, 10717 10718 /* keep last */ 10719 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST, 10720 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_MAX = 10721 QCA_WLAN_VENDOR_BSS_FILTER_STA_STATS_AFTER_LAST - 1 10722 }; 10723 10724 /* enum qca_wlan_nan_subcmd_type - Type of NAN command used by attribute 10725 * QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE as a part of vendor command 10726 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 10727 */ 10728 enum qca_wlan_nan_ext_subcmd_type { 10729 /* Subcmd of type NAN Enable Request */ 10730 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ = 1, 10731 /* Subcmd of type NAN Disable Request */ 10732 QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ = 2, 10733 }; 10734 10735 /** 10736 * enum qca_wlan_vendor_attr_nan_params - Used by the vendor command 10737 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. 10738 */ 10739 enum qca_wlan_vendor_attr_nan_params { 10740 QCA_WLAN_VENDOR_ATTR_NAN_INVALID = 0, 10741 /* Carries NAN command for firmware component. Every vendor command 10742 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT must contain this attribute with a 10743 * payload containing the NAN command. NLA_BINARY attribute. 10744 */ 10745 QCA_WLAN_VENDOR_ATTR_NAN_CMD_DATA = 1, 10746 /* Indicates the type of NAN command sent with 10747 * QCA_NL80211_VENDOR_SUBCMD_NAN_EXT. enum qca_wlan_nan_ext_subcmd_type 10748 * describes the possible range of values. This attribute is mandatory 10749 * if the command being issued is either 10750 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ or 10751 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_DISABLE_REQ. NLA_U32 attribute. 10752 */ 10753 QCA_WLAN_VENDOR_ATTR_NAN_SUBCMD_TYPE = 2, 10754 /* Frequency (in MHz) of primary NAN discovery social channel in 2.4 GHz 10755 * band. This attribute is mandatory when command type is 10756 * QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ. NLA_U32 attribute. 10757 */ 10758 QCA_WLAN_VENDOR_ATTR_NAN_DISC_24GHZ_BAND_FREQ = 3, 10759 /* Frequency (in MHz) of secondary NAN discovery social channel in 5 GHz 10760 * band. This attribute is optional and should be included when command 10761 * type is QCA_WLAN_NAN_EXT_SUBCMD_TYPE_ENABLE_REQ and NAN discovery 10762 * has to be started on 5GHz along with 2.4GHz. NLA_U32 attribute. 10763 */ 10764 QCA_WLAN_VENDOR_ATTR_NAN_DISC_5GHZ_BAND_FREQ = 4, 10765 10766 /* keep last */ 10767 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST, 10768 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_MAX = 10769 QCA_WLAN_VENDOR_ATTR_NAN_PARAMS_AFTER_LAST - 1 10770 }; 10771 10772 /** 10773 * qca_wlan_twt_setup_state: Represents the TWT session states. 10774 * 10775 * QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED: TWT session not established. 10776 * QCA_WLAN_TWT_SETUP_STATE_ACTIVE: TWT session is active. 10777 * QCA_WLAN_TWT_SETUP_STATE_SUSPEND: TWT session is in suspended state. 10778 */ 10779 enum qca_wlan_twt_setup_state { 10780 QCA_WLAN_TWT_SETUP_STATE_NOT_ESTABLISHED = 0, 10781 QCA_WLAN_TWT_SETUP_STATE_ACTIVE = 1, 10782 QCA_WLAN_TWT_SETUP_STATE_SUSPEND = 2, 10783 }; 10784 10785 /** 10786 * enum qca_wlan_vendor_attr_twt_setup: Represents attributes for 10787 * TWT (Target Wake Time) setup request. These attributes are sent as part of 10788 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_SETUP and 10789 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by 10790 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT and 10791 * %QCA_NL80211_VENDOR_SUBCMD_CHAN_USAGE_REQ. 10792 * 10793 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST: Flag attribute. 10794 * Disable (flag attribute not present) - Individual TWT 10795 * Enable (flag attribute present) - Broadcast TWT. 10796 * Individual means the session is between the STA and the AP. 10797 * This session is established using a separate negotiation between 10798 * STA and AP. 10799 * Broadcast means the session is across multiple STAs and an AP. The 10800 * configuration parameters are announced in Beacon frames by the AP. 10801 * This is used in 10802 * 1. TWT SET Request and Response 10803 * 2. TWT GET Response 10804 * 10805 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE: Required (u8). 10806 * Unsigned 8-bit qca_wlan_vendor_twt_setup_req_type to 10807 * specify the TWT request type. This is used in TWT SET operation. 10808 * 10809 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER: Flag attribute 10810 * Enable (flag attribute present) - TWT with trigger support. 10811 * Disable (flag attribute not present) - TWT without trigger support. 10812 * Trigger means the AP will send the trigger frame to allow STA to send data. 10813 * Without trigger, the STA will wait for the MU EDCA timer before 10814 * transmitting the data. 10815 * This is used in 10816 * 1. TWT SET Request and Response 10817 * 2. TWT GET Response 10818 * 10819 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE: Required (u8) 10820 * 0 - Announced TWT - In this mode, STA may skip few service periods to 10821 * save more power. If STA wants to wake up, it will send a PS-POLL/QoS 10822 * NULL frame to AP. 10823 * 1 - Unannounced TWT - The STA will wakeup during every SP. 10824 * This is a required parameter for 10825 * 1. TWT SET Request and Response 10826 * 2. TWT GET Response 10827 * 10828 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID: Optional (u8) 10829 * Flow ID is the unique identifier for each TWT session. 10830 * If not provided then dialog ID will be set to zero. 10831 * This is an optional parameter for 10832 * 1. TWT SET Request and Response 10833 * 2. TWT GET Request and Response 10834 * 3. TWT TERMINATE Request and Response 10835 * 4. TWT SUSPEND Request and Response 10836 * Flow ID values from 0 to 254 represent a single TWT session 10837 * Flow ID value of 255 represents all TWT sessions for the following 10838 * 1. TWT TERMINATE Request and Response 10839 * 2. TWT SUSPEND Request and Response 10840 * 4. TWT CLEAR STATISTICS request 10841 * 5. TWT GET STATISTICS request and response 10842 * If an invalid dialog ID is provided, status 10843 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 10844 * 10845 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP: Required (u8) 10846 * This attribute (exp) is used along with the mantissa to derive the 10847 * wake interval using the following formula: 10848 * pow(2,exp) = wake_intvl_us/wake_intvl_mantis 10849 * Wake interval is the interval between 2 successive SP. 10850 * This is a required parameter for 10851 * 1. TWT SET Request and Response 10852 * 2. TWT GET Response 10853 * 10854 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION: Flag attribute 10855 * Enable (flag attribute present) - Protection required. 10856 * Disable (flag attribute not present) - Protection not required. 10857 * If protection is enabled, then the AP will use protection 10858 * mechanism using RTS/CTS to self to reserve the airtime. 10859 * This is used in 10860 * 1. TWT SET Request and Response 10861 * 2. TWT GET Response 10862 * 10863 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME: Optional (u32) 10864 * This attribute is used as the SP offset which is the offset from 10865 * TSF after which the wake happens. The units are in microseconds. If 10866 * this attribute is not provided, then the value will be set to zero. 10867 * This is an optional parameter for 10868 * 1. TWT SET Request and Response 10869 * 2. TWT GET Response 10870 * 10871 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION: Required (u32) 10872 * This is the duration of the service period. This is specified as 10873 * multiples of 256 microseconds. Valid values are 0x1 to 0xFF. 10874 * This is a required parameter for 10875 * 1. TWT SET Request and Response 10876 * 2. TWT GET Response 10877 * 10878 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA: Required (u32) 10879 * This attribute is used to configure wake interval mantissa. 10880 * The units are in TU. 10881 * This is a required parameter for 10882 * 1. TWT SET Request and Response 10883 * 2. TWT GET Response 10884 * 10885 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS: Required (u8) 10886 * This field is applicable for TWT response only. 10887 * This contains status values in enum qca_wlan_vendor_twt_status 10888 * and is passed to the userspace. This is used in TWT SET operation. 10889 * This is a required parameter for 10890 * 1. TWT SET Response 10891 * 2. TWT TERMINATE Response 10892 * 3. TWT SUSPEND Response 10893 * 4. TWT RESUME Response 10894 * 5. TWT NUDGE Response 10895 * 10896 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE: Required (u8) 10897 * This field is applicable for TWT response only. 10898 * This field contains response type from the TWT responder and is 10899 * passed to the userspace. The values for this field are defined in 10900 * enum qca_wlan_vendor_twt_setup_resp_type. This is used in TWT SET 10901 * response. 10902 * 10903 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF: Required (u64) 10904 * In TWT setup command this field contains absolute TSF that will 10905 * be used by TWT requester during setup. 10906 * In TWT response this field contains absolute TSF value of the 10907 * wake time received from the TWT responder and is passed to 10908 * the userspace. 10909 * This is an optional parameter for 10910 * 1. TWT SET Request 10911 * This is a required parameter for 10912 * 1. TWT SET Response 10913 * 2. TWT GET Response 10914 * 10915 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED: Flag attribute. 10916 * Enable (flag attribute present) - Indicates that the TWT responder 10917 * supports reception of TWT information frame from the TWT requestor. 10918 * Disable (flag attribute not present) - Indicates that the responder 10919 * doesn't support reception of TWT information frame from requestor. 10920 * This is used in 10921 * 1. TWT SET Response 10922 * 2. TWT GET Response 10923 * 10924 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR: 6-byte MAC address 10925 * Represents the MAC address of the peer for which the TWT session 10926 * is being configured. This is used in AP mode to represent the respective 10927 * client. 10928 * In AP mode, this is a required parameter in response for 10929 * 1. TWT SET 10930 * 2. TWT GET 10931 * 3. TWT TERMINATE 10932 * 4. TWT SUSPEND 10933 * In STA mode, this is an optional parameter in request and response for 10934 * the above four TWT operations. 10935 * In AP mode, this is a required parameter in request for 10936 * 1. TWT GET 10937 * 2. TWT TERMINATE 10938 * 10939 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL: Optional (u32) 10940 * Minimum tolerance limit of wake interval parameter in microseconds. 10941 * 10942 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL: Optional (u32) 10943 * Maximum tolerance limit of wake interval parameter in microseconds. 10944 * 10945 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION: Optional (u32) 10946 * Minimum tolerance limit of wake duration parameter in microseconds. 10947 * 10948 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION: Optional (u32) 10949 * Maximum tolerance limit of wake duration parameter in microseconds. 10950 * 10951 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE: Optional (u32) 10952 * TWT state for the given dialog id. The values for this are represented 10953 * by enum qca_wlan_twt_setup_state. 10954 * This is obtained through TWT GET operation. 10955 * 10956 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA: Optional (u32) 10957 * This attribute is used to configure wake interval mantissa. 10958 * The unit is microseconds. This attribute, when specified, takes 10959 * precedence over QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA. 10960 * This parameter is used for 10961 * 1. TWT SET Request and Response 10962 * 2. TWT GET Response 10963 * 10964 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID: Optional (u8) 10965 * This attribute is used to configure Broadcast TWT ID. 10966 * The Broadcast TWT ID indicates a specific Broadcast TWT for which the 10967 * transmitting STA is providing TWT parameters. The allowed values are 0 to 31. 10968 * This parameter is used for 10969 * 1. TWT SET Request 10970 * 2. TWT TERMINATE Request 10971 * 10972 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION: Optional (u8) 10973 * This attribute is used to configure Broadcast TWT recommendation. 10974 * The Broadcast TWT Recommendation subfield contains a value that indicates 10975 * recommendations on the types of frames that are transmitted by TWT 10976 * scheduled STAs and scheduling AP during the broadcast TWT SP. 10977 * The allowed values are 0 - 3. 10978 * This parameter is used for 10979 * 1. TWT SET Request 10980 * 10981 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE: Optional (u8) 10982 * This attribute is used to configure Broadcast TWT Persistence. 10983 * The Broadcast TWT Persistence subfield indicates the number of 10984 * TBTTs during which the Broadcast TWT SPs corresponding to this 10985 * broadcast TWT Parameter set are present. The number of beacon intervals 10986 * during which the Broadcast TWT SPs are present is equal to the value in the 10987 * Broadcast TWT Persistence subfield plus 1 except that the value 255 10988 * indicates that the Broadcast TWT SPs are present until explicitly terminated. 10989 * This parameter is used for 10990 * 1. TWT SET Request 10991 * 10992 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE: Optional (u8) 10993 * This attribute contains the value of the Responder PM Mode subfield (0 or 1) 10994 * from TWT response frame. During TWT setup request, this attribute is used to 10995 * configure the Responder PM Mode bit in the control field of the TWT element 10996 * for broadcast TWT schedule. 10997 * This parameter is used for 10998 * 1. TWT SET Response 10999 * 2. TWT GET Response 11000 * 3. TWT SET Request 11001 * 11002 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT: Optional (u32) 11003 * This attribute is used to configure the announce timeout value (in us) in 11004 * the firmware. This timeout value is only applicable for the announced TWT. If 11005 * the timeout value is non-zero the firmware waits up to the timeout value to 11006 * use Data frame as an announcement frame. If the timeout value is 0 the 11007 * firmware sends an explicit QoS NULL frame as the announcement frame on SP 11008 * start. The default value in the firmware is 0. 11009 * This parameter is used for 11010 * 1. TWT SET Request 11011 * 11012 * @QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD: Attribute used for padding for 64-bit 11013 * alignment. 11014 */ 11015 enum qca_wlan_vendor_attr_twt_setup { 11016 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_INVALID = 0, 11017 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST = 1, 11018 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE = 2, 11019 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER = 3, 11020 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE = 4, 11021 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_ID = 5, 11022 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP = 6, 11023 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION = 7, 11024 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME = 8, 11025 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION = 9, 11026 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA = 10, 11027 11028 /* TWT Response only attributes */ 11029 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATUS = 11, 11030 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESP_TYPE = 12, 11031 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_TIME_TSF = 13, 11032 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TWT_INFO_ENABLED = 14, 11033 11034 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAC_ADDR = 15, 11035 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_INTVL = 16, 11036 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_INTVL = 17, 11037 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MIN_WAKE_DURATION = 18, 11038 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX_WAKE_DURATION = 19, 11039 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_STATE = 20, 11040 11041 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL2_MANTISSA = 21, 11042 11043 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_ID = 22, 11044 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_RECOMMENDATION = 23, 11045 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_BCAST_PERSISTENCE = 24, 11046 11047 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE = 25, 11048 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_ANNOUNCE_TIMEOUT = 26, 11049 11050 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PAD = 27, 11051 11052 /* keep last */ 11053 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST, 11054 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_MAX = 11055 QCA_WLAN_VENDOR_ATTR_TWT_SETUP_AFTER_LAST - 1, 11056 }; 11057 11058 /** 11059 * enum qca_wlan_vendor_twt_status - Represents the status of the requested 11060 * TWT operation 11061 * 11062 * @QCA_WLAN_VENDOR_TWT_STATUS_OK: TWT request successfully completed 11063 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED: TWT not enabled 11064 * @QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID: TWT dialog ID is already used 11065 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY: TWT session is busy 11066 * @QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST: TWT session does not exist 11067 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED: TWT session not in suspend state 11068 * @QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM: Invalid parameters 11069 * @QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY: FW not ready 11070 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE: FW resource exhausted 11071 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK: Peer AP/STA did not ACK the 11072 * request/response frame 11073 * @QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE: Peer AP did not send the response 11074 * frame 11075 * @QCA_WLAN_VENDOR_TWT_STATUS_DENIED: AP did not accept the request 11076 * @QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR: Adding TWT dialog failed due to an 11077 * unknown reason 11078 * @QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED: TWT session already in 11079 * suspend state 11080 * @QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID: FW has dropped the frame due to 11081 * invalid IE in the received TWT frame 11082 * @QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE: Parameters received from 11083 * the responder are not in the specified range 11084 * @QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE: FW terminated the TWT 11085 * session due to request from the responder. Used on the TWT_TERMINATE 11086 * notification from the firmware. 11087 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE: FW terminated the TWT 11088 * session due to roaming. Used on the TWT_TERMINATE notification from the 11089 * firmware. 11090 * @QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE: FW terminated the 11091 * TWT session due to SCC (Single Channel Concurrency) and MCC (Multi Channel 11092 * Concurrency). Used on the TWT_TERMINATE notification from the firmware. 11093 * @QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS: FW rejected the TWT setup 11094 * request due to roaming in progress. 11095 * @QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS: FW rejected the TWT 11096 * setup request due to channel switch in progress. 11097 * @QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS: FW rejected the TWT setup 11098 * request due to scan in progress. 11099 * QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE: The driver requested to 11100 * terminate an existing TWT session on power save exit request from userspace. 11101 * Used on the TWT_TERMINATE notification from the driver/firmware. 11102 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED: The peer has set the TWT 11103 * required bit in its capabilities. 11104 * @QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED: The peer has cleared 11105 * the TWT required bit(1->0) in its capabilities. 11106 */ 11107 enum qca_wlan_vendor_twt_status { 11108 QCA_WLAN_VENDOR_TWT_STATUS_OK = 0, 11109 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_ENABLED = 1, 11110 QCA_WLAN_VENDOR_TWT_STATUS_USED_DIALOG_ID = 2, 11111 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_BUSY = 3, 11112 QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST = 4, 11113 QCA_WLAN_VENDOR_TWT_STATUS_NOT_SUSPENDED = 5, 11114 QCA_WLAN_VENDOR_TWT_STATUS_INVALID_PARAM = 6, 11115 QCA_WLAN_VENDOR_TWT_STATUS_NOT_READY = 7, 11116 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESOURCE = 8, 11117 QCA_WLAN_VENDOR_TWT_STATUS_NO_ACK = 9, 11118 QCA_WLAN_VENDOR_TWT_STATUS_NO_RESPONSE = 10, 11119 QCA_WLAN_VENDOR_TWT_STATUS_DENIED = 11, 11120 QCA_WLAN_VENDOR_TWT_STATUS_UNKNOWN_ERROR = 12, 11121 QCA_WLAN_VENDOR_TWT_STATUS_ALREADY_SUSPENDED = 13, 11122 QCA_WLAN_VENDOR_TWT_STATUS_IE_INVALID = 14, 11123 QCA_WLAN_VENDOR_TWT_STATUS_PARAMS_NOT_IN_RANGE = 15, 11124 QCA_WLAN_VENDOR_TWT_STATUS_PEER_INITIATED_TERMINATE = 16, 11125 QCA_WLAN_VENDOR_TWT_STATUS_ROAM_INITIATED_TERMINATE = 17, 11126 QCA_WLAN_VENDOR_TWT_STATUS_SCC_MCC_CONCURRENCY_TERMINATE = 18, 11127 QCA_WLAN_VENDOR_TWT_STATUS_ROAMING_IN_PROGRESS = 19, 11128 QCA_WLAN_VENDOR_TWT_STATUS_CHANNEL_SWITCH_IN_PROGRESS = 20, 11129 QCA_WLAN_VENDOR_TWT_STATUS_SCAN_IN_PROGRESS = 21, 11130 QCA_WLAN_VENDOR_TWT_STATUS_POWER_SAVE_EXIT_TERMINATE = 22, 11131 QCA_WLAN_VENDOR_TWT_STATUS_TWT_REQUIRED = 23, 11132 QCA_WLAN_VENDOR_TWT_STATUS_TWT_NOT_REQUIRED = 24, 11133 }; 11134 11135 /** 11136 * enum qca_wlan_vendor_attr_twt_resume - Represents attributes for 11137 * TWT (Target Wake Time) resume request. These attributes are sent as part of 11138 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_TWT_RESUME and 11139 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. Also used by 11140 * attributes through %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 11141 * 11142 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT: Optional (u8) 11143 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT: Optional (u32) 11144 * These attributes are used as the SP offset which is the offset from TSF after 11145 * which the wake happens. The units are in microseconds. Please note that 11146 * _NEXT_TWT is limited to u8 whereas _NEXT2_TWT takes the u32 data. 11147 * _NEXT2_TWT takes the precedence over _NEXT_TWT and thus the recommendation 11148 * is to use _NEXT2_TWT. If neither of these attributes is provided, the value 11149 * will be set to zero. 11150 * 11151 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE: Required (u32) 11152 * This attribute represents the next TWT subfield size. 11153 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits, 11154 * and 4 for 64 bits. 11155 * 11156 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID: Required (u8). 11157 * Flow ID is the unique identifier for each TWT session. This attribute 11158 * represents the respective TWT session to resume. 11159 * Flow ID values from 0 to 254 represent a single TWT session 11160 * Flow ID value of 255 represents all TWT sessions. 11161 * If an invalid dialog id is provided, status 11162 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 11163 * 11164 * @QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR: 6-byte MAC address 11165 * Represents the MAC address of the peer to which TWT Resume is 11166 * being sent. This is used in AP mode to represent the respective 11167 * client and is a required parameter. In STA mode, this is an optional 11168 * parameter 11169 */ 11170 enum qca_wlan_vendor_attr_twt_resume { 11171 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_INVALID = 0, 11172 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT = 1, 11173 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT_TWT_SIZE = 2, 11174 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_FLOW_ID = 3, 11175 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_NEXT2_TWT = 4, 11176 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAC_ADDR = 5, 11177 11178 /* keep last */ 11179 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST, 11180 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_MAX = 11181 QCA_WLAN_VENDOR_ATTR_TWT_RESUME_AFTER_LAST - 1, 11182 }; 11183 11184 /** 11185 * enum qca_wlan_vendor_attr_twt_nudge - Represents attributes for 11186 * TWT (Target Wake Time) nudge request. TWT nudge is a combination of suspend 11187 * and resume in a single request. These attributes are sent as part of 11188 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 11189 * 11190 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID: Required (u8) 11191 * Flow ID is the unique identifier for each TWT session. This attribute 11192 * represents the respective TWT session to suspend and resume. 11193 * Flow ID values from 0 to 254 represent a single TWT session 11194 * Flow ID value of 255 represents all TWT sessions in TWT NUDGE request 11195 * and response. 11196 * If an invalid dialog id is provided, status 11197 * QCA_WLAN_VENDOR_TWT_STATUS_SESSION_NOT_EXIST will be returned. 11198 * 11199 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME: Required (u32) 11200 * This attribute is used as the SP offset which is the offset from 11201 * TSF after which the wake happens. The units are in microseconds. 11202 * 11203 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE: Required (u32) 11204 * This attribute represents the next TWT subfield size. 11205 * Value 0 represents 0 bits, 1 represents 32 bits, 2 for 48 bits, 11206 * and 4 for 64 bits. 11207 * 11208 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR: 6-byte MAC address 11209 * Represents the MAC address of the peer to which TWT Suspend and Resume is 11210 * being sent. This is used in AP mode to represent the respective 11211 * client and is a required parameter. In STA mode, this is an optional 11212 * parameter. 11213 * 11214 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF: Optional (u64) 11215 * This field contains absolute TSF value of the time at which the TWT 11216 * session will be resumed. 11217 * 11218 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET: Optional (s32) 11219 * This field will be used when device supports Flexible TWT. 11220 * This field contains an offset value by which to shift the starting time 11221 * of the next service period. The value of offset can be negative or positive. 11222 * If provided, this attribute will override 11223 * QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME. The units are in microseconds. 11224 * 11225 * @QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD: Attribute used for padding for 64-bit 11226 * alignment. 11227 */ 11228 enum qca_wlan_vendor_attr_twt_nudge { 11229 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_INVALID = 0, 11230 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_FLOW_ID = 1, 11231 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME = 2, 11232 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_NEXT_TWT_SIZE = 3, 11233 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAC_ADDR = 4, 11234 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_WAKE_TIME_TSF = 5, 11235 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_SP_START_OFFSET = 6, 11236 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_PAD = 7, 11237 11238 /* keep last */ 11239 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST, 11240 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_MAX = 11241 QCA_WLAN_VENDOR_ATTR_TWT_NUDGE_AFTER_LAST - 1, 11242 }; 11243 11244 /** 11245 * enum qca_wlan_vendor_attr_twt_stats: Represents attributes for 11246 * TWT (Target Wake Time) get statistics and clear statistics request. 11247 * These attributes are sent as part of 11248 * %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 11249 * 11250 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID: Required (u8) 11251 * Flow ID is the unique identifier for each TWT session. This attribute 11252 * represents the respective TWT session for get and clear TWT statistics. 11253 * Flow ID values from 0 to 254 represent a single TWT session 11254 * Flow ID value of 255 represents all TWT sessions in 11255 * 1) TWT GET STATISTICS request and response 11256 * 2) TWT CLEAR STATISTICS request 11257 * 11258 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR: 6-byte MAC address 11259 * Represents the MAC address of the peer for which TWT Statistics 11260 * is required. 11261 * In AP mode this is used to represent the respective 11262 * client and is a required parameter for 11263 * 1) TWT GET STATISTICS request and response 11264 * 2) TWT CLEAR STATISTICS request and response 11265 * In STA mode, this is an optional parameter. 11266 * 11267 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION: Required (u32) 11268 * This is the duration of the service period in microseconds. 11269 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11270 * 11271 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION: Required (u32) 11272 * Average of the actual wake duration observed so far. Unit is microseconds. 11273 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11274 * 11275 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS: Required (u32) 11276 * The number of TWT service periods elapsed so far. 11277 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11278 * 11279 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION: Required (u32) 11280 * This is the minimum value of the wake duration observed across 11281 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is 11282 * microseconds. 11283 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11284 * 11285 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION: Required (u32) 11286 * This is the maximum value of wake duration observed across 11287 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. Unit is 11288 * microseconds. 11289 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11290 * 11291 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU: Required (u32) 11292 * Average number of MPDUs transmitted successfully across 11293 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 11294 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11295 * 11296 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU: Required (u32) 11297 * Average number of MPDUs received successfully across 11298 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 11299 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11300 * 11301 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE: Required (u32) 11302 * Average number of bytes transmitted successfully across 11303 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 11304 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11305 * 11306 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE: Required (u32) 11307 * Average number of bytes received successfully across 11308 * QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS. 11309 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11310 * 11311 * @QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS: Required (u32) 11312 * Status of the TWT GET STATISTICS request. 11313 * This contains status values in enum qca_wlan_vendor_twt_status 11314 * Obtained in the QCA_WLAN_TWT_GET_STATS response from the firmware. 11315 */ 11316 enum qca_wlan_vendor_attr_twt_stats { 11317 QCA_WLAN_VENDOR_ATTR_TWT_STATS_INVALID = 0, 11318 QCA_WLAN_VENDOR_ATTR_TWT_STATS_FLOW_ID = 1, 11319 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAC_ADDR = 2, 11320 QCA_WLAN_VENDOR_ATTR_TWT_STATS_SESSION_WAKE_DURATION = 3, 11321 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVG_WAKE_DURATION = 4, 11322 QCA_WLAN_VENDOR_ATTR_TWT_STATS_NUM_SP_ITERATIONS = 5, 11323 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MIN_WAKE_DURATION = 6, 11324 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX_WAKE_DURATION = 7, 11325 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_MPDU = 8, 11326 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_MPDU = 9, 11327 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_TX_PACKET_SIZE = 10, 11328 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AVERAGE_RX_PACKET_SIZE = 11, 11329 QCA_WLAN_VENDOR_ATTR_TWT_STATS_STATUS = 12, 11330 11331 /* keep last */ 11332 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST, 11333 QCA_WLAN_VENDOR_ATTR_TWT_STATS_MAX = 11334 QCA_WLAN_VENDOR_ATTR_TWT_STATS_AFTER_LAST - 1, 11335 }; 11336 11337 /** 11338 * qca_wlan_twt_get_capa - Represents the bitmap of TWT capabilities 11339 * supported by the device and the peer. 11340 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_GET_CAPABILITIES 11341 * 11342 * @QCA_WLAN_TWT_CAPA_REQUESTOR: TWT requestor support is advertised by 11343 * TWT non-scheduling STA. This capability is advertised in the HE 11344 * Capability/Extended Capabilities information element in the 11345 * Association Request frame by the device. 11346 * 11347 * @QCA_WLAN_TWT_CAPA_RESPONDER: TWT responder support is advertised by 11348 * the TWT scheduling AP. This capability is advertised in the Extended 11349 * Capabilities/HE Capabilities information element. 11350 * 11351 * @QCA_WLAN_TWT_CAPA_BROADCAST: On the requestor side, this indicates support 11352 * for the broadcast TWT functionality. On the responder side, this indicates 11353 * support for the role of broadcast TWT scheduling functionality. This 11354 * capability is advertised in the HE Capabilities information element. 11355 * 11356 * @QCA_WLAN_TWT_CAPA_TWT_FLEXIBLE: The device supports flexible TWT schedule. 11357 * This capability is advertised in the HE Capabilities information element. 11358 * 11359 * @QCA_WLAN_TWT_CAPA_REQUIRED: The TWT Required is advertised by AP to indicate 11360 * that it mandates the associated HE STAs to support TWT. This capability is 11361 * advertised by AP in the HE Operation Parameters field of the HE Operation 11362 * information element. 11363 */ 11364 enum qca_wlan_twt_capa { 11365 QCA_WLAN_TWT_CAPA_REQUESTOR = BIT(0), 11366 QCA_WLAN_TWT_CAPA_RESPONDER = BIT(1), 11367 QCA_WLAN_TWT_CAPA_BROADCAST = BIT(2), 11368 QCA_WLAN_TWT_CAPA_FLEXIBLE = BIT(3), 11369 QCA_WLAN_TWT_CAPA_REQUIRED = BIT(4), 11370 }; 11371 11372 /** 11373 * enum qca_wlan_vendor_attr_twt_capability - Represents attributes for TWT 11374 * get capabilities request type. Used by QCA_WLAN_TWT_GET_CAPABILITIES TWT 11375 * operation. 11376 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR: 6-byte MAC address 11377 * Represents the MAC address of the peer for which the TWT capabilities 11378 * are being queried. This is used in AP mode to represent the respective 11379 * client. In STA mode, this is an optional parameter. 11380 * 11381 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF: (u16). 11382 * Self TWT capabilities. Carries a bitmap of TWT capabilities specified in 11383 * enum qca_wlan_twt_capa. 11384 * @QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER: (u16). 11385 * Peer TWT capabilities. Carries a bitmap of TWT capabilities specified in 11386 * enum qca_wlan_twt_capa. 11387 */ 11388 enum qca_wlan_vendor_attr_twt_capability { 11389 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_INVALID = 0, 11390 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAC_ADDR = 1, 11391 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_SELF = 2, 11392 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_PEER = 3, 11393 11394 /* keep last */ 11395 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST, 11396 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_MAX = 11397 QCA_WLAN_VENDOR_ATTR_TWT_CAPABILITIES_AFTER_LAST - 1, 11398 }; 11399 11400 /** 11401 * enum qca_wlan_vendor_attr_twt_set_param: Represents attributes for 11402 * TWT (Target Wake Time) related parameters. It is used when 11403 * %QCA_WLAN_VENDOR_ATTR_CONFIG_TWT_OPERATION is set to %QCA_WLAN_TWT_SET_PARAM. 11404 * These attributes are sent as part of %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TWT. 11405 * 11406 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE: Optional (u8) 11407 * This attribute configures AC parameters to be used for all TWT 11408 * sessions in AP mode. 11409 * Uses the enum qca_wlan_ac_type values. 11410 * 11411 * @QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_UNAVAILABILITY_MODE: Flag attribute, 11412 * used by TWT responder to indicate unavailability outside of the SPs. 11413 * Enable (flag attribute present) - Indicates that the TWT responder may be 11414 * unavailable outside of the SPs of its broadcast TWT schedule. 11415 * Disable (flag attribute not present) - Indicates that the responder will be 11416 * available for all TWT sessions (including individual TWT). 11417 */ 11418 enum qca_wlan_vendor_attr_twt_set_param { 11419 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_INVALID = 0, 11420 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AP_AC_VALUE = 1, 11421 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_UNAVAILABILITY_MODE = 2, 11422 11423 /* keep last */ 11424 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST, 11425 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_MAX = 11426 QCA_WLAN_VENDOR_ATTR_TWT_SET_PARAM_AFTER_LAST - 1, 11427 }; 11428 11429 /** 11430 * enum qca_wlan_vendor_twt_setup_resp_type - Represents the response type by 11431 * the TWT responder 11432 * 11433 * @QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE: TWT responder suggests TWT 11434 * parameters that are different from TWT requesting STA suggested 11435 * or demanded TWT parameters 11436 * @QCA_WLAN_VENDOR_TWT_RESP_DICTATE: TWT responder demands TWT 11437 * parameters that are different from TWT requesting STA TWT suggested 11438 * or demanded parameters 11439 * @QCA_WLAN_VENDOR_TWT_RESP_REJECT: TWT responder rejects TWT 11440 * setup 11441 * @QCA_WLAN_VENDOR_TWT_RESP_ACCEPT: TWT responder accepts the TWT 11442 * setup. 11443 */ 11444 enum qca_wlan_vendor_twt_setup_resp_type { 11445 QCA_WLAN_VENDOR_TWT_RESP_ALTERNATE = 1, 11446 QCA_WLAN_VENDOR_TWT_RESP_DICTATE = 2, 11447 QCA_WLAN_VENDOR_TWT_RESP_REJECT = 3, 11448 QCA_WLAN_VENDOR_TWT_RESP_ACCEPT = 4, 11449 }; 11450 11451 /** 11452 * enum qca_wlan_vendor_twt_setup_req_type - Required (u8) 11453 * Represents the setup type being requested for TWT. 11454 * @QCA_WLAN_VENDOR_TWT_SETUP_REQUEST: STA is not specifying all the TWT 11455 * parameters but relying on AP to fill the parameters during the negotiation. 11456 * @QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST: STA will provide all the suggested 11457 * values which the AP may accept or AP may provide alternative parameters 11458 * which the STA may accept. 11459 * @QCA_WLAN_VENDOR_TWT_SETUP_DEMAND: STA is not willing to accept any 11460 * alternate parameters than the requested ones. 11461 */ 11462 enum qca_wlan_vendor_twt_setup_req_type { 11463 QCA_WLAN_VENDOR_TWT_SETUP_REQUEST = 1, 11464 QCA_WLAN_VENDOR_TWT_SETUP_SUGGEST = 2, 11465 QCA_WLAN_VENDOR_TWT_SETUP_DEMAND = 3, 11466 }; 11467 11468 /** 11469 * enum qca_wlan_roam_scan_event_type - Type of roam scan event 11470 * 11471 * Indicates the type of roam scan event sent by firmware/driver. 11472 * 11473 * @QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT: Roam scan trigger event type. 11474 * @QCA_WLAN_ROAM_SCAN_STOP_EVENT: Roam scan stopped event type. 11475 */ 11476 enum qca_wlan_roam_scan_event_type { 11477 QCA_WLAN_ROAM_SCAN_TRIGGER_EVENT = 0, 11478 QCA_WLAN_ROAM_SCAN_STOP_EVENT = 1, 11479 }; 11480 11481 /** 11482 * enum qca_wlan_roam_scan_trigger_reason - Roam scan trigger reason 11483 * 11484 * Indicates the reason for triggering roam scan by firmware/driver. 11485 * 11486 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI: Due to low RSSI of current AP. 11487 * @QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER: Due to high packet error rate. 11488 */ 11489 enum qca_wlan_roam_scan_trigger_reason { 11490 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_LOW_RSSI = 0, 11491 QCA_WLAN_ROAM_SCAN_TRIGGER_REASON_HIGH_PER = 1, 11492 }; 11493 11494 /** 11495 * enum qca_wlan_vendor_attr_roam_scan - Vendor subcmd attributes to report 11496 * roam scan related details from driver/firmware to user space. enum values 11497 * are used for NL attributes sent with 11498 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_SCAN_EVENT sub command. 11499 */ 11500 enum qca_wlan_vendor_attr_roam_scan { 11501 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_INVALID = 0, 11502 /* Encapsulates type of roam scan event being reported. enum 11503 * qca_wlan_roam_scan_event_type describes the possible range of 11504 * values. u32 attribute. 11505 */ 11506 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_EVENT_TYPE = 1, 11507 /* Encapsulates reason for triggering roam scan. enum 11508 * qca_wlan_roam_scan_trigger_reason describes the possible range of 11509 * values. u32 attribute. 11510 */ 11511 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_TRIGGER_REASON = 2, 11512 11513 /* keep last */ 11514 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST, 11515 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_MAX = 11516 QCA_WLAN_VENDOR_ATTR_ROAM_SCAN_AFTER_LAST - 1, 11517 }; 11518 11519 /** 11520 * enum qca_wlan_vendor_cfr_data_transport_modes - Defines QCA vendor CFR data 11521 * transport modes and is used by the attribute 11522 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE as a part of the vendor 11523 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG. 11524 * @QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS: Use relayfs to send CFR data. 11525 * @QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS: Use netlink events to send CFR 11526 * data. The data shall be encapsulated within 11527 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA along with the vendor sub command 11528 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an asynchronous event. 11529 */ 11530 enum qca_wlan_vendor_cfr_data_transport_modes { 11531 QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS = 0, 11532 QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS = 1, 11533 }; 11534 11535 /** 11536 * enum qca_wlan_vendor_cfr_method - QCA vendor CFR methods used by 11537 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD as part of vendor 11538 * command QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG. 11539 * @QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL: CFR method using QoS Null frame 11540 * @QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE: CFR method using QoS Null frame 11541 * with phase 11542 * @QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE: CFR method using Probe Response frame 11543 */ 11544 enum qca_wlan_vendor_cfr_method { 11545 QCA_WLAN_VENDOR_CFR_METHOD_QOS_NULL = 0, 11546 QCA_WLAN_VENDOR_CFR_QOS_NULL_WITH_PHASE = 1, 11547 QCA_WLAN_VENDOR_CFR_PROBE_RESPONSE = 2, 11548 }; 11549 11550 /** 11551 * enum qca_wlan_vendor_cfr_capture_type - QCA vendor CFR capture type used by 11552 * attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE. 11553 * @QCA_WLAN_VENDOR_CFR_DIRECT_FTM: Filter directed FTM ACK frames. 11554 * @QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK: Filter all FTM ACK frames. 11555 * @QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP: Filter NDPA NDP directed frames. 11556 * @QCA_WLAN_VENDOR_CFR_TA_RA: Filter frames based on TA/RA/Subtype which 11557 * is provided by one or more of below attributes: 11558 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA 11559 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA 11560 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK 11561 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK 11562 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER 11563 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER 11564 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER 11565 * @QCA_WLAN_CFR_ALL_PACKET: Filter all packets. 11566 * @QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL: Filter all NDPA NDP frames. 11567 */ 11568 enum qca_wlan_vendor_cfr_capture_type { 11569 QCA_WLAN_VENDOR_CFR_DIRECT_FTM = 0, 11570 QCA_WLAN_VENDOR_CFR_ALL_FTM_ACK = 1, 11571 QCA_WLAN_VENDOR_CFR_DIRECT_NDPA_NDP = 2, 11572 QCA_WLAN_VENDOR_CFR_TA_RA = 3, 11573 QCA_WLAN_VENDOR_CFR_ALL_PACKET = 4, 11574 QCA_WLAN_VENDOR_CFR_NDPA_NDP_ALL = 5, 11575 }; 11576 11577 /** 11578 * enum qca_wlan_vendor_peer_cfr_capture_attr - Used by the vendor command 11579 * QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG to configure peer 11580 * Channel Frequency Response capture parameters and enable periodic CFR 11581 * capture. 11582 * 11583 * @QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR: Optional (6-byte MAC address) 11584 * MAC address of peer. This is for CFR version 1 only. 11585 * 11586 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE: Required (flag) 11587 * Enable peer CFR capture. This attribute is mandatory to enable peer CFR 11588 * capture. If this attribute is not present, peer CFR capture is disabled. 11589 * 11590 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH: Optional (u8) 11591 * BW of measurement, attribute uses the values in enum nl80211_chan_width 11592 * Supported values: 20, 40, 80, 80+80, 160. 11593 * Note that all targets may not support all bandwidths. 11594 * This attribute is mandatory for version 1 if attribute 11595 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 11596 * 11597 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY: Optional (u32) 11598 * Periodicity of CFR measurement in milliseconds. 11599 * Periodicity should be a multiple of Base timer. 11600 * Current Base timer value supported is 10 milliseconds (default). 11601 * 0 for one shot capture. 11602 * This attribute is mandatory for version 1 if attribute 11603 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 11604 * 11605 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD: Optional (u8) 11606 * Method used to capture Channel Frequency Response. 11607 * Attribute uses the values defined in enum qca_wlan_vendor_cfr_method. 11608 * This attribute is mandatory for version 1 if attribute 11609 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE is used. 11610 * 11611 * @QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE: Optional (flag) 11612 * Enable periodic CFR capture. 11613 * This attribute is mandatory for version 1 to enable Periodic CFR capture. 11614 * If this attribute is not present, periodic CFR capture is disabled. 11615 * 11616 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION: Optional (u8) 11617 * Value is 1 or 2 since there are two versions of CFR capture. Two versions 11618 * can't be enabled at same time. This attribute is mandatory if target 11619 * support both versions and use one of them. 11620 * 11621 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP: Optional (u32) 11622 * This attribute is mandatory for version 2 if 11623 * QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY is used. 11624 * Bits 15:0 bitfield indicates which group is to be enabled. 11625 * Bits 31:16 Reserved for future use. 11626 * 11627 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION: Optional (u32) 11628 * CFR capture duration in microsecond. This attribute is mandatory for 11629 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL is used. 11630 * 11631 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL: Optional (u32) 11632 * CFR capture interval in microsecond. This attribute is mandatory for 11633 * version 2 if attribute QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION is used. 11634 * 11635 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE: Optional (u32) 11636 * CFR capture type is defined in enum qca_wlan_vendor_cfr_capture_type. 11637 * This attribute is mandatory for version 2. 11638 * 11639 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK: Optional (u64) 11640 * Bitfield indicating which user in the current UL MU transmissions are 11641 * enabled for CFR capture. Bits 36 to 0 indicate user indexes for 37 users in 11642 * a UL MU transmission. If bit 0 is set, the CFR capture will happen for user 11643 * index 0 in the current UL MU transmission. If bits 0 and 2 are set, CFR 11644 * capture for UL MU TX corresponds to user indices 0 and 2. Bits 63:37 are 11645 * reserved for future use. This is for CFR version 2 only. 11646 * 11647 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT: Optional (u32) 11648 * Indicates the number of consecutive RX frames to be skipped before CFR 11649 * capture is enabled again. This is for CFR version 2 only. 11650 * 11651 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE: Nested attribute containing 11652 * one or more %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY attributes. 11653 * 11654 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY: Nested attribute containing 11655 * the following group attributes: 11656 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER, 11657 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA, 11658 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA, 11659 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK, 11660 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK, 11661 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS, 11662 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW, 11663 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER, 11664 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER, 11665 * %QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER 11666 * 11667 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER: Optional (u32) 11668 * Target supports multiple groups for some configurations. The group number 11669 * can be any value between 0 and 15. This is for CFR version 2 only. 11670 * 11671 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA: Optional (6-byte MAC address) 11672 * Transmitter address which is used to filter frames. This MAC address takes 11673 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK. This is for CFR 11674 * version 2 only. 11675 * 11676 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA: Optional (6-byte MAC address) 11677 * Receiver address which is used to filter frames. This MAC address takes 11678 * effect with QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK. This is for CFR 11679 * version 2 only. 11680 * 11681 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK: Optional (6-byte MAC address) 11682 * Mask of transmitter address which is used to filter frames. This is for CFR 11683 * version 2 only. 11684 * 11685 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK: Optional (6-byte MAC address) 11686 * Mask of receiver address which is used to filter frames. This is for CFR 11687 * version 2 only. 11688 * 11689 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS: Optional (u32) 11690 * Indicates frames with a specific NSS will be filtered for CFR capture. 11691 * This is for CFR version 2 only. This is a bitmask. Bits 7:0 request CFR 11692 * capture to be done for frames matching the NSS specified within this bitmask. 11693 * Bits 31:8 are reserved for future use. Bits 7:0 map to NSS: 11694 * bit 0 : NSS 1 11695 * bit 1 : NSS 2 11696 * ... 11697 * bit 7 : NSS 8 11698 * 11699 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW: Optional (u32) 11700 * Indicates frames with a specific bandwidth will be filtered for CFR capture. 11701 * This is for CFR version 2 only. This is a bitmask. Bits 4:0 request CFR 11702 * capture to be done for frames matching the bandwidths specified within this 11703 * bitmask. Bits 31:5 are reserved for future use. Bits 4:0 map to bandwidth 11704 * numerated in enum nl80211_band (although not all bands may be supported 11705 * by a given device). 11706 * 11707 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER: Optional (u32) 11708 * Management frames matching the subtype filter categories will be filtered in 11709 * by MAC for CFR capture. This is a bitmask in which each bit represents the 11710 * corresponding Management frame subtype value per IEEE Std 802.11-2016, 11711 * 9.2.4.1.3 Type and Subtype subfields. For example, Beacon frame control type 11712 * is 8 and its value is 1 << 8 = 0x100. This is for CFR version 2 only. 11713 * 11714 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER: Optional (u32) 11715 * Control frames matching the subtype filter categories will be filtered in by 11716 * MAC for CFR capture. This is a bitmask in which each bit represents the 11717 * corresponding Control frame subtype value per IEEE Std 802.11-2016, 11718 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only. 11719 * 11720 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER: Optional (u32) 11721 * Data frames matching the subtype filter categories will be filtered in by 11722 * MAC for CFR capture. This is a bitmask in which each bit represents the 11723 * corresponding Data frame subtype value per IEEE Std 802.11-2016, 11724 * 9.2.4.1.3 Type and Subtype subfields. This is for CFR version 2 only. 11725 * 11726 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE: Optional (u8) 11727 * Userspace can use this attribute to specify the driver about which transport 11728 * mode shall be used by the driver to send CFR data to userspace. Uses values 11729 * from enum qca_wlan_vendor_cfr_data_transport_modes. When this attribute is 11730 * not present, the driver shall use the default transport mechanism which is 11731 * QCA_WLAN_VENDOR_CFR_DATA_RELAY_FS. 11732 * 11733 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID: Optional (u32) 11734 * Userspace can use this attribute to specify the nl port id of the application 11735 * which receives the CFR data and processes it further so that the drivers can 11736 * unicast the netlink events to a specific application. Optionally included 11737 * when QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE is set to 11738 * QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS, not required otherwise. The drivers 11739 * shall multicast the netlink events when this attribute is not included. 11740 * 11741 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA: Required (NLA_BINARY). 11742 * This attribute will be used by the driver to encapsulate and send CFR data 11743 * to userspace along with QCA_NL80211_VENDOR_SUBCMD_PEER_CFR_CAPTURE_CFG as an 11744 * asynchronous event when the driver is configured to send CFR data using 11745 * netlink events with %QCA_WLAN_VENDOR_CFR_DATA_NETLINK_EVENTS. 11746 * 11747 * @QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD: Attribute used for padding for 64-bit 11748 * alignment. 11749 */ 11750 enum qca_wlan_vendor_peer_cfr_capture_attr { 11751 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_INVALID = 0, 11752 QCA_WLAN_VENDOR_ATTR_CFR_PEER_MAC_ADDR = 1, 11753 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE = 2, 11754 QCA_WLAN_VENDOR_ATTR_PEER_CFR_BANDWIDTH = 3, 11755 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PERIODICITY = 4, 11756 QCA_WLAN_VENDOR_ATTR_PEER_CFR_METHOD = 5, 11757 QCA_WLAN_VENDOR_ATTR_PERIODIC_CFR_CAPTURE_ENABLE = 6, 11758 QCA_WLAN_VENDOR_ATTR_PEER_CFR_VERSION = 7, 11759 QCA_WLAN_VENDOR_ATTR_PEER_CFR_ENABLE_GROUP_BITMAP = 8, 11760 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DURATION = 9, 11761 QCA_WLAN_VENDOR_ATTR_PEER_CFR_INTERVAL = 10, 11762 QCA_WLAN_VENDOR_ATTR_PEER_CFR_CAPTURE_TYPE = 11, 11763 QCA_WLAN_VENDOR_ATTR_PEER_CFR_UL_MU_MASK = 12, 11764 QCA_WLAN_VENDOR_ATTR_PEER_CFR_FREEZE_TLV_DELAY_COUNT = 13, 11765 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TABLE = 14, 11766 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_ENTRY = 15, 11767 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NUMBER = 16, 11768 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA = 17, 11769 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA = 18, 11770 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_TA_MASK = 19, 11771 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_RA_MASK = 20, 11772 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_NSS = 21, 11773 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_BW = 22, 11774 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_MGMT_FILTER = 23, 11775 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_CTRL_FILTER = 24, 11776 QCA_WLAN_VENDOR_ATTR_PEER_CFR_GROUP_DATA_FILTER = 25, 11777 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_TRANSPORT_MODE = 26, 11778 QCA_WLAN_VENDOR_ATTR_PEER_CFR_DATA_RECEIVER_PID = 27, 11779 QCA_WLAN_VENDOR_ATTR_PEER_CFR_RESP_DATA = 28, 11780 QCA_WLAN_VENDOR_ATTR_PEER_CFR_PAD = 29, 11781 11782 /* Keep last */ 11783 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST, 11784 QCA_WLAN_VENDOR_ATTR_PEER_CFR_MAX = 11785 QCA_WLAN_VENDOR_ATTR_PEER_CFR_AFTER_LAST - 1, 11786 }; 11787 11788 /** 11789 * enum qca_wlan_throughput_level - Current throughput level 11790 * 11791 * Indicates the current level of throughput calculated by the driver. The 11792 * driver may choose different thresholds to decide whether the throughput level 11793 * is low or medium or high based on variety of parameters like physical link 11794 * capacity of the current connection, the number of packets being dispatched 11795 * per second, etc. The throughput level events might not be consistent with the 11796 * actual current throughput value being observed. 11797 * 11798 * @QCA_WLAN_THROUGHPUT_LEVEL_LOW: Low level of throughput 11799 * @QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM: Medium level of throughput 11800 * @QCA_WLAN_THROUGHPUT_LEVEL_HIGH: High level of throughput 11801 */ 11802 enum qca_wlan_throughput_level { 11803 QCA_WLAN_THROUGHPUT_LEVEL_LOW = 0, 11804 QCA_WLAN_THROUGHPUT_LEVEL_MEDIUM = 1, 11805 QCA_WLAN_THROUGHPUT_LEVEL_HIGH = 2, 11806 }; 11807 11808 /** 11809 * enum qca_wlan_vendor_attr_throughput_change - Vendor subcmd attributes to 11810 * report throughput changes from the driver to user space. enum values are used 11811 * for netlink attributes sent with 11812 * %QCA_NL80211_VENDOR_SUBCMD_THROUGHPUT_CHANGE_EVENT sub command. 11813 */ 11814 enum qca_wlan_vendor_attr_throughput_change { 11815 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_INVALID = 0, 11816 /* Indicates the direction of throughput in which the change is being 11817 * reported. u8 attribute. Value is 0 for TX and 1 for RX. 11818 */ 11819 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_DIRECTION = 1, 11820 /* Indicates the newly observed throughput level. enum 11821 * qca_wlan_throughput_level describes the possible range of values. 11822 * u8 attribute. 11823 */ 11824 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_THROUGHPUT_LEVEL = 2, 11825 /* Indicates the driver's guidance on the new value to be set to 11826 * kernel's TCP parameter tcp_limit_output_bytes. u32 attribute. The 11827 * driver may optionally include this attribute. 11828 */ 11829 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_LIMIT_OUTPUT_BYTES = 3, 11830 /* Indicates the driver's guidance on the new value to be set to 11831 * kernel's TCP parameter tcp_adv_win_scale. s8 attribute. Possible 11832 * values are from -31 to 31. The driver may optionally include this 11833 * attribute. 11834 */ 11835 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_ADV_WIN_SCALE = 4, 11836 /* Indicates the driver's guidance on the new value to be set to 11837 * kernel's TCP parameter tcp_delack_seg. u32 attribute. The driver may 11838 * optionally include this attribute. 11839 */ 11840 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_TCP_DELACK_SEG = 5, 11841 11842 /* keep last */ 11843 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST, 11844 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_MAX = 11845 QCA_WLAN_VENDOR_ATTR_THROUGHPUT_CHANGE_AFTER_LAST - 1, 11846 }; 11847 11848 /** 11849 * enum qca_coex_config_profiles - This enum defines different types of 11850 * traffic streams that can be prioritized one over the other during coex 11851 * scenarios. 11852 * The types defined in this enum are categorized in the below manner. 11853 * 0 - 31 values corresponds to WLAN 11854 * 32 - 63 values corresponds to BT 11855 * 64 - 95 values corresponds to Zigbee 11856 * @QCA_WIFI_STA_DISCOVERY: Prioritize discovery frames for WLAN STA 11857 * @QCA_WIFI_STA_CONNECTION: Prioritize connection frames for WLAN STA 11858 * @QCA_WIFI_STA_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN STA 11859 * @QCA_WIFI_STA_DATA : Prioritize data frames for WLAN STA 11860 * @QCA_WIFI_STA_ALL: Priritize all frames for WLAN STA 11861 * @QCA_WIFI_SAP_DISCOVERY: Prioritize discovery frames for WLAN SAP 11862 * @QCA_WIFI_SAP_CONNECTION: Prioritize connection frames for WLAN SAP 11863 * @QCA_WIFI_SAP_CLASS_3_MGMT: Prioritize class 3 mgmt frames for WLAN SAP 11864 * @QCA_WIFI_SAP_DATA: Prioritize data frames for WLAN SAP 11865 * @QCA_WIFI_SAP_ALL: Prioritize all frames for WLAN SAP 11866 * @QCA_BT_A2DP: Prioritize BT A2DP 11867 * @QCA_BT_BLE: Prioritize BT BLE 11868 * @QCA_BT_SCO: Prioritize BT SCO 11869 * @QCA_ZB_LOW: Prioritize Zigbee Low 11870 * @QCA_ZB_HIGH: Prioritize Zigbee High 11871 */ 11872 enum qca_coex_config_profiles { 11873 /* 0 - 31 corresponds to WLAN */ 11874 QCA_WIFI_STA_DISCOVERY = 0, 11875 QCA_WIFI_STA_CONNECTION = 1, 11876 QCA_WIFI_STA_CLASS_3_MGMT = 2, 11877 QCA_WIFI_STA_DATA = 3, 11878 QCA_WIFI_STA_ALL = 4, 11879 QCA_WIFI_SAP_DISCOVERY = 5, 11880 QCA_WIFI_SAP_CONNECTION = 6, 11881 QCA_WIFI_SAP_CLASS_3_MGMT = 7, 11882 QCA_WIFI_SAP_DATA = 8, 11883 QCA_WIFI_SAP_ALL = 9, 11884 QCA_WIFI_CASE_MAX = 31, 11885 /* 32 - 63 corresponds to BT */ 11886 QCA_BT_A2DP = 32, 11887 QCA_BT_BLE = 33, 11888 QCA_BT_SCO = 34, 11889 QCA_BT_CASE_MAX = 63, 11890 /* 64 - 95 corresponds to Zigbee */ 11891 QCA_ZB_LOW = 64, 11892 QCA_ZB_HIGH = 65, 11893 QCA_ZB_CASE_MAX = 95, 11894 /* 0xff is default value if the u8 profile value is not set. */ 11895 QCA_COEX_CONFIG_PROFILE_DEFAULT_VALUE = 255 11896 }; 11897 11898 /** 11899 * enum qca_vendor_attr_coex_config_types - Coex configurations types. 11900 * This enum defines the valid set of values of coex configuration types. These 11901 * values may used by attribute 11902 * %QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE. 11903 * 11904 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET: Reset all the 11905 * weights to default values. 11906 * @QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START: Start to config 11907 * weights with configurability value. 11908 */ 11909 enum qca_vendor_attr_coex_config_types { 11910 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_INVALID = 0, 11911 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_RESET = 1, 11912 QCA_WLAN_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_COEX_START = 2, 11913 }; 11914 11915 /** 11916 * enum qca_vendor_attr_coex_config - Specifies vendor coex config attributes 11917 * 11918 * @QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES: This attribute contains variable 11919 * length array of 8-bit values from enum qca_coex_config_profiles. 11920 * FW will prioritize the profiles in the order given in the array encapsulated 11921 * in this attribute. 11922 * For example: 11923 * ----------------------------------------------------------------------- 11924 * | 1 | 34 | 32 | 65 | 11925 * ----------------------------------------------------------------------- 11926 * If the attribute contains the values defined in above array then it means 11927 * 1) Wifi STA connection has priority over BT_SCO, BT_A2DP and ZIGBEE HIGH. 11928 * 2) BT_SCO has priority over BT_A2DP. 11929 * 3) BT_A2DP has priority over ZIGBEE HIGH. 11930 * Profiles which are not listed in this array shall not be preferred over the 11931 * profiles which are listed in the array as a part of this attribute. 11932 */ 11933 enum qca_vendor_attr_coex_config { 11934 QCA_VENDOR_ATTR_COEX_CONFIG_INVALID = 0, 11935 QCA_VENDOR_ATTR_COEX_CONFIG_PROFILES = 1, 11936 11937 /* Keep last */ 11938 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST, 11939 QCA_VENDOR_ATTR_COEX_CONFIG_MAX = 11940 QCA_VENDOR_ATTR_COEX_CONFIG_AFTER_LAST - 1, 11941 }; 11942 11943 /** 11944 * enum qca_vendor_attr_coex_config_three_way - Specifies vendor coex config 11945 * attributes 11946 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_COEX_CONFIG 11947 * 11948 * QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE: u32 attribute. 11949 * Indicate config type. 11950 * The config types are 32-bit values from qca_vendor_attr_coex_config_types 11951 * 11952 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1: u32 attribute. 11953 * Indicate the Priority 1 profiles. 11954 * The profiles are 8-bit values from enum qca_coex_config_profiles. 11955 * In same priority level, maximum to 4 profiles can be set here. 11956 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2: u32 attribute. 11957 * Indicate the Priority 2 profiles. 11958 * The profiles are 8-bit values from enum qca_coex_config_profiles. 11959 * In same priority level, maximum to 4 profiles can be set here. 11960 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3: u32 attribute. 11961 * Indicate the Priority 3 profiles. 11962 * The profiles are 8-bit values from enum qca_coex_config_profiles. 11963 * In same priority level, maximum to 4 profiles can be set here. 11964 * @QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4: u32 attribute. 11965 * Indicate the Priority 4 profiles. 11966 * The profiles are 8-bit values from enum qca_coex_config_profiles. 11967 * In same priority level, maximum to 4 profiles can be set here. 11968 * NOTE: 11969 * Limitations for QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_x priority 11970 * arrangement: 11971 * 1: In the same u32 attribute (priority x), the profiles enum values own 11972 * same priority level. 11973 * 2: 0xff is default value if the u8 profile value is not set. 11974 * 3: max to 4 rules/profiles in same priority level. 11975 * 4: max to 4 priority level (priority 1 - priority 4) 11976 * 5: one priority level only supports one scenario from WLAN/BT/ZB, 11977 * hybrid rules not support. 11978 * 6: if WMI_COEX_CONFIG_THREE_WAY_COEX_RESET called, priority x will 11979 * remain blank to reset all parameters. 11980 * For example: 11981 * 11982 * If the attributes as follow: 11983 * priority 1: 11984 * ------------------------------------ 11985 * | 0xff | 0 | 1 | 2 | 11986 * ------------------------------------ 11987 * priority 2: 11988 * ------------------------------------- 11989 * | 0xff | 0xff | 0xff | 32 | 11990 * ------------------------------------- 11991 * priority 3: 11992 * ------------------------------------- 11993 * | 0xff | 0xff | 0xff | 65 | 11994 * ------------------------------------- 11995 * then it means: 11996 * 1: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION 11997 * owns same priority level. 11998 * 2: WIFI_STA_DISCOVERY, WIFI_STA_CLASS_3_MGMT and WIFI_STA_CONNECTION 11999 * has priority over BT_A2DP and ZB_HIGH. 12000 * 3: BT_A2DP has priority over ZB_HIGH. 12001 */ 12002 enum qca_vendor_attr_coex_config_three_way { 12003 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_INVALID = 0, 12004 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_CONFIG_TYPE = 1, 12005 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_1 = 2, 12006 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_2 = 3, 12007 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_3 = 4, 12008 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_PRIORITY_4 = 5, 12009 12010 /* Keep last */ 12011 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST, 12012 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_MAX = 12013 QCA_VENDOR_ATTR_COEX_CONFIG_THREE_WAY_AFTER_LAST - 1, 12014 }; 12015 12016 /** 12017 * enum qca_wlan_vendor_attr_link_properties - Represent the link properties. 12018 * 12019 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR: MAC address of the peer 12020 * (STA/AP) for the connected link. 12021 * @QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS: Attribute containing a 12022 * &struct nl80211_sta_flag_update for the respective connected link. MAC 12023 * address of the peer represented by 12024 * QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR. 12025 */ 12026 enum qca_wlan_vendor_attr_link_properties { 12027 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_INVALID = 0, 12028 /* 1 - 3 are reserved */ 12029 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_MAC_ADDR = 4, 12030 QCA_WLAN_VENDOR_ATTR_LINK_PROPERTIES_STA_FLAGS = 5, 12031 12032 /* Keep last */ 12033 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST, 12034 QCA_VENDOR_ATTR_LINK_PROPERTIES_MAX = 12035 QCA_VENDOR_ATTR_LINK_PROPERTIES_AFTER_LAST - 1, 12036 }; 12037 12038 /** 12039 * enum qca_vendor_attr_peer_stats_cache_type - Represents peer stats cache type 12040 * This enum defines the valid set of values of peer stats cache types. These 12041 * values are used by attribute 12042 * %QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE. 12043 * 12044 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS: Represents peer TX rate statistics 12045 * @QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS: Represents peer RX rate statistics 12046 * @QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS: Represents peer TX sojourn 12047 * statistics 12048 */ 12049 enum qca_vendor_attr_peer_stats_cache_type { 12050 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE_INVALID = 0, 12051 12052 QCA_WLAN_VENDOR_ATTR_PEER_TX_RATE_STATS, 12053 QCA_WLAN_VENDOR_ATTR_PEER_RX_RATE_STATS, 12054 QCA_WLAN_VENDOR_ATTR_PEER_TX_SOJOURN_STATS, 12055 }; 12056 12057 /** 12058 * enum qca_wlan_vendor_attr_peer_stats_cache_params - This enum defines 12059 * attributes required for QCA_NL80211_VENDOR_SUBCMD_PEER_STATS_CACHE_FLUSH 12060 * Information in these attributes is used to flush peer rate statistics from 12061 * the driver to user application. 12062 * 12063 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE: Unsigned 32-bit attribute 12064 * Indicate peer statistics cache type. 12065 * The statistics types are 32-bit values from 12066 * enum qca_vendor_attr_peer_stats_cache_type. 12067 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC: Unsigned 8-bit array 12068 * of size 6 octets, representing the peer MAC address. 12069 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA: Opaque data attribute 12070 * containing buffer of statistics to send to application layer entity. 12071 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE: Unsigned 64-bit attribute 12072 * representing a cookie for peer unique session. 12073 * @QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD: Attribute used for padding for 12074 * 64-bit alignment. 12075 */ 12076 enum qca_wlan_vendor_attr_peer_stats_cache_params { 12077 QCA_WLAN_VENDOR_ATTR_PEER_STATS_INVALID = 0, 12078 12079 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_TYPE = 1, 12080 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_MAC = 2, 12081 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_DATA = 3, 12082 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PEER_COOKIE = 4, 12083 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_PAD = 5, 12084 12085 /* Keep last */ 12086 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST, 12087 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_MAX = 12088 QCA_WLAN_VENDOR_ATTR_PEER_STATS_CACHE_LAST - 1 12089 }; 12090 12091 /** 12092 * enum qca_mpta_helper_attr_zigbee_state - Current Zigbee state 12093 * This enum defines all the possible states of Zigbee, which can be 12094 * delivered in the QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE attribute. 12095 * 12096 * @ZIGBEE_IDLE: Zigbee in idle state 12097 * @ZIGBEE_FORM_NETWORK: Zigbee forming network 12098 * @ZIGBEE_WAIT_JOIN: Zigbee waiting for joining network 12099 * @ZIGBEE_JOIN: Zigbee joining network 12100 * @ZIGBEE_NETWORK_UP: Zigbee network is up 12101 * @ZIGBEE_HMI: Zigbee in HMI mode 12102 */ 12103 enum qca_mpta_helper_attr_zigbee_state { 12104 ZIGBEE_IDLE = 0, 12105 ZIGBEE_FORM_NETWORK = 1, 12106 ZIGBEE_WAIT_JOIN = 2, 12107 ZIGBEE_JOIN = 3, 12108 ZIGBEE_NETWORK_UP = 4, 12109 ZIGBEE_HMI = 5, 12110 }; 12111 12112 /* 12113 * enum qca_mpta_helper_vendor_attr - Attributes used in vendor sub-command 12114 * QCA_NL80211_VENDOR_SUBCMD_MPTA_HELPER_CONFIG. 12115 */ 12116 enum qca_mpta_helper_vendor_attr { 12117 QCA_MPTA_HELPER_VENDOR_ATTR_INVALID = 0, 12118 /* Optional attribute used to update Zigbee state. 12119 * enum qca_mpta_helper_attr_zigbee_state. 12120 * NLA_U32 attribute. 12121 */ 12122 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_STATE = 1, 12123 /* Optional attribute used to configure WLAN duration for Shape-OCS 12124 * during interrupt. 12125 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION. 12126 * Value range 0 ~ 300 (ms). 12127 * NLA_U32 attribute. 12128 */ 12129 QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION = 2, 12130 /* Optional attribute used to configure non-WLAN duration for Shape-OCS 12131 * during interrupt. 12132 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_WLAN_DURATION. 12133 * Value range 0 ~ 300 (ms). 12134 * NLA_U32 attribute. 12135 */ 12136 QCA_MPTA_HELPER_VENDOR_ATTR_INT_NON_WLAN_DURATION = 3, 12137 /* Optional attribute used to configure WLAN duration for Shape-OCS 12138 * monitor period. 12139 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION. 12140 * Value range 0 ~ 300 (ms) 12141 * NLA_U32 attribute 12142 */ 12143 QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION = 4, 12144 /* Optional attribute used to configure non-WLAN duration for Shape-OCS 12145 * monitor period. 12146 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_WLAN_DURATION. 12147 * Value range 0 ~ 300 (ms) 12148 * NLA_U32 attribute 12149 */ 12150 QCA_MPTA_HELPER_VENDOR_ATTR_MON_NON_WLAN_DURATION = 5, 12151 /* Optional attribute used to configure OCS interrupt duration. 12152 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION. 12153 * Value range 1000 ~ 20000 (ms) 12154 * NLA_U32 attribute 12155 */ 12156 QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION = 6, 12157 /* Optional attribute used to configure OCS monitor duration. 12158 * Set in pair with QCA_MPTA_HELPER_VENDOR_ATTR_INT_OCS_DURATION. 12159 * Value range 1000 ~ 20000 (ms) 12160 * NLA_U32 attribute 12161 */ 12162 QCA_MPTA_HELPER_VENDOR_ATTR_MON_OCS_DURATION = 7, 12163 /* Optional attribute used to notify WLAN firmware the current Zigbee 12164 * channel. 12165 * Value range 11 ~ 26 12166 * NLA_U32 attribute 12167 */ 12168 QCA_MPTA_HELPER_VENDOR_ATTR_ZIGBEE_CHAN = 8, 12169 /* Optional attribute used to configure WLAN mute duration. 12170 * Value range 0 ~ 400 (ms) 12171 * NLA_U32 attribute 12172 */ 12173 QCA_MPTA_HELPER_VENDOR_ATTR_WLAN_MUTE_DURATION = 9, 12174 12175 /* keep last */ 12176 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST, 12177 QCA_MPTA_HELPER_VENDOR_ATTR_MAX = 12178 QCA_MPTA_HELPER_VENDOR_ATTR_AFTER_LAST - 1 12179 }; 12180 12181 /** 12182 * enum qca_wlan_vendor_beacon_reporting_op_types - Defines different types of 12183 * operations for which %QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING can be used. 12184 * Will be used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE. 12185 * 12186 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START: Sent by userspace to the driver 12187 * to request the driver to start reporting Beacon frames. 12188 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP: Sent by userspace to the driver to 12189 * request the driver to stop reporting Beacon frames. 12190 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO: Sent by the driver to 12191 * userspace to report received Beacon frames. 12192 * @QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE: Sent by the driver to userspace 12193 * to indicate that the driver is going to pause reporting Beacon frames. 12194 */ 12195 enum qca_wlan_vendor_beacon_reporting_op_types { 12196 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START = 0, 12197 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_STOP = 1, 12198 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO = 2, 12199 QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE = 3, 12200 }; 12201 12202 /** 12203 * enum qca_wlan_vendor_beacon_reporting_pause_reasons - Defines different types 12204 * of reasons for which the driver is pausing reporting Beacon frames. Will be 12205 * used by %QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON. 12206 * 12207 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED: For unspecified 12208 * reasons. 12209 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED: When the 12210 * driver/firmware is starting a scan. 12211 * @QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED: When the 12212 * driver/firmware disconnects from the ESS and indicates the disconnection to 12213 * userspace (non-seamless roaming case). This reason code will be used by the 12214 * driver/firmware to indicate stopping of beacon report events. Userspace will 12215 * need to start beacon reporting again (if desired) by sending vendor command 12216 * QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING with 12217 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE set to 12218 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START after the next connection is 12219 * completed. 12220 */ 12221 enum qca_wlan_vendor_beacon_reporting_pause_reasons { 12222 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_UNSPECIFIED = 0, 12223 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_SCAN_STARTED = 1, 12224 QCA_WLAN_VENDOR_BEACON_REPORTING_PAUSE_REASON_DISCONNECTED = 2, 12225 }; 12226 12227 /* 12228 * enum qca_wlan_vendor_attr_beacon_reporting_params - List of attributes used 12229 * in vendor sub-command QCA_NL80211_VENDOR_SUBCMD_BEACON_REPORTING. 12230 */ 12231 enum qca_wlan_vendor_attr_beacon_reporting_params { 12232 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_INVALID = 0, 12233 /* Specifies the type of operation that the vendor command/event is 12234 * intended for. Possible values for this attribute are defined in 12235 * enum qca_wlan_vendor_beacon_reporting_op_types. u32 attribute. 12236 */ 12237 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE = 1, 12238 /* Optionally set by userspace to request the driver to report Beacon 12239 * frames using asynchronous vendor events when the 12240 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12241 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. 12242 * If this flag is not set, the driver will only update Beacon frames in 12243 * cfg80211 scan cache but not send any vendor events. 12244 */ 12245 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_ACTIVE_REPORTING = 2, 12246 /* Optionally used by userspace to request the driver/firmware to report 12247 * Beacon frames periodically when the 12248 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12249 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. 12250 * u32 attribute, indicates the period of Beacon frames to be reported 12251 * and in the units of beacon interval. 12252 * If this attribute is missing in the command, then the default value 12253 * of 1 will be assumed by driver, i.e., to report every Beacon frame. 12254 * Zero is an invalid value. 12255 * If a valid value is received for this attribute, the driver will 12256 * update the cfg80211 scan cache periodically as per the value received 12257 * in this attribute in addition to updating the cfg80211 scan cache 12258 * when there is significant change in Beacon frame IEs. 12259 */ 12260 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PERIOD = 3, 12261 /* Used by the driver to encapsulate the SSID when the 12262 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12263 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 12264 * u8 array with a maximum size of 32. 12265 * 12266 * When generating beacon report from non-MBSSID Beacon frame, the SSID 12267 * will be taken from the SSID element of the received Beacon frame. 12268 * 12269 * When generating beacon report from Multiple BSSID Beacon frame and if 12270 * the BSSID of the current connected BSS matches the BSSID of the 12271 * transmitting BSS, the SSID will be taken from the SSID element of the 12272 * received Beacon frame. 12273 * 12274 * When generating beacon report from Multiple BSSID Beacon frame and if 12275 * the BSSID of the current connected BSS matches the BSSID of one of 12276 * the* nontransmitting BSSs, the SSID will be taken from the SSID field 12277 * included in the nontransmitted BSS profile whose derived BSSID is 12278 * same as the BSSID of the current connected BSS. When there is no 12279 * nontransmitted BSS profile whose derived BSSID is same as the BSSID 12280 * of current connected* BSS, this attribute will not be present. 12281 */ 12282 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_SSID = 4, 12283 /* Used by the driver to encapsulate the BSSID of the AP to which STA is 12284 * currently connected to when the 12285 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12286 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array with a 12287 * fixed size of 6 bytes. 12288 * 12289 * When generating beacon report from a Multiple BSSID beacon and the 12290 * current connected BSSID matches one of the nontransmitted BSSIDs in a 12291 * Multiple BSSID set, this BSSID will be that particular nontransmitted 12292 * BSSID and not the transmitted BSSID (i.e., the transmitting address 12293 * of the Beacon frame). 12294 */ 12295 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BSSID = 5, 12296 /* Used by the driver to encapsulate the frequency in MHz on which 12297 * the Beacon frame was received when the 12298 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is 12299 * set to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 12300 * u32 attribute. 12301 */ 12302 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_FREQ = 6, 12303 /* Used by the driver to encapsulate the Beacon interval 12304 * when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12305 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 12306 * u16 attribute. The value will be copied from the Beacon frame and the 12307 * units are TUs. 12308 */ 12309 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BI = 7, 12310 /* Used by the driver to encapsulate the Timestamp field from the Beacon 12311 * frame when the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set 12312 * to QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. 12313 * u64 attribute. 12314 */ 12315 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_TSF = 8, 12316 /* Used by the driver to encapsulate the CLOCK_BOOTTIME when this 12317 * Beacon frame is received in the driver when the 12318 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12319 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u64 attribute, in 12320 * the units of nanoseconds. This value is expected to have accuracy of 12321 * about 10 ms. 12322 */ 12323 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_BOOTTIME_WHEN_RECEIVED = 9, 12324 /* Used by the driver to encapsulate the IEs of the Beacon frame from 12325 * which this event is generated when the 12326 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12327 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_BEACON_INFO. u8 array. 12328 */ 12329 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_IES = 10, 12330 /* Used by the driver to specify the reason for the driver/firmware to 12331 * pause sending beacons to userspace when the 12332 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12333 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. Possible values are 12334 * defined in enum qca_wlan_vendor_beacon_reporting_pause_reasons, u32 12335 * attribute. 12336 */ 12337 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAUSE_REASON = 11, 12338 /* Used by the driver to specify whether the driver will automatically 12339 * resume reporting beacon events to userspace later (for example after 12340 * the ongoing off-channel activity is completed etc.) when the 12341 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12342 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE. NLA_FLAG attribute. 12343 */ 12344 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES = 12, 12345 /* Optionally set by userspace to request the driver not to resume 12346 * beacon reporting after a pause is completed, when the 12347 * QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_OP_TYPE is set to 12348 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START. NLA_FLAG attribute. 12349 * If this flag is set, the driver will not resume beacon reporting 12350 * after any pause in beacon reporting is completed. Userspace has to 12351 * send QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command again in order 12352 * to initiate beacon reporting again. If this flag is set in the recent 12353 * QCA_WLAN_VENDOR_BEACON_REPORTING_OP_START command, then in the 12354 * subsequent QCA_WLAN_VENDOR_BEACON_REPORTING_OP_PAUSE event (if any) 12355 * the QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_AUTO_RESUMES shall not be 12356 * set by the driver. Setting this flag until and unless there is a 12357 * specific need is not recommended as there is a chance of some beacons 12358 * received after pause command and next start command being not 12359 * reported. 12360 */ 12361 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_DO_NOT_RESUME = 13, 12362 /* Attribute used for padding for 64-bit alignment */ 12363 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_PAD = 14, 12364 12365 /* Keep last */ 12366 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST, 12367 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_MAX = 12368 QCA_WLAN_VENDOR_ATTR_BEACON_REPORTING_LAST - 1 12369 }; 12370 12371 /** 12372 * enum qca_vendor_interop_issues_ap_type - Interop issue types 12373 * This enum defines the valid set of values of interop issue types. These 12374 * values are used by attribute %QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE. 12375 * 12376 * @QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS: The AP has power save interop issue 12377 * when the STA's Qpower feature is enabled. 12378 */ 12379 enum qca_vendor_interop_issues_ap_type { 12380 QCA_VENDOR_INTEROP_ISSUES_AP_INVALID = 0, 12381 QCA_VENDOR_INTEROP_ISSUES_AP_ON_STA_PS = 1, 12382 }; 12383 12384 /** 12385 * enum qca_vendor_attr_interop_issues_ap - attribute for AP with interop issues 12386 * Values are used by %QCA_NL80211_VENDOR_SUBCMD_INTEROP_ISSUES_AP. 12387 * 12388 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID: Invalid value 12389 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE: Interop issue type 12390 * 32-bit unsigned value. The values defined in enum 12391 * qca_vendor_interop_issues_ap_type are used. 12392 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST: APs' BSSID container 12393 * array of nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID attributes. 12394 * It is present and mandatory for the command but is not used for the event 12395 * since only a single BSSID is reported in an event. 12396 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID: AP's BSSID 6-byte MAC address. 12397 * It is used within the nested QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST 12398 * attribute in command case and without such encapsulation in the event case. 12399 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST: last value 12400 * @QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX: max value 12401 */ 12402 enum qca_vendor_attr_interop_issues_ap { 12403 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_INVALID, 12404 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_TYPE, 12405 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_LIST, 12406 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_BSSID, 12407 /* keep last */ 12408 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST, 12409 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_MAX = 12410 QCA_WLAN_VENDOR_ATTR_INTEROP_ISSUES_AP_AFTER_LAST - 1 12411 }; 12412 12413 /** 12414 * enum qca_vendor_oem_device_type - Represents the target device in firmware. 12415 * It is used by QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO. 12416 * 12417 * @QCA_VENDOR_OEM_DEVICE_VIRTUAL: The command is intended for 12418 * a virtual device. 12419 * 12420 * @QCA_VENDOR_OEM_DEVICE_PHYSICAL: The command is intended for 12421 * a physical device. 12422 */ 12423 enum qca_vendor_oem_device_type { 12424 QCA_VENDOR_OEM_DEVICE_VIRTUAL = 0, 12425 QCA_VENDOR_OEM_DEVICE_PHYSICAL = 1, 12426 }; 12427 12428 /** 12429 * enum qca_wlan_vendor_attr_oem_data_params - Used by the vendor command/event 12430 * QCA_NL80211_VENDOR_SUBCMD_OEM_DATA. 12431 * 12432 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA: This NLA_BINARY attribute is 12433 * used to set/query the data to/from the firmware. On query, the same 12434 * attribute is used to carry the respective data in the reply sent by the 12435 * driver to userspace. The request to set/query the data and the format of the 12436 * respective data from the firmware are embedded in the attribute. The 12437 * maximum size of the attribute payload is 1024 bytes. 12438 * Userspace has to set the QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED 12439 * attribute when the data is queried from the firmware. 12440 * 12441 * @QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO: The binary blob will be routed 12442 * based on this field. This optional attribute is included to specify whether 12443 * the device type is a virtual device or a physical device for the 12444 * command/event. This attribute can be omitted for a virtual device (default) 12445 * command/event. 12446 * This u8 attribute is used to carry information for the device type using 12447 * values defined by enum qca_vendor_oem_device_type. 12448 * 12449 * @QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED: This NLA_FLAG attribute 12450 * is set when the userspace queries data from the firmware. This attribute 12451 * should not be set when userspace sets the OEM data to the firmware. 12452 */ 12453 enum qca_wlan_vendor_attr_oem_data_params { 12454 QCA_WLAN_VENDOR_ATTR_OEM_DATA_INVALID = 0, 12455 QCA_WLAN_VENDOR_ATTR_OEM_DATA_CMD_DATA = 1, 12456 QCA_WLAN_VENDOR_ATTR_OEM_DEVICE_INFO = 2, 12457 QCA_WLAN_VENDOR_ATTR_OEM_DATA_RESPONSE_EXPECTED = 3, 12458 12459 /* keep last */ 12460 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST, 12461 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_MAX = 12462 QCA_WLAN_VENDOR_ATTR_OEM_DATA_PARAMS_AFTER_LAST - 1 12463 }; 12464 12465 /** 12466 * enum qca_wlan_vendor_attr_avoid_frequency_ext - Defines attributes to be 12467 * used with vendor command/event QCA_NL80211_VENDOR_SUBCMD_AVOID_FREQUENCY_EXT. 12468 * 12469 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE: Required 12470 * Nested attribute containing multiple ranges with following attributes: 12471 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START, 12472 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END, and 12473 * QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM. 12474 * 12475 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START: Required (u32) 12476 * Starting center frequency in MHz. 12477 * 12478 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END: Required (u32) 12479 * Ending center frequency in MHz. 12480 * 12481 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM: 12482 * s32 attribute, optional. It is a per frequency range attribute. 12483 * The maximum TX power limit from user space is to be applied on an 12484 * unrestricted interface for corresponding frequency range. It is also 12485 * possible that the actual TX power may be even lower than this cap due to 12486 * other considerations such as regulatory compliance, SAR, etc. In absence of 12487 * this attribute the driver shall follow current behavior which means 12488 * interface (SAP/P2P) function can keep operating on an unsafe channel with TX 12489 * power derived by the driver based on regulatory/SAR during interface up. 12490 * 12491 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK: 12492 * u32 attribute, optional. Indicates all the interface types which are 12493 * restricted for all frequency ranges provided in 12494 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START and 12495 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END. 12496 * This attribute encapsulates bitmasks of interface types defined in 12497 * enum nl80211_iftype. If an interface is marked as restricted the driver must 12498 * move to a safe channel and if no safe channel is available the driver shall 12499 * terminate that interface functionality. In absence of this attribute, 12500 * interface (SAP/P2P) can still continue operating on an unsafe channel with 12501 * TX power limit derived from either 12502 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM or based on 12503 * regulatory/SAE limits if %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM 12504 * is not provided. 12505 * 12506 * @QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFINDEX: u32 attribute, optional. 12507 * This specifies the interface index (netdev) for which the corresponding 12508 * configurations are applied. If the interface index is not specified, the 12509 * configurations are applied based on 12510 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK. 12511 * %QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK along with this 12512 * attribute shall have the matching nl80211_iftype. 12513 */ 12514 enum qca_wlan_vendor_attr_avoid_frequency_ext { 12515 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_INVALID = 0, 12516 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_RANGE = 1, 12517 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_START = 2, 12518 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_END = 3, 12519 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_POWER_CAP_DBM = 4, 12520 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFACES_BITMASK = 5, 12521 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_IFINDEX = 6, 12522 12523 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST, 12524 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_MAX = 12525 QCA_WLAN_VENDOR_ATTR_AVOID_FREQUENCY_AFTER_LAST - 1 12526 }; 12527 12528 /* 12529 * enum qca_wlan_vendor_attr_add_sta_node_params - Used by the vendor command 12530 * QCA_NL80211_VENDOR_SUBCMD_ADD_STA_NODE. 12531 */ 12532 enum qca_wlan_vendor_attr_add_sta_node_params { 12533 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_INVALID = 0, 12534 /* 6 byte MAC address of STA */ 12535 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_MAC_ADDR = 1, 12536 /* Authentication algorithm used by the station of size u16; 12537 * defined in enum nl80211_auth_type. 12538 */ 12539 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_AUTH_ALGO = 2, 12540 12541 /* 12542 * This flag attribute is set if the node being added is an 12543 * MLD STA node. 12544 */ 12545 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_IS_ML = 3, 12546 12547 /* 12548 * This is u8 attribute used to identify a specific link affiliated 12549 * to an AP MLD. 12550 */ 12551 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_LINK_ID = 4, 12552 12553 /* keep last */ 12554 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST, 12555 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_MAX = 12556 QCA_WLAN_VENDOR_ATTR_ADD_STA_NODE_PARAM_AFTER_LAST - 1 12557 }; 12558 12559 /** 12560 * enum qca_btc_chain_mode - Specifies BT coex chain mode. 12561 * This enum defines the valid set of values of BT coex chain mode. 12562 * These values are used by attribute %QCA_VENDOR_ATTR_BTC_CHAIN_MODE of 12563 * %QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. 12564 * 12565 * @QCA_BTC_CHAIN_SHARED: chains of BT and WLAN 2.4 GHz are shared. 12566 * @QCA_BTC_CHAIN_SEPARATED_HYBRID: chains of BT and WLAN 2.4 GHz are 12567 * separated, hybrid mode. 12568 * @QCA_BTC_CHAIN_SEPARATED_FDD: chains of BT and WLAN 2.4 GHz are 12569 * separated, fixed FDD mode. 12570 */ 12571 enum qca_btc_chain_mode { 12572 QCA_BTC_CHAIN_SHARED = 0, 12573 QCA_BTC_CHAIN_SEPARATED_HYBRID = 1, 12574 QCA_BTC_CHAIN_SEPARATED_FDD = 2, 12575 }; 12576 12577 /* deprecated legacy name */ 12578 #define QCA_BTC_CHAIN_SEPARATED QCA_BTC_CHAIN_SEPARATED_HYBRID 12579 12580 /** 12581 * enum qca_vendor_attr_btc_chain_mode - Specifies attributes for BT coex 12582 * chain mode. 12583 * Attributes for data used by QCA_NL80211_VENDOR_SUBCMD_BTC_CHAIN_MODE. 12584 * 12585 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE: u32 attribute. 12586 * Indicates the BT coex chain mode, are 32-bit values from 12587 * enum qca_btc_chain_mode. This attribute is mandatory. 12588 * 12589 * @QCA_VENDOR_ATTR_COEX_BTC_CHAIN_MODE_RESTART: flag attribute. 12590 * If set, vdev should be restarted when BT coex chain mode is updated. 12591 * This attribute is optional. 12592 */ 12593 enum qca_vendor_attr_btc_chain_mode { 12594 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_INVALID = 0, 12595 QCA_VENDOR_ATTR_BTC_CHAIN_MODE = 1, 12596 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_RESTART = 2, 12597 12598 /* Keep last */ 12599 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST, 12600 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_MAX = 12601 QCA_VENDOR_ATTR_BTC_CHAIN_MODE_LAST - 1, 12602 }; 12603 12604 /** 12605 * enum qca_vendor_wlan_sta_flags - Station feature flags 12606 * Bits will be set to 1 if the corresponding features are enabled. 12607 * @QCA_VENDOR_WLAN_STA_FLAG_AMPDU: AMPDU is enabled for the station 12608 * @QCA_VENDOR_WLAN_STA_FLAG_TX_STBC: TX Space-time block coding is enabled 12609 for the station 12610 * @QCA_VENDOR_WLAN_STA_FLAG_RX_STBC: RX Space-time block coding is enabled 12611 for the station 12612 */ 12613 enum qca_vendor_wlan_sta_flags { 12614 QCA_VENDOR_WLAN_STA_FLAG_AMPDU = BIT(0), 12615 QCA_VENDOR_WLAN_STA_FLAG_TX_STBC = BIT(1), 12616 QCA_VENDOR_WLAN_STA_FLAG_RX_STBC = BIT(2), 12617 }; 12618 12619 /** 12620 * enum qca_vendor_wlan_sta_guard_interval - Station guard interval 12621 * @QCA_VENDOR_WLAN_STA_GI_800_NS: Legacy normal guard interval 12622 * @QCA_VENDOR_WLAN_STA_GI_400_NS: Legacy short guard interval 12623 * @QCA_VENDOR_WLAN_STA_GI_1600_NS: Guard interval used by HE 12624 * @QCA_VENDOR_WLAN_STA_GI_3200_NS: Guard interval used by HE 12625 */ 12626 enum qca_vendor_wlan_sta_guard_interval { 12627 QCA_VENDOR_WLAN_STA_GI_800_NS = 0, 12628 QCA_VENDOR_WLAN_STA_GI_400_NS = 1, 12629 QCA_VENDOR_WLAN_STA_GI_1600_NS = 2, 12630 QCA_VENDOR_WLAN_STA_GI_3200_NS = 3, 12631 }; 12632 12633 /** 12634 * enum qca_wlan_vendor_attr_get_sta_info - Defines attributes 12635 * used by QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command. 12636 * 12637 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC: 12638 * Required attribute in request for AP mode only, 6-byte MAC address, 12639 * corresponding to the station's MAC address for which information is 12640 * requested. For STA mode this is not required as the info always correspond 12641 * to the self STA and the current/last association. 12642 * 12643 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS: 12644 * Optionally used in response, u32 attribute, contains a bitmap of different 12645 * fields defined in enum qca_vendor_wlan_sta_flags, used in AP mode only. 12646 * 12647 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL: 12648 * Optionally used in response, u32 attribute, possible values are defined in 12649 * enum qca_vendor_wlan_sta_guard_interval, used in AP mode only. 12650 * Guard interval used by the station. 12651 * 12652 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT: 12653 * Optionally used in response, u32 attribute, used in AP mode only. 12654 * Value indicates the number of data frames received from station with retry 12655 * bit set to 1 in FC. 12656 * 12657 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT: 12658 * Optionally used in response, u32 attribute, used in AP mode only. 12659 * Counter for number of data frames with broadcast or multicast address in 12660 * the destination address received from the station. 12661 * 12662 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED: 12663 * Optionally used in response, u32 attribute, used in both STA and AP modes. 12664 * Value indicates the number of data frames successfully transmitted only 12665 * after retrying the packets and for which the TX status has been updated 12666 * back to host from target. 12667 * 12668 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED: 12669 * Optionally used in response, u32 attribute, used in both STA and AP mode. 12670 * Value indicates the number of data frames not transmitted successfully even 12671 * after retrying the packets for the number of times equal to the total number 12672 * of retries allowed for that packet and for which the TX status has been 12673 * updated back to host from target. 12674 * 12675 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL: 12676 * Optionally used in response, u32 attribute, used in AP mode only. 12677 * Counter in the target for the number of data frames successfully transmitted 12678 * to the station. 12679 * 12680 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY: 12681 * Optionally used in response, u32 attribute, used in AP mode only. 12682 * Value indicates the number of data frames successfully transmitted only 12683 * after retrying the packets. 12684 * 12685 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED: 12686 * Optionally used in response, u32 attribute, used in both STA & AP mode. 12687 * Value indicates the number of data frames not transmitted successfully even 12688 * after retrying the packets for the number of times equal to the total number 12689 * of retries allowed for that packet. 12690 * 12691 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT: u32, used in 12692 * the STA mode only. Represent the number of probe requests sent by the STA 12693 * while attempting to roam on missing certain number of beacons from the 12694 * connected AP. If queried in the disconnected state, this represents the 12695 * count for the last connected state. 12696 * 12697 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT: u32, used in 12698 * the STA mode. Represent the number of probe responses received by the station 12699 * while attempting to roam on missing certain number of beacons from the 12700 * connected AP. When queried in the disconnected state, this represents the 12701 * count when in last connected state. 12702 * 12703 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT: u32, used in the 12704 * STA mode only. Represents the total number of frames sent out by STA 12705 * including Data, ACK, RTS, CTS, Control Management. This data is maintained 12706 * only for the connect session. Represents the count of last connected session, 12707 * when queried in the disconnected state. 12708 * 12709 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT: u32, used in the STA mode. 12710 * Total number of RTS sent out by the STA. This data is maintained per connect 12711 * session. Represents the count of last connected session, when queried in the 12712 * disconnected state. 12713 * 12714 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT: u32, used in the 12715 * STA mode.Represent the number of RTS transmission failure that reach retry 12716 * limit. This data is maintained per connect session. Represents the count of 12717 * last connected session, when queried in the disconnected state. 12718 * 12719 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT: u32, used in 12720 * the STA mode. Represent the total number of non aggregated frames transmitted 12721 * by the STA. This data is maintained per connect session. Represents the count 12722 * of last connected session, when queried in the disconnected state. 12723 * 12724 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT: u32, used in the 12725 * STA mode. Represent the total number of aggregated frames transmitted by the 12726 * STA. This data is maintained per connect session. Represents the count of 12727 * last connected session, when queried in the disconnected state. 12728 * 12729 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT: u32, used in 12730 * the STA mode. Represents the number of received frames with a good PLCP. This 12731 * data is maintained per connect session. Represents the count of last 12732 * connected session, when queried in the disconnected state. 12733 * 12734 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT: u32, 12735 * used in the STA mode. Represents the number of occasions that no valid 12736 * delimiter is detected by A-MPDU parser. This data is maintained per connect 12737 * session. Represents the count of last connected session, when queried in the 12738 * disconnected state. 12739 * 12740 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT: u32, used in the 12741 * STA mode. Represents the number of frames for which CRC check failed in the 12742 * MAC. This data is maintained per connect session. Represents the count of 12743 * last connected session, when queried in the disconnected state. 12744 * 12745 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT: u32, used in the 12746 * STA mode. Represents the number of unicast ACKs received with good FCS. This 12747 * data is maintained per connect session. Represents the count of last 12748 * connected session, when queried in the disconnected state. 12749 * 12750 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT: u32, used in the STA 12751 * mode. Represents the number of received Block Acks. This data is maintained 12752 * per connect session. Represents the count of last connected session, when 12753 * queried in the disconnected state. 12754 * 12755 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT: u32, used in the STA 12756 * mode. Represents the number of beacons received from the connected BSS. This 12757 * data is maintained per connect session. Represents the count of last 12758 * connected session, when queried in the disconnected state. 12759 * 12760 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT: u32, used in the 12761 * STA mode. Represents the number of beacons received by the other BSS when in 12762 * connected state (through the probes done by the STA). This data is maintained 12763 * per connect session. Represents the count of last connected session, when 12764 * queried in the disconnected state. 12765 * 12766 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT: u64, used in 12767 * the STA mode. Represents the number of received DATA frames with good FCS and 12768 * matching Receiver Address when in connected state. This data is maintained 12769 * per connect session. Represents the count of last connected session, when 12770 * queried in the disconnected state. 12771 * 12772 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT: u32, used in the 12773 * STA mode. Represents the number of RX Data multicast frames dropped by the HW 12774 * when in the connected state. This data is maintained per connect session. 12775 * Represents the count of last connected session, when queried in the 12776 * disconnected state. 12777 * 12778 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS: u32, used in the 12779 * STA mode. This represents the target power in dBm for the transmissions done 12780 * to the AP in 2.4 GHz at 1 Mbps (DSSS) rate. This data is maintained per 12781 * connect session. Represents the count of last connected session, when 12782 * queried in the disconnected state. 12783 * 12784 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS: u32, used in the 12785 * STA mode. This represents the Target power in dBm for transmissions done to 12786 * the AP in 2.4 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect 12787 * session. Represents the count of last connected session, when queried in the 12788 * disconnected state. 12789 * 12790 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0: u32, used in the 12791 * STA mode. This represents the Target power in dBm for transmissions done to 12792 * the AP in 2.4 GHz at MCS0 rate. This data is maintained per connect session. 12793 * Represents the count of last connected session, when queried in the 12794 * disconnected state. 12795 * 12796 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS: u32, used in the 12797 * STA mode. This represents the Target power in dBm for transmissions done to 12798 * the AP in 5 GHz at 6 Mbps (OFDM) rate. This data is maintained per connect 12799 * session. Represents the count of last connected session, when queried in 12800 * the disconnected state. 12801 * 12802 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0: u32, used in the 12803 * STA mode. This represents the Target power in dBm for transmissions done 12804 * to the AP in 5 GHz at MCS0 rate. This data is maintained per connect session. 12805 * Represents the count of last connected session, when queried in the 12806 * disconnected state. 12807 * 12808 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT: u32, used 12809 * in the STA mode. This represents the Nested attribute representing the 12810 * overflow counts of each receive buffer allocated to the hardware during the 12811 * STA's connection. The number of hw buffers might vary for each WLAN 12812 * solution and hence this attribute represents the nested array of all such 12813 * HW buffer count. This data is maintained per connect session. Represents 12814 * the count of last connected session, when queried in the disconnected state. 12815 * 12816 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER: u32, Max TX power (dBm) 12817 * allowed as per the regulatory requirements for the current or last connected 12818 * session. Used in the STA mode. 12819 * 12820 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER: u32, Latest TX power 12821 * (dBm) used by the station in its latest unicast frame while communicating 12822 * to the AP in the connected state. When queried in the disconnected state, 12823 * this represents the TX power used by the STA with last AP communication 12824 * when in connected state. 12825 * 12826 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL: u32, Adaptive noise immunity 12827 * level used to adjust the RX sensitivity. Represents the current ANI level 12828 * when queried in the connected state. When queried in the disconnected 12829 * state, this corresponds to the latest ANI level at the instance of 12830 * disconnection. 12831 * 12832 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES: Binary attribute containing 12833 * the raw information elements from Beacon frames. Represents the Beacon frames 12834 * of the current BSS in the connected state. When queried in the disconnected 12835 * state, these IEs correspond to the last connected BSSID. 12836 * 12837 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES: Binary attribute 12838 * containing the raw information elements from Probe Response frames. 12839 * Represents the Probe Response frames of the current BSS in the connected 12840 * state. When queried in the disconnected state, these IEs correspond to the 12841 * last connected BSSID. 12842 * 12843 * @QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON: u32, Driver 12844 * disconnect reason for the last disconnection if the disconnection is 12845 * triggered from the host driver. The values are referred from 12846 * enum qca_disconnect_reason_codes. 12847 * 12848 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT: u32, used in STA mode 12849 * only. This represents the number of group addressed robust management frames 12850 * received from this station with an invalid MIC or a missing MME when PMF is 12851 * enabled. 12852 * 12853 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT: u32, used in STA mode 12854 * only. This represents the number of group addressed robust management frames 12855 * received from this station with the packet number less than or equal to the 12856 * last received packet number when PMF is enabled. 12857 * 12858 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT: u32, used in STA 12859 * mode only. This represents the number of Beacon frames received from this 12860 * station with an invalid MIC or a missing MME when beacon protection is 12861 * enabled. 12862 * 12863 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT: u32, used in STA mode 12864 * only. This represents number of Beacon frames received from this station with 12865 * the packet number less than or equal to the last received packet number when 12866 * beacon protection is enabled. 12867 * 12868 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE: u32, used in 12869 * STA mode only. The driver uses this attribute to populate the connection 12870 * failure reason codes and the values are defined in 12871 * enum qca_sta_connect_fail_reason_codes. Userspace applications can send 12872 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO vendor command after receiving 12873 * a connection failure indication from the driver. The driver shall not 12874 * include this attribute in response to the 12875 * QCA_NL80211_VENDOR_SUBCMD_GET_STA_INFO command if there is no connection 12876 * failure observed in the last attempted connection. 12877 * 12878 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE: u32, latest TX rate (Kbps) 12879 * used by the station in its last TX frame while communicating to the AP in the 12880 * connected state. When queried in the disconnected state, this represents the 12881 * rate used by the STA in the last TX frame to the AP when it was connected. 12882 * This attribute is used for STA mode only. 12883 * 12884 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX: u32, used in STA mode only. 12885 * This represents the rate index used by the STA for the last TX frame to the 12886 * AP. When queried in the disconnected state, this gives the last RIX used by 12887 * the STA in the last TX frame to the AP when it was connected. 12888 * 12889 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT: u32, used in STA 12890 * mode only. This represents the number of times the STA TSF goes out of sync 12891 * from the AP after the connection. If queried in the disconnected state, this 12892 * gives the count of TSF out of sync for the last connection. 12893 * 12894 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON: u32, used in STA 12895 * mode only. This represents the roam trigger reason for the last roaming 12896 * attempted by the firmware. This can be queried either in connected state or 12897 * disconnected state. Each bit of this attribute represents the different 12898 * roam trigger reason code which are defined in enum qca_vendor_roam_triggers. 12899 * 12900 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON: u32, used in STA mode 12901 * only. This represents the roam fail reason for the last failed roaming 12902 * attempt by the firmware. Different roam failure reason codes are specified 12903 * in enum qca_vendor_roam_fail_reasons. This can be queried either in 12904 * connected state or disconnected state. 12905 * 12906 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON: u32, used in 12907 * STA mode only. This represents the roam invoke fail reason for the last 12908 * failed roam invoke. Different roam invoke failure reason codes 12909 * are specified in enum qca_vendor_roam_invoke_fail_reasons. This can be 12910 * queried either in connected state or disconnected state. 12911 * 12912 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY: u32, used in STA mode only. 12913 * This represents the average congestion duration of uplink frames in MAC 12914 * queue in unit of ms. This can be queried either in connected state or 12915 * disconnected state. 12916 * 12917 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS: Array of u32 nested 12918 * values, used in AP mode. This represents the MPDU packet count per MCS 12919 * rate value of TX packets. Every index of this nested attribute corresponds 12920 * to MCS index, e.g., Index 0 represents MCS0 TX rate. This can be 12921 * queried in connected state. 12922 * 12923 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS: Array of u32 nested 12924 * values, used in AP mode. This represents the MPDU packet count per MCS 12925 * rate value of RX packets. Every index of this nested attribute corresponds 12926 * to MCS index, e.g., Index 0 represents MCS0 RX rate. This can be 12927 * queried in connected state. 12928 * 12929 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD: Attribute used for padding for 12930 * 64-bit alignment. 12931 * 12932 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER: u32, used in STA mode 12933 * only. This represents the average of the delta between successive uplink 12934 * frames congestion duration in MAC queue in unit of ms. This can be queried 12935 * either in connected state or disconnected state. 12936 * 12937 * @QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT: Array of nested attributes, 12938 * used in STA mode. This represents the number of MSDU packets 12939 * (unicast/multicast/broadcast) transmitted/received with each NSS value. See 12940 * enum qca_wlan_vendor_attr_nss_pkt. 12941 */ 12942 enum qca_wlan_vendor_attr_get_sta_info { 12943 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_INVALID = 0, 12944 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAC = 1, 12945 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_FLAGS = 2, 12946 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_GUARD_INTERVAL = 3, 12947 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_RETRY_COUNT = 4, 12948 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BC_MC_COUNT = 5, 12949 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_SUCCEED = 6, 12950 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RETRY_EXHAUSTED = 7, 12951 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_TOTAL = 8, 12952 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY = 9, 12953 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_RETRY_EXHAUSTED = 10, 12954 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_PROBE_REQ_BMISS_COUNT = 11, 12955 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_PROBE_RESP_BMISS_COUNT = 12, 12956 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_TX_ALL_COUNT = 13, 12957 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_COUNT = 14, 12958 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_RTS_RETRY_FAIL_COUNT = 15, 12959 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_NON_AGGREGATED_COUNT = 16, 12960 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TX_DATA_AGGREGATED_COUNT = 17, 12961 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_GOOD_PLCP_COUNT = 18, 12962 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_INVALID_DELIMITER_COUNT = 19, 12963 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_FRAMES_CRC_FAIL_COUNT = 20, 12964 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_ACKS_GOOD_FCS_COUNT = 21, 12965 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BLOCKACK_COUNT = 22, 12966 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_BEACON_COUNT = 23, 12967 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_OTHER_BEACON_COUNT = 24, 12968 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_UCAST_DATA_GOOD_FCS_COUNT = 25, 12969 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_DATA_BC_MC_DROP_COUNT = 26, 12970 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_1MBPS = 27, 12971 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_6MBPS = 28, 12972 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_24G_MCS0 = 29, 12973 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_6MBPS = 30, 12974 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TARGET_POWER_5G_MCS0 = 31, 12975 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_RX_HW_BUFFERS_OVERFLOW_COUNT = 32, 12976 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX_TX_POWER = 33, 12977 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_POWER = 34, 12978 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ANI_LEVEL = 35, 12979 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_IES = 36, 12980 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PROBE_RESP_IES = 37, 12981 QCA_WLAN_VENDOR_ATTR_GET_STA_DRIVER_DISCONNECT_REASON = 38, 12982 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_MIC_ERROR_COUNT = 39, 12983 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BIP_REPLAY_COUNT = 40, 12984 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_MIC_ERROR_COUNT = 41, 12985 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_BEACON_REPLAY_COUNT = 42, 12986 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE = 43, 12987 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_TX_RATE = 44, 12988 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_LATEST_RIX = 45, 12989 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_TSF_OUT_OF_SYNC_COUNT = 46, 12990 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_TRIGGER_REASON = 47, 12991 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_FAIL_REASON = 48, 12992 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_ROAM_INVOKE_FAIL_REASON = 49, 12993 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY = 50, 12994 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_TX_PACKETS = 51, 12995 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PER_MCS_RX_PACKETS = 52, 12996 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_PAD = 53, 12997 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_UPLINK_DELAY_JITTER = 54, 12998 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT = 55, 12999 13000 /* keep last */ 13001 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST, 13002 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_MAX = 13003 QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_AFTER_LAST - 1, 13004 }; 13005 13006 /** 13007 * enum qca_wlan_vendor_attr_update_sta_info - Defines attributes 13008 * used by QCA_NL80211_VENDOR_SUBCMD_UPDATE_STA_INFO vendor command. 13009 * 13010 * @QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS: Type is NLA_UNSPEC. 13011 * Used in STA mode. This attribute represents the list of channel center 13012 * frequencies in MHz (u32) the station has learnt during the last connection 13013 * or roaming attempt. This information shall not signify the channels for 13014 * an explicit scan request from the user space. Host drivers can update this 13015 * information to the user space in both connected and disconnected state. 13016 * In the disconnected state this information shall signify the channels 13017 * scanned in the last connection/roam attempt that lead to the disconnection. 13018 */ 13019 enum qca_wlan_vendor_attr_update_sta_info { 13020 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_INVALID = 0, 13021 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_CONNECT_CHANNELS = 1, 13022 13023 /* keep last */ 13024 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST, 13025 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_MAX = 13026 QCA_WLAN_VENDOR_ATTR_UPDATE_STA_INFO_AFTER_LAST - 1, 13027 }; 13028 13029 /** 13030 * enum qca_disconnect_reason_codes - Specifies driver disconnect reason codes. 13031 * Used when the driver triggers the STA to disconnect from the AP. 13032 * 13033 * @QCA_DISCONNECT_REASON_UNSPECIFIED: The host driver triggered the 13034 * disconnection with the AP due to unspecified reasons. 13035 * 13036 * @QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE: The host driver triggered the 13037 * disconnection with the AP due to a roaming failure. This roaming is triggered 13038 * internally (host driver/firmware). 13039 * 13040 * @QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE: The driver disconnected from 13041 * the AP when the user/external triggered roaming fails. 13042 * 13043 * @QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE: This reason code is used 13044 * by the host driver whenever gateway reachability failure is detected and the 13045 * driver disconnects with AP. 13046 * 13047 * @QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA: The driver disconnected from 13048 * the AP on a channel switch announcement from it with an unsupported channel. 13049 * 13050 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR: On a concurrent AP start 13051 * with indoor channels disabled and if the STA is connected on one of these 13052 * disabled channels, the host driver disconnected the STA with this reason 13053 * code. 13054 * 13055 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED: Disconnection due to an 13056 * explicit request from the user to disable the current operating channel. 13057 * 13058 * @QCA_DISCONNECT_REASON_DEVICE_RECOVERY: STA disconnected from the AP due to 13059 * the internal host driver/firmware recovery. 13060 * 13061 * @QCA_DISCONNECT_REASON_KEY_TIMEOUT: The driver triggered the disconnection on 13062 * a timeout for the key installations from the user space. 13063 * 13064 * @QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE: The dDriver disconnected the 13065 * STA on a band change request from the user space to a different band from the 13066 * current operation channel/band. 13067 * 13068 * @QCA_DISCONNECT_REASON_IFACE_DOWN: The STA disconnected from the AP on an 13069 * interface down trigger from the user space. 13070 * 13071 * @QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL: The host driver disconnected the 13072 * STA on getting continuous transmission failures for multiple Data frames. 13073 * 13074 * @QCA_DISCONNECT_REASON_PEER_INACTIVITY: The STA does a keep alive 13075 * notification to the AP by transmitting NULL/G-ARP frames. This disconnection 13076 * represents inactivity from AP on such transmissions. 13077 13078 * @QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT: This reason code is used on 13079 * disconnection when SA Query times out (AP does not respond to SA Query). 13080 * 13081 * @QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE: The host driver disconnected the 13082 * STA on missing the beacons continuously from the AP. 13083 * 13084 * @QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE: Disconnection due to STA not 13085 * able to move to the channel mentioned by the AP in CSA. 13086 * 13087 * @QCA_DISCONNECT_REASON_USER_TRIGGERED: User triggered disconnection. 13088 */ 13089 enum qca_disconnect_reason_codes { 13090 QCA_DISCONNECT_REASON_UNSPECIFIED = 0, 13091 QCA_DISCONNECT_REASON_INTERNAL_ROAM_FAILURE = 1, 13092 QCA_DISCONNECT_REASON_EXTERNAL_ROAM_FAILURE = 2, 13093 QCA_DISCONNECT_REASON_GATEWAY_REACHABILITY_FAILURE = 3, 13094 QCA_DISCONNECT_REASON_UNSUPPORTED_CHANNEL_CSA = 4, 13095 QCA_DISCONNECT_REASON_OPER_CHANNEL_DISABLED_INDOOR = 5, 13096 QCA_DISCONNECT_REASON_OPER_CHANNEL_USER_DISABLED = 6, 13097 QCA_DISCONNECT_REASON_DEVICE_RECOVERY = 7, 13098 QCA_DISCONNECT_REASON_KEY_TIMEOUT = 8, 13099 QCA_DISCONNECT_REASON_OPER_CHANNEL_BAND_CHANGE = 9, 13100 QCA_DISCONNECT_REASON_IFACE_DOWN = 10, 13101 QCA_DISCONNECT_REASON_PEER_XRETRY_FAIL = 11, 13102 QCA_DISCONNECT_REASON_PEER_INACTIVITY = 12, 13103 QCA_DISCONNECT_REASON_SA_QUERY_TIMEOUT = 13, 13104 QCA_DISCONNECT_REASON_BEACON_MISS_FAILURE = 14, 13105 QCA_DISCONNECT_REASON_CHANNEL_SWITCH_FAILURE = 15, 13106 QCA_DISCONNECT_REASON_USER_TRIGGERED = 16, 13107 }; 13108 13109 /** 13110 * enum qca_wlan_vendor_attr_driver_disconnect_reason - Defines attributes 13111 * used by %QCA_NL80211_VENDOR_SUBCMD_DRIVER_DISCONNECT_REASON vendor command. 13112 * 13113 * @QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE: u32 attribute. 13114 * This attribute represents the driver specific reason codes (local 13115 * driver/firmware initiated reasons for disconnection) defined 13116 * in enum qca_disconnect_reason_codes. 13117 */ 13118 enum qca_wlan_vendor_attr_driver_disconnect_reason { 13119 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_INVALID = 0, 13120 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASCON_CODE = 1, 13121 13122 /* keep last */ 13123 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST, 13124 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_MAX = 13125 QCA_WLAN_VENDOR_ATTR_DRIVER_DISCONNECT_REASON_AFTER_LAST - 1, 13126 }; 13127 13128 /** 13129 * enum qca_wlan_tspec_operation - Operation of the config TSPEC request 13130 * 13131 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION. 13132 */ 13133 enum qca_wlan_tspec_operation { 13134 QCA_WLAN_TSPEC_ADD = 0, 13135 QCA_WLAN_TSPEC_DEL = 1, 13136 QCA_WLAN_TSPEC_GET = 2, 13137 }; 13138 13139 /** 13140 * enum qca_wlan_tspec_direction - Direction in TSPEC 13141 * As what is defined in IEEE Std 802.11-2016, Table 9-139. 13142 * 13143 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION. 13144 */ 13145 enum qca_wlan_tspec_direction { 13146 QCA_WLAN_TSPEC_DIRECTION_UPLINK = 0, 13147 QCA_WLAN_TSPEC_DIRECTION_DOWNLINK = 1, 13148 QCA_WLAN_TSPEC_DIRECTION_DIRECT = 2, 13149 QCA_WLAN_TSPEC_DIRECTION_BOTH = 3, 13150 }; 13151 13152 /** 13153 * enum qca_wlan_tspec_ack_policy - MAC acknowledgment policy in TSPEC 13154 * As what is defined in IEEE Std 802.11-2016, Table 9-141. 13155 * 13156 * Values for %QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY. 13157 */ 13158 enum qca_wlan_tspec_ack_policy { 13159 QCA_WLAN_TSPEC_NORMAL_ACK = 0, 13160 QCA_WLAN_TSPEC_NO_ACK = 1, 13161 /* Reserved */ 13162 QCA_WLAN_TSPEC_BLOCK_ACK = 3, 13163 }; 13164 13165 /** 13166 * enum qca_wlan_vendor_attr_config_tspec - Defines attributes 13167 * used by %QCA_NL80211_VENDOR_SUBCMD_CONFIG_TSPEC vendor command. 13168 * 13169 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION: 13170 * u8 attribute. Specify the TSPEC operation of this request. Possible values 13171 * are defined in enum qca_wlan_tspec_operation. 13172 * Mandatory attribute for all kinds of config TSPEC requests. 13173 * 13174 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID: 13175 * u8 attribute. TS ID. Possible values are 0-7. 13176 * Applicable for operation: QCA_WLAN_TSPEC_ADD, QCA_WLAN_TSPEC_DEL, 13177 * QCA_WLAN_TSPEC_GET. A mandatory attribute. 13178 * 13179 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION: 13180 * u8 attribute. Direction of data carried by the TS. Possible values are 13181 * defined in enum qca_wlan_tspec_direction. 13182 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13183 * 13184 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD: 13185 * Flag attribute. Indicate whether APSD is enabled for the traffic associated 13186 * with the TS. set - enabled, not set - disabled. 13187 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13188 * 13189 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY: 13190 * u8 attribute. User priority to be used for the transport of MSDUs/A-MSDUs 13191 * belonging to this TS. Possible values are 0-7. 13192 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 13193 * 13194 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY: 13195 * u8 attribute. Indicate whether MAC acknowledgements are required for 13196 * MPDUs/A-MSDUs belonging to this TS and the form of those acknowledgements. 13197 * Possible values are defined in enum qca_wlan_tspec_ack_policy. 13198 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13199 * 13200 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE: 13201 * u16 attribute. Specify the nominal size in bytes of MSDUs/A-MSDUs 13202 * belonging to this TS. 13203 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13204 * 13205 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE: 13206 * u16 attribute. Specify the maximum size in bytes of MSDUs/A-MSDUs 13207 * belonging to this TS. 13208 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13209 * 13210 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL: 13211 * u32 attribute. Specify the minimum interval in microseconds between the 13212 * start of two successive SPs. 13213 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13214 * 13215 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL: 13216 * u32 attribute. Specify the maximum interval in microseconds between the 13217 * start of two successive SPs. 13218 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13219 * 13220 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL: 13221 * u32 attribute. Specify the minimum interval in microseconds that can elapse 13222 * without arrival or transfer of an MPDU belonging to the TS before this TS 13223 * is deleted by the MAC entity at the HC. 13224 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13225 * 13226 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL: 13227 * u32 attribute. Specify the minimum interval in microseconds that can elapse 13228 * without arrival or transfer of an MSDU belonging to the TS before the 13229 * generation of successive QoS(+)CF-Poll is stopped for this TS. A value of 13230 * 0xFFFFFFFF disables the suspension interval. The value of the suspension 13231 * interval is always less than or equal to the inactivity interval. 13232 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13233 * 13234 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE: 13235 * u32 attribute. Indicate the lowest data rate in bps specified at the MAC 13236 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the 13237 * bounds of this TSPEC. 13238 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 13239 * 13240 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE: 13241 * u32 attribute. Indicate the average data rate in bps specified at the MAC 13242 * SAP for transport of MSDUs or A-MSDUs belonging to this TS within the 13243 * bounds of this TSPEC. 13244 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 13245 * 13246 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE: 13247 * u32 attribute. Indicate the maximum allowable data rate in bps specified at 13248 * the MAC SAP for transport of MSDUs or A-MSDUs belonging to this TS within 13249 * the bounds of this TSPEC. 13250 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 13251 * 13252 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE: 13253 * u32 attribute. Specify the maximum burst size in bytes of the MSDUs/A-MSDUs 13254 * belonging to this TS that arrive at the MAC SAP at the peak data rate. A 13255 * value of 0 indicates that there are no bursts. 13256 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 13257 * 13258 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE: 13259 * u32 attribute. Indicate the minimum PHY rate in bps for transport of 13260 * MSDUs/A-MSDUs belonging to this TS within the bounds of this TSPEC. 13261 * Applicable for operation: QCA_WLAN_TSPEC_ADD. An optional attribute. 13262 * 13263 * @QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE: 13264 * u16 attribute. Specify the excess allocation of time (and bandwidth) over 13265 * and above the stated application rates required to transport an MSDU/A-MSDU 13266 * belonging to the TS in this TSPEC. 13267 * Applicable for operation: QCA_WLAN_TSPEC_ADD. A mandatory attribute. 13268 */ 13269 enum qca_wlan_vendor_attr_config_tspec { 13270 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INVALID = 0, 13271 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_OPERATION = 1, 13272 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_TSID = 2, 13273 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_DIRECTION = 3, 13274 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_APSD = 4, 13275 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_USER_PRIORITY = 5, 13276 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_ACK_POLICY = 6, 13277 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_NOMINAL_MSDU_SIZE = 7, 13278 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAXIMUM_MSDU_SIZE = 8, 13279 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MIN_SERVICE_INTERVAL = 9, 13280 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX_SERVICE_INTERVAL = 10, 13281 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_INACTIVITY_INTERVAL = 11, 13282 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SUSPENSION_INTERVAL = 12, 13283 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_DATA_RATE = 13, 13284 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MEAN_DATA_RATE = 14, 13285 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_PEAK_DATA_RATE = 15, 13286 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_BURST_SIZE = 16, 13287 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MINIMUM_PHY_RATE = 17, 13288 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_SURPLUS_BANDWIDTH_ALLOWANCE = 18, 13289 13290 /* keep last */ 13291 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST, 13292 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_MAX = 13293 QCA_WLAN_VENDOR_ATTR_CONFIG_TSPEC_AFTER_LAST - 1, 13294 }; 13295 13296 /** 13297 * enum qca_wlan_vendor_oci_override_frame_type - OCI override frame type 13298 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ: SA Query Request frame 13299 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP: SA Query Response frame 13300 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ: FT Reassociation Request 13301 * frame 13302 * @QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ: FILS Reassociation 13303 * Request frame. 13304 */ 13305 enum qca_wlan_vendor_oci_override_frame_type { 13306 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_REQ = 1, 13307 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_SA_QUERY_RESP = 2, 13308 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FT_REASSOC_REQ = 3, 13309 QCA_WLAN_VENDOR_OCI_OVERRIDE_FRAME_FILS_REASSOC_REQ = 4, 13310 }; 13311 13312 /** 13313 * enum qca_wlan_vendor_attr_oci_override: Represents attributes for 13314 * OCI override request. These attributes are used inside nested attribute 13315 * %QCA_WLAN_VENDOR_ATTR_WIFI_TEST_CONFIG_OCI_OVERRIDE in QCA vendor command 13316 * %QCA_NL80211_VENDOR_SUBCMD_WIFI_TEST_CONFIGURATION. 13317 * 13318 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE: Required attribute, u8. 13319 * Values from enum qca_wlan_vendor_oci_override_frame_type used in this 13320 * attribute to specify the frame type in which the OCI is to be overridden. 13321 * 13322 * @QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY: Required (u32) 13323 * OCI frequency (in MHz) to override in the specified frame type. 13324 */ 13325 enum qca_wlan_vendor_attr_oci_override { 13326 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_INVALID = 0, 13327 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FRAME_TYPE = 1, 13328 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_FREQUENCY = 2, 13329 13330 /* keep last */ 13331 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST, 13332 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_MAX = 13333 QCA_WLAN_VENDOR_ATTR_OCI_OVERRIDE_AFTER_LAST - 1, 13334 }; 13335 13336 /** 13337 * enum qca_wlan_medium_assess_type - Type of medium assess request 13338 * 13339 * Values for %QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE. 13340 */ 13341 enum qca_wlan_medium_assess_type { 13342 QCA_WLAN_MEDIUM_ASSESS_CCA = 0, 13343 QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT = 1, 13344 }; 13345 13346 /** 13347 * enum qca_wlan_vendor_attr_medium_assess - Attributes used by 13348 * %QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS vendor command. 13349 * 13350 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE: 13351 * u8 attribute. Mandatory in all kinds of medium assess requests/responses. 13352 * Specify the type of medium assess request and indicate its type in response. 13353 * Possible values are defined in enum qca_wlan_medium_assess_type. 13354 * 13355 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD: 13356 * u32 attribute. Mandatory in CCA request. 13357 * Specify the assessment period in terms of seconds. Assessment result will be 13358 * sent as the response to the CCA request after the assessment period. 13359 * 13360 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT: 13361 * u32 attribute. Mandatory in response to CCA request. 13362 * Total timer tick count of the assessment cycle. 13363 * 13364 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT: 13365 * u32 attribute. Mandatory in response to CCA request. 13366 * Timer tick count of idle time in the assessment cycle. 13367 * 13368 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT: 13369 * u32 attribute. Mandatory in response to CCA request. 13370 * Timer tick count of Intra BSS traffic RX time in the assessment cycle. 13371 * 13372 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT: 13373 * u32 attribute. Mandatory in response to CCA request. 13374 * Timer tick count of Overlapping BSS traffic RX time in the assessment cycle. 13375 * 13376 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI: 13377 * s32 attribute. Mandatory in response to CCA request. 13378 * Maximum RSSI of Intra BSS traffic in the assessment cycle. 13379 * 13380 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI: 13381 * s32 attribute. Mandatory in response to CCA request. 13382 * Minimum RSSI of Intra BSS traffic in the assessment cycle. 13383 * 13384 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE: 13385 * u8 attribute. Mandatory in congestion report request. 13386 * 1-enable 0-disable. 13387 * 13388 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD: 13389 * u8 attribute. Mandatory in congestion report enable request and will be 13390 * ignored if present in congestion report disable request. Possible values are 13391 * 0-100. A vendor event QCA_NL80211_VENDOR_SUBCMD_MEDIUM_ASSESS with the type 13392 * QCA_WLAN_MEDIUM_ASSESS_CONGESTION_REPORT will be sent to userspace if 13393 * congestion percentage reaches the configured threshold. 13394 * 13395 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL: 13396 * u8 attribute. Optional in congestion report enable request and will be 13397 * ignored if present in congestion report disable request. 13398 * Specify the interval of congestion report event in terms of seconds. Possible 13399 * values are 1-255. Default value 1 will be used if this attribute is omitted 13400 * or using invalid values. 13401 * 13402 * @QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE: 13403 * u8 attribute. Mandatory in congestion report event. 13404 * Indicate the actual congestion percentage. Possible values are 0-100. 13405 */ 13406 enum qca_wlan_vendor_attr_medium_assess { 13407 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_INVALID = 0, 13408 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TYPE = 1, 13409 13410 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_PERIOD = 2, 13411 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_TOTAL_CYCLE_COUNT = 3, 13412 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IDLE_COUNT = 4, 13413 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_IBSS_RX_COUNT = 5, 13414 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_OBSS_RX_COUNT = 6, 13415 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX_IBSS_RSSI = 7, 13416 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MIN_IBSS_RSSI = 8, 13417 13418 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_ENABLE = 9, 13419 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_THRESHOLD = 10, 13420 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_REPORT_INTERVAL = 11, 13421 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_CONGESTION_PERCENTAGE = 12, 13422 13423 /* keep last */ 13424 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST, 13425 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_MAX = 13426 QCA_WLAN_VENDOR_ATTR_MEDIUM_ASSESS_AFTER_LAST - 1, 13427 }; 13428 13429 /** 13430 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_status - Defines attributes 13431 * used by QCA_NL80211_VENDOR_SUBCMD_MBSSID_TX_VDEV_STATUS vendor command. 13432 * 13433 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL: 13434 * u8 attribute. Notify the TX VDEV status. Possible values 0, 1 13435 * belonging to MBSSID/EMA_AP configuration. 0 means Non-Tx VDEV, 13436 * 1 means Tx VDEV. Mandatory attribute for all MBSSID VDEV status events. 13437 * 13438 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT: 13439 * u8 attribute, required. 1 means Tx VDEV up event. 0 means Tx VDEV down event. 13440 * 13441 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID: 13442 * u8 attribute, required. Indicates group id of Tx VDEV. 13443 * 13444 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO: 13445 * Nested attribute. This attribute shall be used by the driver to send 13446 * group information. The attributes defined in enum 13447 * qca_wlan_vendor_attr_mbssid_tx_vdev_group_info 13448 * are nested in this attribute. 13449 */ 13450 enum qca_wlan_vendor_attr_mbssid_tx_vdev_status { 13451 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_INVALID = 0, 13452 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_VAL = 1, 13453 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_EVENT = 2, 13454 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_ID = 3, 13455 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO = 4, 13456 13457 /* keep last */ 13458 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST, 13459 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_MAX = 13460 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_STATUS_AFTER_LAST - 1, 13461 }; 13462 13463 /** 13464 * enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info - Attributes used 13465 * inside %QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO nested attribute. 13466 * 13467 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX: 13468 * u32 attribute, required. Contains interface index. 13469 * 13470 * @QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS: 13471 * u8 attribute, required. 0 - means vdev is in down state. 13472 * 1 - means vdev is in up state. 13473 */ 13474 enum qca_wlan_vendor_attr_mbssid_tx_vdev_group_info { 13475 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_INVALID = 0, 13476 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_IF_INDEX = 1, 13477 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_STATUS = 2, 13478 13479 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_AFTER_LAST, 13480 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO_MAX = 13481 QCA_WLAN_VENDOR_ATTR_MBSSID_TX_VDEV_GROUP_INFO - 1, 13482 }; 13483 13484 /** 13485 * enum qca_wlan_concurrent_sta_policy_config - Concurrent STA policies 13486 * 13487 * @QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY: Preference to the primary 13488 * STA interface has to be given while selecting the connection policies 13489 * (e.g., BSSID, band, TX/RX chains, etc.) for the subsequent STA interface. 13490 * An interface is set as primary through the attribute 13491 * QCA_WLAN_VENDOR_ATTR_CONFIG_CONCURRENT_STA_PRIMARY. This policy is not 13492 * applicable if the primary interface has not been set earlier. 13493 * 13494 * The intention is not to downgrade the primary STA performance, such as: 13495 * - Do not reduce the number of TX/RX chains of primary connection. 13496 * - Do not optimize DBS vs. MCC/SCC, if DBS ends up reducing the number of 13497 * chains. 13498 * - If using MCC, should set the MCC duty cycle of the primary connection to 13499 * be higher than the secondary connection. 13500 * 13501 * @QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED: The connection policies for the 13502 * subsequent STA connection shall be chosen to balance with the existing 13503 * concurrent STA's performance. 13504 * Such as 13505 * - Can choose MCC or DBS mode depending on the MCC efficiency and hardware 13506 * capability. 13507 * - If using MCC, set the MCC duty cycle of the primary connection to be equal 13508 * to the secondary. 13509 * - Prefer BSSID candidates which will help provide the best "overall" 13510 * performance for all the STA connections. 13511 */ 13512 enum qca_wlan_concurrent_sta_policy_config { 13513 QCA_WLAN_CONCURRENT_STA_POLICY_PREFER_PRIMARY = 0, 13514 QCA_WLAN_CONCURRENT_STA_POLICY_UNBIASED = 1, 13515 }; 13516 13517 /** 13518 * enum qca_wlan_concurrent_ap_policy_config - Concurrent AP policies 13519 * 13520 * @QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED: No specific policy for this AP 13521 * interface. 13522 * 13523 * @QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO: Select interface concurrencies 13524 * to meet gaming audio latency requirements. 13525 * This policy is used only when the driver advertises support for 13526 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN. 13527 * 13528 * @QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING: Select interface 13529 * concurrencies to meet lossless audio streaming requirements. 13530 * This policy is used only when the driver advertises support for 13531 * QCA_WLAN_VENDOR_FEATURE_ENHANCED_AUDIO_EXPERIENCE_OVER_WLAN. 13532 * 13533 * @QCA_WLAN_CONCURRENT_AP_POLICY_XR: Select interface concurrencies to meet 13534 * XR (eXtended Reality) requirements. 13535 */ 13536 enum qca_wlan_concurrent_ap_policy_config { 13537 QCA_WLAN_CONCURRENT_AP_POLICY_UNSPECIFIED = 0, 13538 QCA_WLAN_CONCURRENT_AP_POLICY_GAMING_AUDIO = 1, 13539 QCA_WLAN_CONCURRENT_AP_POLICY_LOSSLESS_AUDIO_STREAMING = 2, 13540 QCA_WLAN_CONCURRENT_AP_POLICY_XR = 3, 13541 }; 13542 13543 /** 13544 * enum qca_wlan_vendor_attr_concurrent_policy - Defines attributes 13545 * used by QCA_NL80211_VENDOR_SUBCMD_CONCURRENT_POLICY vendor command. 13546 * 13547 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG: 13548 * u8 attribute. Configures the concurrent STA policy configuration. 13549 * Possible values are defined in enum qca_wlan_concurrent_sta_policy_config. 13550 13551 * @QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG: 13552 * u8 attribute. Configures the concurrent AP policy configuration. 13553 * Possible values are defined in enum qca_wlan_concurrent_ap_policy_config. 13554 */ 13555 enum qca_wlan_vendor_attr_concurrent_policy { 13556 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_INVALID = 0, 13557 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG = 1, 13558 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AP_CONFIG = 2, 13559 13560 /* keep last */ 13561 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST, 13562 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX = 13563 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_AFTER_LAST - 1, 13564 13565 }; 13566 13567 /* Compatibility defines for previously used enum 13568 * qca_wlan_vendor_attr_concurrent_policy names. These values should not be used 13569 * in any new implementation. 13570 */ 13571 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_CONFIG \ 13572 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_STA_CONFIG 13573 #define QCA_WLAN_VENDOR_ATTR_CONCURRENT_STA_POLICY_MAX \ 13574 QCA_WLAN_VENDOR_ATTR_CONCURRENT_POLICY_MAX 13575 #define qca_wlan_vendor_attr_concurrent_sta_policy \ 13576 qca_wlan_vendor_attr_concurrent_policy 13577 13578 /** 13579 * enum qca_sta_connect_fail_reason_codes - Defines values carried 13580 * by QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_CONNECT_FAIL_REASON_CODE vendor 13581 * attribute. 13582 * @QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND: No Probe Response frame received 13583 * for unicast Probe Request frame. 13584 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL: STA failed to send auth request. 13585 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED: AP didn't send ACK for 13586 * auth request. 13587 * @QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED: Auth response is not 13588 * received from AP. 13589 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL: STA failed to send 13590 * Association Request frame. 13591 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED: AP didn't send ACK for 13592 * Association Request frame. 13593 * @QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED: Association Response 13594 * frame is not received from AP. 13595 */ 13596 enum qca_sta_connect_fail_reason_codes { 13597 QCA_STA_CONNECT_FAIL_REASON_NO_BSS_FOUND = 1, 13598 QCA_STA_CONNECT_FAIL_REASON_AUTH_TX_FAIL = 2, 13599 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_ACK_RECEIVED = 3, 13600 QCA_STA_CONNECT_FAIL_REASON_AUTH_NO_RESP_RECEIVED = 4, 13601 QCA_STA_CONNECT_FAIL_REASON_ASSOC_REQ_TX_FAIL = 5, 13602 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_ACK_RECEIVED = 6, 13603 QCA_STA_CONNECT_FAIL_REASON_ASSOC_NO_RESP_RECEIVED = 7, 13604 }; 13605 13606 /** 13607 * enum qca_wlan_vendor_usable_channels_filter - Bitmask of different 13608 * filters defined in this enum are used in attribute 13609 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK. 13610 * 13611 * @QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX: When this bit is set, the driver 13612 * shall filter the channels which are not usable because of coexistence with 13613 * cellular radio. 13614 * @QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY: When this bit is set, the driver 13615 * shall filter the channels which are not usable because of existing active 13616 * interfaces in the driver and will result in Multi Channel Concurrency, etc. 13617 * 13618 */ 13619 enum qca_wlan_vendor_usable_channels_filter { 13620 QCA_WLAN_VENDOR_FILTER_CELLULAR_COEX = 0, 13621 QCA_WLAN_VENDOR_FILTER_WLAN_CONCURRENCY = 1, 13622 }; 13623 13624 /** 13625 * enum qca_wlan_vendor_attr_chan_info - Attributes used inside 13626 * %QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO nested attribute. 13627 * 13628 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ: 13629 * u32 attribute, required. Indicates the center frequency of the primary 13630 * channel in MHz. 13631 * 13632 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ: 13633 * u32 attribute. Indicates the center frequency of the primary segment of the 13634 * channel in MHz. This attribute is required when reporting 40 MHz, 80 MHz, 13635 * 160 MHz, and 320 MHz channels. 13636 * 13637 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ: 13638 * u32 attribute. Indicates the center frequency of the secondary segment of 13639 * 80+80 channel in MHz. This attribute is required only when 13640 * QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH is set to NL80211_CHAN_WIDTH_80P80. 13641 * 13642 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH: 13643 * u32 attribute, required. Indicates the bandwidth of the channel, possible 13644 * values are defined in enum nl80211_chan_width. 13645 * 13646 * @QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK: 13647 * u32 attribute, required. Indicates all the interface types for which this 13648 * channel is usable. This attribute encapsulates bitmasks of interface types 13649 * defined in enum nl80211_iftype. 13650 * 13651 */ 13652 enum qca_wlan_vendor_attr_chan_info { 13653 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_INVALID = 0, 13654 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_PRIMARY_FREQ = 1, 13655 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG0_FREQ = 2, 13656 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_SEG1_FREQ = 3, 13657 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_BANDWIDTH = 4, 13658 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_IFACE_MODE_MASK = 5, 13659 13660 /* keep last */ 13661 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST, 13662 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_MAX = 13663 QCA_WLAN_VENDOR_ATTR_CHAN_INFO_AFTER_LAST - 1, 13664 }; 13665 13666 /** 13667 * enum qca_wlan_vendor_attr_usable_channels - Attributes used by 13668 * %QCA_NL80211_VENDOR_SUBCMD_USABLE_CHANNELS vendor command. 13669 * 13670 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK: 13671 * u32 attribute. Indicates the bands from which the channels should be reported 13672 * in response. This attribute encapsulates bit masks of bands defined in enum 13673 * nl80211_band. Optional attribute, if not present in the request the driver 13674 * shall return channels from all supported bands. 13675 * 13676 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK: 13677 * u32 attribute. Indicates all the interface types for which the usable 13678 * channels information is requested. This attribute encapsulates bitmasks of 13679 * interface types defined in enum nl80211_iftype. Optional attribute, if not 13680 * present in the request the driver shall send information of all supported 13681 * interface modes. 13682 * 13683 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK: 13684 * u32 attribute. This attribute carries information of all filters that shall 13685 * be applied while populating usable channels information by the driver. This 13686 * attribute carries bit masks of different filters defined in enum 13687 * qca_wlan_vendor_usable_channels_filter. Optional attribute, if not present 13688 * in the request the driver shall send information of channels without applying 13689 * any of the filters that can be configured through this attribute. 13690 * 13691 * @QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO: 13692 * Nested attribute. This attribute shall be used by the driver to send 13693 * usability information of each channel. The attributes defined in enum 13694 * qca_wlan_vendor_attr_chan_info are used inside this attribute. 13695 */ 13696 enum qca_wlan_vendor_attr_usable_channels { 13697 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_INVALID = 0, 13698 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_BAND_MASK = 1, 13699 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_IFACE_MODE_MASK = 2, 13700 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_FILTER_MASK = 3, 13701 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_CHAN_INFO = 4, 13702 13703 /* keep last */ 13704 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST, 13705 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_MAX = 13706 QCA_WLAN_VENDOR_ATTR_USABLE_CHANNELS_AFTER_LAST - 1, 13707 }; 13708 13709 /** 13710 * enum qca_wlan_vendor_attr_radar_history: Used by the vendor command 13711 * QCA_NL80211_VENDOR_SUBCMD_GET_RADAR_HISTORY to get DFS radar history. 13712 * 13713 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES: Nested attribute to carry 13714 * the list of radar history entries. 13715 * Each entry contains freq, timestamp, and radar signal detect flag. 13716 * The driver shall add an entry when CAC has finished, or radar signal 13717 * has been detected post AP beaconing. The driver shall maintain at least 13718 * 8 entries in order to save CAC result for a 160 MHz channel. 13719 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ: u32 attribute. 13720 * Channel frequency in MHz. 13721 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP: u64 nanoseconds. 13722 * CLOCK_BOOTTIME timestamp when this entry is updated due to CAC 13723 * or radar detection. 13724 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED: NLA_FLAG attribute. 13725 * This flag indicates radar signal has been detected. 13726 * @QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD: Attribute used for padding for 13727 * 64-bit alignment. 13728 */ 13729 enum qca_wlan_vendor_attr_radar_history { 13730 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_INVALID = 0, 13731 13732 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_ENTRIES = 1, 13733 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_FREQ = 2, 13734 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_TIMESTAMP = 3, 13735 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_DETECTED = 4, 13736 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_PAD = 5, 13737 13738 /* keep last */ 13739 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST, 13740 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_MAX = 13741 QCA_WLAN_VENDOR_ATTR_RADAR_HISTORY_LAST - 1, 13742 }; 13743 13744 /** 13745 * enum qca_wlan_vendor_mcc_quota_type: MCC channel time quota type 13746 * 13747 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR: In the event, it indicates that the 13748 * target exited MCC state and cleared the quota information. In the 13749 * command it clears MCC quota setting and restores adaptive scheduling. 13750 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED: Channel time quota is fixed and 13751 * will not be changed. 13752 * This quota type is present in command/event. 13753 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC: Channel time quota is dynamic 13754 * and the target may change the quota based on the data activity. 13755 * This quota type is only present in event. 13756 * @QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY: Channel time quota is optimized 13757 * by the target for low latency. 13758 * This quota type is only present in command. 13759 */ 13760 enum qca_wlan_vendor_mcc_quota_type { 13761 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_CLEAR = 0, 13762 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_FIXED = 1, 13763 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_DYNAMIC = 2, 13764 QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY = 3, 13765 }; 13766 13767 /** 13768 * enum qca_wlan_vendor_attr_mcc_quota: Used by the vendor event 13769 * QCA_NL80211_VENDOR_SUBCMD_MCC_QUOTA to indicate MCC channel 13770 * quota information or as a command to set the required MCC quota for an 13771 * interface. 13772 * 13773 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE: u32 attribute. 13774 * The type is defined in enum qca_wlan_vendor_mcc_quota_type. 13775 * In a command this specifies the MCC quota type to be set for the interface. 13776 * In an event this provides the current quota type in force. 13777 * This is required in a command and an event. 13778 * 13779 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES: Nested attribute to carry 13780 * the list of channel quota entries. 13781 * In an event each entry contains the frequency and respective time quota for 13782 * all the MCC interfaces. 13783 * In a command it specifies the interface index and respective time quota. 13784 * In a command only one entry (ifindex, quota pair) may be specified. 13785 * 13786 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ: u32 attribute. 13787 * Channel frequency in MHz. This is present only in an event. 13788 * 13789 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE: u32 attribute. 13790 * Channel time quota expressed as percentage. 13791 * This is present in an event and a command. 13792 * In an command, the user shall specify the quota to be allocated for the 13793 * interface represented by %QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX. 13794 * In an event this provides the existing quota for the channel. 13795 * 13796 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX: u32 attribute. 13797 * Specifies the interface index (netdev) for which the corresponding 13798 * configurations are applied. This is required in a command only. Only one 13799 * interface index may be specified. If not specified, the configuration is 13800 * rejected. 13801 * 13802 * @QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE 13803 * 8-bit unsigned value to enable/disable Multi-Channel Concurrency 13804 * low latency mode. The firmware will do optimization for low 13805 * latency in Multi-Channel concurrency state if enabled. And all existing 13806 * user quota setting will be overwritten by the target. 13807 * 0 - disable(default), 1 - enable. 13808 * It is only present in a command with quota type of 13809 * QCA_WLAN_VENDOR_MCC_QUOTA_TYPE_LOW_LATENCY. 13810 */ 13811 enum qca_wlan_vendor_attr_mcc_quota { 13812 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_INVALID = 0, 13813 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_TYPE = 1, 13814 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_ENTRIES = 2, 13815 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_FREQ = 3, 13816 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_CHAN_TIME_PERCENTAGE = 4, 13817 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_IFINDEX = 5, 13818 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LOW_LATENCY_MODE_ENABLE = 6, 13819 13820 /* keep last */ 13821 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST, 13822 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_MAX = 13823 QCA_WLAN_VENDOR_ATTR_MCC_QUOTA_LAST - 1, 13824 }; 13825 13826 /** 13827 * enum qca_wlan_roam_stats_invoke_reason - Roam invoke reason. These values 13828 * are used by the attribute 13829 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON. 13830 * 13831 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED: Default value when target 13832 * invoke roam. 13833 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE: Neighbor unreachable 13834 * detection failed when the roam trigger. 13835 * @QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE: Invoke from user space. 13836 */ 13837 13838 enum qca_wlan_roam_stats_invoke_reason { 13839 QCA_WLAN_ROAM_STATS_INVOKE_REASON_UNDEFINED = 0, 13840 QCA_WLAN_ROAM_STATS_INVOKE_REASON_NUD_FAILURE = 1, 13841 QCA_WLAN_ROAM_STATS_INVOKE_REASON_USER_SPACE = 2, 13842 }; 13843 13844 /** 13845 * enum qca_wlan_roam_stats_tx_failures_reason - Roam TX failures reason. These 13846 * values are used by the attribute 13847 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON. 13848 * 13849 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED: Default value when 13850 * roam by kickout. 13851 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY: Excessive retry when roam 13852 * trigger by kickout. 13853 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY: Station inactivity when 13854 * roam trigger by kickout. 13855 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT: IBSS disconnect when 13856 * roam trigger by kickout. 13857 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT: TDLS peer has 13858 * disappeared, and all TX is failing when roam trigger by kickout. 13859 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT: SA query process 13860 * timeout when roam trigger by kickout. 13861 * @QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT: Directly connected 13862 * peer has roamed to a repeater. 13863 */ 13864 enum qca_wlan_roam_stats_tx_failures_reason { 13865 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_UNSPECIFIED = 0, 13866 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_XRETRY = 1, 13867 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_INACTIVITY = 2, 13868 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_IBSS_DISCONNECT = 3, 13869 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_TDLS_DISCONNECT = 4, 13870 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_SA_QUERY_TIMEOUT = 5, 13871 QCA_WLAN_ROAM_STATS_KICKOUT_REASON_ROAMING_EVENT = 6, 13872 }; 13873 13874 /** 13875 * enum qca_wlan_roam_stats_abort_reason - Roam abort reason. These values 13876 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON. 13877 * 13878 * @QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED: Target did not specify the 13879 * detailed reason for roam scan being aborted. 13880 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH: Roam scan is not 13881 * started due to high data RSSI during LOW-RSSI roaming. 13882 * @QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD: Roam scan is not 13883 * started due to good link speed during LOW-RSSI roaming. 13884 * @QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH: Roam scan is not started 13885 * due to high data RSSI during background roaming. 13886 * @QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD: Roam scan is not 13887 * started due to high beacon RSSI during background roaming 13888 */ 13889 enum qca_wlan_roam_stats_abort_reason { 13890 QCA_WLAN_ROAM_STATS_ABORT_UNSPECIFIED = 0, 13891 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_DATA_RSSI_HIGH = 1, 13892 QCA_WLAN_ROAM_STATS_ABORT_LOWRSSI_LINK_SPEED_GOOD = 2, 13893 QCA_WLAN_ROAM_STATS_ABORT_BG_DATA_RSSI_HIGH = 3, 13894 QCA_WLAN_ROAM_STATS_ABORT_BG_RSSI_ABOVE_THRESHOLD = 4, 13895 }; 13896 13897 /** 13898 * enum qca_wlan_roam_stats_scan_type - Roam scan type define. 13899 * These values are used by the attribute 13900 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE. 13901 * 13902 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL: Partial channel scan 13903 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL: Full channel scan 13904 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN: No roam scan was triggered. 13905 * This is generally used in BTM events to indicate BTM frame exchange logs. 13906 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ: Higher band roam scan 13907 * from 2.4 GHz to 5 GHz or 6 GHz 13908 * @QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ: Higher band roam scan from 13909 * 5 GHz to 6 GHz 13910 */ 13911 enum qca_wlan_roam_stats_scan_type { 13912 QCA_WLAN_ROAM_STATS_SCAN_TYPE_PARTIAL = 0, 13913 QCA_WLAN_ROAM_STATS_SCAN_TYPE_FULL = 1, 13914 QCA_WLAN_ROAM_STATS_SCAN_TYPE_NO_SCAN = 2, 13915 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_5GHZ_6GHZ = 3, 13916 QCA_WLAN_ROAM_STATS_SCAN_TYPE_HIGHER_BAND_6GHZ = 4, 13917 }; 13918 13919 /** 13920 * enum qca_wlan_roam_stats_scan_dwell_type - Roam scan dwell type. 13921 * These values are used by the attribute 13922 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE. 13923 * 13924 * @QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED: Target did not specify the 13925 * detailed roam scan type. 13926 * @QCA_WLAN_ROAM_STATS_DWELL_ACTIVE_TYPE: Active scan during roam. 13927 * @QCA_WLAN_ROAM_STATS_DWELL_PASSIVE_TYPE: Passive scan during roam. 13928 */ 13929 enum qca_wlan_roam_stats_scan_dwell_type { 13930 QCA_WLAN_ROAM_STATS_DWELL_TYPE_UNSPECIFIED = 0, 13931 QCA_WLAN_ROAM_STATS_DWELL_TYPE_ACTIVE = 1, 13932 QCA_WLAN_ROAM_STATS_DWELL_TYPE_PASSIVE = 2, 13933 }; 13934 13935 /** 13936 * enum qca_wlan_vendor_attr_roam_stats_scan_chan_info - Attributes used inside 13937 * the %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO nested attribute. 13938 */ 13939 enum qca_wlan_vendor_attr_roam_stats_scan_chan_info { 13940 /* 32-bit unsigned value to indicate center frequency of the primary 13941 * channel in MHz for each roam scan channel. 13942 */ 13943 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHANNEL_FREQ = 1, 13944 /* 8-bit unsigned value to indicate channel scan type for each 13945 * roam scan channel, values in qca_wlan_roam_stats_scan_dwell_type. 13946 */ 13947 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_DWELL_TYPE = 2, 13948 /* 32-bit unsigned value to indicate maximum scan time in milliseconds 13949 * for each roam scan channel. 13950 */ 13951 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX_DWELL_TIME = 3, 13952 13953 /* keep last */ 13954 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST, 13955 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_FRAME_MAX = 13956 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_INFO_AFTER_LAST - 1, 13957 }; 13958 13959 /** 13960 * enum qca_wlan_roam_stats_frame_subtype - Roam frame subtypes. These values 13961 * are used by the attribute %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE. 13962 * 13963 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP: Authentication Response frame 13964 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP: Reassociation Response frame 13965 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1: EAPOL-Key M1 frame 13966 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2: EAPOL-Key M2 frame 13967 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3: EAPOL-Key M3 frame 13968 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4: EAPOL-Key M4 frame 13969 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1: EAPOL-Key GTK M1 frame 13970 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2: EAPOL-Key GTK M2 frame 13971 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ: Authentication Request frame 13972 * @QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ: Reassociation Request frame 13973 */ 13974 enum qca_wlan_roam_stats_frame_subtype { 13975 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP = 1, 13976 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP = 2, 13977 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M1 = 3, 13978 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M2 = 4, 13979 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M3 = 5, 13980 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_M4 = 6, 13981 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M1 = 7, 13982 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_EAPOL_GTK_M2 = 8, 13983 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_REQ = 9, 13984 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_REQ = 10, 13985 }; 13986 13987 /* Compatibility defines for previously used names. 13988 * These values should not be used in any new implementation. 13989 */ 13990 #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_PREAUTH \ 13991 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_AUTH_RESP 13992 #define QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC \ 13993 QCA_WLAN_ROAM_STATS_FRAME_SUBTYPE_REASSOC_RESP 13994 13995 /** 13996 * enum roam_frame_status - Specifies the valid values the vendor roam frame 13997 * attribute QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS can take. 13998 * 13999 * @QCA_WLAN_ROAM_FRAME_STATUS_SUCCESS: It indicates the roam frame was 14000 * sent or received successfully. 14001 * @QCA_WLAN_ROAM_FRAME_STATUS_FAIL: It indicates the roam frame sending or 14002 * receiving failed. 14003 */ 14004 enum qca_wlan_roam_stats_frame_status { 14005 QCA_WLAN_ROAM_STATS_FRAME_STATUS_SUCCESS = 0, 14006 QCA_WLAN_ROAM_STATS_FRAME_STATUS_FAIL = 1, 14007 }; 14008 14009 /** 14010 * enum qca_wlan_vendor_attr_roam_stats_frame_info - Attributes used within the 14011 * %QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO nested attribute. 14012 */ 14013 enum qca_wlan_vendor_attr_roam_stats_frame_info { 14014 /* 8-bit unsigned value to indicate the frame subtype during 14015 * roaming, one of the values in qca_wlan_roam_stats_frame_subtype. 14016 */ 14017 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_SUBTYPE = 1, 14018 /* 8-bit unsigned value to indicate the frame is successful or failed 14019 * during roaming, one of the values in 14020 * qca_wlan_roam_stats_frame_status. 14021 */ 14022 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_STATUS = 2, 14023 /* 64-bit unsigned value to indicate the timestamp for frame of 14024 * preauthentication/reassociation/EAPOL-M1/EAPOL-M2/EAPOL-M3/EAPOL-M4 14025 * when sent or received during roaming, timestamp in milliseconds 14026 * from system boot. 14027 */ 14028 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_TIMESTAMP = 3, 14029 /* Attribute used for padding for 64-bit alignment */ 14030 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_PAD = 4, 14031 /* This attribute indicates a 6-byte MAC address representing 14032 * the BSSID of the AP. 14033 * For non-MLO scenario, it indicates the AP BSSID. 14034 * For MLO scenario, it indicates the AP BSSID which may be the primary 14035 * link BSSID or a nonprimary link BSSID. 14036 */ 14037 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_BSSID = 5, 14038 14039 /* keep last */ 14040 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST, 14041 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_MAX = 14042 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO_AFTER_LAST - 1, 14043 }; 14044 14045 /** 14046 * enum qca_wlan_vendor_attr_roam_stats_info - Used by the attribute 14047 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO. 14048 */ 14049 enum qca_wlan_vendor_attr_roam_stats_info { 14050 /* 64-bit unsigned value to indicate the timestamp when roam was 14051 * triggered by the firmware, timestamp in milliseconds from system 14052 * boot. 14053 */ 14054 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_TRIGGER_TIMESTAMP = 1, 14055 /* 32-bit unsigned value to indicate the roam trigger reason for the 14056 * last roaming attempted by the firmware. This can be queried either 14057 * in a connected state or disconnected state. The values of this 14058 * attribute represent the roam trigger reason codes, which 14059 * are defined in enum qca_roam_reason. 14060 */ 14061 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TRIGGER_REASON = 2, 14062 /* 8-bit unsigned value to indicate percentage of packets for which 14063 * the RX rate is lower than the RX rate threshold in total RX packets, 14064 * used for roaming trigger by per. 14065 */ 14066 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_RXRATE_THRESHOLD_PERCENT = 3, 14067 /* 8-bit unsigned value to indicate percentage of packets for which 14068 * the TX rate is lower than TX rate threshold in total TX packets, 14069 * used for roaming trigger by per. 14070 */ 14071 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PER_TXRATE_THRESHOLD_PERCENT = 4, 14072 /* 32-bit unsigned value to indicate final beacon miss count for 14073 * trigger reason of beacon miss. 14074 */ 14075 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FINAL_BMISS_CNT = 5, 14076 /* 32-bit unsigned value to indicate consecutive beacon miss count 14077 * for trigger reason of beacon miss. 14078 */ 14079 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONSECUTIVE_BMISS_CNT = 6, 14080 /* 8-bit unsigned value to indicate QOS-NULL TX status for trigger 14081 * reason of beacon miss, 0 - success, 1 - fail. 14082 * If QOS-NULL TX status is successful, beacon miss final count and 14083 * consecutive beacon miss count will be reset to zero, and roam will 14084 * not be triggered. If QOS-NULL TX status is failed, beacon miss final 14085 * count and consecutive beacon miss count continue to calculate until 14086 * roaming trigger by beacon miss. 14087 */ 14088 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BMISS_QOS_NULL_SUCCESS = 7, 14089 /* 8-bit signed value to indicate connected AP RSSI in dBm 14090 * for trigger reason of poor RSSI. 14091 */ 14092 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_CURRENT_RSSI = 8, 14093 /* 8-bit signed value to indicate RSSI threshold value in dBm 14094 * for trigger reason of poor RSSI. 14095 */ 14096 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_ROAM_RSSI_THRESHOLD = 9, 14097 /* 8-bit unsigned value to indicate RX link speed status 14098 * for trigger reason of poor RSSI, 0 - good link speed, 14099 * 1 - bad link speed. 14100 */ 14101 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_POOR_RSSI_RX_LINKSPEED_STATUS = 10, 14102 /* 8-bit signed value to indicate connected AP RSSI in dBm 14103 * for trigger reason of better RSSI. 14104 */ 14105 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_CURRENT_RSSI = 11, 14106 /* 8-bit signed value to indicate RSSI threshold value in dBm 14107 * for trigger reason of better RSSI. 14108 */ 14109 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BETTER_RSSI_HIGH_RSSI_THRESHOLD = 12, 14110 /* 32-bit unsigned value to indicate RX throughput in bytes per second 14111 * for trigger reason of congestion. 14112 */ 14113 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_RX_TPUT = 13, 14114 /* 32-bit unsigned value to indicate TX throughput in bytes per second 14115 * for trigger reason of congestion. 14116 */ 14117 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_TX_TPUT = 14, 14118 /* 8-bit unsigned value to indicate roamable AP count 14119 * for trigger reason of congestion. 14120 */ 14121 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CONGESTION_ROAMABLE_CNT = 15, 14122 /* 8-bit unsigned value to indicate invoke reason, one of the values 14123 * defined in qca_wlan_roam_stats_invoke_reason. 14124 */ 14125 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_USER_TRIGGER_INVOKE_REASON = 16, 14126 /* 8-bit unsigned value to indicate request mode for trigger reason 14127 * of BTM, values are defined in IEEE Std 802.11-2020, 9.6.13.9. 14128 */ 14129 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQUEST_MODE = 17, 14130 /* 32-bit unsigned value to indicate disassociate time in milliseconds 14131 * for trigger reason of BTM. 14132 */ 14133 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_DISASSOC_IMMINENT_TIME = 18, 14134 /* 32-bit unsigned value to indicate preferred candidate list valid 14135 * interval in milliseconds for trigger reason of BTM. 14136 */ 14137 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_VALID_INTERNAL = 19, 14138 /* 8-bit unsigned value to indicate the number of preferred 14139 * candidates for trigger reason of BTM. 14140 */ 14141 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_CANDIDATE_LIST_CNT = 20, 14142 /* 8-bit unsigned value to indicate response status for trigger 14143 * reason of BTM, values are defined in IEEE Std 802.11-2020, 14144 * Table 9-428 (BTM status code definitions). 14145 */ 14146 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_RESPONSE_STATUS_CODE = 21, 14147 /* 32-bit unsigned value to indicate BSS termination timeout value 14148 * in milliseconds for trigger reason of BTM. 14149 */ 14150 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_BSS_TERMINATION_TIMEOUT = 22, 14151 /* 32-bit unsigned value to indicate MBO associate retry timeout 14152 * value in milliseconds for trigger reason of BTM. 14153 */ 14154 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_MBO_ASSOC_RETRY_TIMEOUT = 23, 14155 /* 8-bit unsigned value to indicate dialog token number 14156 * for trigger reason of BTM. 14157 */ 14158 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BTM_REQ_DIALOG_TOKEN = 24, 14159 /* 8-bit unsigned value to indicate percentage of connected AP 14160 * channel congestion utilization for trigger reason of BSS load. 14161 */ 14162 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BSS_CU_LOAD = 25, 14163 /* 8-bit unsigned value to indicate disconnection type 14164 * for trigger reason of disconnection. 1 - Deauthentication, 14165 * 2 - Disassociation. 14166 */ 14167 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_TYPE = 26, 14168 /* 16-bit unsigned value to indicate deauthentication or disassociation 14169 * reason for trigger reason of disconnection, values are defined 14170 * in IEEE Std 802.11-2020, Table 9-49 (Reason codes). 14171 */ 14172 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DISCONNECTION_REASON = 27, 14173 /* 32-bit unsigned value to indicate milliseconds of roam scan 14174 * periodicity when needing to roam to find a better AP for trigger 14175 * reason of periodic timer. 14176 */ 14177 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PERIODIC_TIMER_MS = 28, 14178 /* 8-bit signed value to indicate connected AP RSSI in dBm for 14179 * trigger reason of background scan. 14180 */ 14181 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_CURRENT_RSSI = 29, 14182 /* 8-bit signed value to indicate data RSSI in dBm for trigger reason 14183 * of background scan. 14184 */ 14185 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI = 30, 14186 /* 8-bit signed value to indicate data RSSI threshold in dBm 14187 * for trigger reason of background scan. 14188 */ 14189 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_BACKGROUND_SCAN_DATA_RSSI_THRESH = 31, 14190 /* 32-bit unsigned value to indicate consecutive TX failure threshold 14191 * for trigger reason of TX failures. 14192 */ 14193 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_THRESHOLD = 32, 14194 /* 8-bit unsigned value to indicate TX failure reason for trigger 14195 * reason of TX failures, one of the values defined in 14196 * qca_wlan_roam_stats_tx_failures_reason. 14197 */ 14198 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TX_FAILURES_REASON = 33, 14199 /* 8-bit unsigned value to indicate detail abort reason. One of the 14200 * values in enum qca_wlan_roam_stats_abort_reason. 14201 */ 14202 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ABORT_REASON = 34, 14203 /* 8-bit signed value to indicate data RSSI in dBm when aborting the 14204 * roam scan. 14205 */ 14206 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI = 35, 14207 /* 8-bit signed value to indicate data RSSI threshold in dBm when 14208 * aborting the roam scan. 14209 */ 14210 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RSSI_THRESHOLD = 36, 14211 /* 8-bit unsigned value to indicate data RSSI threshold in RX link 14212 * speed status when aborting the roam scan. 14213 * 0 - good link speed, 1 - bad link speed 14214 */ 14215 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_DATA_RX_LINKSPEED_STATUS = 37, 14216 /* 8-bit unsigned value to indicate roaming scan type. 14217 * One of the values in enum qca_wlan_roam_stats_scan_type. 14218 */ 14219 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_TYPE = 38, 14220 /* 8-bit unsigned value to indicate roaming result, used in STA mode 14221 * only. 14222 * 0-Roaming is successful, 1-Roaming is failed 14223 */ 14224 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS = 39, 14225 /* 8-bit unsigned value to indicate the roam fail reason for the 14226 * last failed roaming attempt by the firmware. Different roam failure 14227 * reason codes are specified in enum qca_vendor_roam_fail_reasons. 14228 * This can be queried either in connected state or disconnected state. 14229 */ 14230 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FAIL_REASON = 40, 14231 /* Nested attribute. Indicate roam scan info for each channel, the 14232 * attributes defined in enum 14233 * qca_wlan_vendor_attr_roam_stats_scan_chan_info are used inside 14234 * this attribute. 14235 */ 14236 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_SCAN_CHAN_INFO = 41, 14237 /* 32-bit unsigned value to indicate total scan time during roam scan 14238 * all channels, time in milliseconds. 14239 */ 14240 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_TOTAL_SCAN_TIME = 42, 14241 /* Nested attribute. This attribute shall be used by the driver to 14242 * send roam information of each subtype. The attributes defined in 14243 * enum qca_wlan_vendor_attr_roam_stats_frame_info are used inside 14244 * this attribute. 14245 */ 14246 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_FRAME_INFO = 43, 14247 /* Attribute used for padding for 64-bit alignment */ 14248 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_PAD = 44, 14249 /* 6-byte MAC address used by the driver to send roam stats information 14250 * of the original AP BSSID. The original AP is the connected AP before 14251 * roam happens, regardless of the roam resulting in success or failure. 14252 * This attribute is only present when 14253 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of 14254 * 0 (success) or 1 (failure). 14255 * For non-MLO scenario, it indicates the original connected AP BSSID. 14256 * For MLO scenario, it indicates the original BSSID of the link 14257 * for which the reassociation occurred during the roam. 14258 */ 14259 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ORIGINAL_BSSID = 45, 14260 /* 6-byte MAC address used by the driver to send roam stats information 14261 * of the roam candidate AP BSSID when roam failed. This is only present 14262 * when QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of 14263 * 1 (failure). If the firmware updates more than one candidate AP BSSID 14264 * to the driver, the driver only fills the last candidate AP BSSID and 14265 * reports it to user space. 14266 * For non-MLO scenario, it indicates the last candidate AP BSSID. 14267 * For MLO scenario, it indicates the AP BSSID which may be the primary 14268 * link BSSID or a nonprimary link BSSID. 14269 */ 14270 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_CANDIDATE_BSSID = 46, 14271 /* 6-byte MAC address used by the driver to send roam stats information 14272 * of the roamed AP BSSID when roam succeeds. This is only present when 14273 * QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAM_STATUS has a value of 14274 * 0 (success). 14275 * For non-MLO scenario, it indicates the new AP BSSID to which has 14276 * been successfully roamed. 14277 * For MLO scenario, it indicates the new AP BSSID of the link on 14278 * which the reassociation occurred during the roam. 14279 */ 14280 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_ROAMED_BSSID = 47, 14281 14282 /* keep last */ 14283 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST, 14284 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_MAX = 14285 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_AFTER_LAST - 1, 14286 }; 14287 14288 /** 14289 * enum qca_wlan_vendor_attr_roam_cached_stats - Vendor subcmd attributes to 14290 * report cached roam info from the driver to user space, enum values are used 14291 * for netlink attributes sent with the 14292 * %QCA_NL80211_VENDOR_SUBCMD_ROAM_STATS sub command. 14293 */ 14294 enum qca_wlan_vendor_attr_roam_cached_stats { 14295 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INVALID = 0, 14296 /* Nested attribute, this attribute contains nested array roam info 14297 * statistics defined in enum qca_wlan_vendor_attr_roam_stats_info. 14298 */ 14299 QCA_WLAN_VENDOR_ATTR_ROAM_STATS_INFO = 1, 14300 14301 /* keep last */ 14302 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST, 14303 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_MAX = 14304 QCA_WLAN_VENDOR_ATTR_ROAM_CACHED_STATS_AFTER_LAST - 1, 14305 }; 14306 14307 /** 14308 * enum qca_wlan_vendor_attr_supported_radio_cfg - Attributes for 14309 * radio configurations present in each radio combination. 14310 * 14311 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND: u32 attribute indicates 14312 * the band info in the radio configuration. Uses the enum qca_set_band values. 14313 * 14314 * @QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA: u8 attribute indicates 14315 * the number of antennas info in the radio configuration. 14316 */ 14317 enum qca_wlan_vendor_attr_supported_radio_cfg { 14318 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_INVALID = 0, 14319 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_BAND = 1, 14320 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_ANTENNA = 2, 14321 14322 /* keep last */ 14323 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST, 14324 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_MAX = 14325 QCA_WLAN_VENDOR_ATTR_SUPPORTED_RADIO_CFG_LAST - 1, 14326 }; 14327 14328 /** 14329 * enum qca_wlan_vendor_attr_radio_combination - Attributes for 14330 * radio combinations supported by the device. 14331 * 14332 * @QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS: Nested attribute 14333 * provides the radio configurations present in the radio combination. 14334 * Uses the enum qca_wlan_vendor_attr_supported_radio_cfg attributes. 14335 * This attribute provides the values for radio combination matrix. 14336 * For standalone config, the number of config values is one and the config 14337 * carries the band and antenna information for standalone configuration. For 14338 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) mode 14339 * configuration the number of config values is two and the config carries the 14340 * band and antenna information for each simultaneous radio. 14341 */ 14342 enum qca_wlan_vendor_attr_radio_combination { 14343 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_INVALID = 0, 14344 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_CFGS = 1, 14345 14346 /* keep last */ 14347 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST, 14348 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_MAX = 14349 QCA_WLAN_VENDOR_ATTR_RADIO_COMBINATIONS_LAST - 1, 14350 }; 14351 14352 /** 14353 * enum qca_wlan_vendor_attr_radio_combination_matrix - Attributes used by 14354 * %QCA_NL80211_VENDOR_SUBCMD_GET_RADIO_COMBINATION_MATRIX 14355 * 14356 * @QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS: Nested attribute 14357 * provides the radio combinations supported by the device. 14358 * Uses the enum qca_wlan_vendor_attr_radio_combination attributes. 14359 * For example, in the radio combination matrix for a device which has two 14360 * radios, where one radio is capable of 2.4 GHz 2X2 only and another radio is 14361 * capable of either 5 GHz or 6 GHz 2X2, the possible number of radio 14362 * combinations is 5 and the radio combinations are 14363 * {{{2.4 GHz 2X2}}, //Standalone 2.4 GHz 14364 * {{5 GHz 2X2}}, //Standalone 5 GHz 14365 * {{6 GHz 2X2}}, //Standalone 6 GHz 14366 * {{2.4 GHz 2X2}, {5 GHz 2X2}}, //2.4 GHz + 5 GHz DBS 14367 * {{2.4 GHz 2X2}, {6 GHz 2X2}}} //2.4 GHz + 6 GHz DBS 14368 * The band and antenna info together as nested data provides one radio config. 14369 * Standalone configuration has one config with band and antenna nested data. 14370 * Dual Band Simultaneous (DBS)/Single Band Simultaneous (SBS) configuration 14371 * have two nested band and antenna info data. 14372 */ 14373 enum qca_wlan_vendor_attr_radio_combination_matrix { 14374 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_INVALID = 0, 14375 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_SUPPORTED_CFGS = 1, 14376 14377 /* keep last */ 14378 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST, 14379 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_MAX = 14380 QCA_WLAN_VENDOR_ATTR_RADIO_MATRIX_LAST - 1, 14381 }; 14382 14383 /** 14384 * enum qca_wlan_vendor_attr_mdns_offload - Attributes used by 14385 * %QCA_NL80211_VENDOR_SUBCMD_MDNS_OFFLOAD vendor command. 14386 * 14387 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE: Required (flag) 14388 * Enable mDNS offload. This attribute is mandatory to enable 14389 * mDNS offload feature. If this attribute is not present, mDNS offload 14390 * is disabled. 14391 * 14392 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE: Nested attribute containing 14393 * one or more %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY attributes. This 14394 * attribute is mandatory when enabling the feature, and not required when 14395 * disabling the feature. 14396 * 14397 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY: Nested attribute containing 14398 * the following attributes: 14399 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN 14400 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT 14401 * %QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD 14402 * 14403 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN: Required string attribute. 14404 * It consists of a hostname and ".local" as the domain name. The character 14405 * set is limited to UTF-8 encoding. The maximum allowed size is 63 bytes. 14406 * It is used to compare the domain in the "QU" query. Only 1 FQDN is 14407 * supported per vdev. 14408 * For example: myphone.local 14409 * 14410 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT: Required 14411 * u16 attribute. It specifies the total number of resource records present 14412 * in the answer section of the answer payload. This attribute is needed by the 14413 * firmware to populate the mDNS response frame for mDNS queries without having 14414 * to parse the answer payload. 14415 * 14416 * @QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD: Required binary blob 14417 * attribute sent by the mdnsResponder from userspace. It contains resource 14418 * records of various types (e.g., A, AAAA, PTR, TXT) and service list. This 14419 * payload is passed down to the firmware and is transmitted in response to 14420 * mDNS queries. 14421 * The maximum supported size of the answer payload is 512 bytes. 14422 */ 14423 enum qca_wlan_vendor_attr_mdns_offload { 14424 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_INVALID = 0, 14425 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENABLE = 1, 14426 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_TABLE = 2, 14427 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ENTRY = 3, 14428 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_FQDN = 4, 14429 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_RESOURCE_RECORDS_COUNT = 5, 14430 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_ANSWER_PAYLOAD = 6, 14431 14432 /* keep last */ 14433 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST, 14434 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_MAX = 14435 QCA_WLAN_VENDOR_ATTR_MDNS_OFFLOAD_AFTER_LAST - 1, 14436 }; 14437 14438 /** 14439 * qca_wlan_vendor_monitor_data_frame_type - Represent the various 14440 * Data frame types to be sent over the monitor interface. 14441 */ 14442 enum qca_wlan_vendor_monitor_data_frame_type { 14443 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL = BIT(0), 14444 /* valid only if QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ALL is not set 14445 */ 14446 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ARP = BIT(1), 14447 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV4 = BIT(2), 14448 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DHCPV6 = BIT(3), 14449 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_EAPOL = BIT(4), 14450 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV4 = BIT(5), 14451 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_DNSV6 = BIT(6), 14452 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYN = BIT(7), 14453 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_SYNACK = BIT(8), 14454 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FIN = BIT(9), 14455 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_FINACK = BIT(10), 14456 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_ACK = BIT(11), 14457 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_TCP_RST = BIT(12), 14458 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV4 = BIT(13), 14459 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_ICMPV6 = BIT(14), 14460 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_RTP = BIT(15), 14461 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_TYPE_SIP = BIT(16), 14462 QCA_WLAN_VENDOR_MONITOR_DATA_FRAME_QOS_NULL = BIT(17), 14463 }; 14464 14465 /** 14466 * qca_wlan_vendor_monitor_mgmt_frame_type - Represent the various 14467 * Management frame types to be sent over the monitor interface. 14468 * @QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL: All the Management Frames. 14469 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_NO_BEACON: All the Management frames 14470 * except the Beacon frame. 14471 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON: Only the connected 14472 * BSSID Beacon frames. Valid only in the connected state. 14473 * @QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON: Represents 14474 * the Beacon frames obtained during the scan (off channel and connected 14475 * channel), when in connected state. 14476 */ 14477 enum qca_wlan_vendor_monitor_mgmt_frame_type { 14478 QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL = BIT(0), 14479 /* valid only if QCA_WLAN_VENDOR_MONITOR_MGMT_FRAME_TYPE_ALL is not set 14480 */ 14481 QCA_WLAN_VENDOR_MONITOR_MGMT_NO_BEACON = BIT(1), 14482 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_BEACON = BIT(2), 14483 QCA_WLAN_VENDOR_MONITOR_MGMT_CONNECT_SCAN_BEACON = BIT(3), 14484 }; 14485 14486 /** 14487 * qca_wlan_vendor_monitor_ctrl_frame_type - Represent the various 14488 * Control frame types to be sent over the monitor interface. 14489 * @QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL: All the Control frames 14490 * @QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME: Trigger frame 14491 */ 14492 enum qca_wlan_vendor_monitor_ctrl_frame_type { 14493 QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL = BIT(0), 14494 /* valid only if QCA_WLAN_VENDOR_MONITOR_CTRL_FRAME_TYPE_ALL is not set 14495 */ 14496 QCA_WLAN_VENDOR_MONITOR_CTRL_TRIGGER_FRAME = BIT(1), 14497 }; 14498 14499 /** 14500 * enum qca_wlan_vendor_attr_set_monitor_mode - Used by the 14501 * vendor command QCA_NL80211_VENDOR_SUBCMD_SET_MONITOR_MODE to set the 14502 * monitor mode. 14503 * 14504 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE: u32 attribute. 14505 * Represents the TX Data frame types to be monitored (u32). These Data frames 14506 * are represented by enum qca_wlan_vendor_monitor_data_frame_type. 14507 * 14508 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE: u32 attribute. 14509 * Represents the RX Data frame types to be monitored (u32). These Data frames 14510 * are represented by enum qca_wlan_vendor_monitor_data_frame_type. 14511 * 14512 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE: u32 attribute. 14513 * Represents the TX Management frame types to be monitored (u32). These 14514 * Management frames are represented by 14515 * enum qca_wlan_vendor_monitor_mgmt_frame_type. 14516 * 14517 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE: u32 attribute. 14518 * Represents the RX Management frame types to be monitored (u32). These 14519 * Management frames are represented by 14520 * enum qca_wlan_vendor_monitor_mgmt_frame_type. 14521 * 14522 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE: u32 attribute. 14523 * Represents the TX Control frame types to be monitored (u32). These Control 14524 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type. 14525 * 14526 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE: u32 attribute. 14527 * Represents the RX Control frame types to be monitored (u32). These Control 14528 * frames are represented by enum qca_wlan_vendor_monitor_ctrl_frame_type. 14529 * 14530 * @QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL: u32 14531 * attribute. 14532 * Represents the interval in milliseconds only for the connected Beacon frames, 14533 * expecting the connected BSS's Beacon frames to be sent on the monitor 14534 * interface at this specific interval. 14535 */ 14536 enum qca_wlan_vendor_attr_set_monitor_mode { 14537 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_INVALID = 0, 14538 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_TX_FRAME_TYPE = 1, 14539 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_DATA_RX_FRAME_TYPE = 2, 14540 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_TX_FRAME_TYPE = 3, 14541 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MGMT_RX_FRAME_TYPE = 4, 14542 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_TX_FRAME_TYPE = 5, 14543 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CTRL_RX_FRAME_TYPE = 6, 14544 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_CONNECTED_BEACON_INTERVAL = 7, 14545 14546 /* keep last */ 14547 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST, 14548 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_MAX = 14549 QCA_WLAN_VENDOR_ATTR_SET_MONITOR_MODE_AFTER_LAST - 1, 14550 }; 14551 14552 /** 14553 * enum qca_wlan_vendor_roam_scan_state - Roam scan state flags. 14554 * Bits will be set to 1 if the corresponding state is enabled. 14555 * 14556 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_START: Scan Start. 14557 * @QCA_VENDOR_WLAN_ROAM_SCAN_STATE_END: Scan end. 14558 */ 14559 enum qca_wlan_vendor_roam_scan_state { 14560 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_START = BIT(0), 14561 QCA_WLAN_VENDOR_ROAM_SCAN_STATE_END = BIT(1), 14562 }; 14563 14564 /** 14565 * enum qca_wlan_vendor_roam_event_type - Roam event type flags. 14566 * Bits will be set to 1 if the corresponding event is notified. 14567 * 14568 * @QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON: Represents that the roam event 14569 * carries the trigger reason. When set, it is expected that the roam event 14570 * carries the respective reason via the attribute 14571 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON. This event also carries 14572 * the BSSID, RSSI, frequency info of the AP to which the roam is attempted. 14573 * 14574 * @QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON: Represents that the roam event 14575 * carries the roam fail reason. When set, it is expected that the roam event 14576 * carries the respective reason via the attribute 14577 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_FAIL_REASON. This event also carries the 14578 * BSSID, RSSI, frequency info of the AP to which the roam was attempted. 14579 * 14580 * @QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON: Represents that the roam 14581 * event carries the roam invoke fail reason. When set, it is expected that 14582 * the roam event carries the respective reason via the attribute 14583 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON. 14584 * 14585 * @QCA_WLAN_VENDOR_ROAM_EVENT_SCAN_STATE: Represents that the roam event 14586 * carries the roam scan state. When set, it is expected that the roam event 14587 * carries the respective scan state via the attribute 14588 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE and the corresponding 14589 * frequency info via QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST. 14590 */ 14591 enum qca_wlan_vendor_roam_event_type { 14592 QCA_WLAN_VENDOR_ROAM_EVENT_TRIGGER_REASON = BIT(0), 14593 QCA_WLAN_VENDOR_ROAM_EVENT_FAIL_REASON = BIT(1), 14594 QCA_WLAN_VENDOR_ROAM_EVENT_INVOKE_FAIL_REASON = BIT(2), 14595 QCA_WLAN_VENDOR_ROAM_EVENT_ROAM_SCAN_STATE = BIT(3), 14596 }; 14597 14598 /** 14599 * enum qca_wlan_vendor_attr_roam_events_candidate_info: Roam candidate info. 14600 * Referred by QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO. 14601 * 14602 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID: 6-byte MAC address 14603 * representing the BSSID of the AP to which the roam is attempted. 14604 * 14605 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI: Signed 32-bit value 14606 * in dBm, signifying the RSSI of the candidate BSSID to which the Roaming is 14607 * attempted. 14608 * 14609 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ: u32, frequency in MHz 14610 * on which the roam is attempted. 14611 * 14612 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON: u32, used in 14613 * STA mode only. This represents the roam fail reason for the last failed 14614 * roaming attempt by the firmware for the specific BSSID. Different roam 14615 * failure reason codes are specified in enum qca_vendor_roam_fail_reasons. 14616 */ 14617 enum qca_wlan_vendor_attr_roam_events_candidate_info { 14618 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_INVALID = 0, 14619 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_BSSID = 1, 14620 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_RSSI = 2, 14621 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FREQ = 3, 14622 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_FAIL_REASON = 4, 14623 14624 /* keep last */ 14625 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST, 14626 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_MAX = 14627 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO_AFTER_LAST - 1, 14628 }; 14629 14630 /** 14631 * enum qca_wlan_vendor_attr_roam_events - Used by the 14632 * vendor command QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS to either configure the 14633 * roam events to the driver or notify these events from the driver. 14634 * 14635 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE: u8 attribute. Configures the 14636 * driver/firmware to enable/disable the notification of roam events. It's a 14637 * mandatory attribute and used only in the request from the userspace to the 14638 * host driver. 1-Enable, 0-Disable. 14639 * If the roaming is totally offloaded to the firmware, this request when 14640 * enabled shall mandate the firmware to notify all the relevant roam events 14641 * represented by the below attributes. If the host is in the suspend mode, 14642 * the behavior of the firmware to notify these events is guided by 14643 * QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_DEVICE_STATE, and if the request is to get 14644 * these events in the suspend state, the firmware is expected to wake up the 14645 * host before the respective events are notified. Please note that such a 14646 * request to get the events in the suspend state will have a definite power 14647 * implication. 14648 * 14649 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE: flag attribute. Represents 14650 * that the roam events need to be notified in the suspend state too. By 14651 * default, these roam events are notified in the resume state. With this flag, 14652 * the roam events are notified in both resume and suspend states. 14653 * This attribute is used in the request from the userspace to the host driver. 14654 * 14655 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE: u32, used in STA mode only. 14656 * Represents the different roam event types, signified by the enum 14657 * qca_wlan_vendor_roam_event_type. 14658 * Each bit of this attribute represents the different roam even types reported 14659 * through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14660 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14661 * 14662 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON: u32, used in STA 14663 * mode only. This represents the roam trigger reason for the last roaming 14664 * attempted by the firmware. Each bit of this attribute represents the 14665 * different roam trigger reason code which are defined in enum 14666 * qca_vendor_roam_triggers. 14667 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14668 * 14669 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON: u32, used in 14670 * STA mode only. This represents the roam invoke fail reason for the last 14671 * failed roam invoke. Different roam invoke failure reason codes 14672 * are specified in enum qca_vendor_roam_invoke_fail_reasons. 14673 * 14674 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO: Array of candidates info 14675 * for which the roam is attempted. Each entry is a nested attribute defined 14676 * by enum qca_wlan_vendor_attr_roam_events_candidate_info. 14677 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14678 * 14679 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE: u8 attribute. Represents 14680 * the scan state on which the roam events need to be notified. The values for 14681 * this attribute are referred from enum qca_wlan_vendor_roam_scan_state. 14682 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14683 * 14684 * @QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST: Nested attribute of 14685 * u32 values. List of frequencies in MHz considered for a roam scan. 14686 * This is sent as an event through QCA_NL80211_VENDOR_SUBCMD_ROAM_EVENTS. 14687 */ 14688 enum qca_wlan_vendor_attr_roam_events { 14689 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVALID = 0, 14690 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CONFIGURE = 1, 14691 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_SUSPEND_STATE = 2, 14692 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TYPE = 3, 14693 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_TRIGGER_REASON = 4, 14694 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_INVOKE_FAIL_REASON = 5, 14695 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_CANDIDATE_INFO = 6, 14696 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_STATE = 7, 14697 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_ROAM_SCAN_FREQ_LIST = 8, 14698 14699 /* keep last */ 14700 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST, 14701 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_MAX = 14702 QCA_WLAN_VENDOR_ATTR_ROAM_EVENTS_AFTER_LAST - 1, 14703 }; 14704 14705 /** 14706 * enum qca_wlan_ratemask_params_type - Rate mask config type 14707 * 14708 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM: CCK/OFDM rate mask config 14709 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HT: HT rate mask config 14710 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT: VHT rate mask config 14711 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_HE: HE rate mask config 14712 * @QCA_WLAN_RATEMASK_PARAMS_TYPE_EHT: EHT rate mask config 14713 */ 14714 enum qca_wlan_ratemask_params_type { 14715 QCA_WLAN_RATEMASK_PARAMS_TYPE_CCK_OFDM = 0, 14716 QCA_WLAN_RATEMASK_PARAMS_TYPE_HT = 1, 14717 QCA_WLAN_RATEMASK_PARAMS_TYPE_VHT = 2, 14718 QCA_WLAN_RATEMASK_PARAMS_TYPE_HE = 3, 14719 QCA_WLAN_RATEMASK_PARAMS_TYPE_EHT = 4, 14720 }; 14721 14722 /** 14723 * enum qca_wlan_vendor_attr_ratemask_params - Used by the 14724 * vendor command QCA_NL80211_VENDOR_SUBCMD_RATEMASK_CONFIG. 14725 * This is used to set the rate mask value to be used in rate selection. 14726 * 14727 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST: 14728 * Array of nested containing attributes 14729 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE and 14730 * QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP. 14731 * 14732 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE: u8, represents 14733 * the different PHY types to which the rate mask config is to be applied. 14734 * The values for this attribute are referred from enum 14735 * qca_wlan_vendor_ratemask_params_type. 14736 * 14737 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP: binary, rate mask bitmap. 14738 * A bit value of 1 represents rate is enabled and a value of 0 14739 * represents rate is disabled. 14740 * For EHT targets, 14741 * b0-1 => NSS1, MCS 14-15 14742 * b2-15 => NSS1, MCS 0-13 14743 * b16-29 => NSS2, MCS 0-13 14744 * For HE targets, 14 bits correspond to one NSS setting. 14745 * b0-13 => NSS1, MCS 0-13 14746 * b14-27 => NSS2, MCS 0-13 and so on for other NSS. 14747 * For VHT targets, 10 bits correspond to one NSS setting. 14748 * b0-9 => NSS1, MCS 0-9 14749 * b10-19 => NSS2, MCS 0-9 and so on for other NSS. 14750 * For HT targets, 8 bits correspond to one NSS setting. 14751 * b0-7 => NSS1, MCS 0-7 14752 * b8-15 => NSS2, MCS 0-7 and so on for other NSS. 14753 * For OFDM/CCK targets, 8 bits correspond to one NSS setting. 14754 * 14755 * @QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LINK_ID: u8, used to specify the 14756 * MLO link ID of a link to be configured. Optional attribute. 14757 * No need of this attribute in non-MLO cases. If the attribute is 14758 * not provided, ratemask will be applied for setup link. 14759 */ 14760 enum qca_wlan_vendor_attr_ratemask_params { 14761 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_INVALID = 0, 14762 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LIST = 1, 14763 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_TYPE = 2, 14764 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_BITMAP = 3, 14765 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_LINK_ID = 4, 14766 14767 /* keep last */ 14768 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST, 14769 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_MAX = 14770 QCA_WLAN_VENDOR_ATTR_RATEMASK_PARAMS_AFTER_LAST - 1, 14771 }; 14772 14773 /** 14774 * enum qca_wlan_audio_data_path - Defines the data path to be used for audio 14775 * traffic. 14776 * 14777 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR: 14778 * Send audio traffic through the host processor. 14779 * @QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP: 14780 * Send audio traffic using the low power DSP to/from the encoder. 14781 */ 14782 enum qca_wlan_audio_data_path { 14783 QCA_WLAN_AUDIO_DATA_PATH_VIA_HOST_PROCESSOR = 0, 14784 QCA_WLAN_AUDIO_DATA_PATH_VIA_LOW_POWER_DSP = 1, 14785 }; 14786 14787 /** 14788 * enum qca_wlan_vendor_pasn_action - Action to authenticate (and generate keys 14789 * for) or drop existing PASN security association for the listed the 14790 * peers. Used by QCA_WLAN_VENDOR_ATTR_PASN_ACTION and sent from the driver 14791 * to userspace. 14792 * 14793 * @QCA_WLAN_VENDOR_PASN_ACTION_AUTH: Initiate PASN handshake with the peer 14794 * devices indicated with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR. 14795 * @QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT: Indication from 14796 * the driver to userspace to inform that the existing PASN keys of the 14797 * peer devices specified with %QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR are 14798 * not valid anymore. 14799 */ 14800 enum qca_wlan_vendor_pasn_action { 14801 QCA_WLAN_VENDOR_PASN_ACTION_AUTH, 14802 QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT, 14803 }; 14804 14805 /** 14806 * enum qca_wlan_vendor_attr_pasn_peer: Defines the nested attributes used in 14807 * QCA_WLAN_VENDOR_ATTR_PASN_PEERS. 14808 * 14809 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR: This attribute is optional in the 14810 * event from the driver to userspace and represents the local MAC address 14811 * to be used for PASN handshake. When this attribute is present, userspace 14812 * shall use the source address specified in this attribute by the driver 14813 * for PASN handshake with peer device. 14814 * This attribute is required in a command response from userspace to the 14815 * driver and represents the MAC address that was used in PASN handshake 14816 * with the peer device. 14817 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR: Indicates the MAC address of the 14818 * peer device to which PASN handshake is requested in an event from the 14819 * driver to userspace when QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to 14820 * QCA_WLAN_VENDOR_PASN_ACTION_AUTH. 14821 * Indicates the MAC address of the peer device for which the keys are to 14822 * be invalidated in an event from the driver to userspace when 14823 * QCA_WLAN_VENDOR_ATTR_PASN_ACTION is set to 14824 * QCA_WLAN_VENDOR_PASN_ACTION_DELETE_SECURE_RANGING_CONTEXT. 14825 * Indicates the MAC address of the peer device for which the status is 14826 * being sent in a status report from userspace to the driver. 14827 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED: NLA_FLAG attribute used 14828 * in the event from the driver to userspace. When set, userspace is 14829 * required to derive LTF key seed from KDK and set it to the driver. 14830 * @QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS: NLA_FLAG attribute. This 14831 * attribute is used in the command response from userspace to the driver. 14832 * If present, it indicates the successful PASN handshake with the peer. If 14833 * this flag is not present, it indicates that the PASN handshake with the 14834 * peer device failed. 14835 */ 14836 enum qca_wlan_vendor_attr_pasn_peer { 14837 QCA_WLAN_VENDOR_ATTR_PASN_PEER_INVALID = 0, 14838 QCA_WLAN_VENDOR_ATTR_PASN_PEER_SRC_ADDR = 1, 14839 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAC_ADDR = 2, 14840 QCA_WLAN_VENDOR_ATTR_PASN_PEER_LTF_KEYSEED_REQUIRED = 3, 14841 QCA_WLAN_VENDOR_ATTR_PASN_PEER_STATUS_SUCCESS = 4, 14842 14843 /* keep last */ 14844 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST, 14845 QCA_WLAN_VENDOR_ATTR_PASN_PEER_MAX = 14846 QCA_WLAN_VENDOR_ATTR_PASN_PEER_AFTER_LAST - 1, 14847 }; 14848 14849 /** 14850 * enum qca_wlan_vendor_attr_pasn: Defines the attributes used in the 14851 * QCA_NL80211_VENDOR_SUBCMD_PASN command. 14852 * 14853 * @QCA_WLAN_VENDOR_ATTR_PASN_ACTION: u32 attribute, possible values are 14854 * defined in enum qca_wlan_vendor_pasn_action and used only in an event 14855 * from the driver to userspace. 14856 * @QCA_WLAN_VENDOR_ATTR_PASN_PEERS: Nested attribute, used to pass PASN peer 14857 * details for each peer and used in both an event and a command response. 14858 * The nested attributes used inside QCA_WLAN_VENDOR_ATTR_PASN_PEERS are 14859 * defined in enum qca_wlan_vendor_attr_pasn_peer. 14860 * @QCA_WLAN_VENDOR_ATTR_PASN_LINK_ID: u8 attribute used to identify a 14861 * specific link affiliated to an MLD. 14862 */ 14863 enum qca_wlan_vendor_attr_pasn { 14864 QCA_WLAN_VENDOR_ATTR_PASN_INVALID = 0, 14865 QCA_WLAN_VENDOR_ATTR_PASN_ACTION = 1, 14866 QCA_WLAN_VENDOR_ATTR_PASN_PEERS = 2, 14867 QCA_WLAN_VENDOR_ATTR_PASN_LINK_ID = 3, 14868 14869 /* keep last */ 14870 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST, 14871 QCA_WLAN_VENDOR_ATTR_PASN_MAX = 14872 QCA_WLAN_VENDOR_ATTR_PASN_AFTER_LAST - 1, 14873 }; 14874 14875 /** 14876 * enum qca_wlan_vendor_secure_ranging_ctx_action - Used to add or delete 14877 * the ranging security context derived from PASN for each peer. Used in 14878 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION. 14879 * 14880 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD: Add the secure ranging 14881 * context for the peer. 14882 * @QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE: Delete the secure ranging 14883 * context for the peer. 14884 */ 14885 enum qca_wlan_vendor_secure_ranging_ctx_action { 14886 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_ADD, 14887 QCA_WLAN_VENDOR_SECURE_RANGING_CTX_ACTION_DELETE, 14888 }; 14889 14890 /** 14891 * enum qca_wlan_vendor_sha_type - SHA types. Used to configure the SHA type 14892 * used for deriving PASN keys to the driver. Used in 14893 * QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE 14894 * @QCA_WLAN_VENDOR_SHA_256: SHA-256 14895 * @QCA_WLAN_VENDOR_SHA_384: SHA-384 14896 */ 14897 enum qca_wlan_vendor_sha_type { 14898 QCA_WLAN_VENDOR_SHA_256, 14899 QCA_WLAN_VENDOR_SHA_384, 14900 }; 14901 14902 /** 14903 * enum qca_wlan_vendor_attr_secure_ranging_ctx: Defines the attributes used 14904 * to set security context for the PASN peer from userspace to the driver. 14905 * Used with QCA_NL80211_VENDOR_SUBCMD_SECURE_RANGING_CONTEXT. 14906 * 14907 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION: u32 attribute, possible 14908 * values are defined in enum qca_wlan_vendor_secure_ranging_ctx_action 14909 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR: The local MAC address that 14910 * was used during the PASN handshake. 14911 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR: The MAC address of 14912 * the peer device for which secure ranging context is being configured. 14913 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE: u32 attribute, defines the 14914 * hash algorithm to be used, possible values are defined in enum 14915 * qca_wlan_vendor_sha_type. 14916 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK: Variable length attribute, holds 14917 * the temporal key generated from the PASN handshake. The length of this 14918 * attribute is dependent on the value of 14919 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER. 14920 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER: cipher suite to use with the 14921 * TK, u32, as defined in IEEE Std 802.11-2020, 9.4.2.24.2 (Cipher suites) 14922 * (e.g., 0x000FAC04). 14923 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED: Variable length 14924 * attribute, holds the LTF keyseed derived from KDK of PASN handshake. 14925 * The length of this attribute is dependent on the value of 14926 * %QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE. 14927 * @QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LINK_ID: This u8 attribute is used 14928 * for secure ranging to identify a specific link affiliated to an AP MLD. 14929 */ 14930 enum qca_wlan_vendor_attr_secure_ranging_ctx { 14931 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_INVALID = 0, 14932 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_ACTION = 1, 14933 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SRC_ADDR = 2, 14934 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_PEER_MAC_ADDR = 3, 14935 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_SHA_TYPE = 4, 14936 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_TK = 5, 14937 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_CIPHER = 6, 14938 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LTF_KEYSEED = 7, 14939 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_LINK_ID = 8, 14940 14941 /* keep last */ 14942 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST, 14943 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_MAX = 14944 QCA_WLAN_VENDOR_ATTR_SECURE_RANGING_CTX_AFTER_LAST - 1, 14945 }; 14946 14947 /** 14948 * enum qca_wlan_vendor_attr_coap_offload_filter - Attributes used 14949 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER 14950 * nested attribute. The packets that match a filter will be replied with 14951 * attributes configured in %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY. 14952 * 14953 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4: 14954 * u32 attribute. Destination IPv4 address in network byte order, the 14955 * IPv4 packets with different address will be filtered out. 14956 * This attribute is optional. 14957 * 14958 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC: 14959 * Flag attribute. If it's present, indicates that 14960 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 is a broadcast 14961 * address; while if not, indicates that the address is a unicast/multicast 14962 * address. 14963 * This attribute is optional. 14964 * 14965 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6: 14966 * NLA_BINARY attribute, length is 16 bytes. 14967 * Destination IPv6 address in network byte order, the IPv6 packets 14968 * with different destination address will be filtered out. 14969 * This attribute is optional. 14970 * 14971 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 and 14972 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 must be configured. 14973 * Packets on both IPv4 and IPv6 will be processed if both are configured. 14974 * 14975 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT: 14976 * u16 attribute. Destination UDP port, the packets with different destination 14977 * UDP port will be filtered out. 14978 * This attribute is mandatory. 14979 * 14980 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET: 14981 * u32 attribute. Represents the offset (in UDP payload) of the data 14982 * to be matched. 14983 * This attribute is mandatory. 14984 * 14985 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA: 14986 * NLA_BINARY attribute, the maximum allowed size is 16 bytes. 14987 * Binary data that is compared bit-by-bit against the data (specified 14988 * by %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET) in UDP 14989 * payload, the packets don't match will be filtered out. 14990 * This attribute is mandatory. 14991 */ 14992 enum qca_wlan_vendor_attr_coap_offload_filter { 14993 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_INVALID = 0, 14994 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4 = 1, 14995 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV4_IS_BC = 2, 14996 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_IPV6 = 3, 14997 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_DEST_PORT = 4, 14998 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_OFFSET = 5, 14999 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MATCH_DATA = 6, 15000 15001 /* keep last */ 15002 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST, 15003 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_MAX = 15004 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_FILTER_AFTER_LAST - 1, 15005 }; 15006 15007 /** 15008 * enum qca_wlan_vendor_attr_coap_offload_reply - Attributes used 15009 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY nested attribute. 15010 * 15011 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4: 15012 * u32 attribute. Source address (in network byte order) for replying 15013 * the matching broadcast/multicast IPv4 packets. 15014 * This attribute is optional. 15015 * 15016 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6: 15017 * NLA_BINARY attribute, length is 16 bytes. 15018 * Source address (in network byte order) for replying the matching 15019 * multicast IPv6 packets. 15020 * This attribute is optional. 15021 * 15022 * For broadcast/multicast offload reply, one of 15023 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 and 15024 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 or both must be 15025 * configured according to version of the IP address(es) configured in 15026 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER; 15027 * while for unicast case, firmware will take the destination IP address 15028 * in the received matching packet as the source address for replying. 15029 * 15030 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER: 15031 * Nested attribute. Filter for the received UDP packets, only the matching 15032 * packets will be replied and cached. 15033 * See enum qca_wlan_vendor_attr_coap_offload_filter for list of supported 15034 * attributes. 15035 * This attribute is mandatory. 15036 * 15037 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG: 15038 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 15039 * CoAP message (UDP payload) to be sent upon receiving matching packets. 15040 * Firmware is responsible for adding any necessary protocol headers. 15041 * This attribute is mandatory. 15042 * 15043 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME: 15044 * u32 attribute. Expiration time in milliseconds of the cached CoAP messages. 15045 * A cached message will be dropped by firmware if it's expired. 15046 * This attribute is optional. A default value of 40000 will be used in the 15047 * absence of it. 15048 */ 15049 enum qca_wlan_vendor_attr_coap_offload_reply { 15050 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_INVALID = 0, 15051 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV4 = 1, 15052 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_SRC_IPV6 = 2, 15053 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_FILTER = 3, 15054 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MSG = 4, 15055 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_CACHE_EXPTIME = 5, 15056 15057 /* keep last */ 15058 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST, 15059 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_MAX = 15060 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY_AFTER_LAST - 1, 15061 }; 15062 15063 /** 15064 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 - Represents parameters for 15065 * CoAP message (UDP) transmitting on IPv4. 15066 * 15067 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR: 15068 * u32 attribute. Source address (in network byte order) for transmitting 15069 * packets on IPv4. 15070 * This attribute is mandatory. 15071 * 15072 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT: 15073 * u16 attribute. Source UDP port. 15074 * This attribute is optional, a random port is taken if it's not present. 15075 * 15076 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR: 15077 * u32 attribute. Destination IPv4 address (in network byte order). 15078 * This attribute is mandatory. 15079 * 15080 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC: 15081 * Flag attribute. If it's present, indicates that 15082 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR is a broadcast 15083 * address; while if not, indicates that the address is unicast/multicast 15084 * address. 15085 * This attribute is optional. 15086 * 15087 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT: 15088 * u16 attribute. Destination UDP port. 15089 * This attribute is mandatory. 15090 */ 15091 enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 { 15092 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_INVALID = 0, 15093 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_ADDR = 1, 15094 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_SRC_PORT = 2, 15095 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_ADDR = 3, 15096 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_IS_BC = 4, 15097 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_DEST_PORT = 5, 15098 15099 /* keep last */ 15100 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST, 15101 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_MAX = 15102 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV4_AFTER_LAST - 1, 15103 }; 15104 15105 /** 15106 * enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 - Represents parameters for 15107 * CoAP message (UDP) transmitting on IPv6. 15108 * 15109 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR: 15110 * NLA_BINARY attribute, length is 16 bytes. 15111 * Source address (in network byte order) for transmitting packets on IPv6. 15112 * This attribute is mandatory. 15113 * 15114 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT: 15115 * u16 attribute. Source UDP port. 15116 * This attribute is optional, a random port is taken if it's not present. 15117 * 15118 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR: 15119 * NLA_BINARY attribute, length is 16 bytes. 15120 * Destination IPv6 address (in network byte order). 15121 * This attribute is mandatory. 15122 * 15123 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT: 15124 * u16 attribute. Destination UDP port. 15125 * This attribute is mandatory. 15126 */ 15127 enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 { 15128 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_INVALID = 0, 15129 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_ADDR = 1, 15130 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_SRC_PORT = 2, 15131 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_ADDR = 3, 15132 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_DEST_PORT = 4, 15133 15134 /* keep last */ 15135 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST, 15136 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_MAX = 15137 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_TX_IPV6_AFTER_LAST - 1, 15138 }; 15139 15140 /** 15141 * enum qca_wlan_vendor_attr_coap_offload_periodic_tx - Attributes used 15142 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX nested attribute. 15143 * 15144 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4: 15145 * Nested attribute. The IPv4 source/destination address/port for offload 15146 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv4 for the list 15147 * of supported attributes. 15148 * This attribute is optional. 15149 * 15150 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6: 15151 * Nested attribute. The IPv6 source/destination address/port for offload 15152 * transmitting. See enum qca_wlan_vendor_attr_coap_offload_tx_ipv6 for the list 15153 * of supported attributes. 15154 * This attribute is optional. 15155 * 15156 * At least one of %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 and 15157 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 must be configured. 15158 * Firmware will transmit the packets on both IPv4 and IPv6 if both are 15159 * configured. 15160 * 15161 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD: 15162 * u32 attribute. Period in milliseconds for the periodic transmitting. 15163 * This attribute is mandatory. 15164 * 15165 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG: 15166 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 15167 * CoAP message (UDP payload) to be periodically transmitted. Firmware 15168 * is responsible for adding any necessary protocol headers. 15169 * This attribute is mandatory. 15170 */ 15171 enum qca_wlan_vendor_attr_coap_offload_periodic_tx { 15172 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_INVALID = 0, 15173 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV4 = 1, 15174 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_IPV6 = 2, 15175 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_PERIOD = 3, 15176 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MSG = 4, 15177 15178 /* keep last */ 15179 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST, 15180 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_MAX = 15181 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX_AFTER_LAST - 1, 15182 }; 15183 15184 /** 15185 * enum qca_wlan_vendor_attr_coap_offload_cache_info - Attributes used 15186 * inside %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES nested attribute. 15187 * 15188 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS: 15189 * u64 attribute. Received time (since system booted in microseconds) of 15190 * the cached CoAP message. 15191 * This attribute is mandatory. 15192 * 15193 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4: 15194 * u32 attribute. Source IPv4 address (in network byte order) of the cached 15195 * CoAP message. 15196 * This attribute is optional. 15197 * 15198 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6: 15199 * NLA_BINARY attribute, length is 16 bytes. 15200 * Source IPv6 address (in network byte order) of the cached CoAP message. 15201 * This attribute is optional. 15202 * 15203 * At most and at least one of 15204 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 and 15205 * %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 is given for 15206 * an entry. 15207 * 15208 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG: 15209 * NLA_BINARY attribute, the maximum allowed size is 1152 bytes. 15210 * The cached CoAP message (UDP payload). If the actual message size is 15211 * greater than the maximum size, it will be truncated and leaving only 15212 * the first 1152 bytes. 15213 * This attribute is mandatory. 15214 * 15215 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD: Attribute used for 15216 * padding for 64-bit alignment 15217 */ 15218 enum qca_wlan_vendor_attr_coap_offload_cache_info { 15219 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_INVALID = 0, 15220 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_TS = 1, 15221 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV4 = 2, 15222 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_SRC_IPV6 = 3, 15223 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MSG = 4, 15224 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_PAD = 5, 15225 15226 /* keep last */ 15227 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST, 15228 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_MAX = 15229 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHE_INFO_AFTER_LAST - 1, 15230 }; 15231 15232 /** 15233 * enum qca_wlan_vendor_coap_offload_action - Actions for 15234 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD. 15235 * 15236 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE: 15237 * Enable CoAP offload reply. 15238 * If it's enabled, firmware will start offload processing on each suspend 15239 * and stop on each resume. 15240 * 15241 * Offload reply on match works as follows: 15242 * Reply the packets that match the filter with the given CoAP 15243 * message (with necessary protocol headers), increase the CoAP message 15244 * ID in the given CoAP message by one for the next use after each successful 15245 * transmission, and try to store the information of the received packet, 15246 * including the received time, source IP address, and CoAP message (UDP 15247 * payload). 15248 * 15249 * Firmware has a limit to the maximum stored entries, it takes the source IP 15250 * address as the key of an entry, and keeps at most one entry for each key. 15251 * A packet won't be stored if no entry for the same key is present and the 15252 * total number of the existing unexpired entries reaches the maximum value. 15253 * 15254 * If any configured item is changed, user space should disable offload reply 15255 * first and then issue a new enable request. 15256 * 15257 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE: 15258 * Disable CoAP offload reply and return information of any cached CoAP 15259 * messages. 15260 * 15261 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE: 15262 * Enable CoAP offload periodic transmitting. 15263 * If it's enabled, firmware will start offload periodic transmitting on 15264 * each suspend and stop on each resume. 15265 * 15266 * Offload periodic transmitting works as follows: 15267 * Send the given CoAP message (with necessary protocol headers) with the given 15268 * source/destination IP address/UDP port periodically based on the given 15269 * period and increase the CoAP message ID in the given CoAP message by one 15270 * for the next use after each successful transmission. 15271 * 15272 * If any configured item is changed, user space should disable offload 15273 * periodic transmitting first and then issue a new enable request. 15274 * 15275 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE: 15276 * Disable CoAP offload periodic transmitting. 15277 * 15278 * @QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET: 15279 * Get information of the CoAP messages cached during offload reply 15280 * processing. The cache is cleared after retrieval. 15281 */ 15282 enum qca_wlan_vendor_coap_offload_action { 15283 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE = 0, 15284 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE = 1, 15285 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE = 2, 15286 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_DISABLE = 3, 15287 QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET = 4, 15288 }; 15289 15290 /** 15291 * enum qca_wlan_vendor_attr_coap_offload - Used by the 15292 * vendor command QCA_NL80211_VENDOR_SUBCMD_COAP_OFFLOAD. 15293 * This is used to set parameters for CoAP offload processing, or get 15294 * cached CoAP messages from firmware. 15295 * 15296 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION: 15297 * u32 attribute. Action to take in this vendor command. 15298 * See enum qca_wlan_vendor_coap_offload_action for supported actions. 15299 * This attribute is mandatory. 15300 * 15301 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID: 15302 * u32 attribute. Represents the Request ID for the CoAP offload 15303 * configuration, which can help to identify the user entity starting 15304 * the CoAP offload processing and accordingly stop the respective 15305 * ones/get the cached CoAP messages with the matching ID. 15306 * This attribute is mandatory. 15307 * 15308 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY: 15309 * Nested attribute. Parameters for offload reply. 15310 * See enum qca_wlan_vendor_attr_coap_offload_reply for the list of 15311 * supported attributes. 15312 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION 15313 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_ENABLE, and is ignored 15314 * otherwise. 15315 * 15316 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX: 15317 * Nested attribute. Parameters for offload periodic transmitting. 15318 * See enum qca_wlan_vendor_attr_coap_offload_periodic_tx for the list of 15319 * supported attributes. 15320 * This attribute is mandatory if %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION is 15321 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_PERIODIC_TX_ENABLE, and is ignored 15322 * otherwise. 15323 * 15324 * @QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES: 15325 * Array of nested attributes. Information of the cached CoAP messages, 15326 * where each entry is taken from 15327 * enum qca_wlan_vendor_attr_coap_offload_cache_info. 15328 * This attribute is used for reporting the cached CoAP messages 15329 * in reply for command in which %QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION 15330 * is QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_CACHE_GET or 15331 * QCA_WLAN_VENDOR_COAP_OFFLOAD_ACTION_REPLY_DISABLE. It means there is no 15332 * cached item if this attribute is not present. 15333 */ 15334 enum qca_wlan_vendor_attr_coap_offload { 15335 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_INVALID = 0, 15336 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_ACTION = 1, 15337 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REQ_ID = 2, 15338 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_REPLY = 3, 15339 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_PERIODIC_TX = 4, 15340 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_CACHES = 5, 15341 15342 /* keep last */ 15343 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST, 15344 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_MAX = 15345 QCA_WLAN_VENDOR_ATTR_COAP_OFFLOAD_AFTER_LAST - 1, 15346 }; 15347 15348 /** 15349 * enum qca_wlan_vendor_attr_scs_rule_config - Used by the vendor command 15350 * QCA_NL80211_VENDOR_SUBCMD_SCS_RULE_CONFIG to configure Stream Classification 15351 * Service (SCS) rule. 15352 * 15353 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID: Mandatory u32 attribute. 15354 * Represents the unique id of SCS rule to be configured. 15355 15356 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE: Mandatory u8 attribute. 15357 * Represents the request type: add, remove, or change. 15358 * Values as defined in IEEE Std 802.11-2020, Table 9-246 (SCS Request 15359 * Type definitions). 15360 * 15361 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID: Mandatory u8 attribute 15362 * in case of add/change request type. 15363 * Represents the output traffic identifier (TID) to be assigned to the flow 15364 * matching the rule. 15365 * 15366 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE: Mandatory u8 15367 * attribute in case of add/change request type. 15368 * Represents type of classifier parameters present in SCS rule. 15369 * Refer IEEE Std 802.11-2020 Table 9-164 (Frame classifier type). 15370 * Only classifier types 4 and 10 are supported for SCS. 15371 * 15372 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION: Mandatory u8 attribute 15373 * in case of add/change request type when classifier type is TCLAS4. 15374 * Represents the IP version (4: IPv4, 6: IPv6) of the rule. 15375 * 15376 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR: Optional 15377 * attribute in case of add/change request type when classifier type is TCLAS4 15378 * and version attribute is IPv4. 15379 * Represents the source IPv4 address in the rule which is to be compared 15380 * against the source IP address in the IPv4 header. 15381 * 15382 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR: Optional 15383 * attribute in case of add/change request type when classifier type is TCLAS4 15384 * and version attribute is IPv4. 15385 * Represents the destination IPv4 address in the rule which is to be compared 15386 * against the destination IP address in the IPv4 header. 15387 * 15388 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR: Optional 15389 * attribute in case of add/change request type when classifier type is TCLAS4 15390 * and version attribute is IPv6. 15391 * Represents the source IPv6 address in the rule which is to be compared 15392 * against the source IP address in the IPv6 header. 15393 * 15394 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR: Optional 15395 * attribute in case of add/change request type when classifier type is TCLAS4 15396 * and version attribute is IPv6. 15397 * Represents the destination IPv6 address in the rule which is to be compared 15398 * against the destination IP address in the IPv6 header. 15399 * 15400 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT: Optional u16 attribute 15401 * in case of add/change request type when classifier type is TCLAS4. 15402 * Represents the source port number in the rule which is to be compared against 15403 * the source port number in the protocol header. 15404 * 15405 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT: Optional u16 attribute 15406 * in case of add/change request type when classifier type is TCLAS4. 15407 * Represents the destination port number in the rule which is to be compared 15408 * against the destination port number in the protocol header. 15409 * 15410 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP: Optional u8 attribute 15411 * in case of add/change request type when classifier type is TCLAS4. 15412 * Represents the DSCP value in the rule which is to be compared against the 15413 * DSCP field present in the IP header. 15414 * 15415 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER: Optional u8 15416 * attribute in case of add/change request type when classifier type is TCLAS4. 15417 * Represents the protocol/next header in the rule which is to be compared 15418 * against the protocol/next header field present in the IPv4/IPv6 header. 15419 * 15420 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL: Optional 15421 * attribute of size 3 bytes present in case of add/change request type 15422 * when classifier type is TCLAS4 and version is IPv6. 15423 * Represents the flow label value in the rule which is to be compared against 15424 * the flow label field present in the IPv6 header. 15425 * 15426 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE: Optional u8 15427 * attribute in case of add/change request type when classifier type is TCLAS10. 15428 * Represents the protocol instance number in the rule. 15429 * 15430 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER: Optional u8 15431 * attribute in case of add/change request type when classifier type is TCLAS10. 15432 * Represents the protocol/next header in the rule which is to be compared 15433 * against the protocol/next header field present in the IPv4/IPv6 header. 15434 * 15435 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK: Optional 15436 * attribute of variable length present when request type is add/change and 15437 * classifier type is TCLAS10. 15438 * Represents the mask to be used for masking the header contents of the header 15439 * specified by QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER 15440 * attribute. 15441 * 15442 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE: Optional 15443 * attribute of variable length present when request type is add/change and 15444 * classifier type is TCLAS10. 15445 * Represents the value to be compared against after masking the header contents 15446 * of the header specified by the 15447 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER attribute with the 15448 * filter mask specified by the 15449 * QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK attribute. 15450 * 15451 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID: Optional u16 15452 * attribute. 15453 * Represents the service class id of the configured SCS rule. 15454 * 15455 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR: Optional 6 bytes 15456 * MAC address. 15457 * Represents the destination MAC address in the rule. 15458 * 15459 * @QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX: Optional u32 attribute 15460 * Represents the netdevice interface index in the rule. 15461 */ 15462 enum qca_wlan_vendor_attr_scs_rule_config { 15463 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_INVALID = 0, 15464 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_RULE_ID = 1, 15465 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_REQUEST_TYPE = 2, 15466 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_OUTPUT_TID = 3, 15467 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_CLASSIFIER_TYPE = 4, 15468 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_VERSION = 5, 15469 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV4_ADDR = 6, 15470 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV4_ADDR = 7, 15471 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_IPV6_ADDR = 8, 15472 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_IPV6_ADDR = 9, 15473 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_SRC_PORT = 10, 15474 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DST_PORT = 11, 15475 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_DSCP = 12, 15476 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_NEXT_HEADER = 13, 15477 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS4_FLOW_LABEL = 14, 15478 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_PROTOCOL_INSTANCE = 15, 15479 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_NEXT_HEADER = 16, 15480 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_MASK = 17, 15481 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_TCLAS10_FILTER_VALUE = 18, 15482 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_SERVICE_CLASS_ID = 19, 15483 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_DST_MAC_ADDR = 20, 15484 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_NETDEV_IF_INDEX = 21, 15485 15486 /* Keep last */ 15487 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST, 15488 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_MAX = 15489 QCA_WLAN_VENDOR_ATTR_SCS_RULE_CONFIG_AFTER_LAST - 1, 15490 }; 15491 15492 /** 15493 * enum qca_wlan_vendor_attr_mlo_links - Definition of attributes used inside 15494 * nested attribute QCA_WLAN_VENDOR_ATTR_ROAM_AUTH_MLO_LINKS. 15495 * 15496 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID: u8 attribute, link ID of this MLO link. 15497 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR: Own MAC address of this MLO link. 15498 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID: AP link MAC address of this MLO link. 15499 */ 15500 enum qca_wlan_vendor_attr_mlo_links { 15501 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INVALID = 0, 15502 QCA_WLAN_VENDOR_ATTR_MLO_LINK_ID = 1, 15503 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAC_ADDR = 2, 15504 QCA_WLAN_VENDOR_ATTR_MLO_LINK_BSSID = 3, 15505 15506 /* Keep last */ 15507 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST, 15508 QCA_WLAN_VENDOR_ATTR_MLO_LINK_MAX = 15509 QCA_WLAN_VENDOR_ATTR_MLO_LINK_AFTER_LAST - 1, 15510 }; 15511 15512 /** 15513 * enum qca_wlan_vendor_sar_version - This describes the current SAR version 15514 * used in the firmware. 15515 * 15516 * @QCA_WLAN_VENDOR_SAR_VERSION_1: The firmware supports legacy SAR. 15517 * In legacy SAR, the firmware supports 5 static and 1 user defined SAR limits. 15518 * 15519 * @QCA_WLAN_VENDOR_SAR_VERSION_2: The firmware supports SAR version 2, 15520 * i.e., SAR Non DBS mode. In SAR version 2, the firmware has 6 SAR tables for 15521 * each CTL group. So user can select up to 6 SAR indexes from the current CTL 15522 * groups. 15523 * 15524 * @QCA_WLAN_VENDOR_SAR_VERSION_3: The firmware supports SAR version 3, 15525 * i.e., SAR DBS mode. In SAR version 3, the firmware has 6 SAR tables for each 15526 * CTL group but user can choose up to 3 SAR set index only, as the top half 15527 * of the SAR index (0 to 2) is used for non DBS purpose and the bottom half of 15528 * the SAR index (3 to 5) is used for DBS mode. 15529 * 15530 * @QCA_WLAN_VENDOR_SAR_VERSION_4: The firmware supports SAR version 4, 15531 * known as SAR Smart Transmit (STX) mode. STX is time averaging algorithmic 15532 * for power limit computation in collaboration with WWAN. 15533 * In STX mode, firmware has 41 indexes and there is no ctl grouping uses. 15534 * 15535 * @QCA_WLAN_VENDOR_SAR_VERSION_5: The firmware supports SAR version 5, 15536 * known as TAS (Time Averaging SAR) mode. In TAS mode, as name implies 15537 * instead of fixed static SAR power limit firmware uses time averaging 15538 * to adjust the SAR limit dynamically. It is wlan soc standalone mechanism. 15539 * In this mode firmware has up to 43 indexes. 15540 */ 15541 enum qca_wlan_vendor_sar_version { 15542 QCA_WLAN_VENDOR_SAR_VERSION_INVALID = 0, 15543 QCA_WLAN_VENDOR_SAR_VERSION_1 = 1, 15544 QCA_WLAN_VENDOR_SAR_VERSION_2 = 2, 15545 QCA_WLAN_VENDOR_SAR_VERSION_3 = 3, 15546 QCA_WLAN_VENDOR_SAR_VERSION_4 = 4, 15547 QCA_WLAN_VENDOR_SAR_VERSION_5 = 5, 15548 }; 15549 15550 /** 15551 * enum qca_wlan_vendor_sar_ctl_group_state - This describes whether 15552 * CTL grouping is enabled or disabled in the firmware. 15553 * 15554 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED: CTL grouping 15555 * is enabled in firmware. 15556 * 15557 * @QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED: CTL grouping 15558 * is disabled in firmware. 15559 * 15560 */ 15561 enum qca_wlan_vendor_sar_ctl_group_state { 15562 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_INVALID = 0, 15563 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_ENABLED = 1, 15564 QCA_WLAN_VENDOR_SAR_CTL_GROUP_STATE_DISABLED = 2, 15565 }; 15566 15567 /** 15568 * enum qca_wlan_vendor_attr_sar_capability - Used by the vendor command 15569 * QCA_NL80211_VENDOR_SUBCMD_GET_SAR_CAPABILITY to get SAR capabilities 15570 * supported by the firmware. 15571 15572 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION: 15573 * u32 attribute. This field describes current SAR version supported by the 15574 * firmware. 15575 * See enum qca_wlan_vendor_sar_version for more information. 15576 * This attribute is mandatory. 15577 15578 * @QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE: 15579 * u32 attribute. This field describes whether CTL groups are enabled 15580 * or disabled in the firmware. 15581 * See enum qca_wlan_vendor_sar_ctl_group_state for more information. 15582 * This attribute is optional. 15583 */ 15584 15585 enum qca_wlan_vendor_attr_sar_capability { 15586 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_INVALID = 0, 15587 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_VERSION = 1, 15588 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_CTL_GROUP_STATE = 2, 15589 15590 /* Keep last */ 15591 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST, 15592 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_MAX = 15593 QCA_WLAN_VENDOR_ATTR_SAR_CAPABILITY_AFTER_LAST - 1, 15594 }; 15595 15596 /** 15597 * enum qca_wlan_vendor_attr_sr_stats - Attributes for Spatial Reuse statistics. 15598 * These statistics are sent from the driver in a response when userspace 15599 * queries to get the statistics using the operation 15600 * %QCA_WLAN_SR_OPERATION_GET_STATS. These statistics are reset 15601 * by the driver when the SR feature is enabled, when the driver receives 15602 * %QCA_WLAN_SR_OPERATION_CLEAR_STATS operation, or when disconnected. 15603 * 15604 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute. 15605 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15606 * This represents the number of non-SRG TX opportunities. 15607 * 15608 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT: u32 attribute. 15609 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15610 * This represents the number of non-SRG PPDUs tried to transmit. 15611 * 15612 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute. 15613 * Mandatory only when non-SRG is supported by the AP and optional otherwise. 15614 * This represents the number of non-SRG PPDUs successfully transmitted. 15615 * 15616 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT: u32 attribute. 15617 * Mandatory only when SRG is supported by the AP and optional otherwise. 15618 * This represents the number of SRG TX opportunities. 15619 * 15620 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT: u32 attribute. 15621 * Mandatory only when SRG is supported by the AP and optional otherwise. 15622 * This represents the number of SRG PPDUs tried to transmit. 15623 * 15624 * @QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT: u32 attribute. 15625 * Mandatory only when SRG is supported by the AP and optional otherwise. 15626 * This represents the number of SRG PPDUs successfully transmitted. 15627 */ 15628 enum qca_wlan_vendor_attr_sr_stats { 15629 QCA_WLAN_VENDOR_ATTR_SR_STATS_INVALID = 0, 15630 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_OPPORTUNITIES_COUNT = 1, 15631 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_TRIED_COUNT = 2, 15632 QCA_WLAN_VENDOR_ATTR_SR_STATS_NON_SRG_TX_PPDU_SUCCESS_COUNT = 3, 15633 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_OPPORTUNITIES_COUNT = 4, 15634 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_TRIED_COUNT = 5, 15635 QCA_WLAN_VENDOR_ATTR_SR_STATS_SRG_TX_PPDU_SUCCESS_COUNT = 6, 15636 15637 /* Keep last */ 15638 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST, 15639 QCA_WLAN_VENDOR_ATTR_SR_STATS_MAX = 15640 QCA_WLAN_VENDOR_ATTR_SR_STATS_AFTER_LAST - 1, 15641 }; 15642 15643 /** 15644 * enum qca_wlan_sr_reason_code - Defines the different reason codes used in 15645 * Spatial Reuse feature. 15646 * 15647 * @QCA_WLAN_SR_REASON_CODE_ROAMING: The SR feature is disabled/enabled due to 15648 * roaming to an AP that doesn't support/supports SR feature, respectively. 15649 * 15650 * @QCA_WLAN_SR_REASON_CODE_CONCURRENCY: The SR feature is disabled/enabled due 15651 * to change in concurrent interfaces that are supported by the driver. 15652 */ 15653 enum qca_wlan_sr_reason_code { 15654 QCA_WLAN_SR_REASON_CODE_ROAMING = 0, 15655 QCA_WLAN_SR_REASON_CODE_CONCURRENCY = 1, 15656 }; 15657 15658 /** 15659 * enum qca_wlan_sr_operation - Defines the different types of SR operations. 15660 * The values are used inside attribute %QCA_WLAN_VENDOR_ATTR_SR_OPERATION. 15661 * 15662 * @QCA_WLAN_SR_OPERATION_SR_ENABLE: Userspace sends this operation to the 15663 * driver to enable the Spatial Reuse feature. Attributes 15664 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and 15665 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD are used with this 15666 * operation. 15667 * 15668 * @QCA_WLAN_SR_OPERATION_SR_DISABLE: Userspace sends this operation to the 15669 * driver to disable the Spatial Reuse feature. 15670 * 15671 * @QCA_WLAN_SR_OPERATION_SR_SUSPEND: The driver uses this operation in an 15672 * asynchronous event sent to userspace when the SR feature is disabled. 15673 * The disable reason is encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE 15674 * and sent along with the asynchronous event. 15675 * 15676 * @QCA_WLAN_SR_OPERATION_SR_RESUME: The driver uses this operation in an 15677 * asynchronous event when the SR feature is enabled again after the SR feature 15678 * was suspended by the driver earlier. The enable reason is 15679 * encoded in QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE. Attributes used are 15680 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD and 15681 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD. 15682 * 15683 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT: This operation is 15684 * used to prohibit PSR-based spatial reuse and non-SRG OBSS PD-based spatial 15685 * reuse transmissions. Userspace sends this operation to the driver. 15686 * The driver/firmware upon receiving this operation shall prohibit PSR-based 15687 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions. 15688 * 15689 * @QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW: This operation is 15690 * used to allow PSR-based spatial reuse and non-SRG OBSS PD-based spatial 15691 * reuse transmissions. Userspace sends this operation to the driver. 15692 * The driver/firmware upon receiving this operation shall allow PSR-based 15693 * spatial reuse and non-SRG OBSS PD-based spatial reuse transmissions. 15694 * 15695 * @QCA_WLAN_SR_OPERATION_GET_STATS: Userspace sends this operation to the 15696 * driver to get the SR statistics and the driver sends a synchronous response 15697 * with the attributes defined in enum qca_wlan_vendor_attr_sr_stats using the 15698 * nested attribute %QCA_WLAN_VENDOR_ATTR_SR_STATS. 15699 * 15700 * @QCA_WLAN_SR_OPERATION_CLEAR_STATS: Userspace sends this operation to the 15701 * driver to clear the SR statistics and upon receiving this operation 15702 * the driver/firmware shall clear the SR statistics. 15703 * 15704 * @QCA_WLAN_SR_OPERATION_GET_PARAMS: Userspace sends this operation to the 15705 * driver to get the SR parameters and the driver sends the synchronous response 15706 * with the following required attributes: 15707 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET, 15708 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET, 15709 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET, 15710 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE, 15711 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW. 15712 * 15713 * @QCA_WLAN_SR_OPERATION_UPDATE_PARAMS: The driver uses this operation in an 15714 * asynchronous event to userspace to update any changes in SR parameters. 15715 * The following attributes are used with this operation: 15716 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET, 15717 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET, 15718 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET, 15719 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE, 15720 * %QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW. 15721 */ 15722 enum qca_wlan_sr_operation { 15723 QCA_WLAN_SR_OPERATION_SR_ENABLE = 0, 15724 QCA_WLAN_SR_OPERATION_SR_DISABLE = 1, 15725 QCA_WLAN_SR_OPERATION_SR_SUSPEND = 2, 15726 QCA_WLAN_SR_OPERATION_SR_RESUME = 3, 15727 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT = 4, 15728 QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_ALLOW = 5, 15729 QCA_WLAN_SR_OPERATION_GET_STATS = 6, 15730 QCA_WLAN_SR_OPERATION_CLEAR_STATS = 7, 15731 QCA_WLAN_SR_OPERATION_GET_PARAMS = 8, 15732 QCA_WLAN_SR_OPERATION_UPDATE_PARAMS = 9, 15733 }; 15734 15735 /** 15736 * enum qca_wlan_vendor_attr_sr_params - Defines attributes for SR configuration 15737 * parameters used by attribute %QCA_WLAN_VENDOR_ATTR_SR_PARAMS. 15738 * 15739 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE: Flag attribute. 15740 * This attribute is optionally set in response to 15741 * %QCA_WLAN_SR_OPERATION_GET_PARAMS and in request when operation is set to 15742 * %QCA_WLAN_SR_OPERATION_PSR_AND_NON_SRG_OBSS_PD_PROHIBIT. Refer IEEE Std 15743 * 802.11ax-2021 Figure 9-788r-SR Control field format to understand more 15744 * about HESIGA_Spatial_reuse_value15_allowed. 15745 * 15746 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW: Flag attribute. 15747 * This attribute is used in response to %QCA_WLAN_SR_OPERATION_GET_PARAMS 15748 * operation. This indicates whether non-SRG OBSS PD SR transmissions are 15749 * allowed or not at non-AP STAs that are associated with the AP. If present 15750 * non-SRG OBSS PD SR transmissions are not allowed else are allowed. 15751 * 15752 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET: Optional u8 15753 * attribute. This attribute is used in response to 15754 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD 15755 * Min Offset field which contains an unsigned integer that is added to -82 dBm 15756 * to generate the value of the SRG OBSS PD Min parameter. 15757 * 15758 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET: Optional u8 15759 * attribute. This attribute is used in response to 15760 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the SRG OBSS PD 15761 * Max Offset field which contains an unsigned integer that is added to -82 dBm 15762 * to generate the value of the SRG OBSS PD Max parameter. 15763 * 15764 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET: Optional u8 15765 * attribute. This attribute is used in response to 15766 * %QCA_WLAN_SR_OPERATION_GET_PARAMS operation. This indicates the Non-SRG OBSS 15767 * PD Max Offset field which contains an unsigned integer that is added to -82 15768 * dBm to generate the value of the Non-SRG OBSS PD Max parameter. 15769 * 15770 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD: s32 attribute (in dBm). 15771 * Userspace optionally sends this attribute with 15772 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the 15773 * preferred SRG PD threshold. The driver shall send this attribute to 15774 * userspace in SR resume event to indicate the PD threshold being used for SR. 15775 * When there is change in SRG PD threshold (for example, due to roaming, etc.) 15776 * the driver shall indicate the userspace the newly configured SRG PD threshold 15777 * using an asynchronous event. 15778 * 15779 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD: s32 attribute (in dBm). 15780 * Userspace optionally sends this attribute with 15781 * %QCA_WLAN_SR_OPERATION_SR_ENABLE operation to the driver to specify the 15782 * preferred non-SRG PD threshold. The driver shall send this attribute to 15783 * userspace in SR resume event to indicate the PD threshold being used for SR. 15784 * When there is change in non-SRG PD threshold (for example, due to roaming, 15785 * etc.) the driver shall indicate the userspace the newly configured non-SRG PD 15786 * threshold using an asynchronous event. 15787 * 15788 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE: u32 attribute. The possible 15789 * values are defined in enum qca_wlan_sr_reason_code. This 15790 * attribute is used with %QCA_WLAN_SR_OPERATION_SR_RESUME and 15791 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND operations. 15792 */ 15793 enum qca_wlan_vendor_attr_sr_params { 15794 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_INVALID = 0, 15795 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_HESIGA_VAL15_ENABLE = 1, 15796 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_DISALLOW = 2, 15797 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MIN_OFFSET = 3, 15798 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_OBSS_PD_MAX_OFFSET = 4, 15799 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_OBSS_PD_MAX_OFFSET = 5, 15800 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_SRG_PD_THRESHOLD = 6, 15801 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_NON_SRG_PD_THRESHOLD = 7, 15802 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_REASON_CODE = 8, 15803 15804 /* keep last */ 15805 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST, 15806 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_MAX = 15807 QCA_WLAN_VENDOR_ATTR_SR_PARAMS_AFTER_LAST - 1, 15808 }; 15809 15810 /** 15811 * enum qca_wlan_vendor_attr_sr - Defines the attributes used by the vendor 15812 * command QCA_NL80211_VENDOR_SUBCMD_SR. 15813 * 15814 * @QCA_WLAN_VENDOR_ATTR_SR_OPERATION: Mandatory u8 attribute for all requests 15815 * from userspace to the driver. Possible values are defined in enum 15816 * qca_wlan_sr_operation. 15817 * 15818 * @QCA_WLAN_VENDOR_ATTR_SR_PARAMS: Nested attribute, contains the SR 15819 * configuration parameters. The possible attributes inside this attribute are 15820 * defined in enum qca_wlan_vendor_attr_sr_params. 15821 * This attribute is used when QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to 15822 * %QCA_WLAN_SR_OPERATION_SR_ENABLE in requests from userspace to the driver and 15823 * also in response from the driver to userspace when the response is sent for 15824 * %QCA_WLAN_SR_OPERATION_GET_PARAMS. 15825 * The driver uses this attribute in asynchronous events in which the operation 15826 * is set to %QCA_WLAN_SR_OPERATION_SR_RESUME, 15827 * %QCA_WLAN_SR_OPERATION_SR_SUSPEND or %QCA_WLAN_SR_OPERATION_UPDATE_PARAMS. 15828 * 15829 * @QCA_WLAN_VENDOR_ATTR_SR_STATS: Nested attribute, contains the SR 15830 * statistics. These attributes used inside this are defined in enum 15831 * qca_wlan_vendor_attr_sr_stats. 15832 * This attribute is used in response from the driver to a command in which 15833 * %QCA_WLAN_VENDOR_ATTR_SR_OPERATION is set to 15834 * %QCA_WLAN_SR_OPERATION_GET_STATS. 15835 */ 15836 enum qca_wlan_vendor_attr_sr { 15837 QCA_WLAN_VENDOR_ATTR_SR_INVALID = 0, 15838 QCA_WLAN_VENDOR_ATTR_SR_OPERATION = 1, 15839 QCA_WLAN_VENDOR_ATTR_SR_PARAMS = 2, 15840 QCA_WLAN_VENDOR_ATTR_SR_STATS = 3, 15841 15842 /* Keep last */ 15843 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST, 15844 QCA_WLAN_VENDOR_ATTR_SR_MAX = 15845 QCA_WLAN_VENDOR_ATTR_SR_AFTER_LAST - 1, 15846 }; 15847 15848 /** 15849 * enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event - Defines the attributes 15850 * used in the QCA_NL80211_VENDOR_SUBCMD_MLO_PEER_PRIM_NETDEV_EVENT subcommand. 15851 * 15852 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR: 6 byte MAC address 15853 * used by the peer on the link that corresponds to the link used for sending 15854 * the event notification. 15855 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR: 6 byte 15856 * MLD MAC address of the peer. 15857 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX: u32 attribute, 15858 * used to pass ifindex of the primary netdev. 15859 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX: u32 attribute, 15860 * used to pass ifindex of the MLD netdev. 15861 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS: u8 attribute, 15862 * used to indicate the number of links that the non-AP MLD negotiated to be 15863 * used in the ML connection. 15864 * @QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO: Nested 15865 * attribute, contains information regarding links of the non-AP MLD. 15866 * User applications need to know all the links of a non-AP MLD that are 15867 * participating in the ML association. The possible attributes inside this 15868 * attribute are defined in enum qca_wlan_vendor_attr_mlo_link_info. 15869 */ 15870 enum qca_wlan_vendor_attr_mlo_peer_prim_netdev_event { 15871 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_INVALID = 0, 15872 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MACADDR = 1, 15873 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_MAC_ADDR = 2, 15874 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_PRIM_IFINDEX = 3, 15875 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MLD_IFINDEX = 4, 15876 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_NUM_LINKS = 5, 15877 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO = 6, 15878 15879 /* keep last */ 15880 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST, 15881 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_MAX = 15882 QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_AFTER_LAST - 1, 15883 }; 15884 15885 /** 15886 * enum qca_wlan_vendor_attr_mlo_link_info - Defines attributes for 15887 * non-AP MLD link parameters used by the attribute 15888 * %QCA_WLAN_VENDOR_ATTR_MLO_PEER_PRIM_NETDEV_EVENT_LINK_INFO. 15889 * 15890 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX: u32 attribute, used 15891 * to pass the netdev ifindex of the non-AP MLD link. 15892 * @QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR: 6 byte MAC address of 15893 * the non-AP MLD link. 15894 */ 15895 enum qca_wlan_vendor_attr_mlo_link_info { 15896 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_INVALID = 0, 15897 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_IFINDEX = 1, 15898 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MACADDR = 2, 15899 15900 /* keep last */ 15901 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST, 15902 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_MAX = 15903 QCA_WLAN_VENDOR_ATTR_MLO_LINK_INFO_AFTER_LAST - 1, 15904 }; 15905 15906 /** 15907 * enum qca_wlan_vendor_attr_afc_freq_psd_info: This enum is used with 15908 * nested attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and 15909 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST to update the frequency range 15910 * and PSD information. 15911 * 15912 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START: Required and type is 15913 * u32. This attribute is used to indicate the start of the queried frequency 15914 * range in MHz. 15915 * 15916 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END: Required and type is u32. 15917 * This attribute is used to indicate the end of the queried frequency range 15918 * in MHz. 15919 * 15920 * @QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD: Required and type is u32. 15921 * This attribute will contain the PSD information for a single range as 15922 * specified by the QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START and 15923 * QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END attributes. 15924 * 15925 * The PSD power info (dBm/MHz) from user space should be multiplied 15926 * by a factor of 100 when sending to the driver to preserve granularity 15927 * up to 2 decimal places. 15928 * Example: 15929 * PSD power value: 10.21 dBm/MHz 15930 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_PSD_INFO: 1021. 15931 * 15932 * Note: QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD attribute will be used only 15933 * with nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO and with 15934 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST when 15935 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15936 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE. 15937 * 15938 * The following set of attributes will be used to exchange frequency and 15939 * corresponding PSD information for AFC between the user space and the driver. 15940 */ 15941 enum qca_wlan_vendor_attr_afc_freq_psd_info { 15942 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_INVALID = 0, 15943 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_START = 1, 15944 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_RANGE_END = 2, 15945 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_PSD = 3, 15946 15947 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST, 15948 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_MAX = 15949 QCA_WLAN_VENDOR_ATTR_AFC_FREQ_PSD_INFO_AFTER_LAST - 1, 15950 }; 15951 15952 /** 15953 * enum qca_wlan_vendor_attr_afc_chan_eirp_info: This enum is used with 15954 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_CHAN_LIST_INFO to update the 15955 * channel list and corresponding EIRP information. 15956 * 15957 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM: Required and type is u8. 15958 * This attribute is used to indicate queried channel from 15959 * the operating class indicated in QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO. 15960 * 15961 * @QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP: Optional and type is u32. 15962 * This attribute is used to configure the EIRP power info corresponding 15963 * to the channel number indicated in QCA_WLAN_VENDOR_ATTR_AFC_CHAN_NUM. 15964 * The EIRP power info(dBm) from user space should be multiplied 15965 * by a factor of 100 when sending to Driver to preserve granularity up to 15966 * 2 decimal places. 15967 * Example: 15968 * EIRP power value: 34.23 dBm 15969 * Value to be updated in QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO: 3423. 15970 * 15971 * Note: QCA_WLAN_VENDOR_ATTR_AFC_EIRP_INFO attribute will only be used with 15972 * nested attribute QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 15973 * with QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST when 15974 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 15975 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: 15976 * 15977 * The following set of attributes will be used to exchange Channel and 15978 * corresponding EIRP information for AFC between the user space and Driver. 15979 */ 15980 enum qca_wlan_vendor_attr_afc_chan_eirp_info { 15981 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_INVALID = 0, 15982 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM = 1, 15983 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP = 2, 15984 15985 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST, 15986 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_MAX = 15987 QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_AFTER_LAST - 1, 15988 }; 15989 15990 /** 15991 * enum qca_wlan_vendor_attr_afc_opclass_info: This enum is used with nested 15992 * attributes QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 15993 * QCA_WLAN_VENDOR_ATTR_AFC_REQ_OPCLASS_CHAN_INFO to update the operating class, 15994 * channel, and EIRP related information. 15995 * 15996 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS: Required and type is u8. 15997 * This attribute is used to indicate the operating class, as listed under 15998 * IEEE Std 802.11-2020 Annex E Table E-4, for the queried channel list. 15999 * 16000 * @QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST: Array of nested attributes 16001 * for updating the channel number and EIRP power information. 16002 * It uses the attributes defined in 16003 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. 16004 * 16005 * Operating class information packing format for 16006 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when 16007 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16008 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE_EXPIRY. 16009 * 16010 * m - Total number of operating classes. 16011 * n, j - Number of queried channels for the corresponding operating class. 16012 * 16013 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0] 16014 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0] 16015 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 16016 * ..... 16017 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1] 16018 * .... 16019 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m] 16020 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m] 16021 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 16022 * .... 16023 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1] 16024 * 16025 * Operating class information packing format for 16026 * QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO and 16027 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_INFO when 16028 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16029 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE. 16030 * 16031 * m - Total number of operating classes. 16032 * n, j - Number of channels for the corresponding operating class. 16033 * 16034 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[0] 16035 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[0] 16036 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 16037 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0] 16038 * ..... 16039 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[n - 1] 16040 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[n - 1] 16041 * .... 16042 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS[m] 16043 * QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST[m] 16044 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[0] 16045 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[0] 16046 * .... 16047 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_CHAN_NUM[j - 1] 16048 * QCA_WLAN_VENDOR_ATTR_AFC_CHAN_EIRP_INFO_EIRP[j - 1] 16049 * 16050 * The following set of attributes will be used to exchange operating class 16051 * information for AFC between the user space and the driver. 16052 */ 16053 enum qca_wlan_vendor_attr_afc_opclass_info { 16054 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_INVALID = 0, 16055 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_OPCLASS = 1, 16056 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_CHAN_LIST = 2, 16057 16058 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST, 16059 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_MAX = 16060 QCA_WLAN_VENDOR_ATTR_AFC_OPCLASS_INFO_AFTER_LAST - 1, 16061 }; 16062 16063 /** 16064 * enum qca_wlan_vendor_afc_event_type: Defines values for AFC event type. 16065 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE attribute. 16066 * 16067 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY: AFC expiry event sent from the 16068 * driver to userspace in order to query the new AFC power values. 16069 * 16070 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE: Power update 16071 * complete event will be sent from the driver to userspace to indicate 16072 * processing of the AFC response. 16073 * 16074 * @QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET: AFC payload reset event 16075 * will be sent from the driver to userspace to indicate last received 16076 * AFC response data has been cleared on the AP due to invalid data 16077 * in the QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. 16078 * 16079 * The following enum defines the different event types that will be 16080 * used by the driver to help trigger corresponding AFC functionality in user 16081 * space. 16082 */ 16083 enum qca_wlan_vendor_afc_event_type { 16084 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY = 0, 16085 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE = 1, 16086 QCA_WLAN_VENDOR_AFC_EVENT_TYPE_PAYLOAD_RESET = 2, 16087 }; 16088 16089 /** 16090 * enum qca_wlan_vendor_afc_ap_deployment_type: Defines values for AP 16091 * deployment type. 16092 * Attribute used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT attribute. 16093 * 16094 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN: Unknown AP deployment. 16095 * 16096 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR: Indoor AP deployment. 16097 * 16098 * @QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR: Outdoor AP deployment. 16099 * 16100 * The following enum defines different deployment modes that the AP might 16101 * come up in. This information will be essential to retrieve deployment-type 16102 * specific SP power values for AFC operation. 16103 */ 16104 enum qca_wlan_vendor_afc_ap_deployment_type { 16105 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_UNKNOWN = 0, 16106 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_INDOOR = 1, 16107 QCA_WLAN_VENDOR_AFC_AP_DEPLOYMENT_TYPE_OUTDOOR = 2, 16108 }; 16109 16110 /** 16111 * enum qca_wlan_vendor_afc_evt_status_code: Defines values AP will use to 16112 * indicate AFC response status. 16113 * Enum used by QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE attribute. 16114 * 16115 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS: Success 16116 * 16117 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT: Indicates AFC indication 16118 * command was not received within the expected time of the AFC expiry event 16119 * being triggered. 16120 * 16121 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR: Indicates AFC data 16122 * parsing error by the driver. 16123 * 16124 * @QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR: Indicates any other local 16125 * error. 16126 * 16127 * The following enum defines the status codes that the driver will use to 16128 * indicate whether the AFC data is valid or not. 16129 */ 16130 enum qca_wlan_vendor_afc_evt_status_code { 16131 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_SUCCESS = 0, 16132 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_TIMEOUT = 1, 16133 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_PARSING_ERROR = 2, 16134 QCA_WLAN_VENDOR_AFC_EVT_STATUS_CODE_LOCAL_ERROR = 3, 16135 }; 16136 16137 /** 16138 * enum qca_wlan_vendor_attr_afc_event: Defines attributes to be used with 16139 * vendor event QCA_NL80211_VENDOR_SUBCMD_AFC_EVENT. These attributes will 16140 * support sending only a single request to the user space at a time. 16141 * 16142 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE: Required u8 attribute. 16143 * Used with event to notify the type of AFC event received. 16144 * Valid values are defined in enum qca_wlan_vendor_afc_event_type. 16145 * 16146 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT: u8 attribute. Required when 16147 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, 16148 * otherwise unused. 16149 * 16150 * This attribute is used to indicate the AP deployment type in the AFC request. 16151 * Valid values are defined in enum qca_wlan_vendor_afc_ap_deployment_type. 16152 * 16153 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID: Required u32 attribute. 16154 * Unique request identifier generated by the AFC client for every 16155 * AFC expiry event trigger. See also QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID. 16156 * The user space application is responsible for ensuring no duplicate values 16157 * are in-flight with the server, e.g., by delaying a request, should the same 16158 * value be received from different radios in parallel. 16159 * 16160 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION: u32 attribute. Optional. 16161 * It is used when the QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16162 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, otherwise unused. 16163 * 16164 * This attribute indicates the AFC spec version information. This will 16165 * indicate the AFC version AFC client must use to query the AFC data. 16166 * Bits 15:0 - Minor version 16167 * Bits 31:16 - Major version 16168 * 16169 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER: u16 attribute. Required when 16170 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY, 16171 * otherwise unused. 16172 * This attribute indicates the minimum desired power (in dBm) for 16173 * the queried spectrum. 16174 * 16175 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE: u8 attribute. Required when 16176 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16177 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16178 * 16179 * Valid values are defined in enum qca_wlan_vendor_afc_evt_status_code. 16180 * This attribute is used to indicate if there were any errors parsing the 16181 * AFC response. 16182 * 16183 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE: s32 attribute. Required 16184 * when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16185 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16186 * 16187 * This attribute indicates the AFC response code. The AFC response codes are 16188 * in the following categories: 16189 * -1: General Failure. 16190 * 0: Success. 16191 * 100 - 199: General errors related to protocol. 16192 * 300 - 399: Error events specific to message exchange 16193 * for the Available Spectrum Inquiry. 16194 * 16195 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE: u32 attribute. Required when 16196 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16197 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16198 * 16199 * This attribute indicates the date until which the current response is 16200 * valid for in UTC format. 16201 * Date format: bits 7:0 - DD (Day 1-31) 16202 * bits 15:8 - MM (Month 1-12) 16203 * bits 31:16 - YYYY (Year) 16204 * 16205 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME: u32 attribute. Required when 16206 * QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16207 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16208 * 16209 * This attribute indicates the time until which the current response is 16210 * valid for in UTC format. 16211 * Time format: bits 7:0 - SS (Seconds 0-59) 16212 * bits 15:8 - MM (Minutes 0-59) 16213 * bits 23:16 - HH (Hours 0-23) 16214 * bits 31:24 - Reserved 16215 * 16216 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST: Array of nested attributes 16217 * for updating the list of frequency ranges to be queried. 16218 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16219 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or 16220 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16221 * It uses the attributes defined in 16222 * enum qca_wlan_vendor_attr_afc_freq_psd_info. 16223 * 16224 * @QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST: Array of nested attributes 16225 * for updating the list of operating classes and corresponding channels to be 16226 * queried. 16227 * Required when QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE is 16228 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_EXPIRY or 16229 * QCA_WLAN_VENDOR_AFC_EVENT_TYPE_POWER_UPDATE_COMPLETE, otherwise unused. 16230 * It uses the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info. 16231 */ 16232 enum qca_wlan_vendor_attr_afc_event { 16233 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_INVALID = 0, 16234 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_TYPE = 1, 16235 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AP_DEPLOYMENT = 2, 16236 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID = 3, 16237 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFC_WFA_VERSION = 4, 16238 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MIN_DES_POWER = 5, 16239 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_STATUS_CODE = 6, 16240 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_SERVER_RESP_CODE = 7, 16241 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_DATE = 8, 16242 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_EXP_TIME = 9, 16243 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_FREQ_RANGE_LIST = 10, 16244 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_OPCLASS_CHAN_LIST = 11, 16245 16246 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST, 16247 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_MAX = 16248 QCA_WLAN_VENDOR_ATTR_AFC_EVENT_AFTER_LAST - 1, 16249 }; 16250 16251 /** 16252 * enum qca_wlan_vendor_attr_afc_response: Defines attributes to be used 16253 * with vendor command QCA_NL80211_VENDOR_SUBCMD_AFC_RESPONSE. These attributes 16254 * will support sending only a single AFC response to the driver at a time. 16255 * 16256 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA: Type is NLA_STRING. Required attribute. 16257 * This attribute will be used to send a single Spectrum Inquiry response object 16258 * from the 'availableSpectrumInquiryResponses' array object from the response 16259 * JSON. 16260 * 16261 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE: Required u32 attribute. 16262 * 16263 * This attribute indicates the period (in seconds) for which the response 16264 * data received is valid for. 16265 * 16266 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID: Required u32 attribute. 16267 * 16268 * This attribute indicates the request ID for which the corresponding 16269 * response is being sent for. See also QCA_WLAN_VENDOR_ATTR_AFC_EVENT_REQ_ID. 16270 * 16271 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE: Required u32 attribute. 16272 * 16273 * This attribute indicates the date until which the current response is 16274 * valid for in UTC format. 16275 * Date format: bits 7:0 - DD (Day 1-31) 16276 * bits 15:8 - MM (Month 1-12) 16277 * bits 31:16 - YYYY (Year) 16278 * 16279 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME: Required u32 attribute. 16280 * 16281 * This attribute indicates the time until which the current response is 16282 * valid for in UTC format. 16283 * Time format: bits 7:0 - SS (Seconds 0-59) 16284 * bits 15:8 - MM (Minutes 0-59) 16285 * bits 23:16 - HH (Hours 0-23) 16286 * bits 31:24 - Reserved 16287 * 16288 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE: Required s32 attribute. 16289 * 16290 * This attribute indicates the AFC response code. The AFC response codes are 16291 * in the following categories: 16292 * -1: General Failure. 16293 * 0: Success. 16294 * 100 - 199: General errors related to protocol. 16295 * 300 - 399: Error events specific to message exchange 16296 * for the Available Spectrum Inquiry. 16297 * 16298 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO: Array of nested attributes 16299 * for PSD info of all the queried frequency ranges. It uses the attributes 16300 * defined in enum qca_wlan_vendor_attr_afc_freq_psd_info. Required attribute. 16301 * 16302 * @QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO: Array of nested 16303 * attributes for EIRP info of all queried operating class/channels. It uses 16304 * the attributes defined in enum qca_wlan_vendor_attr_afc_opclass_info and 16305 * enum qca_wlan_vendor_attr_afc_chan_eirp_info. Required attribute. 16306 * 16307 */ 16308 enum qca_wlan_vendor_attr_afc_response { 16309 QCA_WLAN_VENDOR_ATTR_AFC_RESP_INVALID = 0, 16310 QCA_WLAN_VENDOR_ATTR_AFC_RESP_DATA = 1, 16311 QCA_WLAN_VENDOR_ATTR_AFC_RESP_TIME_TO_LIVE = 2, 16312 QCA_WLAN_VENDOR_ATTR_AFC_RESP_REQ_ID = 3, 16313 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_DATE = 4, 16314 QCA_WLAN_VENDOR_ATTR_AFC_RESP_EXP_TIME = 5, 16315 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFC_SERVER_RESP_CODE = 6, 16316 QCA_WLAN_VENDOR_ATTR_AFC_RESP_FREQ_PSD_INFO = 7, 16317 QCA_WLAN_VENDOR_ATTR_AFC_RESP_OPCLASS_CHAN_EIRP_INFO = 8, 16318 16319 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST, 16320 QCA_WLAN_VENDOR_ATTR_AFC_RESP_MAX = 16321 QCA_WLAN_VENDOR_ATTR_AFC_RESP_AFTER_LAST - 1, 16322 }; 16323 16324 /** 16325 * enum qca_wlan_dozed_ap_state - Doze states for AP interface 16326 * 16327 * @QCA_WLAN_DOZED_AP_DISABLE: Disable doze state on the AP interface. 16328 * 16329 * @QCA_WLAN_DOZED_AP_ENABLE: Enable doze state on the AP interface. AP starts 16330 * beaconing at higher beacon interval with Rx disabled. 16331 */ 16332 enum qca_wlan_dozed_ap_state { 16333 QCA_WLAN_DOZED_AP_DISABLE = 0, 16334 QCA_WLAN_DOZED_AP_ENABLE = 1, 16335 }; 16336 16337 /** 16338 * enum qca_wlan_vendor_attr_dozed_ap - Used by the vendor command 16339 * @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP to configure or receive dozed AP mode 16340 * configuration. 16341 * 16342 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE: u8 attribute. 16343 * Configures the doze state for an AP interface. Possible values are defined 16344 * in enum qca_wlan_dozed_ap_state. @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP event 16345 * gets triggered asynchronously to provide updated AP interface configuration. 16346 * 16347 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE: Unsigned 64-bit cookie provided by 16348 * the driver in the response to specific @QCA_NL80211_VENDOR_SUBCMD_DOZED_AP 16349 * command, which is used later to maintain synchronization between commands 16350 * and asynchronous events. 16351 * 16352 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF: u64 attribute. 16353 * Used in event to indicate the next TBTT TSF timer value after applying the 16354 * doze mode configuration. Next TBTT TSF is the time at which the AP sends 16355 * the first beacon after entering or exiting dozed mode. 16356 * 16357 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER: u16 attribute. 16358 * Used with event to inform the periodicity of beacon transmission that would 16359 * be skipped at all TBTTs in between. 16360 * 16361 * @QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD: Attribute used for padding for 64-bit 16362 * alignment. 16363 */ 16364 enum qca_wlan_vendor_attr_dozed_ap { 16365 QCA_WLAN_VENDOR_ATTR_DOZED_AP_INVALID = 0, 16366 QCA_WLAN_VENDOR_ATTR_DOZED_AP_STATE = 1, 16367 QCA_WLAN_VENDOR_ATTR_DOZED_AP_COOKIE = 2, 16368 QCA_WLAN_VENDOR_ATTR_DOZED_AP_NEXT_TSF = 3, 16369 QCA_WLAN_VENDOR_ATTR_DOZED_AP_BI_MULTIPLIER = 4, 16370 QCA_WLAN_VENDOR_ATTR_DOZED_AP_PAD = 5, 16371 16372 /* Keep last */ 16373 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST, 16374 QCA_WLAN_VENDOR_ATTR_DOZED_AP_MAX = 16375 QCA_WLAN_VENDOR_ATTR_DOZED_AP_AFTER_LAST - 1, 16376 }; 16377 16378 /** 16379 * enum qca_wlan_vendor_monitor_mode_status - Represents the status codes 16380 * used with QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE. 16381 * @QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING: Used to indicate no 16382 * capture running status. 16383 * @QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING: Used to indicate 16384 * capture running status. 16385 **/ 16386 16387 enum qca_wlan_vendor_monitor_mode_status { 16388 QCA_WLAN_VENDOR_MONITOR_MODE_NO_CAPTURE_RUNNING = 0, 16389 QCA_WLAN_VENDOR_MONITOR_MODE_CAPTURE_RUNNING = 1, 16390 }; 16391 16392 /** 16393 * enum qca_wlan_vendor_attr_get_monitor_mode - Used by the 16394 * vendor command QCA_NL80211_VENDOR_SUBCMD_GET_MONITOR_MODE to report 16395 * information regarding the local packet capture over the monitor mode. 16396 * 16397 * @QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS: u32 attribute. This attribute 16398 * represents the status of the start capture commands. The values used with 16399 * this attribute are defined in enum qca_wlan_vendor_monitor_mode_status. This 16400 * is returned by the driver in the response to the command. 16401 */ 16402 16403 enum qca_wlan_vendor_attr_get_monitor_mode { 16404 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_INVALID = 0, 16405 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_STATUS = 1, 16406 16407 /* Keep last */ 16408 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST, 16409 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_MAX = 16410 QCA_WLAN_VENDOR_ATTR_GET_MONITOR_MODE_AFTER_LAST - 1, 16411 }; 16412 16413 /** 16414 * enum qca_wlan_vendor_link_state_op_types - Defines different types of 16415 * operations for which %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE can be used. 16416 * Will be used with %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE attribute. 16417 * 16418 * @QCA_WLAN_VENDOR_LINK_STATE_OP_GET - Get the MLO links state information. 16419 * @QCA_WLAN_VENDOR_LINK_STATE_OP_SET - Set the MLO links state information. 16420 */ 16421 enum qca_wlan_vendor_link_state_op_types { 16422 QCA_WLAN_VENDOR_LINK_STATE_OP_GET = 0, 16423 QCA_WLAN_VENDOR_LINK_STATE_OP_SET = 1, 16424 }; 16425 16426 /** 16427 * enum qca_wlan_vendor_link_state_control_modes - Represents the types of MLO 16428 * links state control modes. This enum is used by 16429 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE attribute. 16430 * 16431 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT: MLO links state controlled 16432 * by the driver. 16433 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER: MLO links state controlled by 16434 * user space. 16435 * @QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED: User space provides the 16436 * desired number of MLO links to operate in active state at any given time. 16437 * The driver will choose which MLO links should operate in the active state. 16438 * See enum qca_wlan_vendor_link_state for active state definition. 16439 */ 16440 enum qca_wlan_vendor_link_state_control_modes { 16441 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_DEFAULT = 0, 16442 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER = 1, 16443 QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED = 2, 16444 }; 16445 16446 /** 16447 * enum qca_wlan_vendor_link_state_operation_modes - Represents the types of MLO 16448 * links state operation modes. This enum is used by 16449 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE attribute. 16450 * 16451 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT: In the default operation 16452 * mode, the driver selects the operating mode of the links, without any 16453 * guidance from the user space. 16454 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY: In the low latency 16455 * operation mode the driver should select MLO links that will achieve low 16456 * latency. 16457 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT: In the high 16458 * throughput operation mode the driver should select MLO links that will 16459 * achieve higher throughput. 16460 * @QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER: In the low power 16461 * operation mode the driver should select MLO links that will achieve low 16462 * power. 16463 */ 16464 enum qca_wlan_vendor_link_state_operation_modes { 16465 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_DEFAULT = 0, 16466 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_LATENCY = 1, 16467 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_HIGH_THROUGHPUT = 2, 16468 QCA_WLAN_VENDOR_LINK_STATE_OPERATION_MODE_LOW_POWER = 3, 16469 }; 16470 16471 /** 16472 * enum qca_wlan_vendor_link_state - Represents the possible link states of an 16473 * MLO link. 16474 * 16475 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_INACTIVE: In this state, the link will not 16476 * be used for data transmission but it can have TIDs mapped to it. It will be 16477 * in doze state always and does not monitor the beacons. 16478 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_ACTIVE: In this state, the link will be 16479 * used for data TX/RX and monitors the beacons to check TIM bit indication. 16480 * It may enter doze state and comes out based on the transmit data traffic and 16481 * TIM bit indication in the beacon. 16482 */ 16483 enum qca_wlan_vendor_link_state { 16484 QCA_WLAN_VENDOR_LINK_STATE_INACTIVE = 0, 16485 QCA_WLAN_VENDOR_LINK_STATE_ACTIVE = 1, 16486 }; 16487 16488 /** 16489 * enum qca_wlan_vendor_attr_link_state_config - Definition of attributes used 16490 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG. 16491 * 16492 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID: u8 attribute, link ID of the 16493 * MLO link. 16494 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE: u32 attribute. See 16495 * enum qca_wlan_vendor_link_state for possible MLO link states. 16496 */ 16497 16498 enum qca_wlan_vendor_attr_link_state_config { 16499 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_INVALID = 0, 16500 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_LINK_ID = 1, 16501 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_STATE = 2, 16502 16503 /* Keep last */ 16504 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST, 16505 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_MAX = 16506 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG_AFTER_LAST - 1, 16507 }; 16508 16509 /** 16510 * enum qca_wlan_vendor_attr_mlo_link_state - Attributes used by 16511 * %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE vendor command. 16512 * 16513 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE: u32 attribute. Indicates the type 16514 * of the operation %QCA_NL80211_VENDOR_SUBCMD_MLO_LINK_STATE intended for. 16515 * Required only in a command. Possible values for this attribute are defined in 16516 * enum qca_wlan_vendor_link_state_op_types. 16517 * 16518 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE: u32 attribute. Indicates MLO 16519 * links control mode type. Optional attribute in a command when 16520 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16521 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when 16522 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16523 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 16524 * See enum qca_wlan_vendor_link_state_control_modes for possible control modes. 16525 * 16526 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG: Array of nested attributes. 16527 * Indicates the state of the each MLO link affiliated with the interface. 16528 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE 16529 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and 16530 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to 16531 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_USER. Required attribute in a 16532 * response when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16533 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 16534 * See enum qca_wlan_vendor_attr_link_state_config for the nested attributes. 16535 * 16536 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS: u8 attribute. 16537 * Represents the number of active state links. See enum 16538 * qca_wlan_vendor_link_state for active state definition. 16539 * Required attribute in a command when %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE 16540 * is set to %QCA_WLAN_VENDOR_LINK_STATE_OP_SET and 16541 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE is set to 16542 * %QCA_WLAN_VENDOR_LINK_STATE_CONTROL_MODE_MIXED. 16543 * 16544 * @QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE: u32 attribute. Indicates MLO 16545 * links operation mode type. Optional attribute in a command when 16546 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16547 * %QCA_WLAN_VENDOR_LINK_STATE_OP_SET. Required attribute in a response when 16548 * %QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE is set to 16549 * %QCA_WLAN_VENDOR_LINK_STATE_OP_GET. 16550 * See enum qca_wlan_vendor_link_state_operation_modes for possible operation 16551 * modes. 16552 */ 16553 enum qca_wlan_vendor_attr_mlo_link_state { 16554 QCA_WLAN_VENDOR_ATTR_LINK_STATE_INVALID = 0, 16555 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OP_TYPE = 1, 16556 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONTROL_MODE = 2, 16557 QCA_WLAN_VENDOR_ATTR_LINK_STATE_CONFIG = 3, 16558 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MIXED_MODE_ACTIVE_NUM_LINKS = 4, 16559 QCA_WLAN_VENDOR_ATTR_LINK_STATE_OPERATION_MODE = 5, 16560 16561 /* keep last */ 16562 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST, 16563 QCA_WLAN_VENDOR_ATTR_LINK_STATE_MAX = 16564 QCA_WLAN_VENDOR_ATTR_LINK_STATE_AFTER_LAST - 1, 16565 }; 16566 16567 /** 16568 * enum qca_wlan_vendor_attr_tid_link_map_status - Definition of attributes used 16569 * inside nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS. 16570 * 16571 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK: Required u16 attribute 16572 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS. 16573 * Indicates the link mapping bitmap of a TID for uplink traffic. It is a 16574 * bitmask of the link IDs in which a bit set means that the TID is mapped with 16575 * that link ID in uplink traffic. Otherwise, the TID is not mapped to uplink 16576 * traffic for that link. 16577 * 16578 * @QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK: Required u16 attribute 16579 * within nested attribute %QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS. 16580 * Indicates the link mapping bitmap of a TID for downlink traffic. It is a 16581 * bitmask of the link IDs in which a bit set means that the TID is mapped with 16582 * that link ID in downlink traffic. Otherwise, the TID is not mapped to 16583 * downlink traffic for that link. 16584 */ 16585 enum qca_wlan_vendor_attr_tid_link_map_status { 16586 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_INVALID = 0, 16587 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_UPLINK = 1, 16588 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_DOWNLINK = 2, 16589 16590 /* keep last */ 16591 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST, 16592 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_MAX = 16593 QCA_WLAN_VENDOR_ATTR_LINK_TID_MAP_STATUS_AFTER_LAST - 1, 16594 }; 16595 16596 /* 16597 * enum qca_wlan_vendor_attr_tid_to_link_map: Definition of attributes used with 16598 * %QCA_NL80211_VENDOR_SUBCMD_TID_TO_LINK_MAP event. 16599 * 16600 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR: Required attribute. 6-byte 16601 * AP MLD address with which this TID-to-link negotiation mapping is 16602 * established/updated. 16603 * 16604 * @QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS: Optional attribute. Array of 16605 * nested attributes containing TID-to-links mapping information. This will have 16606 * TID-to-link mapping for TID0 to TID7, each containing the uplink and downlink 16607 * map information. If this attribute is not present the default TID-to-link 16608 * mapping is in use, i.e., all TIDs are mapped to all links for both uplink and 16609 * downlink traffic. 16610 * See enum qca_wlan_vendor_attr_tid_link_map_status for the nested attributes. 16611 */ 16612 enum qca_wlan_vendor_attr_tid_to_link_map { 16613 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_INVALID = 0, 16614 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AP_MLD_ADDR = 1, 16615 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_STATUS = 2, 16616 16617 /* keep last */ 16618 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST, 16619 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_MAX = 16620 QCA_WLAN_VENDOR_ATTR_TID_TO_LINK_MAP_AFTER_LAST - 1, 16621 }; 16622 16623 /** 16624 * enum qca_wlan_vendor_attr_link_reconfig: Definition of attributes used 16625 * with %QCA_NL80211_VENDOR_SUBCMD_LINK_RECONFIG event. 16626 * 16627 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR: Required attribute. 16628 * 6-byte AP MLD address of the AP which indicated the link reconfiguration. 16629 * 16630 * @QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS: Required u16 attribute. 16631 * A bitmap of the removed setup links link IDs. 16632 */ 16633 enum qca_wlan_vendor_attr_link_reconfig { 16634 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_INVALID = 0, 16635 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AP_MLD_ADDR = 1, 16636 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_REMOVED_LINKS = 2, 16637 16638 /* keep last */ 16639 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST, 16640 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_MAX = 16641 QCA_WLAN_VENDOR_ATTR_LINK_RECONFIG_AFTER_LAST - 1 16642 }; 16643 16644 /** 16645 * enum qca_wlan_vendor_attr_tdls_disc_rsp_ext - Attributes used by 16646 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISC_RSP_EXT vendor command. 16647 * 16648 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK: u8 attribute. 16649 * Indicates the MLO link id on which the TDLS discovery response 16650 * frame is to be transmitted. 16651 */ 16652 enum qca_wlan_vendor_attr_tdls_disc_rsp_ext { 16653 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_INVALID = 0, 16654 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_TX_LINK = 1, 16655 16656 /* Keep last */ 16657 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST, 16658 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_MAX = 16659 QCA_WLAN_VENDOR_ATTR_TDLS_DISC_RSP_EXT_AFTER_LAST - 1, 16660 }; 16661 16662 /** 16663 * enum qca_wlan_vendor_tdls_state - Represents the possible TDLS states. 16664 * 16665 * @QCA_WLAN_VENDOR_TDLS_STATE_DISABLED: TDLS is not enabled, default status 16666 * for all stations. 16667 * 16668 * @QCA_WLAN_VENDOR_TDLS_STATE_ENABLED: TDLS is enabled, but not yet tried to 16669 * establish the session. 16670 * 16671 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED: Direct link TDLS session is 16672 * established. 16673 * 16674 * @QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL: Direct link TDLS 16675 * session is established using MCC. 16676 * 16677 * @QCA_WLAN_VENDOR_TDLS_STATE_DROPPED: Direct link TDLS session was 16678 * established, but is temporarily dropped currently. 16679 * 16680 * @QCA_WLAN_VENDOR_TDLS_STATE_FAILED: TDLS session is failed to establish. 16681 */ 16682 enum qca_wlan_vendor_tdls_state { 16683 QCA_WLAN_VENDOR_TDLS_STATE_DISABLED = 1, 16684 QCA_WLAN_VENDOR_TDLS_STATE_ENABLED = 2, 16685 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED = 3, 16686 QCA_WLAN_VENDOR_TDLS_STATE_ESTABLISHED_OFF_CHANNEL = 4, 16687 QCA_WLAN_VENDOR_TDLS_STATE_DROPPED = 5, 16688 QCA_WLAN_VENDOR_TDLS_STATE_FAILED = 6, 16689 }; 16690 16691 /** 16692 * enum qca_wlan_vendor_tdls_reason - Represents the possible TDLS reasons. 16693 * 16694 * @QCA_WLAN_TDLS_REASON_SUCCESS: TDLS session is successfully established. 16695 * 16696 * @QCA_WLAN_TDLS_REASON_UNSPECIFIED: Unspecified reason. 16697 * 16698 * @QCA_WLAN_TDLS_REASON_NOT_SUPPORTED: TDLS is not supported. 16699 * 16700 * @QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND: The specified band is not supported. 16701 * 16702 * @QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL: Packets going through AP is better 16703 * than through direct link. 16704 * 16705 * @QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE: Peer station doesn't want the TDLS 16706 * session anymore. 16707 */ 16708 16709 enum qca_wlan_vendor_tdls_reason { 16710 QCA_WLAN_TDLS_REASON_SUCCESS = 0, 16711 QCA_WLAN_TDLS_REASON_UNSPECIFIED = -1, 16712 QCA_WLAN_TDLS_REASON_NOT_SUPPORTED = -2, 16713 QCA_WLAN_TDLS_REASON_UNSUPPORTED_BAND = -3, 16714 QCA_WLAN_TDLS_REASON_NOT_BENEFICIAL = -4, 16715 QCA_WLAN_TDLS_REASON_DROPPED_BY_REMOTE = -5, 16716 }; 16717 16718 /** 16719 * enum qca_wlan_vendor_attr_tdls_enable - Attributes used by 16720 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE vendor command. 16721 * 16722 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR: 6-byte MAC address of the peer 16723 * station to enable the TDLS session. Optional attribute. The driver sends the 16724 * TDLS session result as an asynchronous response using the command 16725 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE when this peer MAC is provided in 16726 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_ENABLE command. 16727 * 16728 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL: u32 attribute. Indicates the 16729 * channel on which the TDLS session to be established. Required only when 16730 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present. 16731 * 16732 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS: u32 attribute. 16733 * Indicates the global operating class of the TDLS session to be established. 16734 * Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present. 16735 * 16736 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS: u32 attribute. Indicates 16737 * the maximum latency of the WLAN packets to be transmitted/received in 16738 * milliseconds on TDLS session. Required only when 16739 * %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is present. 16740 * 16741 * @QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS: u32 attribute. 16742 * Indicates the minimum bandwidth to be used to establish the TDLS session 16743 * in kbps. Required only when %QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR is 16744 * present. 16745 */ 16746 enum qca_wlan_vendor_attr_tdls_enable { 16747 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_INVALID = 0, 16748 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAC_ADDR = 1, 16749 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_CHANNEL = 2, 16750 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_GLOBAL_OPERATING_CLASS = 3, 16751 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX_LATENCY_MS = 4, 16752 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MIN_BANDWIDTH_KBPS = 5, 16753 16754 /* keep last */ 16755 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST, 16756 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_MAX = 16757 QCA_WLAN_VENDOR_ATTR_TDLS_ENABLE_AFTER_LAST - 1, 16758 }; 16759 16760 /** 16761 * enum qca_wlan_vendor_attr_tdls_disable - Attributes used by 16762 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_DISABLE vendor command. 16763 * 16764 * @QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR: 6-byte MAC address of the peer 16765 * station to disable the TDLS session. Optional attribute. 16766 */ 16767 enum qca_wlan_vendor_attr_tdls_disable { 16768 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_INVALID = 0, 16769 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAC_ADDR = 1, 16770 16771 /* keep last */ 16772 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST, 16773 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_MAX = 16774 QCA_WLAN_VENDOR_ATTR_TDLS_DISABLE_AFTER_LAST - 1, 16775 }; 16776 16777 /** 16778 * enum qca_wlan_vendor_attr_tdls_get_status - Attributes used by 16779 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS vendor command. 16780 * 16781 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR: 6-byte MAC address of the 16782 * peer station. Optional attribute. Used in 16783 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS request and response. 16784 * 16785 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE: u32 attribute. Indicates the 16786 * TDLS session state with the peer specified in 16787 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Uses the values from 16788 * enum qca_wlan_vendor_tdls_state. Used in 16789 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 16790 * 16791 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON: s32 attribute. Indicates the 16792 * reason for the TDLS session state indicated in 16793 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE. Uses the values from enum 16794 * qca_wlan_vendor_tdls_reason. Used in 16795 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 16796 * 16797 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL: u32 attribute. Indicates the 16798 * channel of the TDLS session established with 16799 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in 16800 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 16801 * 16802 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS: u32 attribute. 16803 * Indicates the global operating class of the TDLS session established with 16804 * %QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR. Used in 16805 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS response. 16806 * 16807 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS: u32 attribute. Indicates 16808 * the current number of active TDLS sessions. This is indicated in the response 16809 * when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with 16810 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute. 16811 * 16812 * @QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE: Flag attribute. Indicates 16813 * whether the driver can initiate new TDLS session. This is indicated in the 16814 * response when %QCA_NL80211_VENDOR_SUBCMD_TDLS_GET_STATUS is requested with 16815 * %NL80211_ATTR_VENDOR_DATA as an empty nested attribute. 16816 */ 16817 enum qca_wlan_vendor_attr_tdls_get_status { 16818 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_INVALID = 0, 16819 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAC_ADDR = 1, 16820 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_STATE = 2, 16821 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_REASON = 3, 16822 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_CHANNEL = 4, 16823 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_GLOBAL_OPERATING_CLASS = 5, 16824 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_NUM_SESSIONS = 6, 16825 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AVAILABLE = 7, 16826 16827 /* keep last */ 16828 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST, 16829 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_MAX = 16830 QCA_WLAN_VENDOR_ATTR_TDLS_GET_STATUS_AFTER_LAST - 1, 16831 }; 16832 16833 /** 16834 * enum qca_wlan_vendor_attr_tdls_state - Attributes used by 16835 * %QCA_NL80211_VENDOR_SUBCMD_TDLS_STATE vendor command. 16836 * 16837 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR: 6-byte MAC address of the 16838 * peer station. Required attribute. 16839 * 16840 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CURRENT_STATE: u32 attribute. Indicates 16841 * the current TDLS state. Required attribute. Uses the values from 16842 * enum qca_wlan_vendor_tdls_state. 16843 * 16844 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON: s32 attribute. Indicates the 16845 * reason of the current TDLS session state. Required attribute. Uses the values 16846 * from enum qca_wlan_vendor_tdls_reason. 16847 * 16848 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL: u32 attribute. Indicates the 16849 * TDLS session channel. Required attribute. 16850 * 16851 * @QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS: u32 attribute. 16852 * Indicates the TDLS session global operating class. Required attribute. 16853 */ 16854 enum qca_wlan_vendor_attr_tdls_state { 16855 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_INVALID = 0, 16856 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAC_ADDR = 1, 16857 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_NEW_STATE = 2, 16858 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_REASON = 3, 16859 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_CHANNEL = 4, 16860 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_GLOBAL_OPERATING_CLASS = 5, 16861 16862 /* keep last */ 16863 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST, 16864 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_MAX = 16865 QCA_WLAN_VENDOR_ATTR_TDLS_STATE_AFTER_LAST - 1, 16866 }; 16867 16868 /* 16869 * enum qca_wlan_vendor_opm_mode - Modes supported by 16870 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPTIMIZED_POWER_MANAGEMENT vendor attribute. 16871 * 16872 * @QCA_WLAN_VENDOR_OPM_MODE_DISABLE: OPM Disabled 16873 * @QCA_WLAN_VENDOR_OPM_MODE_ENABLE: OPM Enabled 16874 * @QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED: User defined mode which allows user 16875 * to configure power save inactivity timeout and speculative wake up 16876 * interval through %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_ITO and 16877 * %QCA_WLAN_VENDOR_ATTR_CONFIG_OPM_SPEC_WAKE_INTERVAL attributes. 16878 */ 16879 16880 enum qca_wlan_vendor_opm_mode { 16881 QCA_WLAN_VENDOR_OPM_MODE_DISABLE = 0, 16882 QCA_WLAN_VENDOR_OPM_MODE_ENABLE = 1, 16883 QCA_WLAN_VENDOR_OPM_MODE_USER_DEFINED = 2, 16884 }; 16885 16886 /* 16887 * enum qca_wlan_vendor_tx_latency_type - Represents the possible latency 16888 * types. 16889 * 16890 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER: Per MSDU latency 16891 * from: An MSDU is presented to the driver 16892 * to: the MSDU is queued into TCL SRNG 16893 * 16894 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING: Per MSDU latency 16895 * from: the MSDU is queued into TCL SRNG 16896 * to: the MSDU is released by the driver 16897 * 16898 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW: Per MSDU latency 16899 * from: the MSDU is presented to the hardware 16900 * to: the MSDU is released by the hardware 16901 * 16902 * @QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA: Per PPDU latency 16903 * The time spent on Clear Channel Assessment, the maximum value is 50000 (us) 16904 * from: A PPDU is presented to the hardware LMAC 16905 * to: over-the-air transmission is started for the PPDU 16906 */ 16907 enum qca_wlan_vendor_tx_latency_type { 16908 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_DRIVER = 0, 16909 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_RING = 1, 16910 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_HW = 2, 16911 QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA = 3, 16912 }; 16913 16914 /** 16915 * enum qca_wlan_vendor_attr_tx_latency_bucket - Definition of attributes 16916 * used inside nested attributes 16917 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS and 16918 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS. 16919 * 16920 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE: u8 attribute. 16921 * Indicates the latency type. 16922 * See enum qca_wlan_vendor_tx_latency_type for the supported types. 16923 * 16924 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY: u32 attribute. 16925 * Indicates the granularity (in microseconds) of the distribution for the 16926 * type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE), the value 16927 * must be positive. 16928 * If %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE is 16929 * %QCA_WLAN_VENDOR_TX_LATENCY_TYPE_CCA, the value must be an integer multiple 16930 * of 1000, and the maximum allowed value is 15000 (us). 16931 * 16932 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE: u32 attribute. 16933 * Indicates the average of the latency (in microseconds) for the type 16934 * (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE) within a cycle. 16935 * If there is no transmitted MSDUs/MPDUs during a cycle, this average is 0; 16936 * otherwise, it represents the quotient of <accumulated latency of the 16937 * transmitted MSDUs/MPDUs in a cycle> divided by <the number of the transmitted 16938 * MSDUs/MPDUs in a cycle>. 16939 * 16940 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION: 16941 * Array of u32, 4 elements in total, represents the latency distribution for 16942 * the type (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE). 16943 * Each element holds the count of MSDUs/PPDUs (according to the latency type) 16944 * within a range: 16945 * element[0]: latency >= 0 && latency < granularity 16946 * element[1]: latency >= granularity && latency < granularity * 2 16947 * element[2]: latency >= granularity * 2 && latency < granularity * 3 16948 * element[3]: latency >= granularity * 3 16949 */ 16950 enum qca_wlan_vendor_attr_tx_latency_bucket { 16951 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_INVALID = 0, 16952 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE = 1, 16953 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY = 2, 16954 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE = 3, 16955 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION = 4, 16956 16957 /* keep last */ 16958 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST, 16959 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_MAX = 16960 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AFTER_LAST - 1, 16961 }; 16962 16963 /** 16964 * enum qca_wlan_vendor_attr_tx_latency_link - Definition of attributes 16965 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS. 16966 * 16967 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE: 6-byte MAC address. 16968 * Indicates link MAC address of the remote peer. For example, when running 16969 * in station mode, it's the BSSID of the link; while when running in AP 16970 * mode, it's the link MAC address of the remote station. 16971 * 16972 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS: 16973 * Array of nested attribute. 16974 * Represents the transmit latency statistics for the link specified by 16975 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE. 16976 * Each entry represents the statistics for one of the types defined in 16977 * enum qca_wlan_vendor_tx_latency_type. 16978 * Each defined type has and must have one entry. 16979 * See enum qca_wlan_vendor_attr_tx_latency_bucket for nested attributes. 16980 */ 16981 enum qca_wlan_vendor_attr_tx_latency_link { 16982 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_INVALID = 0, 16983 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE = 1, 16984 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS = 2, 16985 16986 /* keep last */ 16987 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST, 16988 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAX = 16989 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_AFTER_LAST - 1, 16990 }; 16991 16992 /** 16993 * enum qca_wlan_vendor_tx_latency_action - Represents the possible actions 16994 * for %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY. 16995 * 16996 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE: 16997 * Disable transmit latency monitoring. 16998 * 16999 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE: 17000 * Enable transmit latency monitoring. 17001 * 17002 * @QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET: 17003 * Get transmit latency statistics of the last cycle (period is specified by 17004 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD). 17005 */ 17006 enum qca_wlan_vendor_tx_latency_action { 17007 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE = 0, 17008 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE = 1, 17009 QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET = 2, 17010 }; 17011 17012 /** 17013 * enum qca_wlan_vendor_attr_tx_latency - Definition of attributes used by 17014 * %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY to configure, retrieve, and report 17015 * per-link transmit latency statistics. 17016 * 17017 * There are 6 uses of %QCA_NL80211_VENDOR_SUBCMD_TX_LATENCY: 17018 * 1) used as a command to enable the feature 17019 * Precondition(s): 17020 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 17021 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_ENABLE 17022 * Mandatory attribute(s): 17023 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION, 17024 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD, 17025 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS with nested attributes 17026 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE, 17027 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY. 17028 * Notes: 17029 * The driver will monitor the transmit latency for the active links 17030 * and save the statistics for each cycle (period is set by 17031 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD) when the feature is enabled. 17032 * Set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT if periodical 17033 * report is required. 17034 * 17035 * 2) used as a command to disable the feature 17036 * Precondition(s): 17037 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 17038 * %QCA_WLAN_VENDOR_TX_LATENCY_ACTION_DISABLE 17039 * Mandatory attribute(s): 17040 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION 17041 * 17042 * 3) used as a command to retrieve the statistics for all the active links on 17043 * the requested interface 17044 * Precondition(s): 17045 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 17046 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and 17047 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is NOT present. 17048 * Mandatory attribute(s): 17049 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION 17050 * Notes: 17051 * The driver returns failure directly if the feature is not enabled or 17052 * there is no active link. 17053 * The driver returns the statistics of the last cycle in the case of 17054 * success. 17055 * 17056 * 4) used as a command to retrieve the statistics for the specified links 17057 * Precondition(s): 17058 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION is 17059 * QCA_WLAN_VENDOR_TX_LATENCY_ACTION_GET and 17060 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS is present. 17061 * Mandatory attribute(s): 17062 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION, 17063 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attribute 17064 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE. 17065 * Notes: 17066 * The driver returns failure directly if the feature is not enabled or 17067 * any of the links (specified by %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS) 17068 * does not exist or is not in active state. 17069 * 17070 * 5) used as a command response for #3 or #4 17071 * Precondition(s): 17072 * Userspace issues command #3 or #4, and the driver gets corresponding 17073 * statistics successfully. 17074 * Mandatory attribute(s): 17075 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes 17076 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE, 17077 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested 17078 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE, 17079 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY, 17080 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and 17081 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION. 17082 * 17083 * 6) used as an asynchronous event to report the statistics periodically 17084 * Precondition(s): 17085 * Userspace set flag %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT in 17086 * #1. 17087 * One or more links are in active state. 17088 * Mandatory attribute(s): 17089 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS, with nested attributes 17090 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_MAC_REMOTE, 17091 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINK_STAT_BUCKETS with nested 17092 * attributes %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_TYPE, 17093 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_GRANULARITY, 17094 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_AVERAGE and 17095 * %QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKET_DISTRIBUTION. 17096 * 17097 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID: Invalid attribute 17098 * 17099 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION: u32 attribute. 17100 * Action to take in this vendor command. 17101 * See enum qca_wlan_vendor_tx_latency_action for supported actions. 17102 * 17103 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT: Flag attribute. 17104 * Enable (flag attribute present) - The driver needs to report transmit latency 17105 * statistics at the end of each statistical period. 17106 * Disable (flag attribute not present) - The driver doesn't need to report 17107 * transmit latency statistics periodically. 17108 * 17109 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD: u32 attribute. 17110 * Indicates statistical period for transmit latency in terms of milliseconds, 17111 * the minimal allowed value is 100 and the maximum allowed value is 60000. 17112 * 17113 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS: Array of nested attribute. 17114 * Each entry represents the latency buckets configuration for one of the types 17115 * defined in enum qca_wlan_vendor_tx_latency_type. 17116 * Each defined type has and must have one entry. 17117 * See enum qca_wlan_vendor_attr_tx_latency_bucket for the list of 17118 * supported attributes. 17119 * 17120 * @QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS: Array of nested attribute. 17121 * Information of the links, each entry represents for one link. 17122 * See enum qca_wlan_vendor_attr_tx_latency_link for the list of 17123 * supported attributes for each entry. 17124 */ 17125 enum qca_wlan_vendor_attr_tx_latency { 17126 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_INVALID = 0, 17127 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_ACTION = 1, 17128 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIODIC_REPORT = 2, 17129 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_PERIOD = 3, 17130 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_BUCKETS = 4, 17131 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_LINKS = 5, 17132 17133 /* keep last */ 17134 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST, 17135 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_MAX = 17136 QCA_WLAN_VENDOR_ATTR_TX_LATENCY_AFTER_LAST - 1, 17137 }; 17138 17139 /** 17140 * enum qca_chan_width_update_type - Represents the possible values for 17141 * %QCA_WLAN_VENDOR_ATTR_CONFIG_CHAN_WIDTH_UPDATE_TYPE. 17142 * 17143 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX: The maximum allowed bandwidth change is 17144 * applicable for both Tx and Rx paths. The driver shall conduct OMI operation 17145 * as defined in 26.9 (Operating mode indication) or OMN operation as defined in 17146 * 11.40 (Notification of operating mode changes) in IEEE P802.11-REVme/D2.0 17147 * with AP to indicate the change in the maximum allowed operating bandwidth. 17148 * 17149 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_ONLY: Limit the change in maximum allowed 17150 * bandwidth only to Tx path. In this case the driver doesn't need to conduct 17151 * OMI/OMN operation since %QCA_WLAN_VENDOR_ATTR_CONFIG_CHANNEL_WIDTH is 17152 * expected to be less than the current connection maximum negotiated bandwidth. 17153 * For example: Negotiated maximum bandwidth is 160 MHz and the new maximum 17154 * bandwidth configured is 80 MHz, now the driver limits the maximum bandwidth 17155 * to 80 MHz only in the Tx path. 17156 * 17157 * @QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX_EXT: This is similar to 17158 * %QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX but the driver doesn't change current 17159 * phymode bandwidth to avoid interoperability issues with APs which don't 17160 * handle the maximum bandwidth change indication correctly. 17161 * For example: Negotiated maximum bandwidth is 40 MHz and the new maximum 17162 * bandwidth configured is 20 MHz, now the driver indicates the change in 17163 * maximum allowed bandwidth to the AP and limits the bandwidth to 20 MHz in the 17164 * Tx path but keeps the phymode bandwidth as 40 MHz. This will avoid 17165 * interoperability issues with APs which still use 40 MHz for sending the 17166 * frames though it received maximum allowed bandwidth indication as 20 MHz 17167 * from the STA. 17168 */ 17169 enum qca_chan_width_update_type { 17170 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX = 0, 17171 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_ONLY = 1, 17172 QCA_CHAN_WIDTH_UPDATE_TYPE_TX_RX_EXT = 2, 17173 }; 17174 17175 /** 17176 * enum qca_wlan_vendor_attr_tpc_pwr_level - Definition of attributes 17177 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL. 17178 * 17179 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY: u32 channel center 17180 * frequency (MHz): If PSD power, carries one 20 MHz sub-channel center 17181 * frequency. If non PSD power, carries either 20 MHz bandwidth's center 17182 * channel frequency or 40 MHz bandwidth's center channel frequency 17183 * (or 80/160 MHz bandwidth's center channel frequency). 17184 * 17185 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER: s8 transmit power limit (dBm). 17186 * If PSD power, carries PSD power value of the 17187 * QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY mentioned sub-channel. 17188 * If non PSD power, carries EIRP power value of bandwidth mentioned 17189 * by QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY center frequency. 17190 */ 17191 enum qca_wlan_vendor_attr_tpc_pwr_level { 17192 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_INVALID = 0, 17193 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_FREQUENCY = 1, 17194 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_TX_POWER = 2, 17195 17196 /* keep last */ 17197 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST, 17198 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_MAX = 17199 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL_AFTER_LAST - 1, 17200 }; 17201 17202 /** 17203 * enum qca_wlan_vendor_tpc - Definition of link attributes 17204 * used inside nested attribute %QCA_WLAN_VENDOR_ATTR_TPC_LINKS. 17205 * 17206 * @QCA_WLAN_VENDOR_ATTR_TPC_BSSID: 6-bytes AP BSSID. 17207 * For MLO STA, AP BSSID indicates the AP's link address. 17208 * 17209 * @QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER: PSD power flag 17210 * Indicates using PSD power mode if this flag is present. 17211 * 17212 * @QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER: s8 Regulatory EIRP power 17213 * value in dBm 17214 * 17215 * @QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ: u8 power type of 6 GHz 17216 * AP, refer to Table E-12-Regulatory Info subfield encoding in 17217 * IEEE P802.11-REVme/D4.0. Only present if link is connected to 6 GHz AP. 17218 * 17219 * @QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER: u8 Local Power Constraint 17220 * (dBm) advertised by AP in Power Constraint element, refer to 17221 * IEEE Std 802.11-2020, 9.4.2.13 Power Constraint element. 17222 * 17223 * @QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL: A nested attribute containing 17224 * attributes defined by enum qca_wlan_vendor_attr_tpc_pwr_level. 17225 * If PSD power, each power level describes each 20 MHz subchannel PSD 17226 * power value. If non PSD power, each power level describes each supported 17227 * bandwidth's EIRP power value (up to Max bandwidth of AP operating on), 17228 * each level attribute contains corresponding bandwidth's center channel 17229 * frequency and its EIRP power value. 17230 */ 17231 enum qca_wlan_vendor_attr_tpc { 17232 QCA_WLAN_VENDOR_ATTR_TPC_INVALID = 0, 17233 QCA_WLAN_VENDOR_ATTR_TPC_BSSID = 1, 17234 QCA_WLAN_VENDOR_ATTR_TPC_PSD_POWER = 2, 17235 QCA_WLAN_VENDOR_ATTR_TPC_EIRP_POWER = 3, 17236 QCA_WLAN_VENDOR_ATTR_TPC_POWER_TYPE_6GHZ = 4, 17237 QCA_WLAN_VENDOR_ATTR_TPC_AP_CONSTRAINT_POWER = 5, 17238 QCA_WLAN_VENDOR_ATTR_TPC_PWR_LEVEL = 6, 17239 17240 /* keep last */ 17241 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST, 17242 QCA_WLAN_VENDOR_ATTR_TPC_MAX = 17243 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1, 17244 }; 17245 17246 /** 17247 * enum qca_wlan_vendor_attr_tpc_links - Definition of attributes 17248 * for %QCA_NL80211_VENDOR_SUBCMD_REGULATORY_TPC_INFO subcommand 17249 * 17250 * @QCA_WLAN_VENDOR_ATTR_TPC_LINKS: A nested attribute containing 17251 * per-link TPC information of all the active links of MLO STA. 17252 * For non MLO STA, only one link TPC information will be returned 17253 * for connected AP in this nested attribute. 17254 * The attributes used inside this nested attributes are defined 17255 * in enum qca_wlan_vendor_attr_tpc. 17256 */ 17257 enum qca_wlan_vendor_attr_tpc_links { 17258 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_INVALID = 0, 17259 QCA_WLAN_VENDOR_ATTR_TPC_LINKS = 1, 17260 17261 /* keep last */ 17262 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_AFTER_LAST, 17263 QCA_WLAN_VENDOR_ATTR_TPC_LINKS_MAX = 17264 QCA_WLAN_VENDOR_ATTR_TPC_AFTER_LAST - 1, 17265 }; 17266 17267 /** 17268 * enum qca_wlan_vendor_attr_fw_page_fault_report - Used by the vendor 17269 * command %QCA_NL80211_VENDOR_SUBCMD_FW_PAGE_FAULT_REPORT. 17270 * 17271 * @QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA: The binary blob data 17272 * associated with the firmware page fault that is expected to contain the 17273 * required dump to analyze frequent page faults. 17274 * NLA_BINARY attribute, the maximum size is 1024 bytes. 17275 */ 17276 enum qca_wlan_vendor_attr_fw_page_fault_report { 17277 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_INVALID = 0, 17278 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_DATA = 1, 17279 17280 /* keep last */ 17281 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST, 17282 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_MAX = 17283 QCA_WLAN_VENDOR_ATTR_FW_PAGE_FAULT_REPORT_LAST - 1, 17284 }; 17285 17286 /** 17287 * enum qca_wlan_btm_support: BTM support configuration 17288 * 17289 * @QCA_WLAN_BTM_SUPPORT_DEFAULT: Restore default BTM support policy. The driver 17290 * follows the BSS Transition bit in the Extended Capabilities element from the 17291 * connect request IEs with the default BTM support policy. 17292 * 17293 * @QCA_WLAN_BTM_SUPPORT_DISABLE: Disable BTM support for the subsequent 17294 * (re)association attempts. The driver shall restore the default BTM support 17295 * policy during the first disconnection after successful association. When this 17296 * configuration is enabled, the driver shall overwrite the BSS Transition bit 17297 * as zero in the Extended Capabilities element while sending (Re)Association 17298 * Request frames. Also, the driver shall drop the BTM frames from userspace and 17299 * the connected AP when this configuration is enabled. 17300 */ 17301 enum qca_wlan_btm_support { 17302 QCA_WLAN_BTM_SUPPORT_DEFAULT = 0, 17303 QCA_WLAN_BTM_SUPPORT_DISABLE = 1, 17304 }; 17305 17306 /** 17307 * enum qca_wlan_vendor_data_rate_type - Represents the possible values for 17308 * attribute %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE. 17309 * 17310 * @QCA_WLAN_VENDOR_DATA_RATE_TYPE_LEGACY: Data rate type is a legacy rate code 17311 * used in OFDM/CCK. 17312 * 17313 * @QCA_WLAN_VENDOR_DATA_RATE_TYPE_MCS: Data rate type is an MCS index. 17314 * 17315 */ 17316 enum qca_wlan_vendor_data_rate_type { 17317 QCA_WLAN_VENDOR_DATA_RATE_TYPE_LEGACY = 0, 17318 QCA_WLAN_VENDOR_DATA_RATE_TYPE_MCS = 1, 17319 }; 17320 17321 /** 17322 * enum qca_wlan_vendor_attr_adjust_tx_power_rate - Definition 17323 * of data rate related attributes which is used inside nested attribute 17324 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG. 17325 * 17326 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE: u8 data rate type. 17327 * For this attribute, valid values are enumerated in enum 17328 * %qca_wlan_vendor_data_rate_type. 17329 * 17330 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_VALUE: u8 value. 17331 * This attribute value is interpreted according to the value of attribute 17332 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE. For legacy config 17333 * type, this attribute value is defined in the units of 0.5 Mbps. 17334 * For non legacy config type, this attribute carries the MCS index number. 17335 * 17336 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_POWER_VALUE: u8 value in dBm. 17337 * Usually the target computes a final transmit power that is the maximum 17338 * power level that doesn't exceed the limits enforced by various sources 17339 * like chip-specific conformance test limits (CTL), Specific Absorption 17340 * Rate (SAR), Transmit Power Control (TPC), wiphy-specific limits, STA-specific 17341 * limits, channel avoidance limits, Automated Frequency Coordination (AFC), 17342 * and others. In some cases it may be desirable to use a power level that is 17343 * lower than the maximum power level allowed by all of these limits, so this 17344 * attribute provides an additional limit that can be used to reduce the 17345 * transmit power level. 17346 * 17347 */ 17348 enum qca_wlan_vendor_attr_adjust_tx_power_rate { 17349 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_INVALID = 0, 17350 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_TYPE = 1, 17351 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_VALUE = 2, 17352 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_RATE_POWER_VALUE = 3, 17353 17354 /* keep last */ 17355 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_AFTER_LAST, 17356 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_MAX = 17357 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CONFIG_AFTER_LAST - 1, 17358 }; 17359 17360 /** 17361 * enum qca_wlan_vendor_attr_adjust_tx_power_chain_config - Definition 17362 * of chain related attributes which is used inside nested attribute 17363 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG. 17364 * 17365 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INDEX: u8 value. 17366 * Represents a particular chain for which transmit power adjustment needed. 17367 * 17368 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG: A nested 17369 * attribute containing data rate related information to adjust transmit 17370 * power. The attributes used inside this nested attributes are defined in 17371 * enum qca_wlan_vendor_attr_adjust_tx_power_rate. 17372 */ 17373 enum qca_wlan_vendor_attr_adjust_tx_power_chain_config { 17374 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INVALID = 0, 17375 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_INDEX = 1, 17376 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_RATE_CONFIG = 2, 17377 17378 /* keep last */ 17379 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_AFTER_LAST, 17380 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_MAX = 17381 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_CHAIN_AFTER_LAST - 1, 17382 }; 17383 17384 /** 17385 * enum qca_wlan_vendor_attr_adjust_tx_power_band_config - Definition 17386 * of band related attributes which is used inside nested attribute 17387 * %QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG. 17388 * 17389 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INDEX: u8 value to 17390 * indicate band for which configuration applies. Valid values are enumerated 17391 * in enum %nl80211_band. 17392 * 17393 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG: A nested 17394 * attribute containing per chain related information to adjust transmit 17395 * power. The attributes used inside this nested attribute are defined in 17396 * enum qca_wlan_vendor_attr_adjust_tx_power_chain_config. 17397 * 17398 */ 17399 enum qca_wlan_vendor_attr_adjust_tx_power_band_config { 17400 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INVALID = 0, 17401 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_INDEX = 1, 17402 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CHAIN_CONFIG = 2, 17403 17404 /* keep last */ 17405 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_AFTER_LAST, 17406 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_MAX = 17407 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_AFTER_LAST - 1, 17408 }; 17409 17410 /** 17411 * enum qca_wlan_vendor_attr_adjust_tx_power - Definition of attributes 17412 * for %QCA_NL80211_VENDOR_SUBCMD_ADJUST_TX_POWER subcommand. 17413 * 17414 * @QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG: A nested attribute 17415 * containing per band related information to adjust transmit power. 17416 * The attributes used inside this nested attributes are defined in 17417 * enum qca_wlan_vendor_attr_adjust_tx_power_band_config. 17418 */ 17419 enum qca_wlan_vendor_attr_adjust_tx_power { 17420 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_INVALID = 0, 17421 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_BAND_CONFIG = 1, 17422 17423 /* keep last */ 17424 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_AFTER_LAST, 17425 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_MAX = 17426 QCA_WLAN_VENDOR_ATTR_ADJUST_TX_POWER_AFTER_LAST - 1, 17427 }; 17428 17429 /** 17430 * enum qca_wlan_vendor_spectral_data_transport_mode - Attribute 17431 * values for QCA_WLAN_VENDOR_ATTR_SPECTRAL_DATA_TRANSPORT_MODE. 17432 * 17433 * @QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_NETLINK: Use netlink to 17434 * send spectral data to userspace applications. 17435 * @QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_RELAY: Use relay interface 17436 * to send spectral data to userspace applications. 17437 */ 17438 enum qca_wlan_vendor_spectral_data_transport_mode { 17439 QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_NETLINK = 0, 17440 QCA_WLAN_VENDOR_SPECTRAL_DATA_TRANSPORT_RELAY = 1, 17441 }; 17442 17443 /* enum qca_wlan_vendor_spectral_scan_complete_status - Attribute 17444 * values for QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS to 17445 * indicate the completion status for a spectral scan. 17446 * 17447 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_SUCCESSFUL: 17448 * Indicates a successful completion of the scan. 17449 * 17450 * @QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_TIMEOUT: Indicates 17451 * a timeout has occured while processing the spectral reports. 17452 */ 17453 enum qca_wlan_vendor_spectral_scan_complete_status { 17454 QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_SUCCESSFUL = 0, 17455 QCA_WLAN_VENDOR_SPECTRAL_SCAN_COMPLETE_STATUS_TIMEOUT = 1, 17456 }; 17457 17458 /* enum qca_wlan_vendor_attr_spectral_scan_complete - Definition of 17459 * attributes for @QCA_NL80211_VENDOR_SUBCMD_SPECTRAL_SCAN_COMPLETE 17460 * to indicate scan status and samples received from hardware. 17461 * 17462 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_INVALID: Invalid attribute 17463 * 17464 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS: u32 attribute. 17465 * Indicates completion status, either the scan is successful or a timeout 17466 * is issued by the driver. 17467 * See enum qca_wlan_vendor_spectral_scan_complete_status. 17468 * 17469 * @QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_RECEIVED_SAMPLES: u32 17470 * attribute. Number of spectral samples received after the scan has started. 17471 */ 17472 enum qca_wlan_vendor_attr_spectral_scan_complete { 17473 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_INVALID = 0, 17474 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_STATUS = 1, 17475 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_RECEIVED_SAMPLES = 2, 17476 17477 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_AFTER_LAST, 17478 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_MAX = 17479 QCA_WLAN_VENDOR_ATTR_SPECTRAL_SCAN_COMPLETE_AFTER_LAST - 1, 17480 }; 17481 17482 /** 17483 * enum qca_wlan_vendor_async_get_station_attr - Attribute values for 17484 * %QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION command. 17485 * 17486 * @QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_CONFIG: 8-bit unsigned value to 17487 * configure the driver to enable/disable reporting 17488 * %QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION events. 1-Enable, 0-Disable. 17489 * This is required in a command. 17490 * 17491 * @QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_RESPONSE: Nested attribute. This is 17492 * required in %QCA_NL80211_VENDOR_SUBCMD_ASYNC_GET_STATION event. 17493 * This attribute is nested with the station MAC address in %NL80211_ATTR_MAC 17494 * and the station information in %NL80211_ATTR_STA_INFO nested attribute, see 17495 * enum nl80211_sta_info. 17496 */ 17497 enum qca_wlan_vendor_async_get_station_attr { 17498 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_INVALID = 0, 17499 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_CONFIG = 1, 17500 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_RESPONSE = 2, 17501 17502 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_AFTER_LAST, 17503 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_MAX = 17504 QCA_WLAN_VENDOR_ATTR_ASYNC_GET_STATION_AFTER_LAST - 1, 17505 }; 17506 17507 /* enum qca_wlan_vendor_ap_suspend_state - Attribute values for 17508 * QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_STATE. 17509 * 17510 * @QCA_WLAN_VENDOR_AP_SUSPEND_STATE_DISABLE: Disable suspend state. When used 17511 * with a command, the driver resumes AP with the same configuration that was 17512 * applied earlier and starts all TX/RX operations. When used in an event, 17513 * indicates the AP interface resumed. 17514 * 17515 * @QCA_WLAN_VENDOR_AP_SUSPEND_STATE_ENABLE: Enable suspend state. In this 17516 * mode, all associated STAs are disconnected and TX/RX is stopped. While an AP 17517 * is in this state, it allows only %QCA_WLAN_VENDOR_AP_SUSPEND_STATE_DISABLE 17518 * or AP stop/teardown operations. When used in an event, indicates the AP 17519 * interface suspended. 17520 */ 17521 enum qca_wlan_vendor_ap_suspend_state { 17522 QCA_WLAN_VENDOR_AP_SUSPEND_STATE_DISABLE = 0, 17523 QCA_WLAN_VENDOR_AP_SUSPEND_STATE_ENABLE = 1, 17524 }; 17525 17526 /* enum qca_wlan_vendor_attr_ap_suspend - Definition of attributes for 17527 * @QCA_NL80211_VENDOR_SUBCMD_AP_SUSPEND to configure/notify the suspend state. 17528 * 17529 * @QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_STATE: u8 attribute to configure/notify 17530 * suspend state defined in enum qca_wlan_vendor_ap_suspend_state. 17531 */ 17532 enum qca_wlan_vendor_attr_ap_suspend { 17533 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_INVALID = 0, 17534 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_STATE = 1, 17535 17536 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_AFTER_LAST, 17537 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_MAX = 17538 QCA_WLAN_VENDOR_ATTR_AP_SUSPEND_AFTER_LAST - 1, 17539 }; 17540 17541 /** 17542 * enum qca_traffic_type - Traffic types into which the flows can be classified. 17543 * @QCA_TRAFFIC_TYPE_STREAMING: Traffic type is streaming 17544 * @QCA_TRAFFIC_TYPE_GAMING: Traffic type is gaming 17545 * @QCA_TRAFFIC_TYPE_VOICE_CALL: Traffic type is a voice call 17546 * @QCA_TRAFFIC_TYPE_VIDEO_CALL: Traffic type is a video call 17547 * @QCA_TRAFFIC_TYPE_SCREEN_SHARE: Traffic type is screen share 17548 * @QCA_TRAFFIC_TYPE_UNKNOWN: Traffic type is unknown 17549 * @QCA_TRAFFIC_TYPE_INVALID: Invalid traffic type 17550 */ 17551 enum qca_traffic_type { 17552 QCA_TRAFFIC_TYPE_STREAMING = 0, 17553 QCA_TRAFFIC_TYPE_GAMING = 1, 17554 QCA_TRAFFIC_TYPE_VOICE_CALL = 2, 17555 QCA_TRAFFIC_TYPE_VIDEO_CALL = 3, 17556 QCA_TRAFFIC_TYPE_SCREEN_SHARE = 4, 17557 QCA_TRAFFIC_TYPE_UNKNOWN = 5, 17558 QCA_TRAFFIC_TYPE_INVALID = 6, 17559 }; 17560 17561 /** 17562 * enum qca_wlan_vendor_flow_tuple_proto - Definition of the values to specify 17563 * the flow tuple protocol in QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_PROTOCOL. 17564 * 17565 * @QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_UDP: UDP flow 17566 * 17567 * @QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_TCP: TCP flow 17568 */ 17569 enum qca_wlan_vendor_flow_tuple_proto { 17570 QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_UDP = 0, 17571 QCA_WLAN_VENDOR_FLOW_TUPLE_PROTO_TCP = 1, 17572 }; 17573 17574 /** 17575 * enum qca_wlan_vendor_attr_flow_tuple - Definition of attributes to specify a 17576 * flow tuple. 17577 * 17578 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_SRC_ADDR: Optional u32 attribute 17579 * indicates the source IPv4 address (in network byte order). 17580 * 17581 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_DST_ADDR: Optional u32 attribute 17582 * indicates the destination IPv4 address (in network byte order). 17583 * 17584 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_SRC_ADDR: Optional NLA_BINARY 17585 * attribute of 16 bytes length that indicates the source IPv6 address 17586 * (in network byte order) for a flow. 17587 * 17588 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_DST_ADDR: Optional NLA_BINARY 17589 * attribute of 16 bytes length that indicates the destination IPv6 address 17590 * (in network byte order) for a flow. 17591 * 17592 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_SRC_PORT: Mandatory u16 attribute indicates 17593 * the TCP/UDP source port. 17594 * 17595 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_DST_PORT: Mandatory u16 attribute indicates 17596 * the TCP/UDP destination port. 17597 * 17598 * @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_PROTOCOL: Mandatory u8 attribute indicates 17599 * the flow protocol. Uses the enum qca_wlan_vendor_flow_tuple_proto. 17600 * 17601 * IPv4 flows have to specify @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_SRC_ADDR 17602 * and @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_DST_ADDR. 17603 * IPv6 flows have to specify @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_SRC_ADDR 17604 * and @QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_DST_ADDR. 17605 */ 17606 enum qca_wlan_vendor_attr_flow_tuple { 17607 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_INVALID = 0, 17608 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_SRC_ADDR = 1, 17609 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV4_DST_ADDR = 2, 17610 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_SRC_ADDR = 3, 17611 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_IPV6_DST_ADDR = 4, 17612 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_SRC_PORT = 5, 17613 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_DST_PORT = 6, 17614 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_PROTOCOL = 7, 17615 17616 /* keep last */ 17617 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_LAST, 17618 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_MAX = 17619 QCA_WLAN_VENDOR_ATTR_FLOW_TUPLE_LAST - 1, 17620 }; 17621 17622 /** 17623 * enum qca_wlan_vendor_attr_txrx_stats - Definition of attributes to specify 17624 * TX/RX sample for one window. 17625 * 17626 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_BYTES: Mandatory u64 attribute indicates 17627 * the total number of uplink/downlink bytes within the sampling window. 17628 * 17629 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_PKTS: Mandatory u32 attribute indicates 17630 * the total number of packets (uplink/downlink) within the sampling window. 17631 * 17632 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MIN: Mandatory u32 attribute 17633 * indicates the minimum uplink/downlink packet size (in bytes) during the 17634 * sampling window. 17635 * 17636 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MAX: Mandatory u32 attribute 17637 * indicates the maximum uplink/downlink packet size (in bytes) during the 17638 * sampling window. 17639 * 17640 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MIN: Mandatory u64 attribute 17641 * indicates the minimum uplink/downlink packet IAT (inter-arrival time) 17642 * in microseconds, during the sampling window. 17643 * 17644 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MAX: Mandatory u64 attribute 17645 * indicates the maximum uplink/downlink packet IAT (inter-arrival time) 17646 * in microseconds, during the sampling window. 17647 * 17648 * @QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_SUM: Mandatory u64 attribute 17649 * indicates the sum of all the values of uplink/downlink packet IAT 17650 * (inter-arrival time) in microseconds, during the sampling window. 17651 * This attribute is used to calculate the mean packet (inter-arrival time) 17652 * during the sampling window. 17653 */ 17654 enum qca_wlan_vendor_attr_txrx_stats { 17655 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_INVALID = 0, 17656 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_BYTES = 1, 17657 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_NUM_PKTS = 2, 17658 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MIN = 3, 17659 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_SIZE_MAX = 4, 17660 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MIN = 5, 17661 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_MAX = 6, 17662 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_PKT_IAT_SUM = 7, 17663 17664 /* keep last */ 17665 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_LAST, 17666 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_MAX = 17667 QCA_WLAN_VENDOR_ATTR_TXRX_STATS_LAST - 1, 17668 }; 17669 17670 /** 17671 * enum qca_wlan_vendor_attr_txrx_samples_windows - Definition of attributes 17672 * to specify the TX/RX statistics collected in a sampling window. 17673 * 17674 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_WINDOW_SIZE: Mandatory u32 17675 * attribute indicates window size for packet TX/RX sampling (in milliseconds). 17676 * 17677 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_UL_STATS: Mandatory nested 17678 * attribute containing the uplink TX/RX packet statistics for a flow. Uses the 17679 * enum qca_wlan_vendor_attr_txrx_stats. 17680 * 17681 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_DL_STATS: Mandatory nested 17682 * attribute containing the downlink TX/RX packet statistics for a flow. Uses 17683 * the enum qca_wlan_vendor_attr_txrx_stats. 17684 */ 17685 enum qca_wlan_vendor_attr_txrx_samples_windows { 17686 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_INVALID = 0, 17687 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_WINDOW_SIZE = 1, 17688 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_UL_STATS = 2, 17689 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_DL_STATS = 3, 17690 17691 /* keep last */ 17692 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_LAST, 17693 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_MAX = 17694 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS_LAST - 1, 17695 }; 17696 17697 /** 17698 * enum qca_wlan_vendor_attr_txrx_samples - Definition of attributes to specify 17699 * a TX/RX sample. 17700 * 17701 * @QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS: Mandatory array of nested 17702 * attributes that indicates the TX/RX samples in multiple overlapping windows. 17703 * This uses the attributes defined by 17704 * enum qca_wlan_vendor_attr_txrx_samples_windows. 17705 */ 17706 enum qca_wlan_vendor_attr_txrx_samples { 17707 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_INVALID = 0, 17708 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_WINDOWS = 1, 17709 17710 /* keep last */ 17711 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_LAST, 17712 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_MAX = 17713 QCA_WLAN_VENDOR_ATTR_TXRX_SAMPLES_LAST - 1, 17714 }; 17715 17716 /** 17717 * enum qca_wlan_vendor_attr_burst_stats - Definition of attribute to specify 17718 * burst statistics. 17719 * 17720 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MIN: Mandatory u32 attribute 17721 * indicates minimum burst duration (in milliseconds) during the sampling 17722 * window. 17723 * 17724 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MAX: Mandatory u32 attribute 17725 * indicates maximum burst duration (in milliseconds) during the sampling 17726 * window. 17727 * 17728 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_SUM: Mandatory u64 attribute 17729 * indicates the sum of all the values of burst duration (in milliseconds) 17730 * during the sampling window. This attribute is used to calculate the mean 17731 * burst duration (in milliseconds) during the sampling window. 17732 * 17733 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MIN: Mandatory u64 attribute 17734 * indicates minimum burst size (in bytes) during the sampling window. 17735 * 17736 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MAX: Mandatory u64 attribute 17737 * indicates maximum burst size (in bytes) during the sampling window. 17738 * 17739 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_SUM: Mandatory u64 attribute 17740 * indicates the sum of all the values of burst size (in bytes) during the 17741 * sampling window. This attribute is used to calculate the mean burst size 17742 * (in bytes) during the sampling window. 17743 * 17744 * @QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_COUNT: Mandatory u32 attribute 17745 * indicates the number of bursts during the sampling window. 17746 */ 17747 enum qca_wlan_vendor_attr_burst_stats { 17748 QCA_WLAN_VENDOR_ATTR_BURST_STATS_INVALID = 0, 17749 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MIN = 1, 17750 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_MAX = 2, 17751 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_DURATION_SUM = 3, 17752 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MIN = 4, 17753 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_MAX = 5, 17754 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_SIZE_SUM = 6, 17755 QCA_WLAN_VENDOR_ATTR_BURST_STATS_BURST_COUNT = 7, 17756 17757 /* keep last */ 17758 QCA_WLAN_VENDOR_ATTR_BURST_STATS_LAST, 17759 QCA_WLAN_VENDOR_ATTR_BURST_STATS_MAX = 17760 QCA_WLAN_VENDOR_ATTR_BURST_STATS_LAST - 1, 17761 }; 17762 17763 /** 17764 * enum qca_wlan_vendor_attr_burst_sample - Definition of attributes to specify 17765 * a burst sample. 17766 * 17767 * @QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_TXRX_STATS: Mandatory nested attribute 17768 * indicates the uplink and downlink packet statistics collected in a 17769 * sampling window, containing attributes defined in 17770 * enum qca_wlan_vendor_attr_txrx_samples_windows. 17771 * 17772 * @QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_UL_BURST_STATS: Optional nested attribute 17773 * indicates the uplink burst stats, containing attributes defined in 17774 * enum qca_wlan_vendor_attr_burst_stats. 17775 * 17776 * @QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_DL_BURST_STATS: Optional nested attribute 17777 * indicates the downlink burst stats, containing attributes defined in 17778 * enum qca_wlan_vendor_attr_burst_stats. 17779 */ 17780 enum qca_wlan_vendor_attr_burst_sample { 17781 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_INVALID = 0, 17782 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_TXRX_STATS = 1, 17783 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_UL_BURST_STATS = 2, 17784 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_DL_BURST_STATS = 3, 17785 17786 /* keep last */ 17787 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_LAST, 17788 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_MAX = 17789 QCA_WLAN_VENDOR_ATTR_BURST_SAMPLES_LAST - 1, 17790 }; 17791 17792 /** 17793 * enum qca_wlan_vendor_attr_flow_stats - Definition of attribute used by 17794 * %QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT and 17795 * %QCA_NL80211_VENDOR_SUBCMD_FLOW_STATS. 17796 * 17797 * Presence of one of the attributes 17798 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TXRX_SAMPLES and 17799 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_BURST_SAMPLES is mandatory. 17800 * 17801 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_FLOW_TUPLE: Mandatory nested attribute 17802 * containing the flow tuple of the flow for which the statistics are being 17803 * reported. 17804 * Uses the attributes defined by enum qca_wlan_vendor_attr_flow_tuple. 17805 * 17806 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TRAFFIC_TYPE: Optional u8 attribute 17807 * indicates the traffic type classified for this flow tuple. Uses the 17808 * enum qca_traffic_type values. 17809 * This attribute is mandatory for the command 17810 * @QCA_NL80211_VENDOR_SUBCMD_CLASSIFIED_FLOW_REPORT. 17811 * 17812 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TXRX_SAMPLES: Optional nested attribute 17813 * containing nested array of TX/RX samples defined in 17814 * enum qca_wlan_vendor_attr_txrx_samples. 17815 * 17816 * @QCA_WLAN_VENDOR_ATTR_FLOW_STATS_BURST_SAMPLES: Optional nested attribute 17817 * indicates the packet burst statistics for a flow. Uses attributes defined by 17818 * enum qca_wlan_vendor_attr_burst_sample. 17819 */ 17820 enum qca_wlan_vendor_attr_flow_stats { 17821 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_INVALID = 0, 17822 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_FLOW_TUPLE = 1, 17823 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TRAFFIC_TYPE = 2, 17824 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_TXRX_SAMPLES = 3, 17825 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_BURST_SAMPLES = 4, 17826 17827 /* keep last */ 17828 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_LAST, 17829 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_MAX = 17830 QCA_WLAN_VENDOR_ATTR_FLOW_STATS_LAST - 1, 17831 }; 17832 17833 /** 17834 * enum qca_wlan_vendor_attr_flow_classify_result - Definition of attributes to 17835 * specify the flow classification result. This enum is used by 17836 * @QCA_NL80211_VENDOR_SUBCMD_FLOW_CLASSIFY_RESULT. 17837 * 17838 * @QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_FLOW_TUPLE: Mandatory nested 17839 * attribute containing attributes defined by 17840 * enum qca_wlan_vendor_attr_flow_tuple. 17841 * 17842 * @QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_TRAFFIC_TYPE: Mandatory u8 17843 * attribute indicates the traffic type learned for this flow tuple. Uses the 17844 * enum qca_traffic_type values. 17845 */ 17846 enum qca_wlan_vendor_attr_flow_classify_result { 17847 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_INVALID = 0, 17848 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_FLOW_TUPLE = 1, 17849 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_TRAFFIC_TYPE = 2, 17850 17851 /* keep last */ 17852 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_LAST, 17853 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_MAX = 17854 QCA_WLAN_VENDOR_ATTR_FLOW_CLASSIFY_RESULT_LAST - 1, 17855 }; 17856 17857 /** 17858 * enum qca_async_stats_sub_module - The statistics type used in async 17859 * statistics policy. 17860 * Used by @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_TYPE. 17861 * 17862 * @QCA_ASYNC_STATS_TYPE_POWERSAVE: Wi-Fi powersave statistics 17863 * 17864 * @QCA_ASYNC_STATS_TYPE_FLOW_STATS: Flow statistics 17865 * 17866 * @QCA_ASYNC_STATS_TYPE_CLASSIFIED_FLOW_STATS: Classified flow statistics 17867 */ 17868 enum qca_async_stats_type { 17869 QCA_ASYNC_STATS_TYPE_POWERSAVE = 0, 17870 QCA_ASYNC_STATS_TYPE_FLOW_STATS = 1, 17871 QCA_ASYNC_STATS_TYPE_CLASSIFIED_FLOW_STATS = 2, 17872 }; 17873 17874 /** 17875 * enum qca_async_stats_action - ASYNC statistics action. Used by 17876 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_ACTION. 17877 * 17878 * @QCA_ASYNC_STATS_ACTION_START: Start indication for async statistics 17879 * collection. 17880 * @QCA_ASYNC_STATS_ACTION_STOP: Stop indication for async statistics 17881 * collection. 17882 */ 17883 enum qca_async_stats_action { 17884 QCA_ASYNC_STATS_ACTION_START = 0, 17885 QCA_ASYNC_STATS_ACTION_STOP = 1, 17886 }; 17887 17888 /** 17889 * enum qca_wlan_vendor_attr_async_stats_policy - Definition of attributes to 17890 * specify the ASYNC statistics policy. This enum is used by 17891 * @QCA_NL80211_VENDOR_SUBCMD_ASYNC_STATS_POLICY. 17892 * 17893 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_TYPE: Mandatory u8 17894 * attribute indicates the statistics type for which the async statistics policy 17895 * needs to be applied by the driver. Uses the enum qca_async_stats_type values. 17896 * 17897 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_ACTION: Mandatory u8 attribute 17898 * indicates the action as part of this policy. 17899 * Uses the enum qca_async_stats_action values. 17900 * 17901 * @QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_PERIODICITY: Optional u32 17902 * attribute indicates the periodicity (in milliseconds) for the statistics to 17903 * be reported. This attribute is mandatory for QCA_ASYNC_STATS_TYPE_POWERSAVE. 17904 */ 17905 enum qca_wlan_vendor_attr_async_stats_policy { 17906 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_INVALID = 0, 17907 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_TYPE = 1, 17908 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_ACTION = 2, 17909 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_STATS_PERIODICITY = 3, 17910 17911 /* keep last */ 17912 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_LAST, 17913 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_MAX = 17914 QCA_WLAN_VENDOR_ATTR_ASYNC_STATS_POLICY_LAST - 1, 17915 }; 17916 17917 /** 17918 * enum qca_wlan_vendor_attr_nss_pkt - Attributes used by 17919 * %QCA_WLAN_VENDOR_ATTR_GET_STA_INFO_NSS_PKT_COUNT. 17920 * 17921 * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE: u8 attribute. This 17922 * represents the number of spatial streams. 17923 * 17924 * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_TX_PACKET_COUNT: u64 attribute. This 17925 * represents the number of MSDU packets transmitted with the number of spatial 17926 * streams specified in %QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE. 17927 * 17928 * @QCA_WLAN_VENDOR_ATTR_NSS_PKT_RX_PACKET_COUNT: u64 attribute. This 17929 * represents the number of MSDU packets received with the number of spatial 17930 * streams specified in %QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE. 17931 */ 17932 enum qca_wlan_vendor_attr_nss_pkt { 17933 QCA_WLAN_VENDOR_ATTR_NSS_PKT_INVALID = 0, 17934 QCA_WLAN_VENDOR_ATTR_NSS_PKT_NSS_VALUE = 1, 17935 QCA_WLAN_VENDOR_ATTR_NSS_PKT_TX_PACKET_COUNT = 2, 17936 QCA_WLAN_VENDOR_ATTR_NSS_PKT_RX_PACKET_COUNT = 3, 17937 17938 QCA_WLAN_VENDOR_ATTR_NSS_PKT_AFTER_LAST, 17939 QCA_WLAN_VENDOR_ATTR_NSS_PKT_MAX = 17940 QCA_WLAN_VENDOR_ATTR_NSS_PKT_AFTER_LAST - 1, 17941 }; 17942 17943 /** 17944 * enum qca_wlan_intf_offload_type - Definition of available values for 17945 * QCA_WLAN_VENDOR_ATTR_CONFIG_INTF_OFFLOAD_TYPE to specify the offload path for 17946 * packets handled through a network device. 17947 * 17948 * There are three offload paths possible for handling packet forwarding between 17949 * Ethernet and Wi-Fi network, and which path to use can be configured on a per 17950 * netdevice level based on use case. Userspace can choose different options 17951 * based on use cases like performance requirements, traffic control features 17952 * and limitations provided in each option. 17953 * 17954 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_NONE: No acceleration configured. 17955 * Packets are processed through the Linux kernel networking stack. 17956 * 17957 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_SFE: Packets are processed through 17958 * the shortcut forwarding engine (SFE) to bypass the Linux networking stack 17959 * for improved throughput performance. This option is applicable for AP, STA, 17960 * and Mesh mode and available for all radio designs. From the performance 17961 * aspect, this option consumes more CPU compared to the other two options. 17962 * Linux traffic control can be further applied with this option to have more 17963 * control on the traffic flows. 17964 * 17965 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_ACTIVE_VP: Packets are processed 17966 * through both hardware and software in this case. Packet classification is 17967 * done by the hardware and then the packets are delivered to software along 17968 * with classification results as meta data. Software can choose to do more 17969 * classification/QoS based on use cases. This is applicable for AP, STA, and 17970 * Mesh modes and this is available for all radio designs. From the performance 17971 * aspect, this option consumes relatively less CPU compared to the SFE option 17972 * above. Linux traffic control rules cannot be applied with this option. 17973 * 17974 * @QCA_WLAN_VENDOR_ATTR_INTF_OFFLOAD_TYPE_PPE_DS: Packets are processed through 17975 * special hardware (Direct Switch) rings which can directly forward the packets 17976 * between Ethernet hardware and Wi-Fi hardware with very little software 17977 * involvement. This is applicable only for AP and STA modes; not applicable 17978 * for Mesh mode. From the performance aspect, this option consumes very much 17979 * less CPU compared to the other options. Linux traffic control rules cannot be 17980 * applied when this option is used. This option is applicable only for 17981 * specific radio designs. When this option is not available, the default option 17982 * (SFE) would be configured. 17983 */ 17984 enum qca_wlan_intf_offload_type { 17985 QCA_WLAN_INTF_OFFLOAD_TYPE_NONE = 0, 17986 QCA_WLAN_INTF_OFFLOAD_TYPE_SFE = 1, 17987 QCA_WLAN_INTF_OFFLOAD_TYPE_ACTIVE_VP = 2, 17988 QCA_WLAN_INTF_OFFLOAD_TYPE_PPE_DS = 3, 17989 }; 17990 17991 /** 17992 * enum qca_wlan_vendor_attr_usd_op_type: Attribute values for 17993 * %QCA_WLAN_VENDOR_ATTR_USD_OP_TYPE to the vendor subcmd 17994 * %QCA_NL80211_VENDOR_SUBCMD_USD. This is a mandatory u8 attribute which 17995 * represents the USD command type. 17996 * 17997 * @QCA_WLAN_VENDOR_USD_OP_TYPE_FLUSH: Indicates USD tear down of all active 17998 * publish and subscribe sessions. 17999 * 18000 * @QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH: Indicates USD solicited publish 18001 * operation that enables to offer a service for other devices based on 18002 * given parameters. 18003 * 18004 * @QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE: Indicates USD active subscribe 18005 * operation that requests for a given service with given parameters from 18006 * other devices that offer the service. 18007 * 18008 * @QCA_WLAN_VENDOR_USD_OP_TYPE_UPDATE_PUBLISH: Indicates update of an instance 18009 * of the publish function of given publish id. 18010 * 18011 * @QCA_WLAN_VENDOR_USD_OP_TYPE_CANCEL_PUBLISH: Indicates cancellation of an 18012 * instance of the publish function. 18013 * 18014 * @QCA_WLAN_VENDOR_USD_OP_TYPE_CANCEL_SUBSCRIBE: Indicates cancellation of an 18015 * instance of the subscribe function. 18016 */ 18017 enum qca_wlan_vendor_attr_an_usd_op_type { 18018 QCA_WLAN_VENDOR_USD_OP_TYPE_FLUSH = 0, 18019 QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH = 1, 18020 QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE = 2, 18021 QCA_WLAN_VENDOR_USD_OP_TYPE_UPDATE_PUBLISH = 3, 18022 QCA_WLAN_VENDOR_USD_OP_TYPE_CANCEL_PUBLISH = 4, 18023 QCA_WLAN_VENDOR_USD_OP_TYPE_CANCEL_SUBSCRIBE = 5, 18024 }; 18025 18026 /** 18027 * enum qca_wlan_vendor_attr_usd_service_protocol_type: Attribute values for 18028 * %QCA_WLAN_VENDOR_ATTR_USD_SERVICE_PROTOCOL_TYPE to the vendor subcmd 18029 * %QCA_NL80211_VENDOR_SUBCMD_USD. This is a u8 attribute which represents the 18030 * USD service protocol type for service specific information. 18031 * 18032 * @QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_BONJOUR: Indicates SSI info is 18033 * of type Bonjour 18034 * @QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_GENERIC: Indicates SSI info is 18035 * of type generic 18036 * @QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_CSA_MATTER: Indicates SSI info 18037 * is of type CSA/Matter 18038 */ 18039 enum qca_wlan_vendor_attr_usd_service_protocol_type { 18040 QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_BONJOUR = 1, 18041 QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_GENERIC = 2, 18042 QCA_WLAN_VENDOR_USD_SERVICE_PROTOCOL_TYPE_CSA_MATTER = 3, 18043 }; 18044 18045 /** 18046 * enum qca_wlan_vendor_attr_usd_chan_config - Attributes used inside nested 18047 * attribute %QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG. 18048 * 18049 * @QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_DEFAULT_FREQ: Required 18050 * u32 attribute containing the default channel frequency (MHz). 18051 * 18052 * @QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_FREQ_LIST: Optional array of channel 18053 * frequencies in MHz (u32) to publish or subscribe. 18054 */ 18055 enum qca_wlan_vendor_attr_usd_chan_config { 18056 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_INVALID = 0, 18057 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_DEFAULT_FREQ = 1, 18058 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_FREQ_LIST = 2, 18059 18060 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_AFTER_LAST, 18061 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_MAX = 18062 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG_AFTER_LAST - 1, 18063 }; 18064 18065 /** 18066 * enum qca_wlan_vendor_attr_usd_status 18067 * 18068 * @QCA_WLAN_VENDOR_ATTR_USD_STATUS_SUCCESS: USD request success status. 18069 * @QCA_WLAN_VENDOR_ATTR_USD_STATUS_FAILED: USD request failed status. 18070 */ 18071 enum qca_wlan_vendor_attr_usd_status { 18072 QCA_WLAN_VENDOR_ATTR_USD_STATUS_SUCCESS, 18073 QCA_WLAN_VENDOR_ATTR_USD_STATUS_FAILED, 18074 }; 18075 18076 /* enum qca_wlan_vendor_attr_usd: Attributes used by vendor command 18077 * %QCA_NL80211_VENDOR_SUBCMD_USD. 18078 * 18079 * @QCA_WLAN_VENDOR_ATTR_USD_SRC_ADDR: 6-byte source MAC address 18080 * Mandatory attribute used with type 18081 * %QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH and 18082 * %QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE. 18083 * 18084 * @QCA_WLAN_VENDOR_ATTR_USD_OP_TYPE: Required u8 attribute. 18085 * It indicates the type of the USD command. It uses values defined in enum 18086 * qca_wlan_vendor_attr_usd_op_type. 18087 * 18088 * @QCA_WLAN_VENDOR_ATTR_USD_INSTANCE_ID: Required u8 attribute. 18089 * It contains the publisher/subscribe id that is specific to the 18090 * publish/subscribe instance. 18091 * 18092 * @QCA_WLAN_VENDOR_ATTR_USD_SERVICE_ID: Required 6-byte attribute. 18093 * It contains the service id that is specific to the service being 18094 * published/subscribed. 18095 * 18096 * @QCA_WLAN_VENDOR_ATTR_USD_SERVICE_PROTOCOL_TYPE: u8 attribute that indicates 18097 * the service protocol type of service specific info. It uses values 18098 * defined in enum qca_wlan_vendor_attr_usd_service_protocol_type. It is 18099 * applicable when %QCA_WLAN_VENDOR_ATTR_USD_SSI is present. 18100 * 18101 * @QCA_WLAN_VENDOR_ATTR_USD_SSI: u8 array containing service specific 18102 * information that has to be conveyed in publish/subscribe message. 18103 * Optional attribute used with type 18104 * %QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH, 18105 * %QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE, and 18106 * %QCA_WLAN_VENDOR_USD_OP_TYPE_UPDATE_PUBLISH. 18107 * 18108 * @QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG: Nested attribute containing USD 18109 * channel configuration parameters. 18110 * Required for type %QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH and 18111 * %QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE. 18112 * See enum qca_wlan_vendor_attr_usd_chan_config for nested attributes. 18113 * 18114 * @QCA_WLAN_VENDOR_ATTR_USD_ELEMENT_CONTAINER: u8 array containing a USD 18115 * element container buffer that has to be conveyed in publish/subscribe 18116 * message. 18117 * Required for type %QCA_WLAN_VENDOR_USD_OP_TYPE_PUBLISH and 18118 * %QCA_WLAN_VENDOR_USD_OP_TYPE_SUBSCRIBE. 18119 * 18120 * @QCA_WLAN_VENDOR_ATTR_USD_TTL: u16 attribute. Indicates the timeout 18121 * for each request in seconds. Timeout value 0 represents single time 18122 * operation. 18123 * 18124 * @QCA_WLAN_VENDOR_ATTR_USD_STATUS: u8 attribute. Status received in event 18125 * indicating whether the underlying driver/firmware has started the USD 18126 * operation as indicated by attributes 18127 * %QCA_WLAN_VENDOR_ATTR_USD_OP_TYPE and 18128 * %QCA_WLAN_VENDOR_ATTR_USD_INSTANCE_ID. 18129 * enum qca_wlan_vendor_attr_usd_status indicates status values. 18130 */ 18131 enum qca_wlan_vendor_attr_usd { 18132 QCA_WLAN_VENDOR_ATTR_USD_INVALID = 0, 18133 QCA_WLAN_VENDOR_ATTR_USD_SRC_ADDR = 1, 18134 QCA_WLAN_VENDOR_ATTR_USD_OP_TYPE = 2, 18135 QCA_WLAN_VENDOR_ATTR_USD_INSTANCE_ID = 3, 18136 QCA_WLAN_VENDOR_ATTR_USD_SERVICE_ID = 4, 18137 QCA_WLAN_VENDOR_ATTR_USD_SERVICE_PROTOCOL_TYPE = 5, 18138 QCA_WLAN_VENDOR_ATTR_USD_SSI = 6, 18139 QCA_WLAN_VENDOR_ATTR_USD_CHAN_CONFIG = 7, 18140 QCA_WLAN_VENDOR_ATTR_USD_ELEMENT_CONTAINER = 8, 18141 QCA_WLAN_VENDOR_ATTR_USD_TTL = 9, 18142 QCA_WLAN_VENDOR_ATTR_USD_STATUS = 10, 18143 18144 QCA_WLAN_VENDOR_ATTR_USD_AFTER_LAST, 18145 QCA_WLAN_VENDOR_ATTR_USD_MAX = 18146 QCA_WLAN_VENDOR_ATTR_USD_AFTER_LAST - 1, 18147 }; 18148 18149 /** 18150 * enum qca_wlan_audio_transport_switch_type - Represents the possible transport 18151 * switch types. 18152 * 18153 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN: Request to route audio data 18154 * via non-WLAN transport (e.g., Bluetooth). 18155 * 18156 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN: Request to route audio data via 18157 * WLAN transport. 18158 */ 18159 enum qca_wlan_audio_transport_switch_type { 18160 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_NON_WLAN = 0, 18161 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_TYPE_WLAN = 1, 18162 }; 18163 18164 /** 18165 * enum qca_wlan_audio_transport_switch_status - Represents the status of audio 18166 * transport switch request. 18167 * 18168 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED: Request to switch transport 18169 * has been rejected. For example, when transport switch is requested from WLAN 18170 * to non-WLAN transport, user space modules and peers would evaluate the switch 18171 * request and may not be ready for switch and hence switch to non-WLAN 18172 * transport gets rejected. 18173 * 18174 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED: Request to switch 18175 * transport has been completed. This is sent only in the command path. For 18176 * example, when the driver had requested for audio transport switch and 18177 * userspace modules as well as peers are ready for the switch, userspace module 18178 * switches the transport and sends the subcommand with status completed to the 18179 * driver. 18180 */ 18181 enum qca_wlan_audio_transport_switch_status { 18182 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_REJECTED = 0, 18183 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_STATUS_COMPLETED = 1, 18184 }; 18185 18186 /** 18187 * enum qca_wlan_audio_transport_switch_reason - Represents the reason of audio 18188 * transport switch request. 18189 * 18190 * @QCA_WLAN_AUDIO_TRANSPORT_SWITCH_REASON_TERMINATING: Requester transport is 18191 * terminating. After this indication, requester module may not be available to 18192 * process further request on its transport. For example, to handle a high 18193 * priority concurrent interface, WLAN transport needs to terminate and hence 18194 * indicates switch to a non-WLAN transport with reason terminating. User space 18195 * modules switch to non-WLAN immediately without waiting for further 18196 * confirmation. 18197 */ 18198 enum qca_wlan_audio_transport_switch_reason { 18199 QCA_WLAN_AUDIO_TRANSPORT_SWITCH_REASON_TERMINATING = 0, 18200 }; 18201 18202 /** 18203 * enum qca_wlan_vendor_attr_audio_transport_switch - Attributes used by 18204 * %QCA_NL80211_VENDOR_SUBCMD_AUDIO_TRANSPORT_SWITCH vendor command. 18205 * 18206 * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE: u8 attribute. Indicates 18207 * the transport switch type from one of the values in enum 18208 * qca_wlan_audio_transport_switch_type. This is mandatory attribute in both 18209 * command and event path. This attribute is included in both requests and 18210 * responses. 18211 * 18212 * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS: u8 attribute. Indicates 18213 * the transport switch status from one of the values in enum 18214 * qca_wlan_audio_transport_switch_status. This is optional attribute and used 18215 * in both command and event path. This attribute must not be included in 18216 * requests. 18217 * 18218 * @QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_REASON: u8 attribute. Indicates 18219 * the transport switch reason from one of the values in enum 18220 * qca_wlan_audio_transport_switch_reason. This is optional attribute and used 18221 * in both command and event path. 18222 */ 18223 enum qca_wlan_vendor_attr_audio_transport_switch { 18224 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_INVALID = 0, 18225 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_TYPE = 1, 18226 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_STATUS = 2, 18227 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_REASON = 3, 18228 18229 /* keep last */ 18230 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST, 18231 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_MAX = 18232 QCA_WLAN_VENDOR_ATTR_AUDIO_TRANSPORT_SWITCH_AFTER_LAST - 1, 18233 }; 18234 18235 18236 /** 18237 * enum qca_wlan_connect_ext_features - Feature flags for 18238 * %QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_FEATURES 18239 * 18240 * @QCA_CONNECT_EXT_FEATURE_RSNO: Flag attribute. This indicates supplicant 18241 * support for RSN overriding. The driver shall enable RSN overriding in the 18242 * (re)association attempts only if this flag is indicated. This functionality 18243 * is available only when the driver indicates support for 18244 * @QCA_WLAN_VENDOR_FEATURE_RSN_OVERRIDE_STA. 18245 * 18246 * @NUM_QCA_WLAN_VENDOR_FEATURES: Number of assigned feature bits. 18247 */ 18248 enum qca_wlan_connect_ext_features { 18249 QCA_CONNECT_EXT_FEATURE_RSNO = 0, 18250 NUM_QCA_CONNECT_EXT_FEATURES /* keep last */ 18251 }; 18252 18253 /* enum qca_wlan_vendor_attr_connect_ext: Attributes used by vendor command 18254 * %QCA_NL80211_VENDOR_SUBCMD_CONNECT_EXT. 18255 * 18256 * @QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_FEATURES: Feature flags contained in a byte 18257 * array. The feature flags are identified by their bit index (see &enum 18258 * qca_wlan_connect_ext_features) with the first byte being the least 18259 * significant one and the last one being the most significant one. 18260 */ 18261 enum qca_wlan_vendor_attr_connect_ext { 18262 QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_INVALID = 0, 18263 QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_FEATURES = 1, 18264 18265 QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_AFTER_LAST, 18266 QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_MAX = 18267 QCA_WLAN_VENDOR_ATTR_CONNECT_EXT_AFTER_LAST - 1, 18268 }; 18269 18270 /** 18271 * enum qca_wlan_vendor_p2p_mode - Defines the values used with 18272 * %QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_CONFIG. 18273 * 18274 * @QCA_P2P_MODE_WFD_R1: Wi-Fi Direct R1 only. 18275 * @QCA_P2P_MODE_WFD_R2: Wi-Fi Direct R2 only. 18276 * @QCA_P2P_MODE_WFD_PCC: P2P Connection Compatibility Mode which supports both 18277 * Wi-Fi Direct R1 and R2. 18278 */ 18279 enum qca_wlan_vendor_p2p_mode { 18280 QCA_P2P_MODE_WFD_R1 = 0, 18281 QCA_P2P_MODE_WFD_R2 = 1, 18282 QCA_P2P_MODE_WFD_PCC = 2, 18283 }; 18284 18285 /* enum qca_wlan_vendor_attr_set_p2p_mode: Attributes used by vendor command 18286 * %QCA_NL80211_VENDOR_SUBCMD_SET_P2P_MODE. 18287 * 18288 * @QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_CONFIG: u8 attribute. Sets the P2P device 18289 * mode. The values used are defined in enum qca_wlan_vendor_p2p_mode. 18290 * This configuration is valid until the interface is brought up next time after 18291 * this configuration and the driver shall use this configuration only when the 18292 * interface is brought up in NL80211_IFTYPE_P2P_GO mode. 18293 * When this parameter has not been set, the interface is brought up with 18294 * Wi-Fi Direct R1 only configuration by default. 18295 */ 18296 enum qca_wlan_vendor_attr_set_p2p_mode { 18297 QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_INVALID = 0, 18298 QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_CONFIG = 1, 18299 18300 QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_AFTER_LAST, 18301 QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_MAX = 18302 QCA_WLAN_VENDOR_ATTR_SET_P2P_MODE_AFTER_LAST - 1, 18303 }; 18304 18305 /** 18306 * enum qca_wlan_vendor_attr_chan_usage_req_chan_list: Attributes used inside 18307 * nested attributes %QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST. 18308 * 18309 * @QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_CHAN: u8 attribute. Indicates 18310 * the channel number of the channel list entry. 18311 * @QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_OP_CLASS: u8 attribute. 18312 * Indicates the operating class of the channel list entry. 18313 */ 18314 enum qca_wlan_vendor_attr_chan_usage_req_chan_list { 18315 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_INVALID = 0, 18316 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_CHAN = 1, 18317 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_OP_CLASS = 2, 18318 18319 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_AFTER_LAST, 18320 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_MAX = 18321 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST_AFTER_LAST - 1, 18322 }; 18323 18324 /** 18325 * enum qca_wlan_vendor_attr_chan_usage_req_mode: Defines the values used 18326 * with %QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_MODE. 18327 * 18328 * @QCA_CHAN_USAGE_MODE_UNAVAILABILITY_INDICATION: Mode set by STA to indicate 18329 * the AP about its unavailability during a peer-to-peer TWT agreement. 18330 * 18331 * @QCA_CHAN_USAGE_MODE_CHANNEL_SWITCH_REQ: Mode set by the STA that is in a 18332 * channel-usage-aidable BSS to request a channel switch. Other Channel Usage 18333 * elements are not required. Optional HT/VHT/HE Capabilities are present. 18334 */ 18335 enum qca_wlan_vendor_attr_chan_usage_req_mode { 18336 QCA_CHAN_USAGE_MODE_UNAVAILABILITY_INDICATION = 3, 18337 QCA_CHAN_USAGE_MODE_CHANNEL_SWITCH_REQ = 4, 18338 }; 18339 18340 /** 18341 * enum qca_wlan_vendor_attr_chan_usage_req: Attributes used by vendor command 18342 * %QCA_NL80211_VENDOR_SUBCMD_CHAN_USAGE_REQ. 18343 * 18344 * @QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_MODE: Required u8 attribute. Identifies 18345 * the usage of the channel list entry provided in the channel usage request. 18346 * Channel switch request and unavailability channel usage modes are 18347 * configured on a STA/P2P Client. 18348 * See enum qca_wlan_vendor_attr_chan_usage_req_mode for attribute values. 18349 * See IEEE P802.11-REVme/D7.0, 9.4.2.84, Table 9-268 for more information. 18350 * 18351 * @QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST: Required array of nested 18352 * attributes containing channel usage parameters. 18353 * Required when channel usage mode is Channel-usage-aidable BSS channel 18354 * switch request. 18355 * See enum qca_wlan_vendor_attr_req_chan_list for nested attributes. 18356 * 18357 * @QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_UNAVAILABILITY_CONFIG_PARAMS: Nested 18358 * attribute representing the parameters configured for unavailability 18359 * indication. Required when channel usage mode is unavailability indication. 18360 * 18361 * Below attributes from enum qca_wlan_vendor_attr_twt_setup are used inside 18362 * this nested attribute: 18363 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_RESPONDER_PM_MODE, 18364 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_REQ_TYPE, 18365 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_TRIGGER, 18366 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_FLOW_TYPE, 18367 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_EXP, 18368 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_PROTECTION, 18369 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_DURATION, 18370 * %QCA_WLAN_VENDOR_ATTR_TWT_SETUP_WAKE_INTVL_MANTISSA. 18371 */ 18372 enum qca_wlan_vendor_attr_chan_usage_req { 18373 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_INVALID = 0, 18374 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_MODE = 1, 18375 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_CHAN_LIST = 2, 18376 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_UNAVAILABILITY_CONFIG_PARAMS = 3, 18377 18378 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_AFTER_LAST, 18379 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_MAX = 18380 QCA_WLAN_VENDOR_ATTR_CHAN_USAGE_REQ_AFTER_LAST - 1, 18381 }; 18382 18383 #endif /* QCA_VENDOR_H */ 18384